ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
Revision: 1720
Committed: Fri Dec 28 21:06:21 2012 UTC (13 years, 7 months ago) by michael
File size: 491077 byte(s)
Log Message:
- automake 1.13

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 1680 2012-12-18 18:06:32Z michael .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.69 for ircd-hybrid TRUNK.
5 #
6 # Report bugs to <bugs@ircd-hybrid.org>.
7 #
8 #
9 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 emulate sh
22 NULLCMD=:
23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
26 setopt NO_GLOB_SUBST
27 else
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
33 esac
34 fi
35
36
37 as_nl='
38 '
39 export as_nl
40 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
44 # Prefer a ksh shell builtin over an external printf program on Solaris,
45 # but without wasting forks for bash or zsh.
46 if test -z "$BASH_VERSION$ZSH_VERSION" \
47 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='print -r --'
49 as_echo_n='print -rn --'
50 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 as_echo='printf %s\n'
52 as_echo_n='printf %s'
53 else
54 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
55 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56 as_echo_n='/usr/ucb/echo -n'
57 else
58 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59 as_echo_n_body='eval
60 arg=$1;
61 case $arg in #(
62 *"$as_nl"*)
63 expr "X$arg" : "X\\(.*\\)$as_nl";
64 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 esac;
66 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 '
68 export as_echo_n_body
69 as_echo_n='sh -c $as_echo_n_body as_echo'
70 fi
71 export as_echo_body
72 as_echo='sh -c $as_echo_body as_echo'
73 fi
74
75 # The user is always right.
76 if test "${PATH_SEPARATOR+set}" != set; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # IFS
86 # We need space, tab and new line, in precisely that order. Quoting is
87 # there to prevent editors from complaining about space-tab.
88 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
89 # splitting by setting IFS to empty value.)
90 IFS=" "" $as_nl"
91
92 # Find who we are. Look in the path if we contain no directory separator.
93 as_myself=
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
104
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
116
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
128
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
134
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138 # Use a proper internal environment variable to ensure we don't fall
139 # into an infinite loop, continuously re-executing ourselves.
140 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
141 _as_can_reexec=no; export _as_can_reexec;
142 # We cannot yet assume a decent shell, so we have to provide a
143 # neutralization value for shells without unset; and this also
144 # works around shells that cannot unset nonexistent variables.
145 # Preserve -v and -x to the replacement shell.
146 BASH_ENV=/dev/null
147 ENV=/dev/null
148 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149 case $- in # ((((
150 *v*x* | *x*v* ) as_opts=-vx ;;
151 *v* ) as_opts=-v ;;
152 *x* ) as_opts=-x ;;
153 * ) as_opts= ;;
154 esac
155 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
156 # Admittedly, this is quite paranoid, since all the known shells bail
157 # out after a failed `exec'.
158 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
159 as_fn_exit 255
160 fi
161 # We don't want this to propagate to other subprocesses.
162 { _as_can_reexec=; unset _as_can_reexec;}
163 if test "x$CONFIG_SHELL" = x; then
164 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
165 emulate sh
166 NULLCMD=:
167 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
168 # is contrary to our usage. Disable this feature.
169 alias -g '\${1+\"\$@\"}'='\"\$@\"'
170 setopt NO_GLOB_SUBST
171 else
172 case \`(set -o) 2>/dev/null\` in #(
173 *posix*) :
174 set -o posix ;; #(
175 *) :
176 ;;
177 esac
178 fi
179 "
180 as_required="as_fn_return () { (exit \$1); }
181 as_fn_success () { as_fn_return 0; }
182 as_fn_failure () { as_fn_return 1; }
183 as_fn_ret_success () { return 0; }
184 as_fn_ret_failure () { return 1; }
185
186 exitcode=0
187 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
188 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
189 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
190 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
191 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192
193 else
194 exitcode=1; echo positional parameters were not saved.
195 fi
196 test x\$exitcode = x0 || exit 1
197 test -x / || exit 1"
198 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
199 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
200 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
201 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
210 test \$(( 1 + 1 )) = 2 || exit 1"
211 if (eval "$as_required") 2>/dev/null; then :
212 as_have_required=yes
213 else
214 as_have_required=no
215 fi
216 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217
218 else
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 as_found=false
221 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
222 do
223 IFS=$as_save_IFS
224 test -z "$as_dir" && as_dir=.
225 as_found=:
226 case $as_dir in #(
227 /*)
228 for as_base in sh bash ksh sh5; do
229 # Try only shells that exist, to save several forks.
230 as_shell=$as_dir/$as_base
231 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
233 CONFIG_SHELL=$as_shell as_have_required=yes
234 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
235 break 2
236 fi
237 fi
238 done;;
239 esac
240 as_found=false
241 done
242 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
243 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
244 CONFIG_SHELL=$SHELL as_have_required=yes
245 fi; }
246 IFS=$as_save_IFS
247
248
249 if test "x$CONFIG_SHELL" != x; then :
250 export CONFIG_SHELL
251 # We cannot yet assume a decent shell, so we have to provide a
252 # neutralization value for shells without unset; and this also
253 # works around shells that cannot unset nonexistent variables.
254 # Preserve -v and -x to the replacement shell.
255 BASH_ENV=/dev/null
256 ENV=/dev/null
257 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258 case $- in # ((((
259 *v*x* | *x*v* ) as_opts=-vx ;;
260 *v* ) as_opts=-v ;;
261 *x* ) as_opts=-x ;;
262 * ) as_opts= ;;
263 esac
264 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
265 # Admittedly, this is quite paranoid, since all the known shells bail
266 # out after a failed `exec'.
267 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268 exit 255
269 fi
270
271 if test x$as_have_required = xno; then :
272 $as_echo "$0: This script requires a shell more modern than all"
273 $as_echo "$0: the shells that I found on your system."
274 if test x${ZSH_VERSION+set} = xset ; then
275 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 $as_echo "$0: Please tell bug-autoconf@gnu.org and
279 $0: bugs@ircd-hybrid.org about your system, including any
280 $0: error possibly output before this message. Then install
281 $0: a modern shell, or manually run the script under such a
282 $0: shell if you do have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 lt_ltdl_dir='libltdl'
569
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572
573 test -n "$DJDIR" || exec 7<&0 </dev/null
574 exec 6>&1
575
576 # Name of the host.
577 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
580
581 #
582 # Initializations.
583 #
584 ac_default_prefix=/usr/local
585 ac_clean_files=
586 ac_config_libobj_dir=.
587 LIBOBJS=
588 cross_compiling=no
589 subdirs=
590 MFLAGS=
591 MAKEFLAGS=
592
593 # Identity of this package.
594 PACKAGE_NAME='ircd-hybrid'
595 PACKAGE_TARNAME='ircd-hybrid'
596 PACKAGE_VERSION='TRUNK'
597 PACKAGE_STRING='ircd-hybrid TRUNK'
598 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599 PACKAGE_URL=''
600
601 ac_unique_file="src/ircd.c"
602 # Factoring default headers for most tests.
603 ac_includes_default="\
604 #include <stdio.h>
605 #ifdef HAVE_SYS_TYPES_H
606 # include <sys/types.h>
607 #endif
608 #ifdef HAVE_SYS_STAT_H
609 # include <sys/stat.h>
610 #endif
611 #ifdef STDC_HEADERS
612 # include <stdlib.h>
613 # include <stddef.h>
614 #else
615 # ifdef HAVE_STDLIB_H
616 # include <stdlib.h>
617 # endif
618 #endif
619 #ifdef HAVE_STRING_H
620 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 # include <memory.h>
622 # endif
623 # include <string.h>
624 #endif
625 #ifdef HAVE_STRINGS_H
626 # include <strings.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_UNISTD_H
635 # include <unistd.h>
636 #endif"
637
638 ac_func_list=
639 ac_header_list=
640 ac_subst_vars='ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 am__EXEEXT_FALSE
643 am__EXEEXT_TRUE
644 LTLIBOBJS
645 LIBOBJS
646 LOCALSTATEDIR
647 DATADIR
648 LIBDIR
649 SYSCONFDIR
650 PREFIX
651 ENABLE_SSL_FALSE
652 ENABLE_SSL_TRUE
653 LTDLOPEN
654 LT_CONFIG_H
655 CONVENIENCE_LTDL_FALSE
656 CONVENIENCE_LTDL_TRUE
657 INSTALL_LTDL_FALSE
658 INSTALL_LTDL_TRUE
659 ARGZ_H
660 sys_symbol_underscore
661 LIBADD_DL
662 LT_DLPREOPEN
663 LIBADD_DLD_LINK
664 LIBADD_SHL_LOAD
665 LIBADD_DLOPEN
666 LT_DLLOADERS
667 INCLTDL
668 LTDLINCL
669 LTDLDEPS
670 LIBLTDL
671 CPP
672 OTOOL64
673 OTOOL
674 LIPO
675 NMEDIT
676 DSYMUTIL
677 MANIFEST_TOOL
678 RANLIB
679 ac_ct_AR
680 AR
681 DLLTOOL
682 OBJDUMP
683 LN_S
684 NM
685 ac_ct_DUMPBIN
686 DUMPBIN
687 LD
688 FGREP
689 EGREP
690 GREP
691 SED
692 host_os
693 host_vendor
694 host_cpu
695 host
696 build_os
697 build_vendor
698 build_cpu
699 build
700 LIBTOOL
701 LEXLIB
702 LEX_OUTPUT_ROOT
703 LEX
704 YFLAGS
705 YACC
706 am__fastdepCC_FALSE
707 am__fastdepCC_TRUE
708 CCDEPMODE
709 am__nodep
710 AMDEPBACKSLASH
711 AMDEP_FALSE
712 AMDEP_TRUE
713 am__quote
714 am__include
715 DEPDIR
716 OBJEXT
717 EXEEXT
718 ac_ct_CC
719 CPPFLAGS
720 LDFLAGS
721 CFLAGS
722 CC
723 MAINT
724 MAINTAINER_MODE_FALSE
725 MAINTAINER_MODE_TRUE
726 AM_BACKSLASH
727 AM_DEFAULT_VERBOSITY
728 AM_DEFAULT_V
729 AM_V
730 am__untar
731 am__tar
732 AMTAR
733 am__leading_dot
734 SET_MAKE
735 AWK
736 mkdir_p
737 MKDIR_P
738 INSTALL_STRIP_PROGRAM
739 STRIP
740 install_sh
741 MAKEINFO
742 AUTOHEADER
743 AUTOMAKE
744 AUTOCONF
745 ACLOCAL
746 VERSION
747 PACKAGE
748 CYGPATH_W
749 am__isrc
750 INSTALL_DATA
751 INSTALL_SCRIPT
752 INSTALL_PROGRAM
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_silent_rules
795 enable_maintainer_mode
796 enable_dependency_tracking
797 enable_static
798 enable_shared
799 with_pic
800 enable_fast_install
801 with_gnu_ld
802 with_sysroot
803 enable_libtool_lock
804 with_included_ltdl
805 with_ltdl_include
806 with_ltdl_lib
807 enable_ltdl_install
808 enable_libpcre
809 enable_openssl
810 enable_assert
811 enable_kqueue
812 enable_epoll
813 enable_devpoll
814 enable_rtsigio
815 enable_poll
816 enable_select
817 with_nicklen
818 with_topiclen
819 enable_halfops
820 enable_debugging
821 enable_warnings
822 '
823 ac_precious_vars='build_alias
824 host_alias
825 target_alias
826 CC
827 CFLAGS
828 LDFLAGS
829 LIBS
830 CPPFLAGS
831 YACC
832 YFLAGS
833 CPP'
834
835
836 # Initialize some variables set by options.
837 ac_init_help=
838 ac_init_version=false
839 ac_unrecognized_opts=
840 ac_unrecognized_sep=
841 # The variables have the same names as the options, with
842 # dashes changed to underlines.
843 cache_file=/dev/null
844 exec_prefix=NONE
845 no_create=
846 no_recursion=
847 prefix=NONE
848 program_prefix=NONE
849 program_suffix=NONE
850 program_transform_name=s,x,x,
851 silent=
852 site=
853 srcdir=
854 verbose=
855 x_includes=NONE
856 x_libraries=NONE
857
858 # Installation directory options.
859 # These are left unexpanded so users can "make install exec_prefix=/foo"
860 # and all the variables that are supposed to be based on exec_prefix
861 # by default will actually change.
862 # Use braces instead of parens because sh, perl, etc. also accept them.
863 # (The list follows the same order as the GNU Coding Standards.)
864 bindir='${exec_prefix}/bin'
865 sbindir='${exec_prefix}/sbin'
866 libexecdir='${exec_prefix}/libexec'
867 datarootdir='${prefix}/share'
868 datadir='${datarootdir}'
869 sysconfdir='${prefix}/etc'
870 sharedstatedir='${prefix}/com'
871 localstatedir='${prefix}/var'
872 includedir='${prefix}/include'
873 oldincludedir='/usr/include'
874 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875 infodir='${datarootdir}/info'
876 htmldir='${docdir}'
877 dvidir='${docdir}'
878 pdfdir='${docdir}'
879 psdir='${docdir}'
880 libdir='${exec_prefix}/lib'
881 localedir='${datarootdir}/locale'
882 mandir='${datarootdir}/man'
883
884 ac_prev=
885 ac_dashdash=
886 for ac_option
887 do
888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
890 eval $ac_prev=\$ac_option
891 ac_prev=
892 continue
893 fi
894
895 case $ac_option in
896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
899 esac
900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
906
907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
910 bindir=$ac_optarg ;;
911
912 -build | --build | --buil | --bui | --bu)
913 ac_prev=build_alias ;;
914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
915 build_alias=$ac_optarg ;;
916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
926
927 -datadir | --datadir | --datadi | --datad)
928 ac_prev=datadir ;;
929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
930 datadir=$ac_optarg ;;
931
932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
939 -disable-* | --disable-*)
940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
943 as_fn_error $? "invalid feature name: $ac_useropt"
944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948 "enable_$ac_useropt"
949 "*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
964
965 -enable-* | --enable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
988 exec_prefix=$ac_optarg ;;
989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
1000
1001 -host | --host | --hos | --ho)
1002 ac_prev=host_alias ;;
1003 -host=* | --host=* | --hos=* | --ho=*)
1004 host_alias=$ac_optarg ;;
1005
1006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
1012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
1017 includedir=$ac_optarg ;;
1018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1022 infodir=$ac_optarg ;;
1023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1027 libdir=$ac_optarg ;;
1028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
1034 libexecdir=$ac_optarg ;;
1035
1036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
1041 -localstatedir | --localstatedir | --localstatedi | --localstated \
1042 | --localstate | --localstat | --localsta | --localst | --locals)
1043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1046 localstatedir=$ac_optarg ;;
1047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1051 mandir=$ac_optarg ;;
1052
1053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1058 | --no-cr | --no-c | -n)
1059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
1065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1072 oldincludedir=$ac_optarg ;;
1073
1074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1077 prefix=$ac_optarg ;;
1078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1084 program_prefix=$ac_optarg ;;
1085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1091 program_suffix=$ac_optarg ;;
1092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
1108 program_transform_name=$ac_optarg ;;
1109
1110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
1120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
1124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
1128 sbindir=$ac_optarg ;;
1129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
1139 sharedstatedir=$ac_optarg ;;
1140
1141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
1144 site=$ac_optarg ;;
1145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1149 srcdir=$ac_optarg ;;
1150
1151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1156 sysconfdir=$ac_optarg ;;
1157
1158 -target | --target | --targe | --targ | --tar | --ta | --t)
1159 ac_prev=target_alias ;;
1160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1161 target_alias=$ac_optarg ;;
1162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
1166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
1168
1169 -with-* | --with-*)
1170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1171 # Reject names that are not valid shell variable names.
1172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173 as_fn_error $? "invalid package name: $ac_useropt"
1174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178 "with_$ac_useropt"
1179 "*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
1184
1185 -without-* | --without-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
1200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1210 x_includes=$ac_optarg ;;
1211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1217 x_libraries=$ac_optarg ;;
1218
1219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220 Try \`$0 --help' for more information"
1221 ;;
1222
1223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
1226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
1228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1229 esac
1230 eval $ac_envvar=\$ac_optarg
1231 export $ac_envvar ;;
1232
1233 *)
1234 # FIXME: should be removed in autoconf 3.0.
1235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1238 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1239 ;;
1240
1241 esac
1242 done
1243
1244 if test -n "$ac_prev"; then
1245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1246 as_fn_error $? "missing argument to $ac_option"
1247 fi
1248
1249 if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
1252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1255 fi
1256
1257 # Check all directory arguments for consistency.
1258 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
1262 do
1263 eval ac_val=\$$ac_var
1264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
1271 case $ac_val in
1272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1274 esac
1275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1276 done
1277
1278 # There might be people who depend on the old broken behavior: `$host'
1279 # used to hold the argument of --host etc.
1280 # FIXME: To remove some day.
1281 build=$build_alias
1282 host=$host_alias
1283 target=$target_alias
1284
1285 # FIXME: To remove some day.
1286 if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
1289 elif test "x$build_alias" != "x$host_alias"; then
1290 cross_compiling=yes
1291 fi
1292 fi
1293
1294 ac_tool_prefix=
1295 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1296
1297 test "$silent" = yes && exec 6>/dev/null
1298
1299
1300 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1301 ac_ls_di=`ls -di .` &&
1302 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1303 as_fn_error $? "working directory cannot be determined"
1304 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1305 as_fn_error $? "pwd does not report name of working directory"
1306
1307
1308 # Find the source files, if location was not specified.
1309 if test -z "$srcdir"; then
1310 ac_srcdir_defaulted=yes
1311 # Try the directory containing this script, then the parent directory.
1312 ac_confdir=`$as_dirname -- "$as_myself" ||
1313 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1314 X"$as_myself" : 'X\(//\)[^/]' \| \
1315 X"$as_myself" : 'X\(//\)$' \| \
1316 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1317 $as_echo X"$as_myself" |
1318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1319 s//\1/
1320 q
1321 }
1322 /^X\(\/\/\)[^/].*/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)$/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\).*/{
1331 s//\1/
1332 q
1333 }
1334 s/.*/./; q'`
1335 srcdir=$ac_confdir
1336 if test ! -r "$srcdir/$ac_unique_file"; then
1337 srcdir=..
1338 fi
1339 else
1340 ac_srcdir_defaulted=no
1341 fi
1342 if test ! -r "$srcdir/$ac_unique_file"; then
1343 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1344 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1345 fi
1346 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1347 ac_abs_confdir=`(
1348 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1349 pwd)`
1350 # When building in place, set srcdir=.
1351 if test "$ac_abs_confdir" = "$ac_pwd"; then
1352 srcdir=.
1353 fi
1354 # Remove unnecessary trailing slashes from srcdir.
1355 # Double slashes in file names in object file debugging info
1356 # mess up M-x gdb in Emacs.
1357 case $srcdir in
1358 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1359 esac
1360 for ac_var in $ac_precious_vars; do
1361 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1362 eval ac_env_${ac_var}_value=\$${ac_var}
1363 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1365 done
1366
1367 #
1368 # Report the --help message.
1369 #
1370 if test "$ac_init_help" = "long"; then
1371 # Omit some internal or obsolete options to make the list less imposing.
1372 # This message is too long to be a string in the A/UX 3.1 sh.
1373 cat <<_ACEOF
1374 \`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems.
1375
1376 Usage: $0 [OPTION]... [VAR=VALUE]...
1377
1378 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1379 VAR=VALUE. See below for descriptions of some of the useful variables.
1380
1381 Defaults for the options are specified in brackets.
1382
1383 Configuration:
1384 -h, --help display this help and exit
1385 --help=short display options specific to this package
1386 --help=recursive display the short help of all the included packages
1387 -V, --version display version information and exit
1388 -q, --quiet, --silent do not print \`checking ...' messages
1389 --cache-file=FILE cache test results in FILE [disabled]
1390 -C, --config-cache alias for \`--cache-file=config.cache'
1391 -n, --no-create do not create output files
1392 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1393
1394 Installation directories:
1395 --prefix=PREFIX install architecture-independent files in PREFIX
1396 [$ac_default_prefix]
1397 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1398 [PREFIX]
1399
1400 By default, \`make install' will install all the files in
1401 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1402 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1403 for instance \`--prefix=\$HOME'.
1404
1405 For better control, use the options below.
1406
1407 Fine tuning of the installation directories:
1408 --bindir=DIR user executables [EPREFIX/bin]
1409 --sbindir=DIR system admin executables [EPREFIX/sbin]
1410 --libexecdir=DIR program executables [EPREFIX/libexec]
1411 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1412 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1413 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1414 --libdir=DIR object code libraries [EPREFIX/lib]
1415 --includedir=DIR C header files [PREFIX/include]
1416 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1417 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1418 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1419 --infodir=DIR info documentation [DATAROOTDIR/info]
1420 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1421 --mandir=DIR man documentation [DATAROOTDIR/man]
1422 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1423 --htmldir=DIR html documentation [DOCDIR]
1424 --dvidir=DIR dvi documentation [DOCDIR]
1425 --pdfdir=DIR pdf documentation [DOCDIR]
1426 --psdir=DIR ps documentation [DOCDIR]
1427 _ACEOF
1428
1429 cat <<\_ACEOF
1430
1431 Program names:
1432 --program-prefix=PREFIX prepend PREFIX to installed program names
1433 --program-suffix=SUFFIX append SUFFIX to installed program names
1434 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1435
1436 System types:
1437 --build=BUILD configure for building on BUILD [guessed]
1438 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1439 _ACEOF
1440 fi
1441
1442 if test -n "$ac_init_help"; then
1443 case $ac_init_help in
1444 short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1445 esac
1446 cat <<\_ACEOF
1447
1448 Optional Features:
1449 --disable-option-checking ignore unrecognized --enable/--with options
1450 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1451 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1452 --enable-silent-rules less verbose build output (undo: "make V=1")
1453 --disable-silent-rules verbose build output (undo: "make V=0")
1454 --enable-maintainer-mode
1455 enable make rules and dependencies not useful (and
1456 sometimes confusing) to the casual installer
1457 --enable-dependency-tracking
1458 do not reject slow dependency extractors
1459 --disable-dependency-tracking
1460 speeds up one-time build
1461 --enable-static[=PKGS] build static libraries [default=no]
1462 --enable-shared[=PKGS] build shared libraries [default=yes]
1463 --enable-fast-install[=PKGS]
1464 optimize for fast installation [default=yes]
1465 --disable-libtool-lock avoid locking (might break parallel builds)
1466 --enable-ltdl-install install libltdl
1467 --disable-libpcre Disable PCRE support
1468 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1469 --disable-openssl Disable OpenSSL support.
1470 --enable-assert Enable assert() statements
1471 --enable-kqueue Force kqueue usage.
1472 --enable-epoll Force epoll usage.
1473 --enable-devpoll Force devpoll usage.
1474 --enable-rtsigio Force rtsigio usage.
1475 --enable-poll Force poll usage.
1476 --enable-select Force select usage.
1477 --enable-halfops Enable halfops support.
1478 --enable-debugging Enable debugging.
1479 --enable-warnings Enable compiler warnings.
1480
1481 Optional Packages:
1482 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1483 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1484 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1485 both]
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-sysroot=DIR Search for dependent libraries within DIR
1488 (or the compiler's sysroot if not specified).
1489 --with-included-ltdl use the GNU ltdl sources included here
1490 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1491 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1492 --with-nicklen=<value> Set nickname length (default 9).
1493 --with-topiclen=<value> Set topic length (default 160).
1494
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1503 YACC The `Yet Another Compiler Compiler' implementation to use.
1504 Defaults to the first program found out of: `bison -y', `byacc',
1505 `yacc'.
1506 YFLAGS The list of arguments that will be passed by default to $YACC.
1507 This script will default YFLAGS to the empty string to avoid a
1508 default value of `-d' given by some make applications.
1509 CPP C preprocessor
1510
1511 Use these variables to override the choices made by `configure' or to help
1512 it to find libraries and programs with nonstandard names/locations.
1513
1514 Report bugs to <bugs@ircd-hybrid.org>.
1515 _ACEOF
1516 ac_status=$?
1517 fi
1518
1519 if test "$ac_init_help" = "recursive"; then
1520 # If there are subdirs, report their specific --help.
1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1522 test -d "$ac_dir" ||
1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1524 continue
1525 ac_builddir=.
1526
1527 case "$ac_dir" in
1528 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *)
1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1531 # A ".." for each directory in $ac_dir_suffix.
1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1533 case $ac_top_builddir_sub in
1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1536 esac ;;
1537 esac
1538 ac_abs_top_builddir=$ac_pwd
1539 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1540 # for backward compatibility:
1541 ac_top_builddir=$ac_top_build_prefix
1542
1543 case $srcdir in
1544 .) # We are building in place.
1545 ac_srcdir=.
1546 ac_top_srcdir=$ac_top_builddir_sub
1547 ac_abs_top_srcdir=$ac_pwd ;;
1548 [\\/]* | ?:[\\/]* ) # Absolute name.
1549 ac_srcdir=$srcdir$ac_dir_suffix;
1550 ac_top_srcdir=$srcdir
1551 ac_abs_top_srcdir=$srcdir ;;
1552 *) # Relative name.
1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1554 ac_top_srcdir=$ac_top_build_prefix$srcdir
1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1556 esac
1557 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558
1559 cd "$ac_dir" || { ac_status=$?; continue; }
1560 # Check for guested configure.
1561 if test -f "$ac_srcdir/configure.gnu"; then
1562 echo &&
1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1564 elif test -f "$ac_srcdir/configure"; then
1565 echo &&
1566 $SHELL "$ac_srcdir/configure" --help=recursive
1567 else
1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1569 fi || ac_status=$?
1570 cd "$ac_pwd" || { ac_status=$?; break; }
1571 done
1572 fi
1573
1574 test -n "$ac_init_help" && exit $ac_status
1575 if $ac_init_version; then
1576 cat <<\_ACEOF
1577 ircd-hybrid configure TRUNK
1578 generated by GNU Autoconf 2.69
1579
1580 Copyright (C) 2012 Free Software Foundation, Inc.
1581 This configure script is free software; the Free Software Foundation
1582 gives unlimited permission to copy, distribute and modify it.
1583 _ACEOF
1584 exit
1585 fi
1586
1587 ## ------------------------ ##
1588 ## Autoconf initialization. ##
1589 ## ------------------------ ##
1590
1591 # ac_fn_c_try_compile LINENO
1592 # --------------------------
1593 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1594 ac_fn_c_try_compile ()
1595 {
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 rm -f conftest.$ac_objext
1598 if { { ac_try="$ac_compile"
1599 case "(($ac_try" in
1600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1601 *) ac_try_echo=$ac_try;;
1602 esac
1603 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1604 $as_echo "$ac_try_echo"; } >&5
1605 (eval "$ac_compile") 2>conftest.err
1606 ac_status=$?
1607 if test -s conftest.err; then
1608 grep -v '^ *+' conftest.err >conftest.er1
1609 cat conftest.er1 >&5
1610 mv -f conftest.er1 conftest.err
1611 fi
1612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1613 test $ac_status = 0; } && {
1614 test -z "$ac_c_werror_flag" ||
1615 test ! -s conftest.err
1616 } && test -s conftest.$ac_objext; then :
1617 ac_retval=0
1618 else
1619 $as_echo "$as_me: failed program was:" >&5
1620 sed 's/^/| /' conftest.$ac_ext >&5
1621
1622 ac_retval=1
1623 fi
1624 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1625 as_fn_set_status $ac_retval
1626
1627 } # ac_fn_c_try_compile
1628
1629 # ac_fn_c_try_link LINENO
1630 # -----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded.
1632 ac_fn_c_try_link ()
1633 {
1634 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1635 rm -f conftest.$ac_objext conftest$ac_exeext
1636 if { { ac_try="$ac_link"
1637 case "(($ac_try" in
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1640 esac
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>conftest.err
1644 ac_status=$?
1645 if test -s conftest.err; then
1646 grep -v '^ *+' conftest.err >conftest.er1
1647 cat conftest.er1 >&5
1648 mv -f conftest.er1 conftest.err
1649 fi
1650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1651 test $ac_status = 0; } && {
1652 test -z "$ac_c_werror_flag" ||
1653 test ! -s conftest.err
1654 } && test -s conftest$ac_exeext && {
1655 test "$cross_compiling" = yes ||
1656 test -x conftest$ac_exeext
1657 }; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1666 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1667 # interfere with the next link command; also delete a directory that is
1668 # left behind by Apple's compiler. We do this before executing the actions.
1669 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_link
1674
1675 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1676 # -------------------------------------------------------
1677 # Tests whether HEADER exists and can be compiled using the include files in
1678 # INCLUDES, setting the cache variable VAR accordingly.
1679 ac_fn_c_check_header_compile ()
1680 {
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1683 $as_echo_n "checking for $2... " >&6; }
1684 if eval \${$3+:} false; then :
1685 $as_echo_n "(cached) " >&6
1686 else
1687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1688 /* end confdefs.h. */
1689 $4
1690 #include <$2>
1691 _ACEOF
1692 if ac_fn_c_try_compile "$LINENO"; then :
1693 eval "$3=yes"
1694 else
1695 eval "$3=no"
1696 fi
1697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1698 fi
1699 eval ac_res=\$$3
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1701 $as_echo "$ac_res" >&6; }
1702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1703
1704 } # ac_fn_c_check_header_compile
1705
1706 # ac_fn_c_try_cpp LINENO
1707 # ----------------------
1708 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1709 ac_fn_c_try_cpp ()
1710 {
1711 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1712 if { { ac_try="$ac_cpp conftest.$ac_ext"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718 $as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } > conftest.i && {
1728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 }; then :
1731 ac_retval=0
1732 else
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=1
1737 fi
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_cpp
1742
1743 # ac_fn_c_try_run LINENO
1744 # ----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1746 # that executables *can* be run.
1747 ac_fn_c_try_run ()
1748 {
1749 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1750 if { { ac_try="$ac_link"
1751 case "(($ac_try" in
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1754 esac
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>&5
1758 ac_status=$?
1759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1761 { { case "(($ac_try" in
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1764 esac
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_try") 2>&5
1768 ac_status=$?
1769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1770 test $ac_status = 0; }; }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: program exited with status $ac_status" >&5
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=$ac_status
1778 fi
1779 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_run
1784
1785 # ac_fn_c_check_func LINENO FUNC VAR
1786 # ----------------------------------
1787 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1788 ac_fn_c_check_func ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792 $as_echo_n "checking for $2... " >&6; }
1793 if eval \${$3+:} false; then :
1794 $as_echo_n "(cached) " >&6
1795 else
1796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797 /* end confdefs.h. */
1798 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1799 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1800 #define $2 innocuous_$2
1801
1802 /* System header to define __stub macros and hopefully few prototypes,
1803 which can conflict with char $2 (); below.
1804 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1805 <limits.h> exists even on freestanding compilers. */
1806
1807 #ifdef __STDC__
1808 # include <limits.h>
1809 #else
1810 # include <assert.h>
1811 #endif
1812
1813 #undef $2
1814
1815 /* Override any GCC internal prototype to avoid an error.
1816 Use char because int might match the return type of a GCC
1817 builtin and then its argument prototype would still apply. */
1818 #ifdef __cplusplus
1819 extern "C"
1820 #endif
1821 char $2 ();
1822 /* The GNU C library defines this for functions which it implements
1823 to always fail with ENOSYS. Some functions are actually named
1824 something starting with __ and the normal name is an alias. */
1825 #if defined __stub_$2 || defined __stub___$2
1826 choke me
1827 #endif
1828
1829 int
1830 main ()
1831 {
1832 return $2 ();
1833 ;
1834 return 0;
1835 }
1836 _ACEOF
1837 if ac_fn_c_try_link "$LINENO"; then :
1838 eval "$3=yes"
1839 else
1840 eval "$3=no"
1841 fi
1842 rm -f core conftest.err conftest.$ac_objext \
1843 conftest$ac_exeext conftest.$ac_ext
1844 fi
1845 eval ac_res=\$$3
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1847 $as_echo "$ac_res" >&6; }
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849
1850 } # ac_fn_c_check_func
1851
1852 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1853 # ---------------------------------------------
1854 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1855 # accordingly.
1856 ac_fn_c_check_decl ()
1857 {
1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859 as_decl_name=`echo $2|sed 's/ *(.*//'`
1860 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1862 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1867 /* end confdefs.h. */
1868 $4
1869 int
1870 main ()
1871 {
1872 #ifndef $as_decl_name
1873 #ifdef __cplusplus
1874 (void) $as_decl_use;
1875 #else
1876 (void) $as_decl_name;
1877 #endif
1878 #endif
1879
1880 ;
1881 return 0;
1882 }
1883 _ACEOF
1884 if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$3=yes"
1886 else
1887 eval "$3=no"
1888 fi
1889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890 fi
1891 eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893 $as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895
1896 } # ac_fn_c_check_decl
1897
1898 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1899 # -------------------------------------------
1900 # Tests whether TYPE exists after having included INCLUDES, setting cache
1901 # variable VAR accordingly.
1902 ac_fn_c_check_type ()
1903 {
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906 $as_echo_n "checking for $2... " >&6; }
1907 if eval \${$3+:} false; then :
1908 $as_echo_n "(cached) " >&6
1909 else
1910 eval "$3=no"
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $4
1914 int
1915 main ()
1916 {
1917 if (sizeof ($2))
1918 return 0;
1919 ;
1920 return 0;
1921 }
1922 _ACEOF
1923 if ac_fn_c_try_compile "$LINENO"; then :
1924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1925 /* end confdefs.h. */
1926 $4
1927 int
1928 main ()
1929 {
1930 if (sizeof (($2)))
1931 return 0;
1932 ;
1933 return 0;
1934 }
1935 _ACEOF
1936 if ac_fn_c_try_compile "$LINENO"; then :
1937
1938 else
1939 eval "$3=yes"
1940 fi
1941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1942 fi
1943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1944 fi
1945 eval ac_res=\$$3
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1947 $as_echo "$ac_res" >&6; }
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949
1950 } # ac_fn_c_check_type
1951
1952 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1953 # ----------------------------------------------------
1954 # Tries to find if the field MEMBER exists in type AGGR, after including
1955 # INCLUDES, setting cache variable VAR accordingly.
1956 ac_fn_c_check_member ()
1957 {
1958 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1960 $as_echo_n "checking for $2.$3... " >&6; }
1961 if eval \${$4+:} false; then :
1962 $as_echo_n "(cached) " >&6
1963 else
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965 /* end confdefs.h. */
1966 $5
1967 int
1968 main ()
1969 {
1970 static $2 ac_aggr;
1971 if (ac_aggr.$3)
1972 return 0;
1973 ;
1974 return 0;
1975 }
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978 eval "$4=yes"
1979 else
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1982 $5
1983 int
1984 main ()
1985 {
1986 static $2 ac_aggr;
1987 if (sizeof ac_aggr.$3)
1988 return 0;
1989 ;
1990 return 0;
1991 }
1992 _ACEOF
1993 if ac_fn_c_try_compile "$LINENO"; then :
1994 eval "$4=yes"
1995 else
1996 eval "$4=no"
1997 fi
1998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999 fi
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001 fi
2002 eval ac_res=\$$4
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004 $as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006
2007 } # ac_fn_c_check_member
2008
2009 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2010 # -------------------------------------------------------
2011 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2012 # the include files in INCLUDES and setting the cache variable VAR
2013 # accordingly.
2014 ac_fn_c_check_header_mongrel ()
2015 {
2016 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017 if eval \${$3+:} false; then :
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019 $as_echo_n "checking for $2... " >&6; }
2020 if eval \${$3+:} false; then :
2021 $as_echo_n "(cached) " >&6
2022 fi
2023 eval ac_res=\$$3
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2025 $as_echo "$ac_res" >&6; }
2026 else
2027 # Is the header compilable?
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2029 $as_echo_n "checking $2 usability... " >&6; }
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2032 $4
2033 #include <$2>
2034 _ACEOF
2035 if ac_fn_c_try_compile "$LINENO"; then :
2036 ac_header_compiler=yes
2037 else
2038 ac_header_compiler=no
2039 fi
2040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2042 $as_echo "$ac_header_compiler" >&6; }
2043
2044 # Is the header present?
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2046 $as_echo_n "checking $2 presence... " >&6; }
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 #include <$2>
2050 _ACEOF
2051 if ac_fn_c_try_cpp "$LINENO"; then :
2052 ac_header_preproc=yes
2053 else
2054 ac_header_preproc=no
2055 fi
2056 rm -f conftest.err conftest.i conftest.$ac_ext
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2058 $as_echo "$ac_header_preproc" >&6; }
2059
2060 # So? What about this header?
2061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2062 yes:no: )
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2064 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2066 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2067 ;;
2068 no:yes:* )
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2070 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2072 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2074 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2076 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2078 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2079 ( $as_echo "## ----------------------------------- ##
2080 ## Report this to bugs@ircd-hybrid.org ##
2081 ## ----------------------------------- ##"
2082 ) | sed "s/^/$as_me: WARNING: /" >&2
2083 ;;
2084 esac
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2086 $as_echo_n "checking for $2... " >&6; }
2087 if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089 else
2090 eval "$3=\$ac_header_compiler"
2091 fi
2092 eval ac_res=\$$3
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2094 $as_echo "$ac_res" >&6; }
2095 fi
2096 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2097
2098 } # ac_fn_c_check_header_mongrel
2099 cat >config.log <<_ACEOF
2100 This file contains any messages produced by compilers while
2101 running configure, to aid debugging if configure makes a mistake.
2102
2103 It was created by ircd-hybrid $as_me TRUNK, which was
2104 generated by GNU Autoconf 2.69. Invocation command line was
2105
2106 $ $0 $@
2107
2108 _ACEOF
2109 exec 5>>config.log
2110 {
2111 cat <<_ASUNAME
2112 ## --------- ##
2113 ## Platform. ##
2114 ## --------- ##
2115
2116 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2117 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2118 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2119 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2120 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2121
2122 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2123 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2124
2125 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2126 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2127 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2128 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2129 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2130 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2131 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2132
2133 _ASUNAME
2134
2135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2136 for as_dir in $PATH
2137 do
2138 IFS=$as_save_IFS
2139 test -z "$as_dir" && as_dir=.
2140 $as_echo "PATH: $as_dir"
2141 done
2142 IFS=$as_save_IFS
2143
2144 } >&5
2145
2146 cat >&5 <<_ACEOF
2147
2148
2149 ## ----------- ##
2150 ## Core tests. ##
2151 ## ----------- ##
2152
2153 _ACEOF
2154
2155
2156 # Keep a trace of the command line.
2157 # Strip out --no-create and --no-recursion so they do not pile up.
2158 # Strip out --silent because we don't want to record it for future runs.
2159 # Also quote any args containing shell meta-characters.
2160 # Make two passes to allow for proper duplicate-argument suppression.
2161 ac_configure_args=
2162 ac_configure_args0=
2163 ac_configure_args1=
2164 ac_must_keep_next=false
2165 for ac_pass in 1 2
2166 do
2167 for ac_arg
2168 do
2169 case $ac_arg in
2170 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2171 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2172 | -silent | --silent | --silen | --sile | --sil)
2173 continue ;;
2174 *\'*)
2175 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2176 esac
2177 case $ac_pass in
2178 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2179 2)
2180 as_fn_append ac_configure_args1 " '$ac_arg'"
2181 if test $ac_must_keep_next = true; then
2182 ac_must_keep_next=false # Got value, back to normal.
2183 else
2184 case $ac_arg in
2185 *=* | --config-cache | -C | -disable-* | --disable-* \
2186 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2187 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2188 | -with-* | --with-* | -without-* | --without-* | --x)
2189 case "$ac_configure_args0 " in
2190 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2191 esac
2192 ;;
2193 -* ) ac_must_keep_next=true ;;
2194 esac
2195 fi
2196 as_fn_append ac_configure_args " '$ac_arg'"
2197 ;;
2198 esac
2199 done
2200 done
2201 { ac_configure_args0=; unset ac_configure_args0;}
2202 { ac_configure_args1=; unset ac_configure_args1;}
2203
2204 # When interrupted or exit'd, cleanup temporary files, and complete
2205 # config.log. We remove comments because anyway the quotes in there
2206 # would cause problems or look ugly.
2207 # WARNING: Use '\'' to represent an apostrophe within the trap.
2208 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2209 trap 'exit_status=$?
2210 # Save into config.log some information that might help in debugging.
2211 {
2212 echo
2213
2214 $as_echo "## ---------------- ##
2215 ## Cache variables. ##
2216 ## ---------------- ##"
2217 echo
2218 # The following way of writing the cache mishandles newlines in values,
2219 (
2220 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in #(
2223 *${as_nl}*)
2224 case $ac_var in #(
2225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2227 esac
2228 case $ac_var in #(
2229 _ | IFS | as_nl) ;; #(
2230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2231 *) { eval $ac_var=; unset $ac_var;} ;;
2232 esac ;;
2233 esac
2234 done
2235 (set) 2>&1 |
2236 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2237 *${as_nl}ac_space=\ *)
2238 sed -n \
2239 "s/'\''/'\''\\\\'\'''\''/g;
2240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2241 ;; #(
2242 *)
2243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2244 ;;
2245 esac |
2246 sort
2247 )
2248 echo
2249
2250 $as_echo "## ----------------- ##
2251 ## Output variables. ##
2252 ## ----------------- ##"
2253 echo
2254 for ac_var in $ac_subst_vars
2255 do
2256 eval ac_val=\$$ac_var
2257 case $ac_val in
2258 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2259 esac
2260 $as_echo "$ac_var='\''$ac_val'\''"
2261 done | sort
2262 echo
2263
2264 if test -n "$ac_subst_files"; then
2265 $as_echo "## ------------------- ##
2266 ## File substitutions. ##
2267 ## ------------------- ##"
2268 echo
2269 for ac_var in $ac_subst_files
2270 do
2271 eval ac_val=\$$ac_var
2272 case $ac_val in
2273 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2274 esac
2275 $as_echo "$ac_var='\''$ac_val'\''"
2276 done | sort
2277 echo
2278 fi
2279
2280 if test -s confdefs.h; then
2281 $as_echo "## ----------- ##
2282 ## confdefs.h. ##
2283 ## ----------- ##"
2284 echo
2285 cat confdefs.h
2286 echo
2287 fi
2288 test "$ac_signal" != 0 &&
2289 $as_echo "$as_me: caught signal $ac_signal"
2290 $as_echo "$as_me: exit $exit_status"
2291 } >&5
2292 rm -f core *.core core.conftest.* &&
2293 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2294 exit $exit_status
2295 ' 0
2296 for ac_signal in 1 2 13 15; do
2297 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2298 done
2299 ac_signal=0
2300
2301 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2302 rm -f -r conftest* confdefs.h
2303
2304 $as_echo "/* confdefs.h */" > confdefs.h
2305
2306 # Predefined preprocessor variables.
2307
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_NAME "$PACKAGE_NAME"
2310 _ACEOF
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2314 _ACEOF
2315
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2318 _ACEOF
2319
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_STRING "$PACKAGE_STRING"
2322 _ACEOF
2323
2324 cat >>confdefs.h <<_ACEOF
2325 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2326 _ACEOF
2327
2328 cat >>confdefs.h <<_ACEOF
2329 #define PACKAGE_URL "$PACKAGE_URL"
2330 _ACEOF
2331
2332
2333 # Let the site file select an alternate cache file if it wants to.
2334 # Prefer an explicitly selected file to automatically selected ones.
2335 ac_site_file1=NONE
2336 ac_site_file2=NONE
2337 if test -n "$CONFIG_SITE"; then
2338 # We do not want a PATH search for config.site.
2339 case $CONFIG_SITE in #((
2340 -*) ac_site_file1=./$CONFIG_SITE;;
2341 */*) ac_site_file1=$CONFIG_SITE;;
2342 *) ac_site_file1=./$CONFIG_SITE;;
2343 esac
2344 elif test "x$prefix" != xNONE; then
2345 ac_site_file1=$prefix/share/config.site
2346 ac_site_file2=$prefix/etc/config.site
2347 else
2348 ac_site_file1=$ac_default_prefix/share/config.site
2349 ac_site_file2=$ac_default_prefix/etc/config.site
2350 fi
2351 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2352 do
2353 test "x$ac_site_file" = xNONE && continue
2354 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2356 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2357 sed 's/^/| /' "$ac_site_file" >&5
2358 . "$ac_site_file" \
2359 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2361 as_fn_error $? "failed to load site script $ac_site_file
2362 See \`config.log' for more details" "$LINENO" 5; }
2363 fi
2364 done
2365
2366 if test -r "$cache_file"; then
2367 # Some versions of bash will fail to source /dev/null (special files
2368 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2369 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2371 $as_echo "$as_me: loading cache $cache_file" >&6;}
2372 case $cache_file in
2373 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2374 *) . "./$cache_file";;
2375 esac
2376 fi
2377 else
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2379 $as_echo "$as_me: creating cache $cache_file" >&6;}
2380 >$cache_file
2381 fi
2382
2383 as_fn_append ac_func_list " strtok_r"
2384 as_fn_append ac_func_list " usleep"
2385 as_fn_append ac_func_list " strlcat"
2386 as_fn_append ac_func_list " strlcpy"
2387 as_fn_append ac_header_list " crypt.h"
2388 as_fn_append ac_header_list " sys/resource.h"
2389 as_fn_append ac_header_list " sys/param.h"
2390 as_fn_append ac_header_list " types.h"
2391 as_fn_append ac_header_list " socket.h"
2392 as_fn_append ac_header_list " sys/wait.h"
2393 as_fn_append ac_header_list " wait.h"
2394 # Check that the precious variables saved in the cache have kept the same
2395 # value.
2396 ac_cache_corrupted=false
2397 for ac_var in $ac_precious_vars; do
2398 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2399 eval ac_new_set=\$ac_env_${ac_var}_set
2400 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2401 eval ac_new_val=\$ac_env_${ac_var}_value
2402 case $ac_old_set,$ac_new_set in
2403 set,)
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2405 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2406 ac_cache_corrupted=: ;;
2407 ,set)
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2409 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2410 ac_cache_corrupted=: ;;
2411 ,);;
2412 *)
2413 if test "x$ac_old_val" != "x$ac_new_val"; then
2414 # differences in whitespace do not lead to failure.
2415 ac_old_val_w=`echo x $ac_old_val`
2416 ac_new_val_w=`echo x $ac_new_val`
2417 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2419 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2420 ac_cache_corrupted=:
2421 else
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2423 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2424 eval $ac_var=\$ac_old_val
2425 fi
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2427 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2429 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2430 fi;;
2431 esac
2432 # Pass precious variables to config.status.
2433 if test "$ac_new_set" = set; then
2434 case $ac_new_val in
2435 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2436 *) ac_arg=$ac_var=$ac_new_val ;;
2437 esac
2438 case " $ac_configure_args " in
2439 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2440 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2441 esac
2442 fi
2443 done
2444 if $ac_cache_corrupted; then
2445 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2446 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2448 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2449 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2450 fi
2451 ## -------------------- ##
2452 ## Main body of script. ##
2453 ## -------------------- ##
2454
2455 ac_ext=c
2456 ac_cpp='$CPP $CPPFLAGS'
2457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2460
2461
2462 am__api_version='1.13'
2463
2464 ac_aux_dir=
2465 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2466 if test -f "$ac_dir/install-sh"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/install-sh -c"
2469 break
2470 elif test -f "$ac_dir/install.sh"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/install.sh -c"
2473 break
2474 elif test -f "$ac_dir/shtool"; then
2475 ac_aux_dir=$ac_dir
2476 ac_install_sh="$ac_aux_dir/shtool install -c"
2477 break
2478 fi
2479 done
2480 if test -z "$ac_aux_dir"; then
2481 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2482 fi
2483
2484 # These three variables are undocumented and unsupported,
2485 # and are intended to be withdrawn in a future Autoconf release.
2486 # They can cause serious problems if a builder's source tree is in a directory
2487 # whose full name contains unusual characters.
2488 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2489 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2490 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2491
2492
2493 # Find a good install program. We prefer a C program (faster),
2494 # so one script is as good as another. But avoid the broken or
2495 # incompatible versions:
2496 # SysV /etc/install, /usr/sbin/install
2497 # SunOS /usr/etc/install
2498 # IRIX /sbin/install
2499 # AIX /bin/install
2500 # AmigaOS /C/install, which installs bootblocks on floppy discs
2501 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2502 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2503 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2504 # OS/2's system install, which has a completely different semantic
2505 # ./install, which can be erroneously created by make from ./install.sh.
2506 # Reject install programs that cannot install multiple files.
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2508 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2509 if test -z "$INSTALL"; then
2510 if ${ac_cv_path_install+:} false; then :
2511 $as_echo_n "(cached) " >&6
2512 else
2513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2514 for as_dir in $PATH
2515 do
2516 IFS=$as_save_IFS
2517 test -z "$as_dir" && as_dir=.
2518 # Account for people who put trailing slashes in PATH elements.
2519 case $as_dir/ in #((
2520 ./ | .// | /[cC]/* | \
2521 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2522 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2523 /usr/ucb/* ) ;;
2524 *)
2525 # OSF1 and SCO ODT 3.0 have their own names for install.
2526 # Don't use installbsd from OSF since it installs stuff as root
2527 # by default.
2528 for ac_prog in ginstall scoinst install; do
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2531 if test $ac_prog = install &&
2532 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2533 # AIX install. It has an incompatible calling convention.
2534 :
2535 elif test $ac_prog = install &&
2536 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2537 # program-specific install script used by HP pwplus--don't use.
2538 :
2539 else
2540 rm -rf conftest.one conftest.two conftest.dir
2541 echo one > conftest.one
2542 echo two > conftest.two
2543 mkdir conftest.dir
2544 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2545 test -s conftest.one && test -s conftest.two &&
2546 test -s conftest.dir/conftest.one &&
2547 test -s conftest.dir/conftest.two
2548 then
2549 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2550 break 3
2551 fi
2552 fi
2553 fi
2554 done
2555 done
2556 ;;
2557 esac
2558
2559 done
2560 IFS=$as_save_IFS
2561
2562 rm -rf conftest.one conftest.two conftest.dir
2563
2564 fi
2565 if test "${ac_cv_path_install+set}" = set; then
2566 INSTALL=$ac_cv_path_install
2567 else
2568 # As a last resort, use the slow shell script. Don't cache a
2569 # value for INSTALL within a source directory, because that will
2570 # break other packages using the cache if that directory is
2571 # removed, or if the value is a relative name.
2572 INSTALL=$ac_install_sh
2573 fi
2574 fi
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2576 $as_echo "$INSTALL" >&6; }
2577
2578 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2579 # It thinks the first close brace ends the variable substitution.
2580 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2581
2582 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2583
2584 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2585
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2587 $as_echo_n "checking whether build environment is sane... " >&6; }
2588 # Reject unsafe characters in $srcdir or the absolute working directory
2589 # name. Accept space and tab only in the latter.
2590 am_lf='
2591 '
2592 case `pwd` in
2593 *[\\\"\#\$\&\'\`$am_lf]*)
2594 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2595 esac
2596 case $srcdir in
2597 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2598 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2599 esac
2600
2601 # Do 'set' in a subshell so we don't clobber the current shell's
2602 # arguments. Must try -L first in case configure is actually a
2603 # symlink; some systems play weird games with the mod time of symlinks
2604 # (eg FreeBSD returns the mod time of the symlink's containing
2605 # directory).
2606 if (
2607 am_has_slept=no
2608 for am_try in 1 2; do
2609 echo "timestamp, slept: $am_has_slept" > conftest.file
2610 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2611 if test "$*" = "X"; then
2612 # -L didn't work.
2613 set X `ls -t "$srcdir/configure" conftest.file`
2614 fi
2615 if test "$*" != "X $srcdir/configure conftest.file" \
2616 && test "$*" != "X conftest.file $srcdir/configure"; then
2617
2618 # If neither matched, then we have a broken ls. This can happen
2619 # if, for instance, CONFIG_SHELL is bash and it inherits a
2620 # broken ls alias from the environment. This has actually
2621 # happened. Such a system could not be considered "sane".
2622 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2623 alias in your environment" "$LINENO" 5
2624 fi
2625 if test "$2" = conftest.file || test $am_try -eq 2; then
2626 break
2627 fi
2628 # Just in case.
2629 sleep 1
2630 am_has_slept=yes
2631 done
2632 test "$2" = conftest.file
2633 )
2634 then
2635 # Ok.
2636 :
2637 else
2638 as_fn_error $? "newly created file is older than distributed files!
2639 Check your system clock" "$LINENO" 5
2640 fi
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2642 $as_echo "yes" >&6; }
2643 # If we didn't sleep, we still need to ensure time stamps of config.status and
2644 # generated files are strictly newer.
2645 am_sleep_pid=
2646 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2647 ( sleep 1 ) &
2648 am_sleep_pid=$!
2649 fi
2650
2651 rm -f conftest.file
2652
2653 test "$program_prefix" != NONE &&
2654 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2655 # Use a double $ so make ignores it.
2656 test "$program_suffix" != NONE &&
2657 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2658 # Double any \ or $.
2659 # By default was `s,x,x', remove it if useless.
2660 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2661 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2662
2663 # expand $ac_aux_dir to an absolute path
2664 am_aux_dir=`cd $ac_aux_dir && pwd`
2665
2666 if test x"${MISSING+set}" != xset; then
2667 case $am_aux_dir in
2668 *\ * | *\ *)
2669 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2670 *)
2671 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2672 esac
2673 fi
2674 # Use eval to expand $SHELL
2675 if eval "$MISSING --is-lightweight"; then
2676 am_missing_run="$MISSING "
2677 else
2678 am_missing_run=
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2680 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2681 fi
2682
2683 if test x"${install_sh}" != xset; then
2684 case $am_aux_dir in
2685 *\ * | *\ *)
2686 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2687 *)
2688 install_sh="\${SHELL} $am_aux_dir/install-sh"
2689 esac
2690 fi
2691
2692 # Installed binaries are usually stripped using 'strip' when the user
2693 # run "make install-strip". However 'strip' might not be the right
2694 # tool to use in cross-compilation environments, therefore Automake
2695 # will honor the 'STRIP' environment variable to overrule this program.
2696 if test "$cross_compiling" != no; then
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}strip; ac_word=$2
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2701 $as_echo_n "checking for $ac_word... " >&6; }
2702 if ${ac_cv_prog_STRIP+:} false; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 if test -n "$STRIP"; then
2706 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2715 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 STRIP=$ac_cv_prog_STRIP
2726 if test -n "$STRIP"; then
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2728 $as_echo "$STRIP" >&6; }
2729 else
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2731 $as_echo "no" >&6; }
2732 fi
2733
2734
2735 fi
2736 if test -z "$ac_cv_prog_STRIP"; then
2737 ac_ct_STRIP=$STRIP
2738 # Extract the first word of "strip", so it can be a program name with args.
2739 set dummy strip; ac_word=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2743 $as_echo_n "(cached) " >&6
2744 else
2745 if test -n "$ac_ct_STRIP"; then
2746 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2747 else
2748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2749 for as_dir in $PATH
2750 do
2751 IFS=$as_save_IFS
2752 test -z "$as_dir" && as_dir=.
2753 for ac_exec_ext in '' $ac_executable_extensions; do
2754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_ac_ct_STRIP="strip"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2757 break 2
2758 fi
2759 done
2760 done
2761 IFS=$as_save_IFS
2762
2763 fi
2764 fi
2765 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2766 if test -n "$ac_ct_STRIP"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2768 $as_echo "$ac_ct_STRIP" >&6; }
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 fi
2773
2774 if test "x$ac_ct_STRIP" = x; then
2775 STRIP=":"
2776 else
2777 case $cross_compiling:$ac_tool_warned in
2778 yes:)
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2780 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2781 ac_tool_warned=yes ;;
2782 esac
2783 STRIP=$ac_ct_STRIP
2784 fi
2785 else
2786 STRIP="$ac_cv_prog_STRIP"
2787 fi
2788
2789 fi
2790 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2793 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2794 if test -z "$MKDIR_P"; then
2795 if ${ac_cv_path_mkdir+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797 else
2798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2799 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2800 do
2801 IFS=$as_save_IFS
2802 test -z "$as_dir" && as_dir=.
2803 for ac_prog in mkdir gmkdir; do
2804 for ac_exec_ext in '' $ac_executable_extensions; do
2805 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2806 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2807 'mkdir (GNU coreutils) '* | \
2808 'mkdir (coreutils) '* | \
2809 'mkdir (fileutils) '4.1*)
2810 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2811 break 3;;
2812 esac
2813 done
2814 done
2815 done
2816 IFS=$as_save_IFS
2817
2818 fi
2819
2820 test -d ./--version && rmdir ./--version
2821 if test "${ac_cv_path_mkdir+set}" = set; then
2822 MKDIR_P="$ac_cv_path_mkdir -p"
2823 else
2824 # As a last resort, use the slow shell script. Don't cache a
2825 # value for MKDIR_P within a source directory, because that will
2826 # break other packages using the cache if that directory is
2827 # removed, or if the value is a relative name.
2828 MKDIR_P="$ac_install_sh -d"
2829 fi
2830 fi
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2832 $as_echo "$MKDIR_P" >&6; }
2833
2834 for ac_prog in gawk mawk nawk awk
2835 do
2836 # Extract the first word of "$ac_prog", so it can be a program name with args.
2837 set dummy $ac_prog; ac_word=$2
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2839 $as_echo_n "checking for $ac_word... " >&6; }
2840 if ${ac_cv_prog_AWK+:} false; then :
2841 $as_echo_n "(cached) " >&6
2842 else
2843 if test -n "$AWK"; then
2844 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2845 else
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2847 for as_dir in $PATH
2848 do
2849 IFS=$as_save_IFS
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_prog_AWK="$ac_prog"
2854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2855 break 2
2856 fi
2857 done
2858 done
2859 IFS=$as_save_IFS
2860
2861 fi
2862 fi
2863 AWK=$ac_cv_prog_AWK
2864 if test -n "$AWK"; then
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2866 $as_echo "$AWK" >&6; }
2867 else
2868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2869 $as_echo "no" >&6; }
2870 fi
2871
2872
2873 test -n "$AWK" && break
2874 done
2875
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2877 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2878 set x ${MAKE-make}
2879 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2880 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2881 $as_echo_n "(cached) " >&6
2882 else
2883 cat >conftest.make <<\_ACEOF
2884 SHELL = /bin/sh
2885 all:
2886 @echo '@@@%%%=$(MAKE)=@@@%%%'
2887 _ACEOF
2888 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2889 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2890 *@@@%%%=?*=@@@%%%*)
2891 eval ac_cv_prog_make_${ac_make}_set=yes;;
2892 *)
2893 eval ac_cv_prog_make_${ac_make}_set=no;;
2894 esac
2895 rm -f conftest.make
2896 fi
2897 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2899 $as_echo "yes" >&6; }
2900 SET_MAKE=
2901 else
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903 $as_echo "no" >&6; }
2904 SET_MAKE="MAKE=${MAKE-make}"
2905 fi
2906
2907 rm -rf .tst 2>/dev/null
2908 mkdir .tst 2>/dev/null
2909 if test -d .tst; then
2910 am__leading_dot=.
2911 else
2912 am__leading_dot=_
2913 fi
2914 rmdir .tst 2>/dev/null
2915
2916 # Check whether --enable-silent-rules was given.
2917 if test "${enable_silent_rules+set}" = set; then :
2918 enableval=$enable_silent_rules;
2919 fi
2920
2921 case $enable_silent_rules in # (((
2922 yes) AM_DEFAULT_VERBOSITY=0;;
2923 no) AM_DEFAULT_VERBOSITY=1;;
2924 *) AM_DEFAULT_VERBOSITY=1;;
2925 esac
2926 am_make=${MAKE-make}
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2928 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2929 if ${am_cv_make_support_nested_variables+:} false; then :
2930 $as_echo_n "(cached) " >&6
2931 else
2932 if $as_echo 'TRUE=$(BAR$(V))
2933 BAR0=false
2934 BAR1=true
2935 V=1
2936 am__doit:
2937 @$(TRUE)
2938 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2939 am_cv_make_support_nested_variables=yes
2940 else
2941 am_cv_make_support_nested_variables=no
2942 fi
2943 fi
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2945 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2946 if test $am_cv_make_support_nested_variables = yes; then
2947 AM_V='$(V)'
2948 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2949 else
2950 AM_V=$AM_DEFAULT_VERBOSITY
2951 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2952 fi
2953 AM_BACKSLASH='\'
2954
2955 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2956 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2957 # is not polluted with repeated "-I."
2958 am__isrc=' -I$(srcdir)'
2959 # test to see if srcdir already configured
2960 if test -f $srcdir/config.status; then
2961 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2962 fi
2963 fi
2964
2965 # test whether we have cygpath
2966 if test -z "$CYGPATH_W"; then
2967 if (cygpath --version) >/dev/null 2>/dev/null; then
2968 CYGPATH_W='cygpath -w'
2969 else
2970 CYGPATH_W=echo
2971 fi
2972 fi
2973
2974
2975 # Define the identity of the package.
2976 PACKAGE='ircd-hybrid'
2977 VERSION='TRUNK'
2978
2979
2980 cat >>confdefs.h <<_ACEOF
2981 #define PACKAGE "$PACKAGE"
2982 _ACEOF
2983
2984
2985 cat >>confdefs.h <<_ACEOF
2986 #define VERSION "$VERSION"
2987 _ACEOF
2988
2989 # Some tools Automake needs.
2990
2991 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2992
2993
2994 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2995
2996
2997 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2998
2999
3000 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3001
3002
3003 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3004
3005 # For better backward compatibility. To be removed once Automake 1.9.x
3006 # dies out for good. For more background, see:
3007 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3008 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3009 mkdir_p='$(MKDIR_P)'
3010
3011 # We need awk for the "check" target. The system "awk" is bad on
3012 # some platforms.
3013 # Always define AMTAR for backward compatibility. Yes, it's still used
3014 # in the wild :-( We should find a proper way to deprecate it ...
3015 AMTAR='$${TAR-tar}'
3016
3017 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3018
3019
3020
3021
3022
3023
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3025 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3026 # Check whether --enable-maintainer-mode was given.
3027 if test "${enable_maintainer_mode+set}" = set; then :
3028 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3029 else
3030 USE_MAINTAINER_MODE=no
3031 fi
3032
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3034 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3035 if test $USE_MAINTAINER_MODE = yes; then
3036 MAINTAINER_MODE_TRUE=
3037 MAINTAINER_MODE_FALSE='#'
3038 else
3039 MAINTAINER_MODE_TRUE='#'
3040 MAINTAINER_MODE_FALSE=
3041 fi
3042
3043 MAINT=$MAINTAINER_MODE_TRUE
3044
3045
3046 ac_config_headers="$ac_config_headers config.h"
3047
3048
3049
3050 # Checks for programs.
3051 DEPDIR="${am__leading_dot}deps"
3052
3053 ac_config_commands="$ac_config_commands depfiles"
3054
3055
3056 am_make=${MAKE-make}
3057 cat > confinc << 'END'
3058 am__doit:
3059 @echo this is the am__doit target
3060 .PHONY: am__doit
3061 END
3062 # If we don't find an include directive, just comment out the code.
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3064 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3065 am__include="#"
3066 am__quote=
3067 _am_result=none
3068 # First try GNU make style include.
3069 echo "include confinc" > confmf
3070 # Ignore all kinds of additional output from 'make'.
3071 case `$am_make -s -f confmf 2> /dev/null` in #(
3072 *the\ am__doit\ target*)
3073 am__include=include
3074 am__quote=
3075 _am_result=GNU
3076 ;;
3077 esac
3078 # Now try BSD make style include.
3079 if test "$am__include" = "#"; then
3080 echo '.include "confinc"' > confmf
3081 case `$am_make -s -f confmf 2> /dev/null` in #(
3082 *the\ am__doit\ target*)
3083 am__include=.include
3084 am__quote="\""
3085 _am_result=BSD
3086 ;;
3087 esac
3088 fi
3089
3090
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3092 $as_echo "$_am_result" >&6; }
3093 rm -f confinc confmf
3094
3095 # Check whether --enable-dependency-tracking was given.
3096 if test "${enable_dependency_tracking+set}" = set; then :
3097 enableval=$enable_dependency_tracking;
3098 fi
3099
3100 if test "x$enable_dependency_tracking" != xno; then
3101 am_depcomp="$ac_aux_dir/depcomp"
3102 AMDEPBACKSLASH='\'
3103 am__nodep='_no'
3104 fi
3105 if test "x$enable_dependency_tracking" != xno; then
3106 AMDEP_TRUE=
3107 AMDEP_FALSE='#'
3108 else
3109 AMDEP_TRUE='#'
3110 AMDEP_FALSE=
3111 fi
3112
3113
3114 ac_ext=c
3115 ac_cpp='$CPP $CPPFLAGS'
3116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3119 if test -n "$ac_tool_prefix"; then
3120 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3121 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123 $as_echo_n "checking for $ac_word... " >&6; }
3124 if ${ac_cv_prog_CC+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126 else
3127 if test -n "$CC"; then
3128 ac_cv_prog_CC="$CC" # Let the user override the test.
3129 else
3130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131 for as_dir in $PATH
3132 do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141 done
3142 done
3143 IFS=$as_save_IFS
3144
3145 fi
3146 fi
3147 CC=$ac_cv_prog_CC
3148 if test -n "$CC"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3150 $as_echo "$CC" >&6; }
3151 else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153 $as_echo "no" >&6; }
3154 fi
3155
3156
3157 fi
3158 if test -z "$ac_cv_prog_CC"; then
3159 ac_ct_CC=$CC
3160 # Extract the first word of "gcc", so it can be a program name with args.
3161 set dummy gcc; ac_word=$2
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3163 $as_echo_n "checking for $ac_word... " >&6; }
3164 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3165 $as_echo_n "(cached) " >&6
3166 else
3167 if test -n "$ac_ct_CC"; then
3168 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177 ac_cv_prog_ac_ct_CC="gcc"
3178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181 done
3182 done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3188 if test -n "$ac_ct_CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3190 $as_echo "$ac_ct_CC" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3194 fi
3195
3196 if test "x$ac_ct_CC" = x; then
3197 CC=""
3198 else
3199 case $cross_compiling:$ac_tool_warned in
3200 yes:)
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203 ac_tool_warned=yes ;;
3204 esac
3205 CC=$ac_ct_CC
3206 fi
3207 else
3208 CC="$ac_cv_prog_CC"
3209 fi
3210
3211 if test -z "$CC"; then
3212 if test -n "$ac_tool_prefix"; then
3213 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3214 set dummy ${ac_tool_prefix}cc; ac_word=$2
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3216 $as_echo_n "checking for $ac_word... " >&6; }
3217 if ${ac_cv_prog_CC+:} false; then :
3218 $as_echo_n "(cached) " >&6
3219 else
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC="$CC" # Let the user override the test.
3222 else
3223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3224 for as_dir in $PATH
3225 do
3226 IFS=$as_save_IFS
3227 test -z "$as_dir" && as_dir=.
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3230 ac_cv_prog_CC="${ac_tool_prefix}cc"
3231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 break 2
3233 fi
3234 done
3235 done
3236 IFS=$as_save_IFS
3237
3238 fi
3239 fi
3240 CC=$ac_cv_prog_CC
3241 if test -n "$CC"; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3243 $as_echo "$CC" >&6; }
3244 else
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246 $as_echo "no" >&6; }
3247 fi
3248
3249
3250 fi
3251 fi
3252 if test -z "$CC"; then
3253 # Extract the first word of "cc", so it can be a program name with args.
3254 set dummy cc; ac_word=$2
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3256 $as_echo_n "checking for $ac_word... " >&6; }
3257 if ${ac_cv_prog_CC+:} false; then :
3258 $as_echo_n "(cached) " >&6
3259 else
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263 ac_prog_rejected=no
3264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3265 for as_dir in $PATH
3266 do
3267 IFS=$as_save_IFS
3268 test -z "$as_dir" && as_dir=.
3269 for ac_exec_ext in '' $ac_executable_extensions; do
3270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3271 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3272 ac_prog_rejected=yes
3273 continue
3274 fi
3275 ac_cv_prog_CC="cc"
3276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3277 break 2
3278 fi
3279 done
3280 done
3281 IFS=$as_save_IFS
3282
3283 if test $ac_prog_rejected = yes; then
3284 # We found a bogon in the path, so make sure we never use it.
3285 set dummy $ac_cv_prog_CC
3286 shift
3287 if test $# != 0; then
3288 # We chose a different compiler from the bogus one.
3289 # However, it has the same basename, so the bogon will be chosen
3290 # first if we set CC to just the basename; use the full file name.
3291 shift
3292 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3293 fi
3294 fi
3295 fi
3296 fi
3297 CC=$ac_cv_prog_CC
3298 if test -n "$CC"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300 $as_echo "$CC" >&6; }
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304 fi
3305
3306
3307 fi
3308 if test -z "$CC"; then
3309 if test -n "$ac_tool_prefix"; then
3310 for ac_prog in cl.exe
3311 do
3312 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3313 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_CC+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 if test -n "$CC"; then
3320 ac_cv_prog_CC="$CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3324 do
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3332 fi
3333 done
3334 done
3335 IFS=$as_save_IFS
3336
3337 fi
3338 fi
3339 CC=$ac_cv_prog_CC
3340 if test -n "$CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3342 $as_echo "$CC" >&6; }
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3346 fi
3347
3348
3349 test -n "$CC" && break
3350 done
3351 fi
3352 if test -z "$CC"; then
3353 ac_ct_CC=$CC
3354 for ac_prog in cl.exe
3355 do
3356 # Extract the first word of "$ac_prog", so it can be a program name with args.
3357 set dummy $ac_prog; ac_word=$2
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3359 $as_echo_n "checking for $ac_word... " >&6; }
3360 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3361 $as_echo_n "(cached) " >&6
3362 else
3363 if test -n "$ac_ct_CC"; then
3364 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3373 ac_cv_prog_ac_ct_CC="$ac_prog"
3374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379 IFS=$as_save_IFS
3380
3381 fi
3382 fi
3383 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3384 if test -n "$ac_ct_CC"; then
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3386 $as_echo "$ac_ct_CC" >&6; }
3387 else
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3389 $as_echo "no" >&6; }
3390 fi
3391
3392
3393 test -n "$ac_ct_CC" && break
3394 done
3395
3396 if test "x$ac_ct_CC" = x; then
3397 CC=""
3398 else
3399 case $cross_compiling:$ac_tool_warned in
3400 yes:)
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3403 ac_tool_warned=yes ;;
3404 esac
3405 CC=$ac_ct_CC
3406 fi
3407 fi
3408
3409 fi
3410
3411
3412 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3414 as_fn_error $? "no acceptable C compiler found in \$PATH
3415 See \`config.log' for more details" "$LINENO" 5; }
3416
3417 # Provide some information about the compiler.
3418 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3419 set X $ac_compile
3420 ac_compiler=$2
3421 for ac_option in --version -v -V -qversion; do
3422 { { ac_try="$ac_compiler $ac_option >&5"
3423 case "(($ac_try" in
3424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3425 *) ac_try_echo=$ac_try;;
3426 esac
3427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3428 $as_echo "$ac_try_echo"; } >&5
3429 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3430 ac_status=$?
3431 if test -s conftest.err; then
3432 sed '10a\
3433 ... rest of stderr output deleted ...
3434 10q' conftest.err >conftest.er1
3435 cat conftest.er1 >&5
3436 fi
3437 rm -f conftest.er1 conftest.err
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }
3440 done
3441
3442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3443 /* end confdefs.h. */
3444
3445 int
3446 main ()
3447 {
3448
3449 ;
3450 return 0;
3451 }
3452 _ACEOF
3453 ac_clean_files_save=$ac_clean_files
3454 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3455 # Try to create an executable without -o first, disregard a.out.
3456 # It will help us diagnose broken compilers, and finding out an intuition
3457 # of exeext.
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3459 $as_echo_n "checking whether the C compiler works... " >&6; }
3460 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3461
3462 # The possible output files:
3463 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3464
3465 ac_rmfiles=
3466 for ac_file in $ac_files
3467 do
3468 case $ac_file in
3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3470 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3471 esac
3472 done
3473 rm -f $ac_rmfiles
3474
3475 if { { ac_try="$ac_link_default"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_link_default") 2>&5
3483 ac_status=$?
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3487 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3488 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3489 # so that the user can short-circuit this test for compilers unknown to
3490 # Autoconf.
3491 for ac_file in $ac_files ''
3492 do
3493 test -f "$ac_file" || continue
3494 case $ac_file in
3495 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3496 ;;
3497 [ab].out )
3498 # We found the default executable, but exeext='' is most
3499 # certainly right.
3500 break;;
3501 *.* )
3502 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3503 then :; else
3504 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3505 fi
3506 # We set ac_cv_exeext here because the later test for it is not
3507 # safe: cross compilers may not add the suffix if given an `-o'
3508 # argument, so we may need to know it at that point already.
3509 # Even if this section looks crufty: it has the advantage of
3510 # actually working.
3511 break;;
3512 * )
3513 break;;
3514 esac
3515 done
3516 test "$ac_cv_exeext" = no && ac_cv_exeext=
3517
3518 else
3519 ac_file=''
3520 fi
3521 if test -z "$ac_file"; then :
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3523 $as_echo "no" >&6; }
3524 $as_echo "$as_me: failed program was:" >&5
3525 sed 's/^/| /' conftest.$ac_ext >&5
3526
3527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3529 as_fn_error 77 "C compiler cannot create executables
3530 See \`config.log' for more details" "$LINENO" 5; }
3531 else
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533 $as_echo "yes" >&6; }
3534 fi
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3536 $as_echo_n "checking for C compiler default output file name... " >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3538 $as_echo "$ac_file" >&6; }
3539 ac_exeext=$ac_cv_exeext
3540
3541 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3542 ac_clean_files=$ac_clean_files_save
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3544 $as_echo_n "checking for suffix of executables... " >&6; }
3545 if { { ac_try="$ac_link"
3546 case "(($ac_try" in
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3549 esac
3550 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3551 $as_echo "$ac_try_echo"; } >&5
3552 (eval "$ac_link") 2>&5
3553 ac_status=$?
3554 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3555 test $ac_status = 0; }; then :
3556 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3557 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3558 # work properly (i.e., refer to `conftest.exe'), while it won't with
3559 # `rm'.
3560 for ac_file in conftest.exe conftest conftest.*; do
3561 test -f "$ac_file" || continue
3562 case $ac_file in
3563 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3564 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565 break;;
3566 * ) break;;
3567 esac
3568 done
3569 else
3570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3571 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3572 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3573 See \`config.log' for more details" "$LINENO" 5; }
3574 fi
3575 rm -f conftest conftest$ac_cv_exeext
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3577 $as_echo "$ac_cv_exeext" >&6; }
3578
3579 rm -f conftest.$ac_ext
3580 EXEEXT=$ac_cv_exeext
3581 ac_exeext=$EXEEXT
3582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3583 /* end confdefs.h. */
3584 #include <stdio.h>
3585 int
3586 main ()
3587 {
3588 FILE *f = fopen ("conftest.out", "w");
3589 return ferror (f) || fclose (f) != 0;
3590
3591 ;
3592 return 0;
3593 }
3594 _ACEOF
3595 ac_clean_files="$ac_clean_files conftest.out"
3596 # Check that the compiler produces executables we can run. If not, either
3597 # the compiler is broken, or we cross compile.
3598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3599 $as_echo_n "checking whether we are cross compiling... " >&6; }
3600 if test "$cross_compiling" != yes; then
3601 { { ac_try="$ac_link"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3607 $as_echo "$ac_try_echo"; } >&5
3608 (eval "$ac_link") 2>&5
3609 ac_status=$?
3610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3611 test $ac_status = 0; }
3612 if { ac_try='./conftest$ac_cv_exeext'
3613 { { case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_try") 2>&5
3620 ac_status=$?
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; }; then
3623 cross_compiling=no
3624 else
3625 if test "$cross_compiling" = maybe; then
3626 cross_compiling=yes
3627 else
3628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3629 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3630 as_fn_error $? "cannot run C compiled programs.
3631 If you meant to cross compile, use \`--host'.
3632 See \`config.log' for more details" "$LINENO" 5; }
3633 fi
3634 fi
3635 fi
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3637 $as_echo "$cross_compiling" >&6; }
3638
3639 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3640 ac_clean_files=$ac_clean_files_save
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3642 $as_echo_n "checking for suffix of object files... " >&6; }
3643 if ${ac_cv_objext+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3648
3649 int
3650 main ()
3651 {
3652
3653 ;
3654 return 0;
3655 }
3656 _ACEOF
3657 rm -f conftest.o conftest.obj
3658 if { { ac_try="$ac_compile"
3659 case "(($ac_try" in
3660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3661 *) ac_try_echo=$ac_try;;
3662 esac
3663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3664 $as_echo "$ac_try_echo"; } >&5
3665 (eval "$ac_compile") 2>&5
3666 ac_status=$?
3667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3668 test $ac_status = 0; }; then :
3669 for ac_file in conftest.o conftest.obj conftest.*; do
3670 test -f "$ac_file" || continue;
3671 case $ac_file in
3672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3673 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3674 break;;
3675 esac
3676 done
3677 else
3678 $as_echo "$as_me: failed program was:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3682 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3683 as_fn_error $? "cannot compute suffix of object files: cannot compile
3684 See \`config.log' for more details" "$LINENO" 5; }
3685 fi
3686 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3687 fi
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3689 $as_echo "$ac_cv_objext" >&6; }
3690 OBJEXT=$ac_cv_objext
3691 ac_objext=$OBJEXT
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3693 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3694 if ${ac_cv_c_compiler_gnu+:} false; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3698 /* end confdefs.h. */
3699
3700 int
3701 main ()
3702 {
3703 #ifndef __GNUC__
3704 choke me
3705 #endif
3706
3707 ;
3708 return 0;
3709 }
3710 _ACEOF
3711 if ac_fn_c_try_compile "$LINENO"; then :
3712 ac_compiler_gnu=yes
3713 else
3714 ac_compiler_gnu=no
3715 fi
3716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3717 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3718
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3721 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3722 if test $ac_compiler_gnu = yes; then
3723 GCC=yes
3724 else
3725 GCC=
3726 fi
3727 ac_test_CFLAGS=${CFLAGS+set}
3728 ac_save_CFLAGS=$CFLAGS
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3730 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3731 if ${ac_cv_prog_cc_g+:} false; then :
3732 $as_echo_n "(cached) " >&6
3733 else
3734 ac_save_c_werror_flag=$ac_c_werror_flag
3735 ac_c_werror_flag=yes
3736 ac_cv_prog_cc_g=no
3737 CFLAGS="-g"
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740
3741 int
3742 main ()
3743 {
3744
3745 ;
3746 return 0;
3747 }
3748 _ACEOF
3749 if ac_fn_c_try_compile "$LINENO"; then :
3750 ac_cv_prog_cc_g=yes
3751 else
3752 CFLAGS=""
3753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3754 /* end confdefs.h. */
3755
3756 int
3757 main ()
3758 {
3759
3760 ;
3761 return 0;
3762 }
3763 _ACEOF
3764 if ac_fn_c_try_compile "$LINENO"; then :
3765
3766 else
3767 ac_c_werror_flag=$ac_save_c_werror_flag
3768 CFLAGS="-g"
3769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 /* end confdefs.h. */
3771
3772 int
3773 main ()
3774 {
3775
3776 ;
3777 return 0;
3778 }
3779 _ACEOF
3780 if ac_fn_c_try_compile "$LINENO"; then :
3781 ac_cv_prog_cc_g=yes
3782 fi
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 fi
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 fi
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 ac_c_werror_flag=$ac_save_c_werror_flag
3789 fi
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3791 $as_echo "$ac_cv_prog_cc_g" >&6; }
3792 if test "$ac_test_CFLAGS" = set; then
3793 CFLAGS=$ac_save_CFLAGS
3794 elif test $ac_cv_prog_cc_g = yes; then
3795 if test "$GCC" = yes; then
3796 CFLAGS="-g -O2"
3797 else
3798 CFLAGS="-g"
3799 fi
3800 else
3801 if test "$GCC" = yes; then
3802 CFLAGS="-O2"
3803 else
3804 CFLAGS=
3805 fi
3806 fi
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3808 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3809 if ${ac_cv_prog_cc_c89+:} false; then :
3810 $as_echo_n "(cached) " >&6
3811 else
3812 ac_cv_prog_cc_c89=no
3813 ac_save_CC=$CC
3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 /* end confdefs.h. */
3816 #include <stdarg.h>
3817 #include <stdio.h>
3818 struct stat;
3819 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3820 struct buf { int x; };
3821 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3822 static char *e (p, i)
3823 char **p;
3824 int i;
3825 {
3826 return p[i];
3827 }
3828 static char *f (char * (*g) (char **, int), char **p, ...)
3829 {
3830 char *s;
3831 va_list v;
3832 va_start (v,p);
3833 s = g (p, va_arg (v,int));
3834 va_end (v);
3835 return s;
3836 }
3837
3838 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3839 function prototypes and stuff, but not '\xHH' hex character constants.
3840 These don't provoke an error unfortunately, instead are silently treated
3841 as 'x'. The following induces an error, until -std is added to get
3842 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3843 array size at least. It's necessary to write '\x00'==0 to get something
3844 that's true only with -std. */
3845 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3846
3847 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3848 inside strings and character constants. */
3849 #define FOO(x) 'x'
3850 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3851
3852 int test (int i, double x);
3853 struct s1 {int (*f) (int a);};
3854 struct s2 {int (*f) (double a);};
3855 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3856 int argc;
3857 char **argv;
3858 int
3859 main ()
3860 {
3861 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3862 ;
3863 return 0;
3864 }
3865 _ACEOF
3866 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3867 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3868 do
3869 CC="$ac_save_CC $ac_arg"
3870 if ac_fn_c_try_compile "$LINENO"; then :
3871 ac_cv_prog_cc_c89=$ac_arg
3872 fi
3873 rm -f core conftest.err conftest.$ac_objext
3874 test "x$ac_cv_prog_cc_c89" != "xno" && break
3875 done
3876 rm -f conftest.$ac_ext
3877 CC=$ac_save_CC
3878
3879 fi
3880 # AC_CACHE_VAL
3881 case "x$ac_cv_prog_cc_c89" in
3882 x)
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3884 $as_echo "none needed" >&6; } ;;
3885 xno)
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3887 $as_echo "unsupported" >&6; } ;;
3888 *)
3889 CC="$CC $ac_cv_prog_cc_c89"
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3891 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3892 esac
3893 if test "x$ac_cv_prog_cc_c89" != xno; then :
3894
3895 fi
3896
3897 ac_ext=c
3898 ac_cpp='$CPP $CPPFLAGS'
3899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3902
3903 depcc="$CC" am_compiler_list=
3904
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3906 $as_echo_n "checking dependency style of $depcc... " >&6; }
3907 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3908 $as_echo_n "(cached) " >&6
3909 else
3910 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3911 # We make a subdir and do the tests there. Otherwise we can end up
3912 # making bogus files that we don't know about and never remove. For
3913 # instance it was reported that on HP-UX the gcc test will end up
3914 # making a dummy file named 'D' -- because '-MD' means "put the output
3915 # in D".
3916 rm -rf conftest.dir
3917 mkdir conftest.dir
3918 # Copy depcomp to subdir because otherwise we won't find it if we're
3919 # using a relative directory.
3920 cp "$am_depcomp" conftest.dir
3921 cd conftest.dir
3922 # We will build objects and dependencies in a subdirectory because
3923 # it helps to detect inapplicable dependency modes. For instance
3924 # both Tru64's cc and ICC support -MD to output dependencies as a
3925 # side effect of compilation, but ICC will put the dependencies in
3926 # the current directory while Tru64 will put them in the object
3927 # directory.
3928 mkdir sub
3929
3930 am_cv_CC_dependencies_compiler_type=none
3931 if test "$am_compiler_list" = ""; then
3932 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3933 fi
3934 am__universal=false
3935 case " $depcc " in #(
3936 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3937 esac
3938
3939 for depmode in $am_compiler_list; do
3940 # Setup a source with many dependencies, because some compilers
3941 # like to wrap large dependency lists on column 80 (with \), and
3942 # we should not choose a depcomp mode which is confused by this.
3943 #
3944 # We need to recreate these files for each test, as the compiler may
3945 # overwrite some of them when testing with obscure command lines.
3946 # This happens at least with the AIX C compiler.
3947 : > sub/conftest.c
3948 for i in 1 2 3 4 5 6; do
3949 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3950 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3951 # Solaris 10 /bin/sh.
3952 echo '/* dummy */' > sub/conftst$i.h
3953 done
3954 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3955
3956 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3957 # mode. It turns out that the SunPro C++ compiler does not properly
3958 # handle '-M -o', and we need to detect this. Also, some Intel
3959 # versions had trouble with output in subdirs.
3960 am__obj=sub/conftest.${OBJEXT-o}
3961 am__minus_obj="-o $am__obj"
3962 case $depmode in
3963 gcc)
3964 # This depmode causes a compiler race in universal mode.
3965 test "$am__universal" = false || continue
3966 ;;
3967 nosideeffect)
3968 # After this tag, mechanisms are not by side-effect, so they'll
3969 # only be used when explicitly requested.
3970 if test "x$enable_dependency_tracking" = xyes; then
3971 continue
3972 else
3973 break
3974 fi
3975 ;;
3976 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3977 # This compiler won't grok '-c -o', but also, the minuso test has
3978 # not run yet. These depmodes are late enough in the game, and
3979 # so weak that their functioning should not be impacted.
3980 am__obj=conftest.${OBJEXT-o}
3981 am__minus_obj=
3982 ;;
3983 none) break ;;
3984 esac
3985 if depmode=$depmode \
3986 source=sub/conftest.c object=$am__obj \
3987 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3988 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3989 >/dev/null 2>conftest.err &&
3990 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3991 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3992 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3993 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3994 # icc doesn't choke on unknown options, it will just issue warnings
3995 # or remarks (even with -Werror). So we grep stderr for any message
3996 # that says an option was ignored or not supported.
3997 # When given -MP, icc 7.0 and 7.1 complain thusly:
3998 # icc: Command line warning: ignoring option '-M'; no argument required
3999 # The diagnosis changed in icc 8.0:
4000 # icc: Command line remark: option '-MP' not supported
4001 if (grep 'ignoring option' conftest.err ||
4002 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4003 am_cv_CC_dependencies_compiler_type=$depmode
4004 break
4005 fi
4006 fi
4007 done
4008
4009 cd ..
4010 rm -rf conftest.dir
4011 else
4012 am_cv_CC_dependencies_compiler_type=none
4013 fi
4014
4015 fi
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4017 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4018 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4019
4020 if
4021 test "x$enable_dependency_tracking" != xno \
4022 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4023 am__fastdepCC_TRUE=
4024 am__fastdepCC_FALSE='#'
4025 else
4026 am__fastdepCC_TRUE='#'
4027 am__fastdepCC_FALSE=
4028 fi
4029
4030
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4032 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4033 if ${ac_cv_prog_cc_c99+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 ac_cv_prog_cc_c99=no
4037 ac_save_CC=$CC
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 #include <stdarg.h>
4041 #include <stdbool.h>
4042 #include <stdlib.h>
4043 #include <wchar.h>
4044 #include <stdio.h>
4045
4046 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4047 #define debug(...) fprintf (stderr, __VA_ARGS__)
4048 #define showlist(...) puts (#__VA_ARGS__)
4049 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4050 static void
4051 test_varargs_macros (void)
4052 {
4053 int x = 1234;
4054 int y = 5678;
4055 debug ("Flag");
4056 debug ("X = %d\n", x);
4057 showlist (The first, second, and third items.);
4058 report (x>y, "x is %d but y is %d", x, y);
4059 }
4060
4061 // Check long long types.
4062 #define BIG64 18446744073709551615ull
4063 #define BIG32 4294967295ul
4064 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4065 #if !BIG_OK
4066 your preprocessor is broken;
4067 #endif
4068 #if BIG_OK
4069 #else
4070 your preprocessor is broken;
4071 #endif
4072 static long long int bignum = -9223372036854775807LL;
4073 static unsigned long long int ubignum = BIG64;
4074
4075 struct incomplete_array
4076 {
4077 int datasize;
4078 double data[];
4079 };
4080
4081 struct named_init {
4082 int number;
4083 const wchar_t *name;
4084 double average;
4085 };
4086
4087 typedef const char *ccp;
4088
4089 static inline int
4090 test_restrict (ccp restrict text)
4091 {
4092 // See if C++-style comments work.
4093 // Iterate through items via the restricted pointer.
4094 // Also check for declarations in for loops.
4095 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4096 continue;
4097 return 0;
4098 }
4099
4100 // Check varargs and va_copy.
4101 static void
4102 test_varargs (const char *format, ...)
4103 {
4104 va_list args;
4105 va_start (args, format);
4106 va_list args_copy;
4107 va_copy (args_copy, args);
4108
4109 const char *str;
4110 int number;
4111 float fnumber;
4112
4113 while (*format)
4114 {
4115 switch (*format++)
4116 {
4117 case 's': // string
4118 str = va_arg (args_copy, const char *);
4119 break;
4120 case 'd': // int
4121 number = va_arg (args_copy, int);
4122 break;
4123 case 'f': // float
4124 fnumber = va_arg (args_copy, double);
4125 break;
4126 default:
4127 break;
4128 }
4129 }
4130 va_end (args_copy);
4131 va_end (args);
4132 }
4133
4134 int
4135 main ()
4136 {
4137
4138 // Check bool.
4139 _Bool success = false;
4140
4141 // Check restrict.
4142 if (test_restrict ("String literal") == 0)
4143 success = true;
4144 char *restrict newvar = "Another string";
4145
4146 // Check varargs.
4147 test_varargs ("s, d' f .", "string", 65, 34.234);
4148 test_varargs_macros ();
4149
4150 // Check flexible array members.
4151 struct incomplete_array *ia =
4152 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4153 ia->datasize = 10;
4154 for (int i = 0; i < ia->datasize; ++i)
4155 ia->data[i] = i * 1.234;
4156
4157 // Check named initializers.
4158 struct named_init ni = {
4159 .number = 34,
4160 .name = L"Test wide string",
4161 .average = 543.34343,
4162 };
4163
4164 ni.number = 58;
4165
4166 int dynamic_array[ni.number];
4167 dynamic_array[ni.number - 1] = 543;
4168
4169 // work around unused variable warnings
4170 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4171 || dynamic_array[ni.number - 1] != 543);
4172
4173 ;
4174 return 0;
4175 }
4176 _ACEOF
4177 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4178 do
4179 CC="$ac_save_CC $ac_arg"
4180 if ac_fn_c_try_compile "$LINENO"; then :
4181 ac_cv_prog_cc_c99=$ac_arg
4182 fi
4183 rm -f core conftest.err conftest.$ac_objext
4184 test "x$ac_cv_prog_cc_c99" != "xno" && break
4185 done
4186 rm -f conftest.$ac_ext
4187 CC=$ac_save_CC
4188
4189 fi
4190 # AC_CACHE_VAL
4191 case "x$ac_cv_prog_cc_c99" in
4192 x)
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4194 $as_echo "none needed" >&6; } ;;
4195 xno)
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4197 $as_echo "unsupported" >&6; } ;;
4198 *)
4199 CC="$CC $ac_cv_prog_cc_c99"
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4201 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4202 esac
4203 if test "x$ac_cv_prog_cc_c99" != xno; then :
4204
4205 fi
4206
4207
4208 if test "$ac_cv_prog_cc_c99" = "no"; then :
4209 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4210 fi
4211 for ac_prog in 'bison -y' byacc
4212 do
4213 # Extract the first word of "$ac_prog", so it can be a program name with args.
4214 set dummy $ac_prog; ac_word=$2
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4216 $as_echo_n "checking for $ac_word... " >&6; }
4217 if ${ac_cv_prog_YACC+:} false; then :
4218 $as_echo_n "(cached) " >&6
4219 else
4220 if test -n "$YACC"; then
4221 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4222 else
4223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4224 for as_dir in $PATH
4225 do
4226 IFS=$as_save_IFS
4227 test -z "$as_dir" && as_dir=.
4228 for ac_exec_ext in '' $ac_executable_extensions; do
4229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4230 ac_cv_prog_YACC="$ac_prog"
4231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4232 break 2
4233 fi
4234 done
4235 done
4236 IFS=$as_save_IFS
4237
4238 fi
4239 fi
4240 YACC=$ac_cv_prog_YACC
4241 if test -n "$YACC"; then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4243 $as_echo "$YACC" >&6; }
4244 else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246 $as_echo "no" >&6; }
4247 fi
4248
4249
4250 test -n "$YACC" && break
4251 done
4252 test -n "$YACC" || YACC="yacc"
4253
4254
4255 for ac_prog in flex lex
4256 do
4257 # Extract the first word of "$ac_prog", so it can be a program name with args.
4258 set dummy $ac_prog; ac_word=$2
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4260 $as_echo_n "checking for $ac_word... " >&6; }
4261 if ${ac_cv_prog_LEX+:} false; then :
4262 $as_echo_n "(cached) " >&6
4263 else
4264 if test -n "$LEX"; then
4265 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270 IFS=$as_save_IFS
4271 test -z "$as_dir" && as_dir=.
4272 for ac_exec_ext in '' $ac_executable_extensions; do
4273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4274 ac_cv_prog_LEX="$ac_prog"
4275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4276 break 2
4277 fi
4278 done
4279 done
4280 IFS=$as_save_IFS
4281
4282 fi
4283 fi
4284 LEX=$ac_cv_prog_LEX
4285 if test -n "$LEX"; then
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4287 $as_echo "$LEX" >&6; }
4288 else
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4290 $as_echo "no" >&6; }
4291 fi
4292
4293
4294 test -n "$LEX" && break
4295 done
4296 test -n "$LEX" || LEX=":"
4297
4298 if test "x$LEX" != "x:"; then
4299 cat >conftest.l <<_ACEOF
4300 %%
4301 a { ECHO; }
4302 b { REJECT; }
4303 c { yymore (); }
4304 d { yyless (1); }
4305 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4306 yyless ((input () != 0)); }
4307 f { unput (yytext[0]); }
4308 . { BEGIN INITIAL; }
4309 %%
4310 #ifdef YYTEXT_POINTER
4311 extern char *yytext;
4312 #endif
4313 int
4314 main (void)
4315 {
4316 return ! yylex () + ! yywrap ();
4317 }
4318 _ACEOF
4319 { { ac_try="$LEX conftest.l"
4320 case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$LEX conftest.l") 2>&5
4327 ac_status=$?
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; }
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4331 $as_echo_n "checking lex output file root... " >&6; }
4332 if ${ac_cv_prog_lex_root+:} false; then :
4333 $as_echo_n "(cached) " >&6
4334 else
4335
4336 if test -f lex.yy.c; then
4337 ac_cv_prog_lex_root=lex.yy
4338 elif test -f lexyy.c; then
4339 ac_cv_prog_lex_root=lexyy
4340 else
4341 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4342 fi
4343 fi
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4345 $as_echo "$ac_cv_prog_lex_root" >&6; }
4346 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4347
4348 if test -z "${LEXLIB+set}"; then
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4350 $as_echo_n "checking lex library... " >&6; }
4351 if ${ac_cv_lib_lex+:} false; then :
4352 $as_echo_n "(cached) " >&6
4353 else
4354
4355 ac_save_LIBS=$LIBS
4356 ac_cv_lib_lex='none needed'
4357 for ac_lib in '' -lfl -ll; do
4358 LIBS="$ac_lib $ac_save_LIBS"
4359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360 /* end confdefs.h. */
4361 `cat $LEX_OUTPUT_ROOT.c`
4362 _ACEOF
4363 if ac_fn_c_try_link "$LINENO"; then :
4364 ac_cv_lib_lex=$ac_lib
4365 fi
4366 rm -f core conftest.err conftest.$ac_objext \
4367 conftest$ac_exeext conftest.$ac_ext
4368 test "$ac_cv_lib_lex" != 'none needed' && break
4369 done
4370 LIBS=$ac_save_LIBS
4371
4372 fi
4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4374 $as_echo "$ac_cv_lib_lex" >&6; }
4375 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4376 fi
4377
4378
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4380 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4381 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4382 $as_echo_n "(cached) " >&6
4383 else
4384 # POSIX says lex can declare yytext either as a pointer or an array; the
4385 # default is implementation-dependent. Figure out which it is, since
4386 # not all implementations provide the %pointer and %array declarations.
4387 ac_cv_prog_lex_yytext_pointer=no
4388 ac_save_LIBS=$LIBS
4389 LIBS="$LEXLIB $ac_save_LIBS"
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4391 /* end confdefs.h. */
4392
4393 #define YYTEXT_POINTER 1
4394 `cat $LEX_OUTPUT_ROOT.c`
4395 _ACEOF
4396 if ac_fn_c_try_link "$LINENO"; then :
4397 ac_cv_prog_lex_yytext_pointer=yes
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext \
4400 conftest$ac_exeext conftest.$ac_ext
4401 LIBS=$ac_save_LIBS
4402
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4405 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4406 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4407
4408 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4409
4410 fi
4411 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4412
4413 fi
4414 if test "$LEX" = :; then
4415 LEX=${am_missing_run}flex
4416 fi
4417
4418
4419 # Initializing libtool.
4420
4421
4422
4423
4424
4425
4426
4427 case `pwd` in
4428 *\ * | *\ *)
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4430 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4431 esac
4432
4433
4434
4435 macro_version='2.4.2'
4436 macro_revision='1.3337'
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450 ltmain="$ac_aux_dir/ltmain.sh"
4451
4452 # Make sure we can run config.sub.
4453 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4454 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4457 $as_echo_n "checking build system type... " >&6; }
4458 if ${ac_cv_build+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 ac_build_alias=$build_alias
4462 test "x$ac_build_alias" = x &&
4463 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4464 test "x$ac_build_alias" = x &&
4465 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4466 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4467 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4468
4469 fi
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4471 $as_echo "$ac_cv_build" >&6; }
4472 case $ac_cv_build in
4473 *-*-*) ;;
4474 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4475 esac
4476 build=$ac_cv_build
4477 ac_save_IFS=$IFS; IFS='-'
4478 set x $ac_cv_build
4479 shift
4480 build_cpu=$1
4481 build_vendor=$2
4482 shift; shift
4483 # Remember, the first character of IFS is used to create $*,
4484 # except with old shells:
4485 build_os=$*
4486 IFS=$ac_save_IFS
4487 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4488
4489
4490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4491 $as_echo_n "checking host system type... " >&6; }
4492 if ${ac_cv_host+:} false; then :
4493 $as_echo_n "(cached) " >&6
4494 else
4495 if test "x$host_alias" = x; then
4496 ac_cv_host=$ac_cv_build
4497 else
4498 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4500 fi
4501
4502 fi
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4504 $as_echo "$ac_cv_host" >&6; }
4505 case $ac_cv_host in
4506 *-*-*) ;;
4507 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4508 esac
4509 host=$ac_cv_host
4510 ac_save_IFS=$IFS; IFS='-'
4511 set x $ac_cv_host
4512 shift
4513 host_cpu=$1
4514 host_vendor=$2
4515 shift; shift
4516 # Remember, the first character of IFS is used to create $*,
4517 # except with old shells:
4518 host_os=$*
4519 IFS=$ac_save_IFS
4520 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4521
4522
4523 # Backslashify metacharacters that are still active within
4524 # double-quoted strings.
4525 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4526
4527 # Same as above, but do not quote variable references.
4528 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4529
4530 # Sed substitution to delay expansion of an escaped shell variable in a
4531 # double_quote_subst'ed string.
4532 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4533
4534 # Sed substitution to delay expansion of an escaped single quote.
4535 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4536
4537 # Sed substitution to avoid accidental globbing in evaled expressions
4538 no_glob_subst='s/\*/\\\*/g'
4539
4540 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4541 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4542 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4543
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4545 $as_echo_n "checking how to print strings... " >&6; }
4546 # Test print first, because it will be a builtin if present.
4547 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4548 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4549 ECHO='print -r --'
4550 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4551 ECHO='printf %s\n'
4552 else
4553 # Use this function as a fallback that always works.
4554 func_fallback_echo ()
4555 {
4556 eval 'cat <<_LTECHO_EOF
4557 $1
4558 _LTECHO_EOF'
4559 }
4560 ECHO='func_fallback_echo'
4561 fi
4562
4563 # func_echo_all arg...
4564 # Invoke $ECHO with all args, space-separated.
4565 func_echo_all ()
4566 {
4567 $ECHO ""
4568 }
4569
4570 case "$ECHO" in
4571 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4572 $as_echo "printf" >&6; } ;;
4573 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4574 $as_echo "print -r" >&6; } ;;
4575 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4576 $as_echo "cat" >&6; } ;;
4577 esac
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4593 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4594 if ${ac_cv_path_SED+:} false; then :
4595 $as_echo_n "(cached) " >&6
4596 else
4597 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4598 for ac_i in 1 2 3 4 5 6 7; do
4599 ac_script="$ac_script$as_nl$ac_script"
4600 done
4601 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4602 { ac_script=; unset ac_script;}
4603 if test -z "$SED"; then
4604 ac_path_SED_found=false
4605 # Loop through the user's path and test for each of PROGNAME-LIST
4606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 for as_dir in $PATH
4608 do
4609 IFS=$as_save_IFS
4610 test -z "$as_dir" && as_dir=.
4611 for ac_prog in sed gsed; do
4612 for ac_exec_ext in '' $ac_executable_extensions; do
4613 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4614 as_fn_executable_p "$ac_path_SED" || continue
4615 # Check for GNU ac_path_SED and select it if it is found.
4616 # Check for GNU $ac_path_SED
4617 case `"$ac_path_SED" --version 2>&1` in
4618 *GNU*)
4619 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4620 *)
4621 ac_count=0
4622 $as_echo_n 0123456789 >"conftest.in"
4623 while :
4624 do
4625 cat "conftest.in" "conftest.in" >"conftest.tmp"
4626 mv "conftest.tmp" "conftest.in"
4627 cp "conftest.in" "conftest.nl"
4628 $as_echo '' >> "conftest.nl"
4629 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4630 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4631 as_fn_arith $ac_count + 1 && ac_count=$as_val
4632 if test $ac_count -gt ${ac_path_SED_max-0}; then
4633 # Best one so far, save it but keep looking for a better one
4634 ac_cv_path_SED="$ac_path_SED"
4635 ac_path_SED_max=$ac_count
4636 fi
4637 # 10*(2^10) chars as input seems more than enough
4638 test $ac_count -gt 10 && break
4639 done
4640 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4641 esac
4642
4643 $ac_path_SED_found && break 3
4644 done
4645 done
4646 done
4647 IFS=$as_save_IFS
4648 if test -z "$ac_cv_path_SED"; then
4649 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4650 fi
4651 else
4652 ac_cv_path_SED=$SED
4653 fi
4654
4655 fi
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4657 $as_echo "$ac_cv_path_SED" >&6; }
4658 SED="$ac_cv_path_SED"
4659 rm -f conftest.sed
4660
4661 test -z "$SED" && SED=sed
4662 Xsed="$SED -e 1s/^X//"
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4675 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4676 if ${ac_cv_path_GREP+:} false; then :
4677 $as_echo_n "(cached) " >&6
4678 else
4679 if test -z "$GREP"; then
4680 ac_path_GREP_found=false
4681 # Loop through the user's path and test for each of PROGNAME-LIST
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4684 do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
4687 for ac_prog in grep ggrep; do
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4690 as_fn_executable_p "$ac_path_GREP" || continue
4691 # Check for GNU ac_path_GREP and select it if it is found.
4692 # Check for GNU $ac_path_GREP
4693 case `"$ac_path_GREP" --version 2>&1` in
4694 *GNU*)
4695 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4696 *)
4697 ac_count=0
4698 $as_echo_n 0123456789 >"conftest.in"
4699 while :
4700 do
4701 cat "conftest.in" "conftest.in" >"conftest.tmp"
4702 mv "conftest.tmp" "conftest.in"
4703 cp "conftest.in" "conftest.nl"
4704 $as_echo 'GREP' >> "conftest.nl"
4705 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4706 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4707 as_fn_arith $ac_count + 1 && ac_count=$as_val
4708 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4709 # Best one so far, save it but keep looking for a better one
4710 ac_cv_path_GREP="$ac_path_GREP"
4711 ac_path_GREP_max=$ac_count
4712 fi
4713 # 10*(2^10) chars as input seems more than enough
4714 test $ac_count -gt 10 && break
4715 done
4716 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717 esac
4718
4719 $ac_path_GREP_found && break 3
4720 done
4721 done
4722 done
4723 IFS=$as_save_IFS
4724 if test -z "$ac_cv_path_GREP"; then
4725 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4726 fi
4727 else
4728 ac_cv_path_GREP=$GREP
4729 fi
4730
4731 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4733 $as_echo "$ac_cv_path_GREP" >&6; }
4734 GREP="$ac_cv_path_GREP"
4735
4736
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4738 $as_echo_n "checking for egrep... " >&6; }
4739 if ${ac_cv_path_EGREP+:} false; then :
4740 $as_echo_n "(cached) " >&6
4741 else
4742 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4743 then ac_cv_path_EGREP="$GREP -E"
4744 else
4745 if test -z "$EGREP"; then
4746 ac_path_EGREP_found=false
4747 # Loop through the user's path and test for each of PROGNAME-LIST
4748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4749 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4750 do
4751 IFS=$as_save_IFS
4752 test -z "$as_dir" && as_dir=.
4753 for ac_prog in egrep; do
4754 for ac_exec_ext in '' $ac_executable_extensions; do
4755 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4756 as_fn_executable_p "$ac_path_EGREP" || continue
4757 # Check for GNU ac_path_EGREP and select it if it is found.
4758 # Check for GNU $ac_path_EGREP
4759 case `"$ac_path_EGREP" --version 2>&1` in
4760 *GNU*)
4761 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4762 *)
4763 ac_count=0
4764 $as_echo_n 0123456789 >"conftest.in"
4765 while :
4766 do
4767 cat "conftest.in" "conftest.in" >"conftest.tmp"
4768 mv "conftest.tmp" "conftest.in"
4769 cp "conftest.in" "conftest.nl"
4770 $as_echo 'EGREP' >> "conftest.nl"
4771 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4772 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4773 as_fn_arith $ac_count + 1 && ac_count=$as_val
4774 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4775 # Best one so far, save it but keep looking for a better one
4776 ac_cv_path_EGREP="$ac_path_EGREP"
4777 ac_path_EGREP_max=$ac_count
4778 fi
4779 # 10*(2^10) chars as input seems more than enough
4780 test $ac_count -gt 10 && break
4781 done
4782 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4783 esac
4784
4785 $ac_path_EGREP_found && break 3
4786 done
4787 done
4788 done
4789 IFS=$as_save_IFS
4790 if test -z "$ac_cv_path_EGREP"; then
4791 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4792 fi
4793 else
4794 ac_cv_path_EGREP=$EGREP
4795 fi
4796
4797 fi
4798 fi
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4800 $as_echo "$ac_cv_path_EGREP" >&6; }
4801 EGREP="$ac_cv_path_EGREP"
4802
4803
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4805 $as_echo_n "checking for fgrep... " >&6; }
4806 if ${ac_cv_path_FGREP+:} false; then :
4807 $as_echo_n "(cached) " >&6
4808 else
4809 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4810 then ac_cv_path_FGREP="$GREP -F"
4811 else
4812 if test -z "$FGREP"; then
4813 ac_path_FGREP_found=false
4814 # Loop through the user's path and test for each of PROGNAME-LIST
4815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4816 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4817 do
4818 IFS=$as_save_IFS
4819 test -z "$as_dir" && as_dir=.
4820 for ac_prog in fgrep; do
4821 for ac_exec_ext in '' $ac_executable_extensions; do
4822 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4823 as_fn_executable_p "$ac_path_FGREP" || continue
4824 # Check for GNU ac_path_FGREP and select it if it is found.
4825 # Check for GNU $ac_path_FGREP
4826 case `"$ac_path_FGREP" --version 2>&1` in
4827 *GNU*)
4828 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4829 *)
4830 ac_count=0
4831 $as_echo_n 0123456789 >"conftest.in"
4832 while :
4833 do
4834 cat "conftest.in" "conftest.in" >"conftest.tmp"
4835 mv "conftest.tmp" "conftest.in"
4836 cp "conftest.in" "conftest.nl"
4837 $as_echo 'FGREP' >> "conftest.nl"
4838 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4840 as_fn_arith $ac_count + 1 && ac_count=$as_val
4841 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4842 # Best one so far, save it but keep looking for a better one
4843 ac_cv_path_FGREP="$ac_path_FGREP"
4844 ac_path_FGREP_max=$ac_count
4845 fi
4846 # 10*(2^10) chars as input seems more than enough
4847 test $ac_count -gt 10 && break
4848 done
4849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4850 esac
4851
4852 $ac_path_FGREP_found && break 3
4853 done
4854 done
4855 done
4856 IFS=$as_save_IFS
4857 if test -z "$ac_cv_path_FGREP"; then
4858 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4859 fi
4860 else
4861 ac_cv_path_FGREP=$FGREP
4862 fi
4863
4864 fi
4865 fi
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4867 $as_echo "$ac_cv_path_FGREP" >&6; }
4868 FGREP="$ac_cv_path_FGREP"
4869
4870
4871 test -z "$GREP" && GREP=grep
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891 # Check whether --with-gnu-ld was given.
4892 if test "${with_gnu_ld+set}" = set; then :
4893 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4894 else
4895 with_gnu_ld=no
4896 fi
4897
4898 ac_prog=ld
4899 if test "$GCC" = yes; then
4900 # Check if gcc -print-prog-name=ld gives a path.
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4902 $as_echo_n "checking for ld used by $CC... " >&6; }
4903 case $host in
4904 *-*-mingw*)
4905 # gcc leaves a trailing carriage return which upsets mingw
4906 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4907 *)
4908 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4909 esac
4910 case $ac_prog in
4911 # Accept absolute paths.
4912 [\\/]* | ?:[\\/]*)
4913 re_direlt='/[^/][^/]*/\.\./'
4914 # Canonicalize the pathname of ld
4915 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4916 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4917 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4918 done
4919 test -z "$LD" && LD="$ac_prog"
4920 ;;
4921 "")
4922 # If it fails, then pretend we aren't using GCC.
4923 ac_prog=ld
4924 ;;
4925 *)
4926 # If it is relative, then search for the first ld in PATH.
4927 with_gnu_ld=unknown
4928 ;;
4929 esac
4930 elif test "$with_gnu_ld" = yes; then
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4932 $as_echo_n "checking for GNU ld... " >&6; }
4933 else
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4935 $as_echo_n "checking for non-GNU ld... " >&6; }
4936 fi
4937 if ${lt_cv_path_LD+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if test -z "$LD"; then
4941 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4942 for ac_dir in $PATH; do
4943 IFS="$lt_save_ifs"
4944 test -z "$ac_dir" && ac_dir=.
4945 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4946 lt_cv_path_LD="$ac_dir/$ac_prog"
4947 # Check to see if the program is GNU ld. I'd rather use --version,
4948 # but apparently some variants of GNU ld only accept -v.
4949 # Break only if it was the GNU/non-GNU ld that we prefer.
4950 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4951 *GNU* | *'with BFD'*)
4952 test "$with_gnu_ld" != no && break
4953 ;;
4954 *)
4955 test "$with_gnu_ld" != yes && break
4956 ;;
4957 esac
4958 fi
4959 done
4960 IFS="$lt_save_ifs"
4961 else
4962 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4963 fi
4964 fi
4965
4966 LD="$lt_cv_path_LD"
4967 if test -n "$LD"; then
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4969 $as_echo "$LD" >&6; }
4970 else
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4972 $as_echo "no" >&6; }
4973 fi
4974 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4976 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4977 if ${lt_cv_prog_gnu_ld+:} false; then :
4978 $as_echo_n "(cached) " >&6
4979 else
4980 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4981 case `$LD -v 2>&1 </dev/null` in
4982 *GNU* | *'with BFD'*)
4983 lt_cv_prog_gnu_ld=yes
4984 ;;
4985 *)
4986 lt_cv_prog_gnu_ld=no
4987 ;;
4988 esac
4989 fi
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4991 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4992 with_gnu_ld=$lt_cv_prog_gnu_ld
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5003 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5004 if ${lt_cv_path_NM+:} false; then :
5005 $as_echo_n "(cached) " >&6
5006 else
5007 if test -n "$NM"; then
5008 # Let the user override the test.
5009 lt_cv_path_NM="$NM"
5010 else
5011 lt_nm_to_check="${ac_tool_prefix}nm"
5012 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5013 lt_nm_to_check="$lt_nm_to_check nm"
5014 fi
5015 for lt_tmp_nm in $lt_nm_to_check; do
5016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5017 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5018 IFS="$lt_save_ifs"
5019 test -z "$ac_dir" && ac_dir=.
5020 tmp_nm="$ac_dir/$lt_tmp_nm"
5021 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5022 # Check to see if the nm accepts a BSD-compat flag.
5023 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5024 # nm: unknown option "B" ignored
5025 # Tru64's nm complains that /dev/null is an invalid object file
5026 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5027 */dev/null* | *'Invalid file or object type'*)
5028 lt_cv_path_NM="$tmp_nm -B"
5029 break
5030 ;;
5031 *)
5032 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5033 */dev/null*)
5034 lt_cv_path_NM="$tmp_nm -p"
5035 break
5036 ;;
5037 *)
5038 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5039 continue # so that we can try to find one that supports BSD flags
5040 ;;
5041 esac
5042 ;;
5043 esac
5044 fi
5045 done
5046 IFS="$lt_save_ifs"
5047 done
5048 : ${lt_cv_path_NM=no}
5049 fi
5050 fi
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5052 $as_echo "$lt_cv_path_NM" >&6; }
5053 if test "$lt_cv_path_NM" != "no"; then
5054 NM="$lt_cv_path_NM"
5055 else
5056 # Didn't find any BSD compatible name lister, look for dumpbin.
5057 if test -n "$DUMPBIN"; then :
5058 # Let the user override the test.
5059 else
5060 if test -n "$ac_tool_prefix"; then
5061 for ac_prog in dumpbin "link -dump"
5062 do
5063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5064 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_DUMPBIN+:} false; then :
5068 $as_echo_n "(cached) " >&6
5069 else
5070 if test -n "$DUMPBIN"; then
5071 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5072 else
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5083 fi
5084 done
5085 done
5086 IFS=$as_save_IFS
5087
5088 fi
5089 fi
5090 DUMPBIN=$ac_cv_prog_DUMPBIN
5091 if test -n "$DUMPBIN"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5093 $as_echo "$DUMPBIN" >&6; }
5094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5097 fi
5098
5099
5100 test -n "$DUMPBIN" && break
5101 done
5102 fi
5103 if test -z "$DUMPBIN"; then
5104 ac_ct_DUMPBIN=$DUMPBIN
5105 for ac_prog in dumpbin "link -dump"
5106 do
5107 # Extract the first word of "$ac_prog", so it can be a program name with args.
5108 set dummy $ac_prog; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$ac_ct_DUMPBIN"; then
5115 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5119 do
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5127 fi
5128 done
5129 done
5130 IFS=$as_save_IFS
5131
5132 fi
5133 fi
5134 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5135 if test -n "$ac_ct_DUMPBIN"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5137 $as_echo "$ac_ct_DUMPBIN" >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5141 fi
5142
5143
5144 test -n "$ac_ct_DUMPBIN" && break
5145 done
5146
5147 if test "x$ac_ct_DUMPBIN" = x; then
5148 DUMPBIN=":"
5149 else
5150 case $cross_compiling:$ac_tool_warned in
5151 yes:)
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5153 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5154 ac_tool_warned=yes ;;
5155 esac
5156 DUMPBIN=$ac_ct_DUMPBIN
5157 fi
5158 fi
5159
5160 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5161 *COFF*)
5162 DUMPBIN="$DUMPBIN -symbols"
5163 ;;
5164 *)
5165 DUMPBIN=:
5166 ;;
5167 esac
5168 fi
5169
5170 if test "$DUMPBIN" != ":"; then
5171 NM="$DUMPBIN"
5172 fi
5173 fi
5174 test -z "$NM" && NM=nm
5175
5176
5177
5178
5179
5180
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5182 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5183 if ${lt_cv_nm_interface+:} false; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 lt_cv_nm_interface="BSD nm"
5187 echo "int some_variable = 0;" > conftest.$ac_ext
5188 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5189 (eval "$ac_compile" 2>conftest.err)
5190 cat conftest.err >&5
5191 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5192 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5193 cat conftest.err >&5
5194 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5195 cat conftest.out >&5
5196 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5197 lt_cv_nm_interface="MS dumpbin"
5198 fi
5199 rm -f conftest*
5200 fi
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5202 $as_echo "$lt_cv_nm_interface" >&6; }
5203
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5205 $as_echo_n "checking whether ln -s works... " >&6; }
5206 LN_S=$as_ln_s
5207 if test "$LN_S" = "ln -s"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5209 $as_echo "yes" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5212 $as_echo "no, using $LN_S" >&6; }
5213 fi
5214
5215 # find the maximum length of command line arguments
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5217 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5218 if ${lt_cv_sys_max_cmd_len+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 i=0
5222 teststring="ABCD"
5223
5224 case $build_os in
5225 msdosdjgpp*)
5226 # On DJGPP, this test can blow up pretty badly due to problems in libc
5227 # (any single argument exceeding 2000 bytes causes a buffer overrun
5228 # during glob expansion). Even if it were fixed, the result of this
5229 # check would be larger than it should be.
5230 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5231 ;;
5232
5233 gnu*)
5234 # Under GNU Hurd, this test is not required because there is
5235 # no limit to the length of command line arguments.
5236 # Libtool will interpret -1 as no limit whatsoever
5237 lt_cv_sys_max_cmd_len=-1;
5238 ;;
5239
5240 cygwin* | mingw* | cegcc*)
5241 # On Win9x/ME, this test blows up -- it succeeds, but takes
5242 # about 5 minutes as the teststring grows exponentially.
5243 # Worse, since 9x/ME are not pre-emptively multitasking,
5244 # you end up with a "frozen" computer, even though with patience
5245 # the test eventually succeeds (with a max line length of 256k).
5246 # Instead, let's just punt: use the minimum linelength reported by
5247 # all of the supported platforms: 8192 (on NT/2K/XP).
5248 lt_cv_sys_max_cmd_len=8192;
5249 ;;
5250
5251 mint*)
5252 # On MiNT this can take a long time and run out of memory.
5253 lt_cv_sys_max_cmd_len=8192;
5254 ;;
5255
5256 amigaos*)
5257 # On AmigaOS with pdksh, this test takes hours, literally.
5258 # So we just punt and use a minimum line length of 8192.
5259 lt_cv_sys_max_cmd_len=8192;
5260 ;;
5261
5262 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5263 # This has been around since 386BSD, at least. Likely further.
5264 if test -x /sbin/sysctl; then
5265 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5266 elif test -x /usr/sbin/sysctl; then
5267 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5268 else
5269 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5270 fi
5271 # And add a safety zone
5272 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5273 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5274 ;;
5275
5276 interix*)
5277 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5278 lt_cv_sys_max_cmd_len=196608
5279 ;;
5280
5281 os2*)
5282 # The test takes a long time on OS/2.
5283 lt_cv_sys_max_cmd_len=8192
5284 ;;
5285
5286 osf*)
5287 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5288 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5289 # nice to cause kernel panics so lets avoid the loop below.
5290 # First set a reasonable default.
5291 lt_cv_sys_max_cmd_len=16384
5292 #
5293 if test -x /sbin/sysconfig; then
5294 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5295 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5296 esac
5297 fi
5298 ;;
5299 sco3.2v5*)
5300 lt_cv_sys_max_cmd_len=102400
5301 ;;
5302 sysv5* | sco5v6* | sysv4.2uw2*)
5303 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5304 if test -n "$kargmax"; then
5305 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5306 else
5307 lt_cv_sys_max_cmd_len=32768
5308 fi
5309 ;;
5310 *)
5311 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5312 if test -n "$lt_cv_sys_max_cmd_len"; then
5313 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5315 else
5316 # Make teststring a little bigger before we do anything with it.
5317 # a 1K string should be a reasonable start.
5318 for i in 1 2 3 4 5 6 7 8 ; do
5319 teststring=$teststring$teststring
5320 done
5321 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5322 # If test is not a shell built-in, we'll probably end up computing a
5323 # maximum length that is only half of the actual maximum length, but
5324 # we can't tell.
5325 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5326 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5327 test $i != 17 # 1/2 MB should be enough
5328 do
5329 i=`expr $i + 1`
5330 teststring=$teststring$teststring
5331 done
5332 # Only check the string length outside the loop.
5333 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5334 teststring=
5335 # Add a significant safety factor because C++ compilers can tack on
5336 # massive amounts of additional arguments before passing them to the
5337 # linker. It appears as though 1/2 is a usable value.
5338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5339 fi
5340 ;;
5341 esac
5342
5343 fi
5344
5345 if test -n $lt_cv_sys_max_cmd_len ; then
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5347 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5348 else
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5350 $as_echo "none" >&6; }
5351 fi
5352 max_cmd_len=$lt_cv_sys_max_cmd_len
5353
5354
5355
5356
5357
5358
5359 : ${CP="cp -f"}
5360 : ${MV="mv -f"}
5361 : ${RM="rm -f"}
5362
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5364 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5365 # Try some XSI features
5366 xsi_shell=no
5367 ( _lt_dummy="a/b/c"
5368 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5369 = c,a/b,b/c, \
5370 && eval 'test $(( 1 + 1 )) -eq 2 \
5371 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5372 && xsi_shell=yes
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5374 $as_echo "$xsi_shell" >&6; }
5375
5376
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5378 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5379 lt_shell_append=no
5380 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5381 >/dev/null 2>&1 \
5382 && lt_shell_append=yes
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5384 $as_echo "$lt_shell_append" >&6; }
5385
5386
5387 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5388 lt_unset=unset
5389 else
5390 lt_unset=false
5391 fi
5392
5393
5394
5395
5396
5397 # test EBCDIC or ASCII
5398 case `echo X|tr X '\101'` in
5399 A) # ASCII based system
5400 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5401 lt_SP2NL='tr \040 \012'
5402 lt_NL2SP='tr \015\012 \040\040'
5403 ;;
5404 *) # EBCDIC based system
5405 lt_SP2NL='tr \100 \n'
5406 lt_NL2SP='tr \r\n \100\100'
5407 ;;
5408 esac
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5419 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5420 if ${lt_cv_to_host_file_cmd+:} false; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 case $host in
5424 *-*-mingw* )
5425 case $build in
5426 *-*-mingw* ) # actually msys
5427 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5428 ;;
5429 *-*-cygwin* )
5430 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5431 ;;
5432 * ) # otherwise, assume *nix
5433 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5434 ;;
5435 esac
5436 ;;
5437 *-*-cygwin* )
5438 case $build in
5439 *-*-mingw* ) # actually msys
5440 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5441 ;;
5442 *-*-cygwin* )
5443 lt_cv_to_host_file_cmd=func_convert_file_noop
5444 ;;
5445 * ) # otherwise, assume *nix
5446 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5447 ;;
5448 esac
5449 ;;
5450 * ) # unhandled hosts (and "normal" native builds)
5451 lt_cv_to_host_file_cmd=func_convert_file_noop
5452 ;;
5453 esac
5454
5455 fi
5456
5457 to_host_file_cmd=$lt_cv_to_host_file_cmd
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5459 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5460
5461
5462
5463
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5466 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5467 if ${lt_cv_to_tool_file_cmd+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 #assume ordinary cross tools, or native build.
5471 lt_cv_to_tool_file_cmd=func_convert_file_noop
5472 case $host in
5473 *-*-mingw* )
5474 case $build in
5475 *-*-mingw* ) # actually msys
5476 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5477 ;;
5478 esac
5479 ;;
5480 esac
5481
5482 fi
5483
5484 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5486 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5487
5488
5489
5490
5491
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5493 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5494 if ${lt_cv_ld_reload_flag+:} false; then :
5495 $as_echo_n "(cached) " >&6
5496 else
5497 lt_cv_ld_reload_flag='-r'
5498 fi
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5500 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5501 reload_flag=$lt_cv_ld_reload_flag
5502 case $reload_flag in
5503 "" | " "*) ;;
5504 *) reload_flag=" $reload_flag" ;;
5505 esac
5506 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5507 case $host_os in
5508 cygwin* | mingw* | pw32* | cegcc*)
5509 if test "$GCC" != yes; then
5510 reload_cmds=false
5511 fi
5512 ;;
5513 darwin*)
5514 if test "$GCC" = yes; then
5515 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5516 else
5517 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5518 fi
5519 ;;
5520 esac
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530 if test -n "$ac_tool_prefix"; then
5531 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5532 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5534 $as_echo_n "checking for $ac_word... " >&6; }
5535 if ${ac_cv_prog_OBJDUMP+:} false; then :
5536 $as_echo_n "(cached) " >&6
5537 else
5538 if test -n "$OBJDUMP"; then
5539 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5540 else
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in $PATH
5543 do
5544 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5548 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2
5551 fi
5552 done
5553 done
5554 IFS=$as_save_IFS
5555
5556 fi
5557 fi
5558 OBJDUMP=$ac_cv_prog_OBJDUMP
5559 if test -n "$OBJDUMP"; then
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5561 $as_echo "$OBJDUMP" >&6; }
5562 else
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5564 $as_echo "no" >&6; }
5565 fi
5566
5567
5568 fi
5569 if test -z "$ac_cv_prog_OBJDUMP"; then
5570 ac_ct_OBJDUMP=$OBJDUMP
5571 # Extract the first word of "objdump", so it can be a program name with args.
5572 set dummy objdump; ac_word=$2
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5574 $as_echo_n "checking for $ac_word... " >&6; }
5575 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577 else
5578 if test -n "$ac_ct_OBJDUMP"; then
5579 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5580 else
5581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5582 for as_dir in $PATH
5583 do
5584 IFS=$as_save_IFS
5585 test -z "$as_dir" && as_dir=.
5586 for ac_exec_ext in '' $ac_executable_extensions; do
5587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5588 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 break 2
5591 fi
5592 done
5593 done
5594 IFS=$as_save_IFS
5595
5596 fi
5597 fi
5598 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5599 if test -n "$ac_ct_OBJDUMP"; then
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5601 $as_echo "$ac_ct_OBJDUMP" >&6; }
5602 else
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5604 $as_echo "no" >&6; }
5605 fi
5606
5607 if test "x$ac_ct_OBJDUMP" = x; then
5608 OBJDUMP="false"
5609 else
5610 case $cross_compiling:$ac_tool_warned in
5611 yes:)
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616 OBJDUMP=$ac_ct_OBJDUMP
5617 fi
5618 else
5619 OBJDUMP="$ac_cv_prog_OBJDUMP"
5620 fi
5621
5622 test -z "$OBJDUMP" && OBJDUMP=objdump
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5633 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5634 if ${lt_cv_deplibs_check_method+:} false; then :
5635 $as_echo_n "(cached) " >&6
5636 else
5637 lt_cv_file_magic_cmd='$MAGIC_CMD'
5638 lt_cv_file_magic_test_file=
5639 lt_cv_deplibs_check_method='unknown'
5640 # Need to set the preceding variable on all platforms that support
5641 # interlibrary dependencies.
5642 # 'none' -- dependencies not supported.
5643 # `unknown' -- same as none, but documents that we really don't know.
5644 # 'pass_all' -- all dependencies passed with no checks.
5645 # 'test_compile' -- check by making test program.
5646 # 'file_magic [[regex]]' -- check by looking for files in library path
5647 # which responds to the $file_magic_cmd with a given extended regex.
5648 # If you have `file' or equivalent on your system and you're not sure
5649 # whether `pass_all' will *always* work, you probably want this one.
5650
5651 case $host_os in
5652 aix[4-9]*)
5653 lt_cv_deplibs_check_method=pass_all
5654 ;;
5655
5656 beos*)
5657 lt_cv_deplibs_check_method=pass_all
5658 ;;
5659
5660 bsdi[45]*)
5661 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5662 lt_cv_file_magic_cmd='/usr/bin/file -L'
5663 lt_cv_file_magic_test_file=/shlib/libc.so
5664 ;;
5665
5666 cygwin*)
5667 # func_win32_libid is a shell function defined in ltmain.sh
5668 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5669 lt_cv_file_magic_cmd='func_win32_libid'
5670 ;;
5671
5672 mingw* | pw32*)
5673 # Base MSYS/MinGW do not provide the 'file' command needed by
5674 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5675 # unless we find 'file', for example because we are cross-compiling.
5676 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5677 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5678 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5679 lt_cv_file_magic_cmd='func_win32_libid'
5680 else
5681 # Keep this pattern in sync with the one in func_win32_libid.
5682 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5683 lt_cv_file_magic_cmd='$OBJDUMP -f'
5684 fi
5685 ;;
5686
5687 cegcc*)
5688 # use the weaker test based on 'objdump'. See mingw*.
5689 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5690 lt_cv_file_magic_cmd='$OBJDUMP -f'
5691 ;;
5692
5693 darwin* | rhapsody*)
5694 lt_cv_deplibs_check_method=pass_all
5695 ;;
5696
5697 freebsd* | dragonfly*)
5698 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5699 case $host_cpu in
5700 i*86 )
5701 # Not sure whether the presence of OpenBSD here was a mistake.
5702 # Let's accept both of them until this is cleared up.
5703 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5704 lt_cv_file_magic_cmd=/usr/bin/file
5705 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5706 ;;
5707 esac
5708 else
5709 lt_cv_deplibs_check_method=pass_all
5710 fi
5711 ;;
5712
5713 gnu*)
5714 lt_cv_deplibs_check_method=pass_all
5715 ;;
5716
5717 haiku*)
5718 lt_cv_deplibs_check_method=pass_all
5719 ;;
5720
5721 hpux10.20* | hpux11*)
5722 lt_cv_file_magic_cmd=/usr/bin/file
5723 case $host_cpu in
5724 ia64*)
5725 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5726 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5727 ;;
5728 hppa*64*)
5729 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]'
5730 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5731 ;;
5732 *)
5733 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5734 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5735 ;;
5736 esac
5737 ;;
5738
5739 interix[3-9]*)
5740 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5741 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5742 ;;
5743
5744 irix5* | irix6* | nonstopux*)
5745 case $LD in
5746 *-32|*"-32 ") libmagic=32-bit;;
5747 *-n32|*"-n32 ") libmagic=N32;;
5748 *-64|*"-64 ") libmagic=64-bit;;
5749 *) libmagic=never-match;;
5750 esac
5751 lt_cv_deplibs_check_method=pass_all
5752 ;;
5753
5754 # This must be glibc/ELF.
5755 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5756 lt_cv_deplibs_check_method=pass_all
5757 ;;
5758
5759 netbsd*)
5760 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5761 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5762 else
5763 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5764 fi
5765 ;;
5766
5767 newos6*)
5768 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5769 lt_cv_file_magic_cmd=/usr/bin/file
5770 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5771 ;;
5772
5773 *nto* | *qnx*)
5774 lt_cv_deplibs_check_method=pass_all
5775 ;;
5776
5777 openbsd*)
5778 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5779 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5780 else
5781 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5782 fi
5783 ;;
5784
5785 osf3* | osf4* | osf5*)
5786 lt_cv_deplibs_check_method=pass_all
5787 ;;
5788
5789 rdos*)
5790 lt_cv_deplibs_check_method=pass_all
5791 ;;
5792
5793 solaris*)
5794 lt_cv_deplibs_check_method=pass_all
5795 ;;
5796
5797 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5798 lt_cv_deplibs_check_method=pass_all
5799 ;;
5800
5801 sysv4 | sysv4.3*)
5802 case $host_vendor in
5803 motorola)
5804 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]'
5805 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5806 ;;
5807 ncr)
5808 lt_cv_deplibs_check_method=pass_all
5809 ;;
5810 sequent)
5811 lt_cv_file_magic_cmd='/bin/file'
5812 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5813 ;;
5814 sni)
5815 lt_cv_file_magic_cmd='/bin/file'
5816 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5817 lt_cv_file_magic_test_file=/lib/libc.so
5818 ;;
5819 siemens)
5820 lt_cv_deplibs_check_method=pass_all
5821 ;;
5822 pc)
5823 lt_cv_deplibs_check_method=pass_all
5824 ;;
5825 esac
5826 ;;
5827
5828 tpf*)
5829 lt_cv_deplibs_check_method=pass_all
5830 ;;
5831 esac
5832
5833 fi
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5835 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5836
5837 file_magic_glob=
5838 want_nocaseglob=no
5839 if test "$build" = "$host"; then
5840 case $host_os in
5841 mingw* | pw32*)
5842 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5843 want_nocaseglob=yes
5844 else
5845 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5846 fi
5847 ;;
5848 esac
5849 fi
5850
5851 file_magic_cmd=$lt_cv_file_magic_cmd
5852 deplibs_check_method=$lt_cv_deplibs_check_method
5853 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876 if test -n "$ac_tool_prefix"; then
5877 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5878 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_DLLTOOL+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$DLLTOOL"; then
5885 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5889 do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898 done
5899 done
5900 IFS=$as_save_IFS
5901
5902 fi
5903 fi
5904 DLLTOOL=$ac_cv_prog_DLLTOOL
5905 if test -n "$DLLTOOL"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5907 $as_echo "$DLLTOOL" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5911 fi
5912
5913
5914 fi
5915 if test -z "$ac_cv_prog_DLLTOOL"; then
5916 ac_ct_DLLTOOL=$DLLTOOL
5917 # Extract the first word of "dlltool", so it can be a program name with args.
5918 set dummy dlltool; ac_word=$2
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920 $as_echo_n "checking for $ac_word... " >&6; }
5921 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5922 $as_echo_n "(cached) " >&6
5923 else
5924 if test -n "$ac_ct_DLLTOOL"; then
5925 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5926 else
5927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 for as_dir in $PATH
5929 do
5930 IFS=$as_save_IFS
5931 test -z "$as_dir" && as_dir=.
5932 for ac_exec_ext in '' $ac_executable_extensions; do
5933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5934 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5936 break 2
5937 fi
5938 done
5939 done
5940 IFS=$as_save_IFS
5941
5942 fi
5943 fi
5944 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5945 if test -n "$ac_ct_DLLTOOL"; then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5947 $as_echo "$ac_ct_DLLTOOL" >&6; }
5948 else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5950 $as_echo "no" >&6; }
5951 fi
5952
5953 if test "x$ac_ct_DLLTOOL" = x; then
5954 DLLTOOL="false"
5955 else
5956 case $cross_compiling:$ac_tool_warned in
5957 yes:)
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5959 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5960 ac_tool_warned=yes ;;
5961 esac
5962 DLLTOOL=$ac_ct_DLLTOOL
5963 fi
5964 else
5965 DLLTOOL="$ac_cv_prog_DLLTOOL"
5966 fi
5967
5968 test -z "$DLLTOOL" && DLLTOOL=dlltool
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5980 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5981 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 lt_cv_sharedlib_from_linklib_cmd='unknown'
5985
5986 case $host_os in
5987 cygwin* | mingw* | pw32* | cegcc*)
5988 # two different shell functions defined in ltmain.sh
5989 # decide which to use based on capabilities of $DLLTOOL
5990 case `$DLLTOOL --help 2>&1` in
5991 *--identify-strict*)
5992 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5993 ;;
5994 *)
5995 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5996 ;;
5997 esac
5998 ;;
5999 *)
6000 # fallback: assume linklib IS sharedlib
6001 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6002 ;;
6003 esac
6004
6005 fi
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6007 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6008 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6009 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6010
6011
6012
6013
6014
6015
6016
6017 if test -n "$ac_tool_prefix"; then
6018 for ac_prog in ar
6019 do
6020 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6021 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023 $as_echo_n "checking for $ac_word... " >&6; }
6024 if ${ac_cv_prog_AR+:} false; then :
6025 $as_echo_n "(cached) " >&6
6026 else
6027 if test -n "$AR"; then
6028 ac_cv_prog_AR="$AR" # Let the user override the test.
6029 else
6030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031 for as_dir in $PATH
6032 do
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
6036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6040 fi
6041 done
6042 done
6043 IFS=$as_save_IFS
6044
6045 fi
6046 fi
6047 AR=$ac_cv_prog_AR
6048 if test -n "$AR"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6050 $as_echo "$AR" >&6; }
6051 else
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053 $as_echo "no" >&6; }
6054 fi
6055
6056
6057 test -n "$AR" && break
6058 done
6059 fi
6060 if test -z "$AR"; then
6061 ac_ct_AR=$AR
6062 for ac_prog in ar
6063 do
6064 # Extract the first word of "$ac_prog", so it can be a program name with args.
6065 set dummy $ac_prog; ac_word=$2
6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 $as_echo_n "checking for $ac_word... " >&6; }
6068 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6069 $as_echo_n "(cached) " >&6
6070 else
6071 if test -n "$ac_ct_AR"; then
6072 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6073 else
6074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6075 for as_dir in $PATH
6076 do
6077 IFS=$as_save_IFS
6078 test -z "$as_dir" && as_dir=.
6079 for ac_exec_ext in '' $ac_executable_extensions; do
6080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6081 ac_cv_prog_ac_ct_AR="$ac_prog"
6082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6083 break 2
6084 fi
6085 done
6086 done
6087 IFS=$as_save_IFS
6088
6089 fi
6090 fi
6091 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6092 if test -n "$ac_ct_AR"; then
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6094 $as_echo "$ac_ct_AR" >&6; }
6095 else
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6097 $as_echo "no" >&6; }
6098 fi
6099
6100
6101 test -n "$ac_ct_AR" && break
6102 done
6103
6104 if test "x$ac_ct_AR" = x; then
6105 AR="false"
6106 else
6107 case $cross_compiling:$ac_tool_warned in
6108 yes:)
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned=yes ;;
6112 esac
6113 AR=$ac_ct_AR
6114 fi
6115 fi
6116
6117 : ${AR=ar}
6118 : ${AR_FLAGS=cru}
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6131 $as_echo_n "checking for archiver @FILE support... " >&6; }
6132 if ${lt_cv_ar_at_file+:} false; then :
6133 $as_echo_n "(cached) " >&6
6134 else
6135 lt_cv_ar_at_file=no
6136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6137 /* end confdefs.h. */
6138
6139 int
6140 main ()
6141 {
6142
6143 ;
6144 return 0;
6145 }
6146 _ACEOF
6147 if ac_fn_c_try_compile "$LINENO"; then :
6148 echo conftest.$ac_objext > conftest.lst
6149 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6150 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6151 (eval $lt_ar_try) 2>&5
6152 ac_status=$?
6153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6154 test $ac_status = 0; }
6155 if test "$ac_status" -eq 0; then
6156 # Ensure the archiver fails upon bogus file names.
6157 rm -f conftest.$ac_objext libconftest.a
6158 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6159 (eval $lt_ar_try) 2>&5
6160 ac_status=$?
6161 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6162 test $ac_status = 0; }
6163 if test "$ac_status" -ne 0; then
6164 lt_cv_ar_at_file=@
6165 fi
6166 fi
6167 rm -f conftest.* libconftest.a
6168
6169 fi
6170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6171
6172 fi
6173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6174 $as_echo "$lt_cv_ar_at_file" >&6; }
6175
6176 if test "x$lt_cv_ar_at_file" = xno; then
6177 archiver_list_spec=
6178 else
6179 archiver_list_spec=$lt_cv_ar_at_file
6180 fi
6181
6182
6183
6184
6185
6186
6187
6188 if test -n "$ac_tool_prefix"; then
6189 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6190 set dummy ${ac_tool_prefix}strip; ac_word=$2
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6192 $as_echo_n "checking for $ac_word... " >&6; }
6193 if ${ac_cv_prog_STRIP+:} false; then :
6194 $as_echo_n "(cached) " >&6
6195 else
6196 if test -n "$STRIP"; then
6197 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6198 else
6199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6200 for as_dir in $PATH
6201 do
6202 IFS=$as_save_IFS
6203 test -z "$as_dir" && as_dir=.
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6206 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214 fi
6215 fi
6216 STRIP=$ac_cv_prog_STRIP
6217 if test -n "$STRIP"; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6219 $as_echo "$STRIP" >&6; }
6220 else
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6222 $as_echo "no" >&6; }
6223 fi
6224
6225
6226 fi
6227 if test -z "$ac_cv_prog_STRIP"; then
6228 ac_ct_STRIP=$STRIP
6229 # Extract the first word of "strip", so it can be a program name with args.
6230 set dummy strip; ac_word=$2
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6232 $as_echo_n "checking for $ac_word... " >&6; }
6233 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6234 $as_echo_n "(cached) " >&6
6235 else
6236 if test -n "$ac_ct_STRIP"; then
6237 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6238 else
6239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6240 for as_dir in $PATH
6241 do
6242 IFS=$as_save_IFS
6243 test -z "$as_dir" && as_dir=.
6244 for ac_exec_ext in '' $ac_executable_extensions; do
6245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6246 ac_cv_prog_ac_ct_STRIP="strip"
6247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 break 2
6249 fi
6250 done
6251 done
6252 IFS=$as_save_IFS
6253
6254 fi
6255 fi
6256 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6257 if test -n "$ac_ct_STRIP"; then
6258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6259 $as_echo "$ac_ct_STRIP" >&6; }
6260 else
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6262 $as_echo "no" >&6; }
6263 fi
6264
6265 if test "x$ac_ct_STRIP" = x; then
6266 STRIP=":"
6267 else
6268 case $cross_compiling:$ac_tool_warned in
6269 yes:)
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6272 ac_tool_warned=yes ;;
6273 esac
6274 STRIP=$ac_ct_STRIP
6275 fi
6276 else
6277 STRIP="$ac_cv_prog_STRIP"
6278 fi
6279
6280 test -z "$STRIP" && STRIP=:
6281
6282
6283
6284
6285
6286
6287 if test -n "$ac_tool_prefix"; then
6288 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6289 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6291 $as_echo_n "checking for $ac_word... " >&6; }
6292 if ${ac_cv_prog_RANLIB+:} false; then :
6293 $as_echo_n "(cached) " >&6
6294 else
6295 if test -n "$RANLIB"; then
6296 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301 IFS=$as_save_IFS
6302 test -z "$as_dir" && as_dir=.
6303 for ac_exec_ext in '' $ac_executable_extensions; do
6304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6305 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 break 2
6308 fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 RANLIB=$ac_cv_prog_RANLIB
6316 if test -n "$RANLIB"; then
6317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6318 $as_echo "$RANLIB" >&6; }
6319 else
6320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6321 $as_echo "no" >&6; }
6322 fi
6323
6324
6325 fi
6326 if test -z "$ac_cv_prog_RANLIB"; then
6327 ac_ct_RANLIB=$RANLIB
6328 # Extract the first word of "ranlib", so it can be a program name with args.
6329 set dummy ranlib; ac_word=$2
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6331 $as_echo_n "checking for $ac_word... " >&6; }
6332 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6333 $as_echo_n "(cached) " >&6
6334 else
6335 if test -n "$ac_ct_RANLIB"; then
6336 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6337 else
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6345 ac_cv_prog_ac_ct_RANLIB="ranlib"
6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353 fi
6354 fi
6355 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6356 if test -n "$ac_ct_RANLIB"; then
6357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6358 $as_echo "$ac_ct_RANLIB" >&6; }
6359 else
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6361 $as_echo "no" >&6; }
6362 fi
6363
6364 if test "x$ac_ct_RANLIB" = x; then
6365 RANLIB=":"
6366 else
6367 case $cross_compiling:$ac_tool_warned in
6368 yes:)
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6371 ac_tool_warned=yes ;;
6372 esac
6373 RANLIB=$ac_ct_RANLIB
6374 fi
6375 else
6376 RANLIB="$ac_cv_prog_RANLIB"
6377 fi
6378
6379 test -z "$RANLIB" && RANLIB=:
6380
6381
6382
6383
6384
6385
6386 # Determine commands to create old-style static archives.
6387 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6388 old_postinstall_cmds='chmod 644 $oldlib'
6389 old_postuninstall_cmds=
6390
6391 if test -n "$RANLIB"; then
6392 case $host_os in
6393 openbsd*)
6394 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6395 ;;
6396 *)
6397 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6398 ;;
6399 esac
6400 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6401 fi
6402
6403 case $host_os in
6404 darwin*)
6405 lock_old_archive_extraction=yes ;;
6406 *)
6407 lock_old_archive_extraction=no ;;
6408 esac
6409
6410
6411
6412
6413
6414
6415
6416
6417
6418
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448 # If no C compiler was specified, use CC.
6449 LTCC=${LTCC-"$CC"}
6450
6451 # If no C compiler flags were specified, use CFLAGS.
6452 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6453
6454 # Allow CC to be a program name with arguments.
6455 compiler=$CC
6456
6457
6458 # Check for command to grab the raw symbol name followed by C symbol from nm.
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6460 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6461 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464
6465 # These are sane defaults that work on at least a few old systems.
6466 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6467
6468 # Character class describing NM global symbol codes.
6469 symcode='[BCDEGRST]'
6470
6471 # Regexp to match symbols that can be accessed directly from C.
6472 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6473
6474 # Define system-specific variables.
6475 case $host_os in
6476 aix*)
6477 symcode='[BCDT]'
6478 ;;
6479 cygwin* | mingw* | pw32* | cegcc*)
6480 symcode='[ABCDGISTW]'
6481 ;;
6482 hpux*)
6483 if test "$host_cpu" = ia64; then
6484 symcode='[ABCDEGRST]'
6485 fi
6486 ;;
6487 irix* | nonstopux*)
6488 symcode='[BCDEGRST]'
6489 ;;
6490 osf*)
6491 symcode='[BCDEGQRST]'
6492 ;;
6493 solaris*)
6494 symcode='[BDRT]'
6495 ;;
6496 sco3.2v5*)
6497 symcode='[DT]'
6498 ;;
6499 sysv4.2uw2*)
6500 symcode='[DT]'
6501 ;;
6502 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6503 symcode='[ABDT]'
6504 ;;
6505 sysv4)
6506 symcode='[DFNSTU]'
6507 ;;
6508 esac
6509
6510 # If we're using GNU nm, then use its standard symbol codes.
6511 case `$NM -V 2>&1` in
6512 *GNU* | *'with BFD'*)
6513 symcode='[ABCDGIRSTW]' ;;
6514 esac
6515
6516 # Transform an extracted symbol line into a proper C declaration.
6517 # Some systems (esp. on ia64) link data and code symbols differently,
6518 # so use this general approach.
6519 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6520
6521 # Transform an extracted symbol line into symbol name and symbol address
6522 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6523 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'"
6524
6525 # Handle CRLF in mingw tool chain
6526 opt_cr=
6527 case $build_os in
6528 mingw*)
6529 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6530 ;;
6531 esac
6532
6533 # Try without a prefix underscore, then with it.
6534 for ac_symprfx in "" "_"; do
6535
6536 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6537 symxfrm="\\1 $ac_symprfx\\2 \\2"
6538
6539 # Write the raw and C identifiers.
6540 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6541 # Fake it for dumpbin and say T for any non-static function
6542 # and D for any global variable.
6543 # Also find C++ and __fastcall symbols from MSVC++,
6544 # which start with @ or ?.
6545 lt_cv_sys_global_symbol_pipe="$AWK '"\
6546 " {last_section=section; section=\$ 3};"\
6547 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6548 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6549 " \$ 0!~/External *\|/{next};"\
6550 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6551 " {if(hide[section]) next};"\
6552 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6553 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6554 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6555 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6556 " ' prfx=^$ac_symprfx"
6557 else
6558 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6559 fi
6560 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6561
6562 # Check to see that the pipe works correctly.
6563 pipe_works=no
6564
6565 rm -f conftest*
6566 cat > conftest.$ac_ext <<_LT_EOF
6567 #ifdef __cplusplus
6568 extern "C" {
6569 #endif
6570 char nm_test_var;
6571 void nm_test_func(void);
6572 void nm_test_func(void){}
6573 #ifdef __cplusplus
6574 }
6575 #endif
6576 int main(){nm_test_var='a';nm_test_func();return(0);}
6577 _LT_EOF
6578
6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6580 (eval $ac_compile) 2>&5
6581 ac_status=$?
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583 test $ac_status = 0; }; then
6584 # Now try to grab the symbols.
6585 nlist=conftest.nm
6586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6587 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6588 ac_status=$?
6589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6590 test $ac_status = 0; } && test -s "$nlist"; then
6591 # Try sorting and uniquifying the output.
6592 if sort "$nlist" | uniq > "$nlist"T; then
6593 mv -f "$nlist"T "$nlist"
6594 else
6595 rm -f "$nlist"T
6596 fi
6597
6598 # Make sure that we snagged all the symbols we need.
6599 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6600 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6601 cat <<_LT_EOF > conftest.$ac_ext
6602 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6603 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6604 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6605 relocations are performed -- see ld's documentation on pseudo-relocs. */
6606 # define LT_DLSYM_CONST
6607 #elif defined(__osf__)
6608 /* This system does not cope well with relocations in const data. */
6609 # define LT_DLSYM_CONST
6610 #else
6611 # define LT_DLSYM_CONST const
6612 #endif
6613
6614 #ifdef __cplusplus
6615 extern "C" {
6616 #endif
6617
6618 _LT_EOF
6619 # Now generate the symbol file.
6620 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6621
6622 cat <<_LT_EOF >> conftest.$ac_ext
6623
6624 /* The mapping between symbol names and symbols. */
6625 LT_DLSYM_CONST struct {
6626 const char *name;
6627 void *address;
6628 }
6629 lt__PROGRAM__LTX_preloaded_symbols[] =
6630 {
6631 { "@PROGRAM@", (void *) 0 },
6632 _LT_EOF
6633 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6634 cat <<\_LT_EOF >> conftest.$ac_ext
6635 {0, (void *) 0}
6636 };
6637
6638 /* This works around a problem in FreeBSD linker */
6639 #ifdef FREEBSD_WORKAROUND
6640 static const void *lt_preloaded_setup() {
6641 return lt__PROGRAM__LTX_preloaded_symbols;
6642 }
6643 #endif
6644
6645 #ifdef __cplusplus
6646 }
6647 #endif
6648 _LT_EOF
6649 # Now try linking the two files.
6650 mv conftest.$ac_objext conftstm.$ac_objext
6651 lt_globsym_save_LIBS=$LIBS
6652 lt_globsym_save_CFLAGS=$CFLAGS
6653 LIBS="conftstm.$ac_objext"
6654 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6656 (eval $ac_link) 2>&5
6657 ac_status=$?
6658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6660 pipe_works=yes
6661 fi
6662 LIBS=$lt_globsym_save_LIBS
6663 CFLAGS=$lt_globsym_save_CFLAGS
6664 else
6665 echo "cannot find nm_test_func in $nlist" >&5
6666 fi
6667 else
6668 echo "cannot find nm_test_var in $nlist" >&5
6669 fi
6670 else
6671 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6672 fi
6673 else
6674 echo "$progname: failed program was:" >&5
6675 cat conftest.$ac_ext >&5
6676 fi
6677 rm -rf conftest* conftst*
6678
6679 # Do not use the global_symbol_pipe unless it works.
6680 if test "$pipe_works" = yes; then
6681 break
6682 else
6683 lt_cv_sys_global_symbol_pipe=
6684 fi
6685 done
6686
6687 fi
6688
6689 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6690 lt_cv_sys_global_symbol_to_cdecl=
6691 fi
6692 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6694 $as_echo "failed" >&6; }
6695 else
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6697 $as_echo "ok" >&6; }
6698 fi
6699
6700 # Response file support.
6701 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6702 nm_file_list_spec='@'
6703 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6704 nm_file_list_spec='@'
6705 fi
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6734 $as_echo_n "checking for sysroot... " >&6; }
6735
6736 # Check whether --with-sysroot was given.
6737 if test "${with_sysroot+set}" = set; then :
6738 withval=$with_sysroot;
6739 else
6740 with_sysroot=no
6741 fi
6742
6743
6744 lt_sysroot=
6745 case ${with_sysroot} in #(
6746 yes)
6747 if test "$GCC" = yes; then
6748 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6749 fi
6750 ;; #(
6751 /*)
6752 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6753 ;; #(
6754 no|'')
6755 ;; #(
6756 *)
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6758 $as_echo "${with_sysroot}" >&6; }
6759 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6760 ;;
6761 esac
6762
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6764 $as_echo "${lt_sysroot:-no}" >&6; }
6765
6766
6767
6768
6769
6770 # Check whether --enable-libtool-lock was given.
6771 if test "${enable_libtool_lock+set}" = set; then :
6772 enableval=$enable_libtool_lock;
6773 fi
6774
6775 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6776
6777 # Some flags need to be propagated to the compiler or linker for good
6778 # libtool support.
6779 case $host in
6780 ia64-*-hpux*)
6781 # Find out which ABI we are using.
6782 echo 'int i;' > conftest.$ac_ext
6783 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6784 (eval $ac_compile) 2>&5
6785 ac_status=$?
6786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6787 test $ac_status = 0; }; then
6788 case `/usr/bin/file conftest.$ac_objext` in
6789 *ELF-32*)
6790 HPUX_IA64_MODE="32"
6791 ;;
6792 *ELF-64*)
6793 HPUX_IA64_MODE="64"
6794 ;;
6795 esac
6796 fi
6797 rm -rf conftest*
6798 ;;
6799 *-*-irix6*)
6800 # Find out which ABI we are using.
6801 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6803 (eval $ac_compile) 2>&5
6804 ac_status=$?
6805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806 test $ac_status = 0; }; then
6807 if test "$lt_cv_prog_gnu_ld" = yes; then
6808 case `/usr/bin/file conftest.$ac_objext` in
6809 *32-bit*)
6810 LD="${LD-ld} -melf32bsmip"
6811 ;;
6812 *N32*)
6813 LD="${LD-ld} -melf32bmipn32"
6814 ;;
6815 *64-bit*)
6816 LD="${LD-ld} -melf64bmip"
6817 ;;
6818 esac
6819 else
6820 case `/usr/bin/file conftest.$ac_objext` in
6821 *32-bit*)
6822 LD="${LD-ld} -32"
6823 ;;
6824 *N32*)
6825 LD="${LD-ld} -n32"
6826 ;;
6827 *64-bit*)
6828 LD="${LD-ld} -64"
6829 ;;
6830 esac
6831 fi
6832 fi
6833 rm -rf conftest*
6834 ;;
6835
6836 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6837 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6838 # Find out which ABI we are using.
6839 echo 'int i;' > conftest.$ac_ext
6840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6841 (eval $ac_compile) 2>&5
6842 ac_status=$?
6843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6844 test $ac_status = 0; }; then
6845 case `/usr/bin/file conftest.o` in
6846 *32-bit*)
6847 case $host in
6848 x86_64-*kfreebsd*-gnu)
6849 LD="${LD-ld} -m elf_i386_fbsd"
6850 ;;
6851 x86_64-*linux*)
6852 LD="${LD-ld} -m elf_i386"
6853 ;;
6854 ppc64-*linux*|powerpc64-*linux*)
6855 LD="${LD-ld} -m elf32ppclinux"
6856 ;;
6857 s390x-*linux*)
6858 LD="${LD-ld} -m elf_s390"
6859 ;;
6860 sparc64-*linux*)
6861 LD="${LD-ld} -m elf32_sparc"
6862 ;;
6863 esac
6864 ;;
6865 *64-bit*)
6866 case $host in
6867 x86_64-*kfreebsd*-gnu)
6868 LD="${LD-ld} -m elf_x86_64_fbsd"
6869 ;;
6870 x86_64-*linux*)
6871 LD="${LD-ld} -m elf_x86_64"
6872 ;;
6873 ppc*-*linux*|powerpc*-*linux*)
6874 LD="${LD-ld} -m elf64ppc"
6875 ;;
6876 s390*-*linux*|s390*-*tpf*)
6877 LD="${LD-ld} -m elf64_s390"
6878 ;;
6879 sparc*-*linux*)
6880 LD="${LD-ld} -m elf64_sparc"
6881 ;;
6882 esac
6883 ;;
6884 esac
6885 fi
6886 rm -rf conftest*
6887 ;;
6888
6889 *-*-sco3.2v5*)
6890 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6891 SAVE_CFLAGS="$CFLAGS"
6892 CFLAGS="$CFLAGS -belf"
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6894 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6895 if ${lt_cv_cc_needs_belf+:} false; then :
6896 $as_echo_n "(cached) " >&6
6897 else
6898 ac_ext=c
6899 ac_cpp='$CPP $CPPFLAGS'
6900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6903
6904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6905 /* end confdefs.h. */
6906
6907 int
6908 main ()
6909 {
6910
6911 ;
6912 return 0;
6913 }
6914 _ACEOF
6915 if ac_fn_c_try_link "$LINENO"; then :
6916 lt_cv_cc_needs_belf=yes
6917 else
6918 lt_cv_cc_needs_belf=no
6919 fi
6920 rm -f core conftest.err conftest.$ac_objext \
6921 conftest$ac_exeext conftest.$ac_ext
6922 ac_ext=c
6923 ac_cpp='$CPP $CPPFLAGS'
6924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6927
6928 fi
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6930 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6931 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6932 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6933 CFLAGS="$SAVE_CFLAGS"
6934 fi
6935 ;;
6936 *-*solaris*)
6937 # Find out which ABI we are using.
6938 echo 'int i;' > conftest.$ac_ext
6939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6940 (eval $ac_compile) 2>&5
6941 ac_status=$?
6942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6943 test $ac_status = 0; }; then
6944 case `/usr/bin/file conftest.o` in
6945 *64-bit*)
6946 case $lt_cv_prog_gnu_ld in
6947 yes*)
6948 case $host in
6949 i?86-*-solaris*)
6950 LD="${LD-ld} -m elf_x86_64"
6951 ;;
6952 sparc*-*-solaris*)
6953 LD="${LD-ld} -m elf64_sparc"
6954 ;;
6955 esac
6956 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6957 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6958 LD="${LD-ld}_sol2"
6959 fi
6960 ;;
6961 *)
6962 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6963 LD="${LD-ld} -64"
6964 fi
6965 ;;
6966 esac
6967 ;;
6968 esac
6969 fi
6970 rm -rf conftest*
6971 ;;
6972 esac
6973
6974 need_locks="$enable_libtool_lock"
6975
6976 if test -n "$ac_tool_prefix"; then
6977 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6978 set dummy ${ac_tool_prefix}mt; ac_word=$2
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6980 $as_echo_n "checking for $ac_word... " >&6; }
6981 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6982 $as_echo_n "(cached) " >&6
6983 else
6984 if test -n "$MANIFEST_TOOL"; then
6985 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6986 else
6987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6988 for as_dir in $PATH
6989 do
6990 IFS=$as_save_IFS
6991 test -z "$as_dir" && as_dir=.
6992 for ac_exec_ext in '' $ac_executable_extensions; do
6993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6994 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996 break 2
6997 fi
6998 done
6999 done
7000 IFS=$as_save_IFS
7001
7002 fi
7003 fi
7004 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7005 if test -n "$MANIFEST_TOOL"; then
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7007 $as_echo "$MANIFEST_TOOL" >&6; }
7008 else
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 $as_echo "no" >&6; }
7011 fi
7012
7013
7014 fi
7015 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7016 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7017 # Extract the first word of "mt", so it can be a program name with args.
7018 set dummy mt; ac_word=$2
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7020 $as_echo_n "checking for $ac_word... " >&6; }
7021 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7022 $as_echo_n "(cached) " >&6
7023 else
7024 if test -n "$ac_ct_MANIFEST_TOOL"; then
7025 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7026 else
7027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7028 for as_dir in $PATH
7029 do
7030 IFS=$as_save_IFS
7031 test -z "$as_dir" && as_dir=.
7032 for ac_exec_ext in '' $ac_executable_extensions; do
7033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7034 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 break 2
7037 fi
7038 done
7039 done
7040 IFS=$as_save_IFS
7041
7042 fi
7043 fi
7044 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7045 if test -n "$ac_ct_MANIFEST_TOOL"; then
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7047 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7048 else
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 $as_echo "no" >&6; }
7051 fi
7052
7053 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7054 MANIFEST_TOOL=":"
7055 else
7056 case $cross_compiling:$ac_tool_warned in
7057 yes:)
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7060 ac_tool_warned=yes ;;
7061 esac
7062 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7063 fi
7064 else
7065 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7066 fi
7067
7068 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7070 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7071 if ${lt_cv_path_mainfest_tool+:} false; then :
7072 $as_echo_n "(cached) " >&6
7073 else
7074 lt_cv_path_mainfest_tool=no
7075 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7076 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7077 cat conftest.err >&5
7078 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7079 lt_cv_path_mainfest_tool=yes
7080 fi
7081 rm -f conftest*
7082 fi
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7084 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7085 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7086 MANIFEST_TOOL=:
7087 fi
7088
7089
7090
7091
7092
7093
7094 case $host_os in
7095 rhapsody* | darwin*)
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$DSYMUTIL"; then
7105 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7125 if test -n "$DSYMUTIL"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7127 $as_echo "$DSYMUTIL" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134 fi
7135 if test -z "$ac_cv_prog_DSYMUTIL"; then
7136 ac_ct_DSYMUTIL=$DSYMUTIL
7137 # Extract the first word of "dsymutil", so it can be a program name with args.
7138 set dummy dsymutil; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$ac_ct_DSYMUTIL"; then
7145 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7165 if test -n "$ac_ct_DSYMUTIL"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7167 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173 if test "x$ac_ct_DSYMUTIL" = x; then
7174 DSYMUTIL=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 DSYMUTIL=$ac_ct_DSYMUTIL
7183 fi
7184 else
7185 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7186 fi
7187
7188 if test -n "$ac_tool_prefix"; then
7189 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7190 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7192 $as_echo_n "checking for $ac_word... " >&6; }
7193 if ${ac_cv_prog_NMEDIT+:} false; then :
7194 $as_echo_n "(cached) " >&6
7195 else
7196 if test -n "$NMEDIT"; then
7197 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7198 else
7199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7200 for as_dir in $PATH
7201 do
7202 IFS=$as_save_IFS
7203 test -z "$as_dir" && as_dir=.
7204 for ac_exec_ext in '' $ac_executable_extensions; do
7205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7206 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 break 2
7209 fi
7210 done
7211 done
7212 IFS=$as_save_IFS
7213
7214 fi
7215 fi
7216 NMEDIT=$ac_cv_prog_NMEDIT
7217 if test -n "$NMEDIT"; then
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7219 $as_echo "$NMEDIT" >&6; }
7220 else
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7222 $as_echo "no" >&6; }
7223 fi
7224
7225
7226 fi
7227 if test -z "$ac_cv_prog_NMEDIT"; then
7228 ac_ct_NMEDIT=$NMEDIT
7229 # Extract the first word of "nmedit", so it can be a program name with args.
7230 set dummy nmedit; ac_word=$2
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7232 $as_echo_n "checking for $ac_word... " >&6; }
7233 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7234 $as_echo_n "(cached) " >&6
7235 else
7236 if test -n "$ac_ct_NMEDIT"; then
7237 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7238 else
7239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7240 for as_dir in $PATH
7241 do
7242 IFS=$as_save_IFS
7243 test -z "$as_dir" && as_dir=.
7244 for ac_exec_ext in '' $ac_executable_extensions; do
7245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7246 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7248 break 2
7249 fi
7250 done
7251 done
7252 IFS=$as_save_IFS
7253
7254 fi
7255 fi
7256 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7257 if test -n "$ac_ct_NMEDIT"; then
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7259 $as_echo "$ac_ct_NMEDIT" >&6; }
7260 else
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7262 $as_echo "no" >&6; }
7263 fi
7264
7265 if test "x$ac_ct_NMEDIT" = x; then
7266 NMEDIT=":"
7267 else
7268 case $cross_compiling:$ac_tool_warned in
7269 yes:)
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7272 ac_tool_warned=yes ;;
7273 esac
7274 NMEDIT=$ac_ct_NMEDIT
7275 fi
7276 else
7277 NMEDIT="$ac_cv_prog_NMEDIT"
7278 fi
7279
7280 if test -n "$ac_tool_prefix"; then
7281 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7282 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7284 $as_echo_n "checking for $ac_word... " >&6; }
7285 if ${ac_cv_prog_LIPO+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 if test -n "$LIPO"; then
7289 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7290 else
7291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7292 for as_dir in $PATH
7293 do
7294 IFS=$as_save_IFS
7295 test -z "$as_dir" && as_dir=.
7296 for ac_exec_ext in '' $ac_executable_extensions; do
7297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7298 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 break 2
7301 fi
7302 done
7303 done
7304 IFS=$as_save_IFS
7305
7306 fi
7307 fi
7308 LIPO=$ac_cv_prog_LIPO
7309 if test -n "$LIPO"; then
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7311 $as_echo "$LIPO" >&6; }
7312 else
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7314 $as_echo "no" >&6; }
7315 fi
7316
7317
7318 fi
7319 if test -z "$ac_cv_prog_LIPO"; then
7320 ac_ct_LIPO=$LIPO
7321 # Extract the first word of "lipo", so it can be a program name with args.
7322 set dummy lipo; ac_word=$2
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7324 $as_echo_n "checking for $ac_word... " >&6; }
7325 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test -n "$ac_ct_LIPO"; then
7329 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7330 else
7331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7332 for as_dir in $PATH
7333 do
7334 IFS=$as_save_IFS
7335 test -z "$as_dir" && as_dir=.
7336 for ac_exec_ext in '' $ac_executable_extensions; do
7337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7338 ac_cv_prog_ac_ct_LIPO="lipo"
7339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7340 break 2
7341 fi
7342 done
7343 done
7344 IFS=$as_save_IFS
7345
7346 fi
7347 fi
7348 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7349 if test -n "$ac_ct_LIPO"; then
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7351 $as_echo "$ac_ct_LIPO" >&6; }
7352 else
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7354 $as_echo "no" >&6; }
7355 fi
7356
7357 if test "x$ac_ct_LIPO" = x; then
7358 LIPO=":"
7359 else
7360 case $cross_compiling:$ac_tool_warned in
7361 yes:)
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7364 ac_tool_warned=yes ;;
7365 esac
7366 LIPO=$ac_ct_LIPO
7367 fi
7368 else
7369 LIPO="$ac_cv_prog_LIPO"
7370 fi
7371
7372 if test -n "$ac_tool_prefix"; then
7373 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7374 set dummy ${ac_tool_prefix}otool; ac_word=$2
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7376 $as_echo_n "checking for $ac_word... " >&6; }
7377 if ${ac_cv_prog_OTOOL+:} false; then :
7378 $as_echo_n "(cached) " >&6
7379 else
7380 if test -n "$OTOOL"; then
7381 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7382 else
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 for as_dir in $PATH
7385 do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7390 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7392 break 2
7393 fi
7394 done
7395 done
7396 IFS=$as_save_IFS
7397
7398 fi
7399 fi
7400 OTOOL=$ac_cv_prog_OTOOL
7401 if test -n "$OTOOL"; then
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7403 $as_echo "$OTOOL" >&6; }
7404 else
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 $as_echo "no" >&6; }
7407 fi
7408
7409
7410 fi
7411 if test -z "$ac_cv_prog_OTOOL"; then
7412 ac_ct_OTOOL=$OTOOL
7413 # Extract the first word of "otool", so it can be a program name with args.
7414 set dummy otool; ac_word=$2
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 $as_echo_n "checking for $ac_word... " >&6; }
7417 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7418 $as_echo_n "(cached) " >&6
7419 else
7420 if test -n "$ac_ct_OTOOL"; then
7421 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7422 else
7423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7424 for as_dir in $PATH
7425 do
7426 IFS=$as_save_IFS
7427 test -z "$as_dir" && as_dir=.
7428 for ac_exec_ext in '' $ac_executable_extensions; do
7429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7430 ac_cv_prog_ac_ct_OTOOL="otool"
7431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7432 break 2
7433 fi
7434 done
7435 done
7436 IFS=$as_save_IFS
7437
7438 fi
7439 fi
7440 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7441 if test -n "$ac_ct_OTOOL"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7443 $as_echo "$ac_ct_OTOOL" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7447 fi
7448
7449 if test "x$ac_ct_OTOOL" = x; then
7450 OTOOL=":"
7451 else
7452 case $cross_compiling:$ac_tool_warned in
7453 yes:)
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7456 ac_tool_warned=yes ;;
7457 esac
7458 OTOOL=$ac_ct_OTOOL
7459 fi
7460 else
7461 OTOOL="$ac_cv_prog_OTOOL"
7462 fi
7463
7464 if test -n "$ac_tool_prefix"; then
7465 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7466 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7468 $as_echo_n "checking for $ac_word... " >&6; }
7469 if ${ac_cv_prog_OTOOL64+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 if test -n "$OTOOL64"; then
7473 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7474 else
7475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7476 for as_dir in $PATH
7477 do
7478 IFS=$as_save_IFS
7479 test -z "$as_dir" && as_dir=.
7480 for ac_exec_ext in '' $ac_executable_extensions; do
7481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7482 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 break 2
7485 fi
7486 done
7487 done
7488 IFS=$as_save_IFS
7489
7490 fi
7491 fi
7492 OTOOL64=$ac_cv_prog_OTOOL64
7493 if test -n "$OTOOL64"; then
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7495 $as_echo "$OTOOL64" >&6; }
7496 else
7497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7498 $as_echo "no" >&6; }
7499 fi
7500
7501
7502 fi
7503 if test -z "$ac_cv_prog_OTOOL64"; then
7504 ac_ct_OTOOL64=$OTOOL64
7505 # Extract the first word of "otool64", so it can be a program name with args.
7506 set dummy otool64; ac_word=$2
7507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7508 $as_echo_n "checking for $ac_word... " >&6; }
7509 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7510 $as_echo_n "(cached) " >&6
7511 else
7512 if test -n "$ac_ct_OTOOL64"; then
7513 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7514 else
7515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7516 for as_dir in $PATH
7517 do
7518 IFS=$as_save_IFS
7519 test -z "$as_dir" && as_dir=.
7520 for ac_exec_ext in '' $ac_executable_extensions; do
7521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7522 ac_cv_prog_ac_ct_OTOOL64="otool64"
7523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7524 break 2
7525 fi
7526 done
7527 done
7528 IFS=$as_save_IFS
7529
7530 fi
7531 fi
7532 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7533 if test -n "$ac_ct_OTOOL64"; then
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7535 $as_echo "$ac_ct_OTOOL64" >&6; }
7536 else
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7538 $as_echo "no" >&6; }
7539 fi
7540
7541 if test "x$ac_ct_OTOOL64" = x; then
7542 OTOOL64=":"
7543 else
7544 case $cross_compiling:$ac_tool_warned in
7545 yes:)
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7548 ac_tool_warned=yes ;;
7549 esac
7550 OTOOL64=$ac_ct_OTOOL64
7551 fi
7552 else
7553 OTOOL64="$ac_cv_prog_OTOOL64"
7554 fi
7555
7556
7557
7558
7559
7560
7561
7562
7563
7564
7565
7566
7567
7568
7569
7570
7571
7572
7573
7574
7575
7576
7577
7578
7579
7580
7581
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7583 $as_echo_n "checking for -single_module linker flag... " >&6; }
7584 if ${lt_cv_apple_cc_single_mod+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 lt_cv_apple_cc_single_mod=no
7588 if test -z "${LT_MULTI_MODULE}"; then
7589 # By default we will add the -single_module flag. You can override
7590 # by either setting the environment variable LT_MULTI_MODULE
7591 # non-empty at configure time, or by adding -multi_module to the
7592 # link flags.
7593 rm -rf libconftest.dylib*
7594 echo "int foo(void){return 1;}" > conftest.c
7595 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7596 -dynamiclib -Wl,-single_module conftest.c" >&5
7597 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7598 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7599 _lt_result=$?
7600 # If there is a non-empty error log, and "single_module"
7601 # appears in it, assume the flag caused a linker warning
7602 if test -s conftest.err && $GREP single_module conftest.err; then
7603 cat conftest.err >&5
7604 # Otherwise, if the output was created with a 0 exit code from
7605 # the compiler, it worked.
7606 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7607 lt_cv_apple_cc_single_mod=yes
7608 else
7609 cat conftest.err >&5
7610 fi
7611 rm -rf libconftest.dylib*
7612 rm -f conftest.*
7613 fi
7614 fi
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7616 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7617
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7619 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7620 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 lt_cv_ld_exported_symbols_list=no
7624 save_LDFLAGS=$LDFLAGS
7625 echo "_main" > conftest.sym
7626 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7628 /* end confdefs.h. */
7629
7630 int
7631 main ()
7632 {
7633
7634 ;
7635 return 0;
7636 }
7637 _ACEOF
7638 if ac_fn_c_try_link "$LINENO"; then :
7639 lt_cv_ld_exported_symbols_list=yes
7640 else
7641 lt_cv_ld_exported_symbols_list=no
7642 fi
7643 rm -f core conftest.err conftest.$ac_objext \
7644 conftest$ac_exeext conftest.$ac_ext
7645 LDFLAGS="$save_LDFLAGS"
7646
7647 fi
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7649 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7650
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7652 $as_echo_n "checking for -force_load linker flag... " >&6; }
7653 if ${lt_cv_ld_force_load+:} false; then :
7654 $as_echo_n "(cached) " >&6
7655 else
7656 lt_cv_ld_force_load=no
7657 cat > conftest.c << _LT_EOF
7658 int forced_loaded() { return 2;}
7659 _LT_EOF
7660 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7661 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7662 echo "$AR cru libconftest.a conftest.o" >&5
7663 $AR cru libconftest.a conftest.o 2>&5
7664 echo "$RANLIB libconftest.a" >&5
7665 $RANLIB libconftest.a 2>&5
7666 cat > conftest.c << _LT_EOF
7667 int main() { return 0;}
7668 _LT_EOF
7669 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7670 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7671 _lt_result=$?
7672 if test -s conftest.err && $GREP force_load conftest.err; then
7673 cat conftest.err >&5
7674 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7675 lt_cv_ld_force_load=yes
7676 else
7677 cat conftest.err >&5
7678 fi
7679 rm -f conftest.err libconftest.a conftest conftest.c
7680 rm -rf conftest.dSYM
7681
7682 fi
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7684 $as_echo "$lt_cv_ld_force_load" >&6; }
7685 case $host_os in
7686 rhapsody* | darwin1.[012])
7687 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7688 darwin1.*)
7689 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7690 darwin*) # darwin 5.x on
7691 # if running on 10.5 or later, the deployment target defaults
7692 # to the OS version, if on x86, and 10.4, the deployment
7693 # target defaults to 10.4. Don't you love it?
7694 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7695 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7696 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7697 10.[012]*)
7698 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7699 10.*)
7700 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7701 esac
7702 ;;
7703 esac
7704 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7705 _lt_dar_single_mod='$single_module'
7706 fi
7707 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7708 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7709 else
7710 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7711 fi
7712 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7713 _lt_dsymutil='~$DSYMUTIL $lib || :'
7714 else
7715 _lt_dsymutil=
7716 fi
7717 ;;
7718 esac
7719
7720 ac_ext=c
7721 ac_cpp='$CPP $CPPFLAGS'
7722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7726 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7727 # On Suns, sometimes $CPP names a directory.
7728 if test -n "$CPP" && test -d "$CPP"; then
7729 CPP=
7730 fi
7731 if test -z "$CPP"; then
7732 if ${ac_cv_prog_CPP+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 # Double quotes because CPP needs to be expanded
7736 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7737 do
7738 ac_preproc_ok=false
7739 for ac_c_preproc_warn_flag in '' yes
7740 do
7741 # Use a header file that comes with gcc, so configuring glibc
7742 # with a fresh cross-compiler works.
7743 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7744 # <limits.h> exists even on freestanding compilers.
7745 # On the NeXT, cc -E runs the code through the compiler's parser,
7746 # not just through cpp. "Syntax error" is here to catch this case.
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7748 /* end confdefs.h. */
7749 #ifdef __STDC__
7750 # include <limits.h>
7751 #else
7752 # include <assert.h>
7753 #endif
7754 Syntax error
7755 _ACEOF
7756 if ac_fn_c_try_cpp "$LINENO"; then :
7757
7758 else
7759 # Broken: fails on valid input.
7760 continue
7761 fi
7762 rm -f conftest.err conftest.i conftest.$ac_ext
7763
7764 # OK, works on sane cases. Now check whether nonexistent headers
7765 # can be detected and how.
7766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7767 /* end confdefs.h. */
7768 #include <ac_nonexistent.h>
7769 _ACEOF
7770 if ac_fn_c_try_cpp "$LINENO"; then :
7771 # Broken: success on invalid input.
7772 continue
7773 else
7774 # Passes both tests.
7775 ac_preproc_ok=:
7776 break
7777 fi
7778 rm -f conftest.err conftest.i conftest.$ac_ext
7779
7780 done
7781 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7782 rm -f conftest.i conftest.err conftest.$ac_ext
7783 if $ac_preproc_ok; then :
7784 break
7785 fi
7786
7787 done
7788 ac_cv_prog_CPP=$CPP
7789
7790 fi
7791 CPP=$ac_cv_prog_CPP
7792 else
7793 ac_cv_prog_CPP=$CPP
7794 fi
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7796 $as_echo "$CPP" >&6; }
7797 ac_preproc_ok=false
7798 for ac_c_preproc_warn_flag in '' yes
7799 do
7800 # Use a header file that comes with gcc, so configuring glibc
7801 # with a fresh cross-compiler works.
7802 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7803 # <limits.h> exists even on freestanding compilers.
7804 # On the NeXT, cc -E runs the code through the compiler's parser,
7805 # not just through cpp. "Syntax error" is here to catch this case.
7806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7807 /* end confdefs.h. */
7808 #ifdef __STDC__
7809 # include <limits.h>
7810 #else
7811 # include <assert.h>
7812 #endif
7813 Syntax error
7814 _ACEOF
7815 if ac_fn_c_try_cpp "$LINENO"; then :
7816
7817 else
7818 # Broken: fails on valid input.
7819 continue
7820 fi
7821 rm -f conftest.err conftest.i conftest.$ac_ext
7822
7823 # OK, works on sane cases. Now check whether nonexistent headers
7824 # can be detected and how.
7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7826 /* end confdefs.h. */
7827 #include <ac_nonexistent.h>
7828 _ACEOF
7829 if ac_fn_c_try_cpp "$LINENO"; then :
7830 # Broken: success on invalid input.
7831 continue
7832 else
7833 # Passes both tests.
7834 ac_preproc_ok=:
7835 break
7836 fi
7837 rm -f conftest.err conftest.i conftest.$ac_ext
7838
7839 done
7840 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7841 rm -f conftest.i conftest.err conftest.$ac_ext
7842 if $ac_preproc_ok; then :
7843
7844 else
7845 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7846 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7847 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7848 See \`config.log' for more details" "$LINENO" 5; }
7849 fi
7850
7851 ac_ext=c
7852 ac_cpp='$CPP $CPPFLAGS'
7853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7856
7857
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7859 $as_echo_n "checking for ANSI C header files... " >&6; }
7860 if ${ac_cv_header_stdc+:} false; then :
7861 $as_echo_n "(cached) " >&6
7862 else
7863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7864 /* end confdefs.h. */
7865 #include <stdlib.h>
7866 #include <stdarg.h>
7867 #include <string.h>
7868 #include <float.h>
7869
7870 int
7871 main ()
7872 {
7873
7874 ;
7875 return 0;
7876 }
7877 _ACEOF
7878 if ac_fn_c_try_compile "$LINENO"; then :
7879 ac_cv_header_stdc=yes
7880 else
7881 ac_cv_header_stdc=no
7882 fi
7883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7884
7885 if test $ac_cv_header_stdc = yes; then
7886 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7889 #include <string.h>
7890
7891 _ACEOF
7892 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7893 $EGREP "memchr" >/dev/null 2>&1; then :
7894
7895 else
7896 ac_cv_header_stdc=no
7897 fi
7898 rm -f conftest*
7899
7900 fi
7901
7902 if test $ac_cv_header_stdc = yes; then
7903 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7905 /* end confdefs.h. */
7906 #include <stdlib.h>
7907
7908 _ACEOF
7909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7910 $EGREP "free" >/dev/null 2>&1; then :
7911
7912 else
7913 ac_cv_header_stdc=no
7914 fi
7915 rm -f conftest*
7916
7917 fi
7918
7919 if test $ac_cv_header_stdc = yes; then
7920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7921 if test "$cross_compiling" = yes; then :
7922 :
7923 else
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925 /* end confdefs.h. */
7926 #include <ctype.h>
7927 #include <stdlib.h>
7928 #if ((' ' & 0x0FF) == 0x020)
7929 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7930 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7931 #else
7932 # define ISLOWER(c) \
7933 (('a' <= (c) && (c) <= 'i') \
7934 || ('j' <= (c) && (c) <= 'r') \
7935 || ('s' <= (c) && (c) <= 'z'))
7936 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7937 #endif
7938
7939 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7940 int
7941 main ()
7942 {
7943 int i;
7944 for (i = 0; i < 256; i++)
7945 if (XOR (islower (i), ISLOWER (i))
7946 || toupper (i) != TOUPPER (i))
7947 return 2;
7948 return 0;
7949 }
7950 _ACEOF
7951 if ac_fn_c_try_run "$LINENO"; then :
7952
7953 else
7954 ac_cv_header_stdc=no
7955 fi
7956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7957 conftest.$ac_objext conftest.beam conftest.$ac_ext
7958 fi
7959
7960 fi
7961 fi
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7963 $as_echo "$ac_cv_header_stdc" >&6; }
7964 if test $ac_cv_header_stdc = yes; then
7965
7966 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7967
7968 fi
7969
7970 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7971 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7972 inttypes.h stdint.h unistd.h
7973 do :
7974 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7975 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7976 "
7977 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7978 cat >>confdefs.h <<_ACEOF
7979 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7980 _ACEOF
7981
7982 fi
7983
7984 done
7985
7986
7987 for ac_header in dlfcn.h
7988 do :
7989 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7990 "
7991 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7992 cat >>confdefs.h <<_ACEOF
7993 #define HAVE_DLFCN_H 1
7994 _ACEOF
7995
7996 fi
7997
7998 done
7999
8000
8001
8002
8003
8004 # Set options
8005 enable_dlopen=yes
8006 # Check whether --enable-static was given.
8007 if test "${enable_static+set}" = set; then :
8008 enableval=$enable_static; p=${PACKAGE-default}
8009 case $enableval in
8010 yes) enable_static=yes ;;
8011 no) enable_static=no ;;
8012 *)
8013 enable_static=no
8014 # Look at the argument we got. We use all the common list separators.
8015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8016 for pkg in $enableval; do
8017 IFS="$lt_save_ifs"
8018 if test "X$pkg" = "X$p"; then
8019 enable_static=yes
8020 fi
8021 done
8022 IFS="$lt_save_ifs"
8023 ;;
8024 esac
8025 else
8026 enable_static=no
8027 fi
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039 enable_win32_dll=no
8040
8041
8042 # Check whether --enable-shared was given.
8043 if test "${enable_shared+set}" = set; then :
8044 enableval=$enable_shared; p=${PACKAGE-default}
8045 case $enableval in
8046 yes) enable_shared=yes ;;
8047 no) enable_shared=no ;;
8048 *)
8049 enable_shared=no
8050 # Look at the argument we got. We use all the common list separators.
8051 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8052 for pkg in $enableval; do
8053 IFS="$lt_save_ifs"
8054 if test "X$pkg" = "X$p"; then
8055 enable_shared=yes
8056 fi
8057 done
8058 IFS="$lt_save_ifs"
8059 ;;
8060 esac
8061 else
8062 enable_shared=yes
8063 fi
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074
8075 # Check whether --with-pic was given.
8076 if test "${with_pic+set}" = set; then :
8077 withval=$with_pic; lt_p=${PACKAGE-default}
8078 case $withval in
8079 yes|no) pic_mode=$withval ;;
8080 *)
8081 pic_mode=default
8082 # Look at the argument we got. We use all the common list separators.
8083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8084 for lt_pkg in $withval; do
8085 IFS="$lt_save_ifs"
8086 if test "X$lt_pkg" = "X$lt_p"; then
8087 pic_mode=yes
8088 fi
8089 done
8090 IFS="$lt_save_ifs"
8091 ;;
8092 esac
8093 else
8094 pic_mode=default
8095 fi
8096
8097
8098 test -z "$pic_mode" && pic_mode=default
8099
8100
8101
8102
8103
8104
8105
8106 # Check whether --enable-fast-install was given.
8107 if test "${enable_fast_install+set}" = set; then :
8108 enableval=$enable_fast_install; p=${PACKAGE-default}
8109 case $enableval in
8110 yes) enable_fast_install=yes ;;
8111 no) enable_fast_install=no ;;
8112 *)
8113 enable_fast_install=no
8114 # Look at the argument we got. We use all the common list separators.
8115 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8116 for pkg in $enableval; do
8117 IFS="$lt_save_ifs"
8118 if test "X$pkg" = "X$p"; then
8119 enable_fast_install=yes
8120 fi
8121 done
8122 IFS="$lt_save_ifs"
8123 ;;
8124 esac
8125 else
8126 enable_fast_install=yes
8127 fi
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139 # This can be used to rebuild libtool when needed
8140 LIBTOOL_DEPS="$ltmain"
8141
8142 # Always use our own libtool.
8143 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8144
8145
8146
8147
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174 test -z "$LN_S" && LN_S="ln -s"
8175
8176
8177
8178
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189 if test -n "${ZSH_VERSION+set}" ; then
8190 setopt NO_GLOB_SUBST
8191 fi
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8194 $as_echo_n "checking for objdir... " >&6; }
8195 if ${lt_cv_objdir+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 rm -f .libs 2>/dev/null
8199 mkdir .libs 2>/dev/null
8200 if test -d .libs; then
8201 lt_cv_objdir=.libs
8202 else
8203 # MS-DOS does not allow filenames that begin with a dot.
8204 lt_cv_objdir=_libs
8205 fi
8206 rmdir .libs 2>/dev/null
8207 fi
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8209 $as_echo "$lt_cv_objdir" >&6; }
8210 objdir=$lt_cv_objdir
8211
8212
8213
8214
8215
8216 cat >>confdefs.h <<_ACEOF
8217 #define LT_OBJDIR "$lt_cv_objdir/"
8218 _ACEOF
8219
8220
8221
8222
8223 case $host_os in
8224 aix3*)
8225 # AIX sometimes has problems with the GCC collect2 program. For some
8226 # reason, if we set the COLLECT_NAMES environment variable, the problems
8227 # vanish in a puff of smoke.
8228 if test "X${COLLECT_NAMES+set}" != Xset; then
8229 COLLECT_NAMES=
8230 export COLLECT_NAMES
8231 fi
8232 ;;
8233 esac
8234
8235 # Global variables:
8236 ofile=libtool
8237 can_build_shared=yes
8238
8239 # All known linkers require a `.a' archive for static linking (except MSVC,
8240 # which needs '.lib').
8241 libext=a
8242
8243 with_gnu_ld="$lt_cv_prog_gnu_ld"
8244
8245 old_CC="$CC"
8246 old_CFLAGS="$CFLAGS"
8247
8248 # Set sane defaults for various variables
8249 test -z "$CC" && CC=cc
8250 test -z "$LTCC" && LTCC=$CC
8251 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8252 test -z "$LD" && LD=ld
8253 test -z "$ac_objext" && ac_objext=o
8254
8255 for cc_temp in $compiler""; do
8256 case $cc_temp in
8257 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8258 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8259 \-*) ;;
8260 *) break;;
8261 esac
8262 done
8263 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8264
8265
8266 # Only perform the check for file, if the check method requires it
8267 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8268 case $deplibs_check_method in
8269 file_magic*)
8270 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8272 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8273 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8274 $as_echo_n "(cached) " >&6
8275 else
8276 case $MAGIC_CMD in
8277 [\\/*] | ?:[\\/]*)
8278 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8279 ;;
8280 *)
8281 lt_save_MAGIC_CMD="$MAGIC_CMD"
8282 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8283 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8284 for ac_dir in $ac_dummy; do
8285 IFS="$lt_save_ifs"
8286 test -z "$ac_dir" && ac_dir=.
8287 if test -f $ac_dir/${ac_tool_prefix}file; then
8288 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8289 if test -n "$file_magic_test_file"; then
8290 case $deplibs_check_method in
8291 "file_magic "*)
8292 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8293 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8294 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8295 $EGREP "$file_magic_regex" > /dev/null; then
8296 :
8297 else
8298 cat <<_LT_EOF 1>&2
8299
8300 *** Warning: the command libtool uses to detect shared libraries,
8301 *** $file_magic_cmd, produces output that libtool cannot recognize.
8302 *** The result is that libtool may fail to recognize shared libraries
8303 *** as such. This will affect the creation of libtool libraries that
8304 *** depend on shared libraries, but programs linked with such libtool
8305 *** libraries will work regardless of this problem. Nevertheless, you
8306 *** may want to report the problem to your system manager and/or to
8307 *** bug-libtool@gnu.org
8308
8309 _LT_EOF
8310 fi ;;
8311 esac
8312 fi
8313 break
8314 fi
8315 done
8316 IFS="$lt_save_ifs"
8317 MAGIC_CMD="$lt_save_MAGIC_CMD"
8318 ;;
8319 esac
8320 fi
8321
8322 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8323 if test -n "$MAGIC_CMD"; then
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8325 $as_echo "$MAGIC_CMD" >&6; }
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8328 $as_echo "no" >&6; }
8329 fi
8330
8331
8332
8333
8334
8335 if test -z "$lt_cv_path_MAGIC_CMD"; then
8336 if test -n "$ac_tool_prefix"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8338 $as_echo_n "checking for file... " >&6; }
8339 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8340 $as_echo_n "(cached) " >&6
8341 else
8342 case $MAGIC_CMD in
8343 [\\/*] | ?:[\\/]*)
8344 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8345 ;;
8346 *)
8347 lt_save_MAGIC_CMD="$MAGIC_CMD"
8348 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8349 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8350 for ac_dir in $ac_dummy; do
8351 IFS="$lt_save_ifs"
8352 test -z "$ac_dir" && ac_dir=.
8353 if test -f $ac_dir/file; then
8354 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8355 if test -n "$file_magic_test_file"; then
8356 case $deplibs_check_method in
8357 "file_magic "*)
8358 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8359 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8360 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8361 $EGREP "$file_magic_regex" > /dev/null; then
8362 :
8363 else
8364 cat <<_LT_EOF 1>&2
8365
8366 *** Warning: the command libtool uses to detect shared libraries,
8367 *** $file_magic_cmd, produces output that libtool cannot recognize.
8368 *** The result is that libtool may fail to recognize shared libraries
8369 *** as such. This will affect the creation of libtool libraries that
8370 *** depend on shared libraries, but programs linked with such libtool
8371 *** libraries will work regardless of this problem. Nevertheless, you
8372 *** may want to report the problem to your system manager and/or to
8373 *** bug-libtool@gnu.org
8374
8375 _LT_EOF
8376 fi ;;
8377 esac
8378 fi
8379 break
8380 fi
8381 done
8382 IFS="$lt_save_ifs"
8383 MAGIC_CMD="$lt_save_MAGIC_CMD"
8384 ;;
8385 esac
8386 fi
8387
8388 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8389 if test -n "$MAGIC_CMD"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8391 $as_echo "$MAGIC_CMD" >&6; }
8392 else
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8395 fi
8396
8397
8398 else
8399 MAGIC_CMD=:
8400 fi
8401 fi
8402
8403 fi
8404 ;;
8405 esac
8406
8407 # Use C for the default configuration in the libtool script
8408
8409 lt_save_CC="$CC"
8410 ac_ext=c
8411 ac_cpp='$CPP $CPPFLAGS'
8412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8415
8416
8417 # Source file extension for C test sources.
8418 ac_ext=c
8419
8420 # Object file extension for compiled C test sources.
8421 objext=o
8422 objext=$objext
8423
8424 # Code to be used in simple compile tests
8425 lt_simple_compile_test_code="int some_variable = 0;"
8426
8427 # Code to be used in simple link tests
8428 lt_simple_link_test_code='int main(){return(0);}'
8429
8430
8431
8432
8433
8434
8435
8436 # If no C compiler was specified, use CC.
8437 LTCC=${LTCC-"$CC"}
8438
8439 # If no C compiler flags were specified, use CFLAGS.
8440 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8441
8442 # Allow CC to be a program name with arguments.
8443 compiler=$CC
8444
8445 # Save the default compiler, since it gets overwritten when the other
8446 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8447 compiler_DEFAULT=$CC
8448
8449 # save warnings/boilerplate of simple test code
8450 ac_outfile=conftest.$ac_objext
8451 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8452 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8453 _lt_compiler_boilerplate=`cat conftest.err`
8454 $RM conftest*
8455
8456 ac_outfile=conftest.$ac_objext
8457 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8458 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8459 _lt_linker_boilerplate=`cat conftest.err`
8460 $RM -r conftest*
8461
8462
8463 if test -n "$compiler"; then
8464
8465 lt_prog_compiler_no_builtin_flag=
8466
8467 if test "$GCC" = yes; then
8468 case $cc_basename in
8469 nvcc*)
8470 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8471 *)
8472 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8473 esac
8474
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8476 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8477 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 lt_cv_prog_compiler_rtti_exceptions=no
8481 ac_outfile=conftest.$ac_objext
8482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8483 lt_compiler_flag="-fno-rtti -fno-exceptions"
8484 # Insert the option either (1) after the last *FLAGS variable, or
8485 # (2) before a word containing "conftest.", or (3) at the end.
8486 # Note that $ac_compile itself does not contain backslashes and begins
8487 # with a dollar sign (not a hyphen), so the echo should work correctly.
8488 # The option is referenced via a variable to avoid confusing sed.
8489 lt_compile=`echo "$ac_compile" | $SED \
8490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8492 -e 's:$: $lt_compiler_flag:'`
8493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8494 (eval "$lt_compile" 2>conftest.err)
8495 ac_status=$?
8496 cat conftest.err >&5
8497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498 if (exit $ac_status) && test -s "$ac_outfile"; then
8499 # The compiler can only warn and ignore the option if not recognized
8500 # So say no if there are warnings other than the usual output.
8501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8503 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8504 lt_cv_prog_compiler_rtti_exceptions=yes
8505 fi
8506 fi
8507 $RM conftest*
8508
8509 fi
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8511 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8512
8513 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8514 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8515 else
8516 :
8517 fi
8518
8519 fi
8520
8521
8522
8523
8524
8525
8526 lt_prog_compiler_wl=
8527 lt_prog_compiler_pic=
8528 lt_prog_compiler_static=
8529
8530
8531 if test "$GCC" = yes; then
8532 lt_prog_compiler_wl='-Wl,'
8533 lt_prog_compiler_static='-static'
8534
8535 case $host_os in
8536 aix*)
8537 # All AIX code is PIC.
8538 if test "$host_cpu" = ia64; then
8539 # AIX 5 now supports IA64 processor
8540 lt_prog_compiler_static='-Bstatic'
8541 fi
8542 ;;
8543
8544 amigaos*)
8545 case $host_cpu in
8546 powerpc)
8547 # see comment about AmigaOS4 .so support
8548 lt_prog_compiler_pic='-fPIC'
8549 ;;
8550 m68k)
8551 # FIXME: we need at least 68020 code to build shared libraries, but
8552 # adding the `-m68020' flag to GCC prevents building anything better,
8553 # like `-m68040'.
8554 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8555 ;;
8556 esac
8557 ;;
8558
8559 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8560 # PIC is the default for these OSes.
8561 ;;
8562
8563 mingw* | cygwin* | pw32* | os2* | cegcc*)
8564 # This hack is so that the source file can tell whether it is being
8565 # built for inclusion in a dll (and should export symbols for example).
8566 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8567 # (--disable-auto-import) libraries
8568 lt_prog_compiler_pic='-DDLL_EXPORT'
8569 ;;
8570
8571 darwin* | rhapsody*)
8572 # PIC is the default on this platform
8573 # Common symbols not allowed in MH_DYLIB files
8574 lt_prog_compiler_pic='-fno-common'
8575 ;;
8576
8577 haiku*)
8578 # PIC is the default for Haiku.
8579 # The "-static" flag exists, but is broken.
8580 lt_prog_compiler_static=
8581 ;;
8582
8583 hpux*)
8584 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8585 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8586 # sets the default TLS model and affects inlining.
8587 case $host_cpu in
8588 hppa*64*)
8589 # +Z the default
8590 ;;
8591 *)
8592 lt_prog_compiler_pic='-fPIC'
8593 ;;
8594 esac
8595 ;;
8596
8597 interix[3-9]*)
8598 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8599 # Instead, we relocate shared libraries at runtime.
8600 ;;
8601
8602 msdosdjgpp*)
8603 # Just because we use GCC doesn't mean we suddenly get shared libraries
8604 # on systems that don't support them.
8605 lt_prog_compiler_can_build_shared=no
8606 enable_shared=no
8607 ;;
8608
8609 *nto* | *qnx*)
8610 # QNX uses GNU C++, but need to define -shared option too, otherwise
8611 # it will coredump.
8612 lt_prog_compiler_pic='-fPIC -shared'
8613 ;;
8614
8615 sysv4*MP*)
8616 if test -d /usr/nec; then
8617 lt_prog_compiler_pic=-Kconform_pic
8618 fi
8619 ;;
8620
8621 *)
8622 lt_prog_compiler_pic='-fPIC'
8623 ;;
8624 esac
8625
8626 case $cc_basename in
8627 nvcc*) # Cuda Compiler Driver 2.2
8628 lt_prog_compiler_wl='-Xlinker '
8629 if test -n "$lt_prog_compiler_pic"; then
8630 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8631 fi
8632 ;;
8633 esac
8634 else
8635 # PORTME Check for flag to pass linker flags through the system compiler.
8636 case $host_os in
8637 aix*)
8638 lt_prog_compiler_wl='-Wl,'
8639 if test "$host_cpu" = ia64; then
8640 # AIX 5 now supports IA64 processor
8641 lt_prog_compiler_static='-Bstatic'
8642 else
8643 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8644 fi
8645 ;;
8646
8647 mingw* | cygwin* | pw32* | os2* | cegcc*)
8648 # This hack is so that the source file can tell whether it is being
8649 # built for inclusion in a dll (and should export symbols for example).
8650 lt_prog_compiler_pic='-DDLL_EXPORT'
8651 ;;
8652
8653 hpux9* | hpux10* | hpux11*)
8654 lt_prog_compiler_wl='-Wl,'
8655 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8656 # not for PA HP-UX.
8657 case $host_cpu in
8658 hppa*64*|ia64*)
8659 # +Z the default
8660 ;;
8661 *)
8662 lt_prog_compiler_pic='+Z'
8663 ;;
8664 esac
8665 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8666 lt_prog_compiler_static='${wl}-a ${wl}archive'
8667 ;;
8668
8669 irix5* | irix6* | nonstopux*)
8670 lt_prog_compiler_wl='-Wl,'
8671 # PIC (with -KPIC) is the default.
8672 lt_prog_compiler_static='-non_shared'
8673 ;;
8674
8675 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8676 case $cc_basename in
8677 # old Intel for x86_64 which still supported -KPIC.
8678 ecc*)
8679 lt_prog_compiler_wl='-Wl,'
8680 lt_prog_compiler_pic='-KPIC'
8681 lt_prog_compiler_static='-static'
8682 ;;
8683 # icc used to be incompatible with GCC.
8684 # ICC 10 doesn't accept -KPIC any more.
8685 icc* | ifort*)
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_pic='-fPIC'
8688 lt_prog_compiler_static='-static'
8689 ;;
8690 # Lahey Fortran 8.1.
8691 lf95*)
8692 lt_prog_compiler_wl='-Wl,'
8693 lt_prog_compiler_pic='--shared'
8694 lt_prog_compiler_static='--static'
8695 ;;
8696 nagfor*)
8697 # NAG Fortran compiler
8698 lt_prog_compiler_wl='-Wl,-Wl,,'
8699 lt_prog_compiler_pic='-PIC'
8700 lt_prog_compiler_static='-Bstatic'
8701 ;;
8702 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8703 # Portland Group compilers (*not* the Pentium gcc compiler,
8704 # which looks to be a dead project)
8705 lt_prog_compiler_wl='-Wl,'
8706 lt_prog_compiler_pic='-fpic'
8707 lt_prog_compiler_static='-Bstatic'
8708 ;;
8709 ccc*)
8710 lt_prog_compiler_wl='-Wl,'
8711 # All Alpha code is PIC.
8712 lt_prog_compiler_static='-non_shared'
8713 ;;
8714 xl* | bgxl* | bgf* | mpixl*)
8715 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8716 lt_prog_compiler_wl='-Wl,'
8717 lt_prog_compiler_pic='-qpic'
8718 lt_prog_compiler_static='-qstaticlink'
8719 ;;
8720 *)
8721 case `$CC -V 2>&1 | sed 5q` in
8722 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8723 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8724 lt_prog_compiler_pic='-KPIC'
8725 lt_prog_compiler_static='-Bstatic'
8726 lt_prog_compiler_wl=''
8727 ;;
8728 *Sun\ F* | *Sun*Fortran*)
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 lt_prog_compiler_wl='-Qoption ld '
8732 ;;
8733 *Sun\ C*)
8734 # Sun C 5.9
8735 lt_prog_compiler_pic='-KPIC'
8736 lt_prog_compiler_static='-Bstatic'
8737 lt_prog_compiler_wl='-Wl,'
8738 ;;
8739 *Intel*\ [CF]*Compiler*)
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_pic='-fPIC'
8742 lt_prog_compiler_static='-static'
8743 ;;
8744 *Portland\ Group*)
8745 lt_prog_compiler_wl='-Wl,'
8746 lt_prog_compiler_pic='-fpic'
8747 lt_prog_compiler_static='-Bstatic'
8748 ;;
8749 esac
8750 ;;
8751 esac
8752 ;;
8753
8754 newsos6)
8755 lt_prog_compiler_pic='-KPIC'
8756 lt_prog_compiler_static='-Bstatic'
8757 ;;
8758
8759 *nto* | *qnx*)
8760 # QNX uses GNU C++, but need to define -shared option too, otherwise
8761 # it will coredump.
8762 lt_prog_compiler_pic='-fPIC -shared'
8763 ;;
8764
8765 osf3* | osf4* | osf5*)
8766 lt_prog_compiler_wl='-Wl,'
8767 # All OSF/1 code is PIC.
8768 lt_prog_compiler_static='-non_shared'
8769 ;;
8770
8771 rdos*)
8772 lt_prog_compiler_static='-non_shared'
8773 ;;
8774
8775 solaris*)
8776 lt_prog_compiler_pic='-KPIC'
8777 lt_prog_compiler_static='-Bstatic'
8778 case $cc_basename in
8779 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8780 lt_prog_compiler_wl='-Qoption ld ';;
8781 *)
8782 lt_prog_compiler_wl='-Wl,';;
8783 esac
8784 ;;
8785
8786 sunos4*)
8787 lt_prog_compiler_wl='-Qoption ld '
8788 lt_prog_compiler_pic='-PIC'
8789 lt_prog_compiler_static='-Bstatic'
8790 ;;
8791
8792 sysv4 | sysv4.2uw2* | sysv4.3*)
8793 lt_prog_compiler_wl='-Wl,'
8794 lt_prog_compiler_pic='-KPIC'
8795 lt_prog_compiler_static='-Bstatic'
8796 ;;
8797
8798 sysv4*MP*)
8799 if test -d /usr/nec ;then
8800 lt_prog_compiler_pic='-Kconform_pic'
8801 lt_prog_compiler_static='-Bstatic'
8802 fi
8803 ;;
8804
8805 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8806 lt_prog_compiler_wl='-Wl,'
8807 lt_prog_compiler_pic='-KPIC'
8808 lt_prog_compiler_static='-Bstatic'
8809 ;;
8810
8811 unicos*)
8812 lt_prog_compiler_wl='-Wl,'
8813 lt_prog_compiler_can_build_shared=no
8814 ;;
8815
8816 uts4*)
8817 lt_prog_compiler_pic='-pic'
8818 lt_prog_compiler_static='-Bstatic'
8819 ;;
8820
8821 *)
8822 lt_prog_compiler_can_build_shared=no
8823 ;;
8824 esac
8825 fi
8826
8827 case $host_os in
8828 # For platforms which do not support PIC, -DPIC is meaningless:
8829 *djgpp*)
8830 lt_prog_compiler_pic=
8831 ;;
8832 *)
8833 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8834 ;;
8835 esac
8836
8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8838 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8839 if ${lt_cv_prog_compiler_pic+:} false; then :
8840 $as_echo_n "(cached) " >&6
8841 else
8842 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8843 fi
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8845 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8846 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8847
8848 #
8849 # Check to make sure the PIC flag actually works.
8850 #
8851 if test -n "$lt_prog_compiler_pic"; then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8853 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8854 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 lt_cv_prog_compiler_pic_works=no
8858 ac_outfile=conftest.$ac_objext
8859 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8860 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8861 # Insert the option either (1) after the last *FLAGS variable, or
8862 # (2) before a word containing "conftest.", or (3) at the end.
8863 # Note that $ac_compile itself does not contain backslashes and begins
8864 # with a dollar sign (not a hyphen), so the echo should work correctly.
8865 # The option is referenced via a variable to avoid confusing sed.
8866 lt_compile=`echo "$ac_compile" | $SED \
8867 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8868 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8869 -e 's:$: $lt_compiler_flag:'`
8870 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8871 (eval "$lt_compile" 2>conftest.err)
8872 ac_status=$?
8873 cat conftest.err >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 if (exit $ac_status) && test -s "$ac_outfile"; then
8876 # The compiler can only warn and ignore the option if not recognized
8877 # So say no if there are warnings other than the usual output.
8878 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8880 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8881 lt_cv_prog_compiler_pic_works=yes
8882 fi
8883 fi
8884 $RM conftest*
8885
8886 fi
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8888 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8889
8890 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8891 case $lt_prog_compiler_pic in
8892 "" | " "*) ;;
8893 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8894 esac
8895 else
8896 lt_prog_compiler_pic=
8897 lt_prog_compiler_can_build_shared=no
8898 fi
8899
8900 fi
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912 #
8913 # Check to make sure the static flag actually works.
8914 #
8915 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8917 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8918 if ${lt_cv_prog_compiler_static_works+:} false; then :
8919 $as_echo_n "(cached) " >&6
8920 else
8921 lt_cv_prog_compiler_static_works=no
8922 save_LDFLAGS="$LDFLAGS"
8923 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8924 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8925 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8926 # The linker can only warn and ignore the option if not recognized
8927 # So say no if there are warnings
8928 if test -s conftest.err; then
8929 # Append any errors to the config.log.
8930 cat conftest.err 1>&5
8931 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8932 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8933 if diff conftest.exp conftest.er2 >/dev/null; then
8934 lt_cv_prog_compiler_static_works=yes
8935 fi
8936 else
8937 lt_cv_prog_compiler_static_works=yes
8938 fi
8939 fi
8940 $RM -r conftest*
8941 LDFLAGS="$save_LDFLAGS"
8942
8943 fi
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8945 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8946
8947 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8948 :
8949 else
8950 lt_prog_compiler_static=
8951 fi
8952
8953
8954
8955
8956
8957
8958
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8960 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8961 if ${lt_cv_prog_compiler_c_o+:} false; then :
8962 $as_echo_n "(cached) " >&6
8963 else
8964 lt_cv_prog_compiler_c_o=no
8965 $RM -r conftest 2>/dev/null
8966 mkdir conftest
8967 cd conftest
8968 mkdir out
8969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8970
8971 lt_compiler_flag="-o out/conftest2.$ac_objext"
8972 # Insert the option either (1) after the last *FLAGS variable, or
8973 # (2) before a word containing "conftest.", or (3) at the end.
8974 # Note that $ac_compile itself does not contain backslashes and begins
8975 # with a dollar sign (not a hyphen), so the echo should work correctly.
8976 lt_compile=`echo "$ac_compile" | $SED \
8977 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8978 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8979 -e 's:$: $lt_compiler_flag:'`
8980 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8981 (eval "$lt_compile" 2>out/conftest.err)
8982 ac_status=$?
8983 cat out/conftest.err >&5
8984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8985 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8986 then
8987 # The compiler can only warn and ignore the option if not recognized
8988 # So say no if there are warnings
8989 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8990 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8991 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8992 lt_cv_prog_compiler_c_o=yes
8993 fi
8994 fi
8995 chmod u+w . 2>&5
8996 $RM conftest*
8997 # SGI C++ compiler will create directory out/ii_files/ for
8998 # template instantiation
8999 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9000 $RM out/* && rmdir out
9001 cd ..
9002 $RM -r conftest
9003 $RM conftest*
9004
9005 fi
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9007 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9008
9009
9010
9011
9012
9013
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9015 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9016 if ${lt_cv_prog_compiler_c_o+:} false; then :
9017 $as_echo_n "(cached) " >&6
9018 else
9019 lt_cv_prog_compiler_c_o=no
9020 $RM -r conftest 2>/dev/null
9021 mkdir conftest
9022 cd conftest
9023 mkdir out
9024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9025
9026 lt_compiler_flag="-o out/conftest2.$ac_objext"
9027 # Insert the option either (1) after the last *FLAGS variable, or
9028 # (2) before a word containing "conftest.", or (3) at the end.
9029 # Note that $ac_compile itself does not contain backslashes and begins
9030 # with a dollar sign (not a hyphen), so the echo should work correctly.
9031 lt_compile=`echo "$ac_compile" | $SED \
9032 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9033 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9034 -e 's:$: $lt_compiler_flag:'`
9035 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9036 (eval "$lt_compile" 2>out/conftest.err)
9037 ac_status=$?
9038 cat out/conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9041 then
9042 # The compiler can only warn and ignore the option if not recognized
9043 # So say no if there are warnings
9044 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9045 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9046 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9047 lt_cv_prog_compiler_c_o=yes
9048 fi
9049 fi
9050 chmod u+w . 2>&5
9051 $RM conftest*
9052 # SGI C++ compiler will create directory out/ii_files/ for
9053 # template instantiation
9054 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9055 $RM out/* && rmdir out
9056 cd ..
9057 $RM -r conftest
9058 $RM conftest*
9059
9060 fi
9061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9062 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9063
9064
9065
9066
9067 hard_links="nottested"
9068 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9069 # do not overwrite the value of need_locks provided by the user
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9071 $as_echo_n "checking if we can lock with hard links... " >&6; }
9072 hard_links=yes
9073 $RM conftest*
9074 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9075 touch conftest.a
9076 ln conftest.a conftest.b 2>&5 || hard_links=no
9077 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9079 $as_echo "$hard_links" >&6; }
9080 if test "$hard_links" = no; then
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9082 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9083 need_locks=warn
9084 fi
9085 else
9086 need_locks=no
9087 fi
9088
9089
9090
9091
9092
9093
9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9096
9097 runpath_var=
9098 allow_undefined_flag=
9099 always_export_symbols=no
9100 archive_cmds=
9101 archive_expsym_cmds=
9102 compiler_needs_object=no
9103 enable_shared_with_static_runtimes=no
9104 export_dynamic_flag_spec=
9105 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9106 hardcode_automatic=no
9107 hardcode_direct=no
9108 hardcode_direct_absolute=no
9109 hardcode_libdir_flag_spec=
9110 hardcode_libdir_separator=
9111 hardcode_minus_L=no
9112 hardcode_shlibpath_var=unsupported
9113 inherit_rpath=no
9114 link_all_deplibs=unknown
9115 module_cmds=
9116 module_expsym_cmds=
9117 old_archive_from_new_cmds=
9118 old_archive_from_expsyms_cmds=
9119 thread_safe_flag_spec=
9120 whole_archive_flag_spec=
9121 # include_expsyms should be a list of space-separated symbols to be *always*
9122 # included in the symbol list
9123 include_expsyms=
9124 # exclude_expsyms can be an extended regexp of symbols to exclude
9125 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9126 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9127 # as well as any symbol that contains `d'.
9128 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9129 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9130 # platforms (ab)use it in PIC code, but their linkers get confused if
9131 # the symbol is explicitly referenced. Since portable code cannot
9132 # rely on this symbol name, it's probably fine to never include it in
9133 # preloaded symbol tables.
9134 # Exclude shared library initialization/finalization symbols.
9135 extract_expsyms_cmds=
9136
9137 case $host_os in
9138 cygwin* | mingw* | pw32* | cegcc*)
9139 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9140 # When not using gcc, we currently assume that we are using
9141 # Microsoft Visual C++.
9142 if test "$GCC" != yes; then
9143 with_gnu_ld=no
9144 fi
9145 ;;
9146 interix*)
9147 # we just hope/assume this is gcc and not c89 (= MSVC++)
9148 with_gnu_ld=yes
9149 ;;
9150 openbsd*)
9151 with_gnu_ld=no
9152 ;;
9153 esac
9154
9155 ld_shlibs=yes
9156
9157 # On some targets, GNU ld is compatible enough with the native linker
9158 # that we're better off using the native interface for both.
9159 lt_use_gnu_ld_interface=no
9160 if test "$with_gnu_ld" = yes; then
9161 case $host_os in
9162 aix*)
9163 # The AIX port of GNU ld has always aspired to compatibility
9164 # with the native linker. However, as the warning in the GNU ld
9165 # block says, versions before 2.19.5* couldn't really create working
9166 # shared libraries, regardless of the interface used.
9167 case `$LD -v 2>&1` in
9168 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9169 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9170 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9171 *)
9172 lt_use_gnu_ld_interface=yes
9173 ;;
9174 esac
9175 ;;
9176 *)
9177 lt_use_gnu_ld_interface=yes
9178 ;;
9179 esac
9180 fi
9181
9182 if test "$lt_use_gnu_ld_interface" = yes; then
9183 # If archive_cmds runs LD, not CC, wlarc should be empty
9184 wlarc='${wl}'
9185
9186 # Set some defaults for GNU ld with shared library support. These
9187 # are reset later if shared libraries are not supported. Putting them
9188 # here allows them to be overridden if necessary.
9189 runpath_var=LD_RUN_PATH
9190 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9191 export_dynamic_flag_spec='${wl}--export-dynamic'
9192 # ancient GNU ld didn't support --whole-archive et. al.
9193 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9194 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9195 else
9196 whole_archive_flag_spec=
9197 fi
9198 supports_anon_versioning=no
9199 case `$LD -v 2>&1` in
9200 *GNU\ gold*) supports_anon_versioning=yes ;;
9201 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9202 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9203 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9204 *\ 2.11.*) ;; # other 2.11 versions
9205 *) supports_anon_versioning=yes ;;
9206 esac
9207
9208 # See if GNU ld supports shared libraries.
9209 case $host_os in
9210 aix[3-9]*)
9211 # On AIX/PPC, the GNU linker is very broken
9212 if test "$host_cpu" != ia64; then
9213 ld_shlibs=no
9214 cat <<_LT_EOF 1>&2
9215
9216 *** Warning: the GNU linker, at least up to release 2.19, is reported
9217 *** to be unable to reliably create shared libraries on AIX.
9218 *** Therefore, libtool is disabling shared libraries support. If you
9219 *** really care for shared libraries, you may want to install binutils
9220 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9221 *** You will then need to restart the configuration process.
9222
9223 _LT_EOF
9224 fi
9225 ;;
9226
9227 amigaos*)
9228 case $host_cpu in
9229 powerpc)
9230 # see comment about AmigaOS4 .so support
9231 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9232 archive_expsym_cmds=''
9233 ;;
9234 m68k)
9235 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)'
9236 hardcode_libdir_flag_spec='-L$libdir'
9237 hardcode_minus_L=yes
9238 ;;
9239 esac
9240 ;;
9241
9242 beos*)
9243 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9244 allow_undefined_flag=unsupported
9245 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9246 # support --undefined. This deserves some investigation. FIXME
9247 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9248 else
9249 ld_shlibs=no
9250 fi
9251 ;;
9252
9253 cygwin* | mingw* | pw32* | cegcc*)
9254 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9255 # as there is no search path for DLLs.
9256 hardcode_libdir_flag_spec='-L$libdir'
9257 export_dynamic_flag_spec='${wl}--export-all-symbols'
9258 allow_undefined_flag=unsupported
9259 always_export_symbols=no
9260 enable_shared_with_static_runtimes=yes
9261 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'
9262 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9263
9264 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9265 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9266 # If the export-symbols file already is a .def file (1st line
9267 # is EXPORTS), use it as is; otherwise, prepend...
9268 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9269 cp $export_symbols $output_objdir/$soname.def;
9270 else
9271 echo EXPORTS > $output_objdir/$soname.def;
9272 cat $export_symbols >> $output_objdir/$soname.def;
9273 fi~
9274 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9275 else
9276 ld_shlibs=no
9277 fi
9278 ;;
9279
9280 haiku*)
9281 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282 link_all_deplibs=yes
9283 ;;
9284
9285 interix[3-9]*)
9286 hardcode_direct=no
9287 hardcode_shlibpath_var=no
9288 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9289 export_dynamic_flag_spec='${wl}-E'
9290 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9291 # Instead, shared libraries are loaded at an image base (0x10000000 by
9292 # default) and relocated if they conflict, which is a slow very memory
9293 # consuming and fragmenting process. To avoid this, we pick a random,
9294 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9295 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9296 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9297 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'
9298 ;;
9299
9300 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9301 tmp_diet=no
9302 if test "$host_os" = linux-dietlibc; then
9303 case $cc_basename in
9304 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9305 esac
9306 fi
9307 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9308 && test "$tmp_diet" = no
9309 then
9310 tmp_addflag=' $pic_flag'
9311 tmp_sharedflag='-shared'
9312 case $cc_basename,$host_cpu in
9313 pgcc*) # Portland Group C compiler
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'
9316 ;;
9317 pgf77* | pgf90* | pgf95* | pgfortran*)
9318 # Portland Group f77 and f90 compilers
9319 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'
9320 tmp_addflag=' $pic_flag -Mnomain' ;;
9321 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9322 tmp_addflag=' -i_dynamic' ;;
9323 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9324 tmp_addflag=' -i_dynamic -nofor_main' ;;
9325 ifc* | ifort*) # Intel Fortran compiler
9326 tmp_addflag=' -nofor_main' ;;
9327 lf95*) # Lahey Fortran 8.1
9328 whole_archive_flag_spec=
9329 tmp_sharedflag='--shared' ;;
9330 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9331 tmp_sharedflag='-qmkshrobj'
9332 tmp_addflag= ;;
9333 nvcc*) # Cuda Compiler Driver 2.2
9334 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'
9335 compiler_needs_object=yes
9336 ;;
9337 esac
9338 case `$CC -V 2>&1 | sed 5q` in
9339 *Sun\ C*) # Sun C 5.9
9340 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'
9341 compiler_needs_object=yes
9342 tmp_sharedflag='-G' ;;
9343 *Sun\ F*) # Sun Fortran 8.3
9344 tmp_sharedflag='-G' ;;
9345 esac
9346 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9347
9348 if test "x$supports_anon_versioning" = xyes; then
9349 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9350 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9351 echo "local: *; };" >> $output_objdir/$libname.ver~
9352 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9353 fi
9354
9355 case $cc_basename in
9356 xlf* | bgf* | bgxlf* | mpixlf*)
9357 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9358 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9359 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9360 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9361 if test "x$supports_anon_versioning" = xyes; then
9362 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9363 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9364 echo "local: *; };" >> $output_objdir/$libname.ver~
9365 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9366 fi
9367 ;;
9368 esac
9369 else
9370 ld_shlibs=no
9371 fi
9372 ;;
9373
9374 netbsd*)
9375 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9376 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9377 wlarc=
9378 else
9379 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9381 fi
9382 ;;
9383
9384 solaris*)
9385 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9386 ld_shlibs=no
9387 cat <<_LT_EOF 1>&2
9388
9389 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9390 *** create shared libraries on Solaris systems. Therefore, libtool
9391 *** is disabling shared libraries support. We urge you to upgrade GNU
9392 *** binutils to release 2.9.1 or newer. Another option is to modify
9393 *** your PATH or compiler configuration so that the native linker is
9394 *** used, and then restart.
9395
9396 _LT_EOF
9397 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9398 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9399 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9400 else
9401 ld_shlibs=no
9402 fi
9403 ;;
9404
9405 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9406 case `$LD -v 2>&1` in
9407 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9408 ld_shlibs=no
9409 cat <<_LT_EOF 1>&2
9410
9411 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9412 *** reliably create shared libraries on SCO systems. Therefore, libtool
9413 *** is disabling shared libraries support. We urge you to upgrade GNU
9414 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9415 *** your PATH or compiler configuration so that the native linker is
9416 *** used, and then restart.
9417
9418 _LT_EOF
9419 ;;
9420 *)
9421 # For security reasons, it is highly recommended that you always
9422 # use absolute paths for naming shared libraries, and exclude the
9423 # DT_RUNPATH tag from executables and libraries. But doing so
9424 # requires that you compile everything twice, which is a pain.
9425 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9428 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9429 else
9430 ld_shlibs=no
9431 fi
9432 ;;
9433 esac
9434 ;;
9435
9436 sunos4*)
9437 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9438 wlarc=
9439 hardcode_direct=yes
9440 hardcode_shlibpath_var=no
9441 ;;
9442
9443 *)
9444 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9445 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9446 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9447 else
9448 ld_shlibs=no
9449 fi
9450 ;;
9451 esac
9452
9453 if test "$ld_shlibs" = no; then
9454 runpath_var=
9455 hardcode_libdir_flag_spec=
9456 export_dynamic_flag_spec=
9457 whole_archive_flag_spec=
9458 fi
9459 else
9460 # PORTME fill in a description of your system's linker (not GNU ld)
9461 case $host_os in
9462 aix3*)
9463 allow_undefined_flag=unsupported
9464 always_export_symbols=yes
9465 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'
9466 # Note: this linker hardcodes the directories in LIBPATH if there
9467 # are no directories specified by -L.
9468 hardcode_minus_L=yes
9469 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9470 # Neither direct hardcoding nor static linking is supported with a
9471 # broken collect2.
9472 hardcode_direct=unsupported
9473 fi
9474 ;;
9475
9476 aix[4-9]*)
9477 if test "$host_cpu" = ia64; then
9478 # On IA64, the linker does run time linking by default, so we don't
9479 # have to do anything special.
9480 aix_use_runtimelinking=no
9481 exp_sym_flag='-Bexport'
9482 no_entry_flag=""
9483 else
9484 # If we're using GNU nm, then we don't want the "-C" option.
9485 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9486 # Also, AIX nm treats weak defined symbols like other global
9487 # defined symbols, whereas GNU nm marks them as "W".
9488 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9489 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'
9490 else
9491 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'
9492 fi
9493 aix_use_runtimelinking=no
9494
9495 # Test if we are trying to use run time linking or normal
9496 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9497 # need to do runtime linking.
9498 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9499 for ld_flag in $LDFLAGS; do
9500 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9501 aix_use_runtimelinking=yes
9502 break
9503 fi
9504 done
9505 ;;
9506 esac
9507
9508 exp_sym_flag='-bexport'
9509 no_entry_flag='-bnoentry'
9510 fi
9511
9512 # When large executables or shared objects are built, AIX ld can
9513 # have problems creating the table of contents. If linking a library
9514 # or program results in "error TOC overflow" add -mminimal-toc to
9515 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9516 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9517
9518 archive_cmds=''
9519 hardcode_direct=yes
9520 hardcode_direct_absolute=yes
9521 hardcode_libdir_separator=':'
9522 link_all_deplibs=yes
9523 file_list_spec='${wl}-f,'
9524
9525 if test "$GCC" = yes; then
9526 case $host_os in aix4.[012]|aix4.[012].*)
9527 # We only want to do this on AIX 4.2 and lower, the check
9528 # below for broken collect2 doesn't work under 4.3+
9529 collect2name=`${CC} -print-prog-name=collect2`
9530 if test -f "$collect2name" &&
9531 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9532 then
9533 # We have reworked collect2
9534 :
9535 else
9536 # We have old collect2
9537 hardcode_direct=unsupported
9538 # It fails to find uninstalled libraries when the uninstalled
9539 # path is not listed in the libpath. Setting hardcode_minus_L
9540 # to unsupported forces relinking
9541 hardcode_minus_L=yes
9542 hardcode_libdir_flag_spec='-L$libdir'
9543 hardcode_libdir_separator=
9544 fi
9545 ;;
9546 esac
9547 shared_flag='-shared'
9548 if test "$aix_use_runtimelinking" = yes; then
9549 shared_flag="$shared_flag "'${wl}-G'
9550 fi
9551 else
9552 # not using gcc
9553 if test "$host_cpu" = ia64; then
9554 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9555 # chokes on -Wl,-G. The following line is correct:
9556 shared_flag='-G'
9557 else
9558 if test "$aix_use_runtimelinking" = yes; then
9559 shared_flag='${wl}-G'
9560 else
9561 shared_flag='${wl}-bM:SRE'
9562 fi
9563 fi
9564 fi
9565
9566 export_dynamic_flag_spec='${wl}-bexpall'
9567 # It seems that -bexpall does not export symbols beginning with
9568 # underscore (_), so it is better to generate a list of symbols to export.
9569 always_export_symbols=yes
9570 if test "$aix_use_runtimelinking" = yes; then
9571 # Warning - without using the other runtime loading flags (-brtl),
9572 # -berok will link without error, but may produce a broken library.
9573 allow_undefined_flag='-berok'
9574 # Determine the default libpath from the value encoded in an
9575 # empty executable.
9576 if test "${lt_cv_aix_libpath+set}" = set; then
9577 aix_libpath=$lt_cv_aix_libpath
9578 else
9579 if ${lt_cv_aix_libpath_+:} false; then :
9580 $as_echo_n "(cached) " >&6
9581 else
9582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9583 /* end confdefs.h. */
9584
9585 int
9586 main ()
9587 {
9588
9589 ;
9590 return 0;
9591 }
9592 _ACEOF
9593 if ac_fn_c_try_link "$LINENO"; then :
9594
9595 lt_aix_libpath_sed='
9596 /Import File Strings/,/^$/ {
9597 /^0/ {
9598 s/^0 *\([^ ]*\) *$/\1/
9599 p
9600 }
9601 }'
9602 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9603 # Check for a 64-bit object if we didn't find anything.
9604 if test -z "$lt_cv_aix_libpath_"; then
9605 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9606 fi
9607 fi
9608 rm -f core conftest.err conftest.$ac_objext \
9609 conftest$ac_exeext conftest.$ac_ext
9610 if test -z "$lt_cv_aix_libpath_"; then
9611 lt_cv_aix_libpath_="/usr/lib:/lib"
9612 fi
9613
9614 fi
9615
9616 aix_libpath=$lt_cv_aix_libpath_
9617 fi
9618
9619 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9620 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"
9621 else
9622 if test "$host_cpu" = ia64; then
9623 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9624 allow_undefined_flag="-z nodefs"
9625 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"
9626 else
9627 # Determine the default libpath from the value encoded in an
9628 # empty executable.
9629 if test "${lt_cv_aix_libpath+set}" = set; then
9630 aix_libpath=$lt_cv_aix_libpath
9631 else
9632 if ${lt_cv_aix_libpath_+:} false; then :
9633 $as_echo_n "(cached) " >&6
9634 else
9635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9636 /* end confdefs.h. */
9637
9638 int
9639 main ()
9640 {
9641
9642 ;
9643 return 0;
9644 }
9645 _ACEOF
9646 if ac_fn_c_try_link "$LINENO"; then :
9647
9648 lt_aix_libpath_sed='
9649 /Import File Strings/,/^$/ {
9650 /^0/ {
9651 s/^0 *\([^ ]*\) *$/\1/
9652 p
9653 }
9654 }'
9655 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9656 # Check for a 64-bit object if we didn't find anything.
9657 if test -z "$lt_cv_aix_libpath_"; then
9658 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9659 fi
9660 fi
9661 rm -f core conftest.err conftest.$ac_objext \
9662 conftest$ac_exeext conftest.$ac_ext
9663 if test -z "$lt_cv_aix_libpath_"; then
9664 lt_cv_aix_libpath_="/usr/lib:/lib"
9665 fi
9666
9667 fi
9668
9669 aix_libpath=$lt_cv_aix_libpath_
9670 fi
9671
9672 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9673 # Warning - without using the other run time loading flags,
9674 # -berok will link without error, but may produce a broken library.
9675 no_undefined_flag=' ${wl}-bernotok'
9676 allow_undefined_flag=' ${wl}-berok'
9677 if test "$with_gnu_ld" = yes; then
9678 # We only use this code for GNU lds that support --whole-archive.
9679 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9680 else
9681 # Exported symbols can be pulled into shared objects from archives
9682 whole_archive_flag_spec='$convenience'
9683 fi
9684 archive_cmds_need_lc=yes
9685 # This is similar to how AIX traditionally builds its shared libraries.
9686 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'
9687 fi
9688 fi
9689 ;;
9690
9691 amigaos*)
9692 case $host_cpu in
9693 powerpc)
9694 # see comment about AmigaOS4 .so support
9695 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9696 archive_expsym_cmds=''
9697 ;;
9698 m68k)
9699 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)'
9700 hardcode_libdir_flag_spec='-L$libdir'
9701 hardcode_minus_L=yes
9702 ;;
9703 esac
9704 ;;
9705
9706 bsdi[45]*)
9707 export_dynamic_flag_spec=-rdynamic
9708 ;;
9709
9710 cygwin* | mingw* | pw32* | cegcc*)
9711 # When not using gcc, we currently assume that we are using
9712 # Microsoft Visual C++.
9713 # hardcode_libdir_flag_spec is actually meaningless, as there is
9714 # no search path for DLLs.
9715 case $cc_basename in
9716 cl*)
9717 # Native MSVC
9718 hardcode_libdir_flag_spec=' '
9719 allow_undefined_flag=unsupported
9720 always_export_symbols=yes
9721 file_list_spec='@'
9722 # Tell ltmain to make .lib files, not .a files.
9723 libext=lib
9724 # Tell ltmain to make .dll files, not .so files.
9725 shrext_cmds=".dll"
9726 # FIXME: Setting linknames here is a bad hack.
9727 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9728 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9729 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9730 else
9731 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9732 fi~
9733 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9734 linknames='
9735 # The linker will not automatically build a static lib if we build a DLL.
9736 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9737 enable_shared_with_static_runtimes=yes
9738 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9739 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9740 # Don't use ranlib
9741 old_postinstall_cmds='chmod 644 $oldlib'
9742 postlink_cmds='lt_outputfile="@OUTPUT@"~
9743 lt_tool_outputfile="@TOOL_OUTPUT@"~
9744 case $lt_outputfile in
9745 *.exe|*.EXE) ;;
9746 *)
9747 lt_outputfile="$lt_outputfile.exe"
9748 lt_tool_outputfile="$lt_tool_outputfile.exe"
9749 ;;
9750 esac~
9751 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9752 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9753 $RM "$lt_outputfile.manifest";
9754 fi'
9755 ;;
9756 *)
9757 # Assume MSVC wrapper
9758 hardcode_libdir_flag_spec=' '
9759 allow_undefined_flag=unsupported
9760 # Tell ltmain to make .lib files, not .a files.
9761 libext=lib
9762 # Tell ltmain to make .dll files, not .so files.
9763 shrext_cmds=".dll"
9764 # FIXME: Setting linknames here is a bad hack.
9765 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9766 # The linker will automatically build a .lib file if we build a DLL.
9767 old_archive_from_new_cmds='true'
9768 # FIXME: Should let the user specify the lib program.
9769 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9770 enable_shared_with_static_runtimes=yes
9771 ;;
9772 esac
9773 ;;
9774
9775 darwin* | rhapsody*)
9776
9777
9778 archive_cmds_need_lc=no
9779 hardcode_direct=no
9780 hardcode_automatic=yes
9781 hardcode_shlibpath_var=unsupported
9782 if test "$lt_cv_ld_force_load" = "yes"; then
9783 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\"`'
9784
9785 else
9786 whole_archive_flag_spec=''
9787 fi
9788 link_all_deplibs=yes
9789 allow_undefined_flag="$_lt_dar_allow_undefined"
9790 case $cc_basename in
9791 ifort*) _lt_dar_can_shared=yes ;;
9792 *) _lt_dar_can_shared=$GCC ;;
9793 esac
9794 if test "$_lt_dar_can_shared" = "yes"; then
9795 output_verbose_link_cmd=func_echo_all
9796 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9797 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9798 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}"
9799 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}"
9800
9801 else
9802 ld_shlibs=no
9803 fi
9804
9805 ;;
9806
9807 dgux*)
9808 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9809 hardcode_libdir_flag_spec='-L$libdir'
9810 hardcode_shlibpath_var=no
9811 ;;
9812
9813 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9814 # support. Future versions do this automatically, but an explicit c++rt0.o
9815 # does not break anything, and helps significantly (at the cost of a little
9816 # extra space).
9817 freebsd2.2*)
9818 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9819 hardcode_libdir_flag_spec='-R$libdir'
9820 hardcode_direct=yes
9821 hardcode_shlibpath_var=no
9822 ;;
9823
9824 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9825 freebsd2.*)
9826 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9827 hardcode_direct=yes
9828 hardcode_minus_L=yes
9829 hardcode_shlibpath_var=no
9830 ;;
9831
9832 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9833 freebsd* | dragonfly*)
9834 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9835 hardcode_libdir_flag_spec='-R$libdir'
9836 hardcode_direct=yes
9837 hardcode_shlibpath_var=no
9838 ;;
9839
9840 hpux9*)
9841 if test "$GCC" = yes; then
9842 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'
9843 else
9844 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'
9845 fi
9846 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9847 hardcode_libdir_separator=:
9848 hardcode_direct=yes
9849
9850 # hardcode_minus_L: Not really in the search PATH,
9851 # but as the default location of the library.
9852 hardcode_minus_L=yes
9853 export_dynamic_flag_spec='${wl}-E'
9854 ;;
9855
9856 hpux10*)
9857 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9858 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9859 else
9860 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9861 fi
9862 if test "$with_gnu_ld" = no; then
9863 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9864 hardcode_libdir_separator=:
9865 hardcode_direct=yes
9866 hardcode_direct_absolute=yes
9867 export_dynamic_flag_spec='${wl}-E'
9868 # hardcode_minus_L: Not really in the search PATH,
9869 # but as the default location of the library.
9870 hardcode_minus_L=yes
9871 fi
9872 ;;
9873
9874 hpux11*)
9875 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9876 case $host_cpu in
9877 hppa*64*)
9878 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9879 ;;
9880 ia64*)
9881 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9882 ;;
9883 *)
9884 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9885 ;;
9886 esac
9887 else
9888 case $host_cpu in
9889 hppa*64*)
9890 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9891 ;;
9892 ia64*)
9893 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9894 ;;
9895 *)
9896
9897 # Older versions of the 11.00 compiler do not understand -b yet
9898 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9900 $as_echo_n "checking if $CC understands -b... " >&6; }
9901 if ${lt_cv_prog_compiler__b+:} false; then :
9902 $as_echo_n "(cached) " >&6
9903 else
9904 lt_cv_prog_compiler__b=no
9905 save_LDFLAGS="$LDFLAGS"
9906 LDFLAGS="$LDFLAGS -b"
9907 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9908 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9909 # The linker can only warn and ignore the option if not recognized
9910 # So say no if there are warnings
9911 if test -s conftest.err; then
9912 # Append any errors to the config.log.
9913 cat conftest.err 1>&5
9914 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9916 if diff conftest.exp conftest.er2 >/dev/null; then
9917 lt_cv_prog_compiler__b=yes
9918 fi
9919 else
9920 lt_cv_prog_compiler__b=yes
9921 fi
9922 fi
9923 $RM -r conftest*
9924 LDFLAGS="$save_LDFLAGS"
9925
9926 fi
9927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9928 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9929
9930 if test x"$lt_cv_prog_compiler__b" = xyes; then
9931 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9932 else
9933 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9934 fi
9935
9936 ;;
9937 esac
9938 fi
9939 if test "$with_gnu_ld" = no; then
9940 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9941 hardcode_libdir_separator=:
9942
9943 case $host_cpu in
9944 hppa*64*|ia64*)
9945 hardcode_direct=no
9946 hardcode_shlibpath_var=no
9947 ;;
9948 *)
9949 hardcode_direct=yes
9950 hardcode_direct_absolute=yes
9951 export_dynamic_flag_spec='${wl}-E'
9952
9953 # hardcode_minus_L: Not really in the search PATH,
9954 # but as the default location of the library.
9955 hardcode_minus_L=yes
9956 ;;
9957 esac
9958 fi
9959 ;;
9960
9961 irix5* | irix6* | nonstopux*)
9962 if test "$GCC" = yes; then
9963 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'
9964 # Try to use the -exported_symbol ld option, if it does not
9965 # work, assume that -exports_file does not work either and
9966 # implicitly export all symbols.
9967 # This should be the same for all languages, so no per-tag cache variable.
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9969 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9970 if ${lt_cv_irix_exported_symbol+:} false; then :
9971 $as_echo_n "(cached) " >&6
9972 else
9973 save_LDFLAGS="$LDFLAGS"
9974 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9976 /* end confdefs.h. */
9977 int foo (void) { return 0; }
9978 _ACEOF
9979 if ac_fn_c_try_link "$LINENO"; then :
9980 lt_cv_irix_exported_symbol=yes
9981 else
9982 lt_cv_irix_exported_symbol=no
9983 fi
9984 rm -f core conftest.err conftest.$ac_objext \
9985 conftest$ac_exeext conftest.$ac_ext
9986 LDFLAGS="$save_LDFLAGS"
9987 fi
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9989 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9990 if test "$lt_cv_irix_exported_symbol" = yes; then
9991 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'
9992 fi
9993 else
9994 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'
9995 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'
9996 fi
9997 archive_cmds_need_lc='no'
9998 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9999 hardcode_libdir_separator=:
10000 inherit_rpath=yes
10001 link_all_deplibs=yes
10002 ;;
10003
10004 netbsd*)
10005 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10006 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10007 else
10008 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10009 fi
10010 hardcode_libdir_flag_spec='-R$libdir'
10011 hardcode_direct=yes
10012 hardcode_shlibpath_var=no
10013 ;;
10014
10015 newsos6)
10016 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10017 hardcode_direct=yes
10018 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10019 hardcode_libdir_separator=:
10020 hardcode_shlibpath_var=no
10021 ;;
10022
10023 *nto* | *qnx*)
10024 ;;
10025
10026 openbsd*)
10027 if test -f /usr/libexec/ld.so; then
10028 hardcode_direct=yes
10029 hardcode_shlibpath_var=no
10030 hardcode_direct_absolute=yes
10031 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10032 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10033 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10034 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10035 export_dynamic_flag_spec='${wl}-E'
10036 else
10037 case $host_os in
10038 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10039 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10040 hardcode_libdir_flag_spec='-R$libdir'
10041 ;;
10042 *)
10043 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10044 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10045 ;;
10046 esac
10047 fi
10048 else
10049 ld_shlibs=no
10050 fi
10051 ;;
10052
10053 os2*)
10054 hardcode_libdir_flag_spec='-L$libdir'
10055 hardcode_minus_L=yes
10056 allow_undefined_flag=unsupported
10057 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'
10058 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10059 ;;
10060
10061 osf3*)
10062 if test "$GCC" = yes; then
10063 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10064 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'
10065 else
10066 allow_undefined_flag=' -expect_unresolved \*'
10067 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'
10068 fi
10069 archive_cmds_need_lc='no'
10070 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10071 hardcode_libdir_separator=:
10072 ;;
10073
10074 osf4* | osf5*) # as osf3* with the addition of -msym flag
10075 if test "$GCC" = yes; then
10076 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10077 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'
10078 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10079 else
10080 allow_undefined_flag=' -expect_unresolved \*'
10081 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'
10082 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~
10083 $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'
10084
10085 # Both c and cxx compiler support -rpath directly
10086 hardcode_libdir_flag_spec='-rpath $libdir'
10087 fi
10088 archive_cmds_need_lc='no'
10089 hardcode_libdir_separator=:
10090 ;;
10091
10092 solaris*)
10093 no_undefined_flag=' -z defs'
10094 if test "$GCC" = yes; then
10095 wlarc='${wl}'
10096 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10097 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10098 $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'
10099 else
10100 case `$CC -V 2>&1` in
10101 *"Compilers 5.0"*)
10102 wlarc=''
10103 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10104 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10105 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10106 ;;
10107 *)
10108 wlarc='${wl}'
10109 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10110 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10111 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10112 ;;
10113 esac
10114 fi
10115 hardcode_libdir_flag_spec='-R$libdir'
10116 hardcode_shlibpath_var=no
10117 case $host_os in
10118 solaris2.[0-5] | solaris2.[0-5].*) ;;
10119 *)
10120 # The compiler driver will combine and reorder linker options,
10121 # but understands `-z linker_flag'. GCC discards it without `$wl',
10122 # but is careful enough not to reorder.
10123 # Supported since Solaris 2.6 (maybe 2.5.1?)
10124 if test "$GCC" = yes; then
10125 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10126 else
10127 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10128 fi
10129 ;;
10130 esac
10131 link_all_deplibs=yes
10132 ;;
10133
10134 sunos4*)
10135 if test "x$host_vendor" = xsequent; then
10136 # Use $CC to link under sequent, because it throws in some extra .o
10137 # files that make .init and .fini sections work.
10138 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10139 else
10140 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10141 fi
10142 hardcode_libdir_flag_spec='-L$libdir'
10143 hardcode_direct=yes
10144 hardcode_minus_L=yes
10145 hardcode_shlibpath_var=no
10146 ;;
10147
10148 sysv4)
10149 case $host_vendor in
10150 sni)
10151 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10152 hardcode_direct=yes # is this really true???
10153 ;;
10154 siemens)
10155 ## LD is ld it makes a PLAMLIB
10156 ## CC just makes a GrossModule.
10157 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10158 reload_cmds='$CC -r -o $output$reload_objs'
10159 hardcode_direct=no
10160 ;;
10161 motorola)
10162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10163 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10164 ;;
10165 esac
10166 runpath_var='LD_RUN_PATH'
10167 hardcode_shlibpath_var=no
10168 ;;
10169
10170 sysv4.3*)
10171 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10172 hardcode_shlibpath_var=no
10173 export_dynamic_flag_spec='-Bexport'
10174 ;;
10175
10176 sysv4*MP*)
10177 if test -d /usr/nec; then
10178 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10179 hardcode_shlibpath_var=no
10180 runpath_var=LD_RUN_PATH
10181 hardcode_runpath_var=yes
10182 ld_shlibs=yes
10183 fi
10184 ;;
10185
10186 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10187 no_undefined_flag='${wl}-z,text'
10188 archive_cmds_need_lc=no
10189 hardcode_shlibpath_var=no
10190 runpath_var='LD_RUN_PATH'
10191
10192 if test "$GCC" = yes; then
10193 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10194 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10195 else
10196 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10197 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10198 fi
10199 ;;
10200
10201 sysv5* | sco3.2v5* | sco5v6*)
10202 # Note: We can NOT use -z defs as we might desire, because we do not
10203 # link with -lc, and that would cause any symbols used from libc to
10204 # always be unresolved, which means just about no library would
10205 # ever link correctly. If we're not using GNU ld we use -z text
10206 # though, which does catch some bad symbols but isn't as heavy-handed
10207 # as -z defs.
10208 no_undefined_flag='${wl}-z,text'
10209 allow_undefined_flag='${wl}-z,nodefs'
10210 archive_cmds_need_lc=no
10211 hardcode_shlibpath_var=no
10212 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10213 hardcode_libdir_separator=':'
10214 link_all_deplibs=yes
10215 export_dynamic_flag_spec='${wl}-Bexport'
10216 runpath_var='LD_RUN_PATH'
10217
10218 if test "$GCC" = yes; then
10219 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10220 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10221 else
10222 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10223 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10224 fi
10225 ;;
10226
10227 uts4*)
10228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10229 hardcode_libdir_flag_spec='-L$libdir'
10230 hardcode_shlibpath_var=no
10231 ;;
10232
10233 *)
10234 ld_shlibs=no
10235 ;;
10236 esac
10237
10238 if test x$host_vendor = xsni; then
10239 case $host in
10240 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10241 export_dynamic_flag_spec='${wl}-Blargedynsym'
10242 ;;
10243 esac
10244 fi
10245 fi
10246
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10248 $as_echo "$ld_shlibs" >&6; }
10249 test "$ld_shlibs" = no && can_build_shared=no
10250
10251 with_gnu_ld=$with_gnu_ld
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267 #
10268 # Do we need to explicitly link libc?
10269 #
10270 case "x$archive_cmds_need_lc" in
10271 x|xyes)
10272 # Assume -lc should be added
10273 archive_cmds_need_lc=yes
10274
10275 if test "$enable_shared" = yes && test "$GCC" = yes; then
10276 case $archive_cmds in
10277 *'~'*)
10278 # FIXME: we may have to deal with multi-command sequences.
10279 ;;
10280 '$CC '*)
10281 # Test whether the compiler implicitly links with -lc since on some
10282 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10283 # to ld, don't add -lc before -lgcc.
10284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10285 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10286 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10287 $as_echo_n "(cached) " >&6
10288 else
10289 $RM conftest*
10290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10291
10292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10293 (eval $ac_compile) 2>&5
10294 ac_status=$?
10295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10296 test $ac_status = 0; } 2>conftest.err; then
10297 soname=conftest
10298 lib=conftest
10299 libobjs=conftest.$ac_objext
10300 deplibs=
10301 wl=$lt_prog_compiler_wl
10302 pic_flag=$lt_prog_compiler_pic
10303 compiler_flags=-v
10304 linker_flags=-v
10305 verstring=
10306 output_objdir=.
10307 libname=conftest
10308 lt_save_allow_undefined_flag=$allow_undefined_flag
10309 allow_undefined_flag=
10310 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10311 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10312 ac_status=$?
10313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10314 test $ac_status = 0; }
10315 then
10316 lt_cv_archive_cmds_need_lc=no
10317 else
10318 lt_cv_archive_cmds_need_lc=yes
10319 fi
10320 allow_undefined_flag=$lt_save_allow_undefined_flag
10321 else
10322 cat conftest.err 1>&5
10323 fi
10324 $RM conftest*
10325
10326 fi
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10328 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10329 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10330 ;;
10331 esac
10332 fi
10333 ;;
10334 esac
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422
10423
10424
10425
10426
10427
10428
10429
10430
10431
10432
10433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10488 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10489
10490 if test "$GCC" = yes; then
10491 case $host_os in
10492 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10493 *) lt_awk_arg="/^libraries:/" ;;
10494 esac
10495 case $host_os in
10496 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10497 *) lt_sed_strip_eq="s,=/,/,g" ;;
10498 esac
10499 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10500 case $lt_search_path_spec in
10501 *\;*)
10502 # if the path contains ";" then we assume it to be the separator
10503 # otherwise default to the standard path separator (i.e. ":") - it is
10504 # assumed that no part of a normal pathname contains ";" but that should
10505 # okay in the real world where ";" in dirpaths is itself problematic.
10506 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10507 ;;
10508 *)
10509 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10510 ;;
10511 esac
10512 # Ok, now we have the path, separated by spaces, we can step through it
10513 # and add multilib dir if necessary.
10514 lt_tmp_lt_search_path_spec=
10515 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10516 for lt_sys_path in $lt_search_path_spec; do
10517 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10518 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10519 else
10520 test -d "$lt_sys_path" && \
10521 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10522 fi
10523 done
10524 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10525 BEGIN {RS=" "; FS="/|\n";} {
10526 lt_foo="";
10527 lt_count=0;
10528 for (lt_i = NF; lt_i > 0; lt_i--) {
10529 if ($lt_i != "" && $lt_i != ".") {
10530 if ($lt_i == "..") {
10531 lt_count++;
10532 } else {
10533 if (lt_count == 0) {
10534 lt_foo="/" $lt_i lt_foo;
10535 } else {
10536 lt_count--;
10537 }
10538 }
10539 }
10540 }
10541 if (lt_foo != "") { lt_freq[lt_foo]++; }
10542 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10543 }'`
10544 # AWK program above erroneously prepends '/' to C:/dos/paths
10545 # for these hosts.
10546 case $host_os in
10547 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10548 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10549 esac
10550 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10551 else
10552 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10553 fi
10554 library_names_spec=
10555 libname_spec='lib$name'
10556 soname_spec=
10557 shrext_cmds=".so"
10558 postinstall_cmds=
10559 postuninstall_cmds=
10560 finish_cmds=
10561 finish_eval=
10562 shlibpath_var=
10563 shlibpath_overrides_runpath=unknown
10564 version_type=none
10565 dynamic_linker="$host_os ld.so"
10566 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10567 need_lib_prefix=unknown
10568 hardcode_into_libs=no
10569
10570 # when you set need_version to no, make sure it does not cause -set_version
10571 # flags to be left without arguments
10572 need_version=unknown
10573
10574 case $host_os in
10575 aix3*)
10576 version_type=linux # correct to gnu/linux during the next big refactor
10577 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10578 shlibpath_var=LIBPATH
10579
10580 # AIX 3 has no versioning support, so we append a major version to the name.
10581 soname_spec='${libname}${release}${shared_ext}$major'
10582 ;;
10583
10584 aix[4-9]*)
10585 version_type=linux # correct to gnu/linux during the next big refactor
10586 need_lib_prefix=no
10587 need_version=no
10588 hardcode_into_libs=yes
10589 if test "$host_cpu" = ia64; then
10590 # AIX 5 supports IA64
10591 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 else
10594 # With GCC up to 2.95.x, collect2 would create an import file
10595 # for dependence libraries. The import file would start with
10596 # the line `#! .'. This would cause the generated library to
10597 # depend on `.', always an invalid library. This was fixed in
10598 # development snapshots of GCC prior to 3.0.
10599 case $host_os in
10600 aix4 | aix4.[01] | aix4.[01].*)
10601 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10602 echo ' yes '
10603 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10604 :
10605 else
10606 can_build_shared=no
10607 fi
10608 ;;
10609 esac
10610 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10611 # soname into executable. Probably we can add versioning support to
10612 # collect2, so additional links can be useful in future.
10613 if test "$aix_use_runtimelinking" = yes; then
10614 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10615 # instead of lib<name>.a to let people know that these are not
10616 # typical AIX shared libraries.
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10618 else
10619 # We preserve .a as extension for shared libraries through AIX4.2
10620 # and later when we are not doing run time linking.
10621 library_names_spec='${libname}${release}.a $libname.a'
10622 soname_spec='${libname}${release}${shared_ext}$major'
10623 fi
10624 shlibpath_var=LIBPATH
10625 fi
10626 ;;
10627
10628 amigaos*)
10629 case $host_cpu in
10630 powerpc)
10631 # Since July 2007 AmigaOS4 officially supports .so libraries.
10632 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10634 ;;
10635 m68k)
10636 library_names_spec='$libname.ixlibrary $libname.a'
10637 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10638 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'
10639 ;;
10640 esac
10641 ;;
10642
10643 beos*)
10644 library_names_spec='${libname}${shared_ext}'
10645 dynamic_linker="$host_os ld.so"
10646 shlibpath_var=LIBRARY_PATH
10647 ;;
10648
10649 bsdi[45]*)
10650 version_type=linux # correct to gnu/linux during the next big refactor
10651 need_version=no
10652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10653 soname_spec='${libname}${release}${shared_ext}$major'
10654 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10655 shlibpath_var=LD_LIBRARY_PATH
10656 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10657 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10658 # the default ld.so.conf also contains /usr/contrib/lib and
10659 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10660 # libtool to hard-code these into programs
10661 ;;
10662
10663 cygwin* | mingw* | pw32* | cegcc*)
10664 version_type=windows
10665 shrext_cmds=".dll"
10666 need_version=no
10667 need_lib_prefix=no
10668
10669 case $GCC,$cc_basename in
10670 yes,*)
10671 # gcc
10672 library_names_spec='$libname.dll.a'
10673 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10674 postinstall_cmds='base_file=`basename \${file}`~
10675 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10676 dldir=$destdir/`dirname \$dlpath`~
10677 test -d \$dldir || mkdir -p \$dldir~
10678 $install_prog $dir/$dlname \$dldir/$dlname~
10679 chmod a+x \$dldir/$dlname~
10680 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10681 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10682 fi'
10683 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10684 dlpath=$dir/\$dldll~
10685 $RM \$dlpath'
10686 shlibpath_overrides_runpath=yes
10687
10688 case $host_os in
10689 cygwin*)
10690 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10691 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10692
10693 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10694 ;;
10695 mingw* | cegcc*)
10696 # MinGW DLLs use traditional 'lib' prefix
10697 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10698 ;;
10699 pw32*)
10700 # pw32 DLLs use 'pw' prefix rather than 'lib'
10701 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10702 ;;
10703 esac
10704 dynamic_linker='Win32 ld.exe'
10705 ;;
10706
10707 *,cl*)
10708 # Native MSVC
10709 libname_spec='$name'
10710 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10711 library_names_spec='${libname}.dll.lib'
10712
10713 case $build_os in
10714 mingw*)
10715 sys_lib_search_path_spec=
10716 lt_save_ifs=$IFS
10717 IFS=';'
10718 for lt_path in $LIB
10719 do
10720 IFS=$lt_save_ifs
10721 # Let DOS variable expansion print the short 8.3 style file name.
10722 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10723 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10724 done
10725 IFS=$lt_save_ifs
10726 # Convert to MSYS style.
10727 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10728 ;;
10729 cygwin*)
10730 # Convert to unix form, then to dos form, then back to unix form
10731 # but this time dos style (no spaces!) so that the unix form looks
10732 # like /cygdrive/c/PROGRA~1:/cygdr...
10733 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10734 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10735 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10736 ;;
10737 *)
10738 sys_lib_search_path_spec="$LIB"
10739 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10740 # It is most probably a Windows format PATH.
10741 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10742 else
10743 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10744 fi
10745 # FIXME: find the short name or the path components, as spaces are
10746 # common. (e.g. "Program Files" -> "PROGRA~1")
10747 ;;
10748 esac
10749
10750 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10751 postinstall_cmds='base_file=`basename \${file}`~
10752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10753 dldir=$destdir/`dirname \$dlpath`~
10754 test -d \$dldir || mkdir -p \$dldir~
10755 $install_prog $dir/$dlname \$dldir/$dlname'
10756 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10757 dlpath=$dir/\$dldll~
10758 $RM \$dlpath'
10759 shlibpath_overrides_runpath=yes
10760 dynamic_linker='Win32 link.exe'
10761 ;;
10762
10763 *)
10764 # Assume MSVC wrapper
10765 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10766 dynamic_linker='Win32 ld.exe'
10767 ;;
10768 esac
10769 # FIXME: first we should search . and the directory the executable is in
10770 shlibpath_var=PATH
10771 ;;
10772
10773 darwin* | rhapsody*)
10774 dynamic_linker="$host_os dyld"
10775 version_type=darwin
10776 need_lib_prefix=no
10777 need_version=no
10778 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10779 soname_spec='${libname}${release}${major}$shared_ext'
10780 shlibpath_overrides_runpath=yes
10781 shlibpath_var=DYLD_LIBRARY_PATH
10782 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10783
10784 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10785 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10786 ;;
10787
10788 dgux*)
10789 version_type=linux # correct to gnu/linux during the next big refactor
10790 need_lib_prefix=no
10791 need_version=no
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10793 soname_spec='${libname}${release}${shared_ext}$major'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 ;;
10796
10797 freebsd* | dragonfly*)
10798 # DragonFly does not have aout. When/if they implement a new
10799 # versioning mechanism, adjust this.
10800 if test -x /usr/bin/objformat; then
10801 objformat=`/usr/bin/objformat`
10802 else
10803 case $host_os in
10804 freebsd[23].*) objformat=aout ;;
10805 *) objformat=elf ;;
10806 esac
10807 fi
10808 version_type=freebsd-$objformat
10809 case $version_type in
10810 freebsd-elf*)
10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10812 need_version=no
10813 need_lib_prefix=no
10814 ;;
10815 freebsd-*)
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10817 need_version=yes
10818 ;;
10819 esac
10820 shlibpath_var=LD_LIBRARY_PATH
10821 case $host_os in
10822 freebsd2.*)
10823 shlibpath_overrides_runpath=yes
10824 ;;
10825 freebsd3.[01]* | freebsdelf3.[01]*)
10826 shlibpath_overrides_runpath=yes
10827 hardcode_into_libs=yes
10828 ;;
10829 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10830 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10831 shlibpath_overrides_runpath=no
10832 hardcode_into_libs=yes
10833 ;;
10834 *) # from 4.6 on, and DragonFly
10835 shlibpath_overrides_runpath=yes
10836 hardcode_into_libs=yes
10837 ;;
10838 esac
10839 ;;
10840
10841 gnu*)
10842 version_type=linux # correct to gnu/linux during the next big refactor
10843 need_lib_prefix=no
10844 need_version=no
10845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10846 soname_spec='${libname}${release}${shared_ext}$major'
10847 shlibpath_var=LD_LIBRARY_PATH
10848 shlibpath_overrides_runpath=no
10849 hardcode_into_libs=yes
10850 ;;
10851
10852 haiku*)
10853 version_type=linux # correct to gnu/linux during the next big refactor
10854 need_lib_prefix=no
10855 need_version=no
10856 dynamic_linker="$host_os runtime_loader"
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10858 soname_spec='${libname}${release}${shared_ext}$major'
10859 shlibpath_var=LIBRARY_PATH
10860 shlibpath_overrides_runpath=yes
10861 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10862 hardcode_into_libs=yes
10863 ;;
10864
10865 hpux9* | hpux10* | hpux11*)
10866 # Give a soname corresponding to the major version so that dld.sl refuses to
10867 # link against other versions.
10868 version_type=sunos
10869 need_lib_prefix=no
10870 need_version=no
10871 case $host_cpu in
10872 ia64*)
10873 shrext_cmds='.so'
10874 hardcode_into_libs=yes
10875 dynamic_linker="$host_os dld.so"
10876 shlibpath_var=LD_LIBRARY_PATH
10877 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879 soname_spec='${libname}${release}${shared_ext}$major'
10880 if test "X$HPUX_IA64_MODE" = X32; then
10881 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10882 else
10883 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10884 fi
10885 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10886 ;;
10887 hppa*64*)
10888 shrext_cmds='.sl'
10889 hardcode_into_libs=yes
10890 dynamic_linker="$host_os dld.sl"
10891 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10892 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10894 soname_spec='${libname}${release}${shared_ext}$major'
10895 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10896 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10897 ;;
10898 *)
10899 shrext_cmds='.sl'
10900 dynamic_linker="$host_os dld.sl"
10901 shlibpath_var=SHLIB_PATH
10902 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10904 soname_spec='${libname}${release}${shared_ext}$major'
10905 ;;
10906 esac
10907 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10908 postinstall_cmds='chmod 555 $lib'
10909 # or fails outright, so override atomically:
10910 install_override_mode=555
10911 ;;
10912
10913 interix[3-9]*)
10914 version_type=linux # correct to gnu/linux during the next big refactor
10915 need_lib_prefix=no
10916 need_version=no
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10918 soname_spec='${libname}${release}${shared_ext}$major'
10919 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 shlibpath_overrides_runpath=no
10922 hardcode_into_libs=yes
10923 ;;
10924
10925 irix5* | irix6* | nonstopux*)
10926 case $host_os in
10927 nonstopux*) version_type=nonstopux ;;
10928 *)
10929 if test "$lt_cv_prog_gnu_ld" = yes; then
10930 version_type=linux # correct to gnu/linux during the next big refactor
10931 else
10932 version_type=irix
10933 fi ;;
10934 esac
10935 need_lib_prefix=no
10936 need_version=no
10937 soname_spec='${libname}${release}${shared_ext}$major'
10938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10939 case $host_os in
10940 irix5* | nonstopux*)
10941 libsuff= shlibsuff=
10942 ;;
10943 *)
10944 case $LD in # libtool.m4 will add one of these switches to LD
10945 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10946 libsuff= shlibsuff= libmagic=32-bit;;
10947 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10948 libsuff=32 shlibsuff=N32 libmagic=N32;;
10949 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10950 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10951 *) libsuff= shlibsuff= libmagic=never-match;;
10952 esac
10953 ;;
10954 esac
10955 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10956 shlibpath_overrides_runpath=no
10957 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10958 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10959 hardcode_into_libs=yes
10960 ;;
10961
10962 # No shared lib support for Linux oldld, aout, or coff.
10963 linux*oldld* | linux*aout* | linux*coff*)
10964 dynamic_linker=no
10965 ;;
10966
10967 # This must be glibc/ELF.
10968 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10969 version_type=linux # correct to gnu/linux during the next big refactor
10970 need_lib_prefix=no
10971 need_version=no
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10975 shlibpath_var=LD_LIBRARY_PATH
10976 shlibpath_overrides_runpath=no
10977
10978 # Some binutils ld are patched to set DT_RUNPATH
10979 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10980 $as_echo_n "(cached) " >&6
10981 else
10982 lt_cv_shlibpath_overrides_runpath=no
10983 save_LDFLAGS=$LDFLAGS
10984 save_libdir=$libdir
10985 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10986 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10988 /* end confdefs.h. */
10989
10990 int
10991 main ()
10992 {
10993
10994 ;
10995 return 0;
10996 }
10997 _ACEOF
10998 if ac_fn_c_try_link "$LINENO"; then :
10999 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11000 lt_cv_shlibpath_overrides_runpath=yes
11001 fi
11002 fi
11003 rm -f core conftest.err conftest.$ac_objext \
11004 conftest$ac_exeext conftest.$ac_ext
11005 LDFLAGS=$save_LDFLAGS
11006 libdir=$save_libdir
11007
11008 fi
11009
11010 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11011
11012 # This implies no fast_install, which is unacceptable.
11013 # Some rework will be needed to allow for fast_install
11014 # before this can be enabled.
11015 hardcode_into_libs=yes
11016
11017 # Append ld.so.conf contents to the search path
11018 if test -f /etc/ld.so.conf; then
11019 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' ' '`
11020 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11021 fi
11022
11023 # We used to test for /lib/ld.so.1 and disable shared libraries on
11024 # powerpc, because MkLinux only supported shared libraries with the
11025 # GNU dynamic linker. Since this was broken with cross compilers,
11026 # most powerpc-linux boxes support dynamic linking these days and
11027 # people can always --disable-shared, the test was removed, and we
11028 # assume the GNU/Linux dynamic linker is in use.
11029 dynamic_linker='GNU/Linux ld.so'
11030 ;;
11031
11032 netbsd*)
11033 version_type=sunos
11034 need_lib_prefix=no
11035 need_version=no
11036 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11039 dynamic_linker='NetBSD (a.out) ld.so'
11040 else
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11042 soname_spec='${libname}${release}${shared_ext}$major'
11043 dynamic_linker='NetBSD ld.elf_so'
11044 fi
11045 shlibpath_var=LD_LIBRARY_PATH
11046 shlibpath_overrides_runpath=yes
11047 hardcode_into_libs=yes
11048 ;;
11049
11050 newsos6)
11051 version_type=linux # correct to gnu/linux during the next big refactor
11052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11053 shlibpath_var=LD_LIBRARY_PATH
11054 shlibpath_overrides_runpath=yes
11055 ;;
11056
11057 *nto* | *qnx*)
11058 version_type=qnx
11059 need_lib_prefix=no
11060 need_version=no
11061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11062 soname_spec='${libname}${release}${shared_ext}$major'
11063 shlibpath_var=LD_LIBRARY_PATH
11064 shlibpath_overrides_runpath=no
11065 hardcode_into_libs=yes
11066 dynamic_linker='ldqnx.so'
11067 ;;
11068
11069 openbsd*)
11070 version_type=sunos
11071 sys_lib_dlsearch_path_spec="/usr/lib"
11072 need_lib_prefix=no
11073 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11074 case $host_os in
11075 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11076 *) need_version=no ;;
11077 esac
11078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11079 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11080 shlibpath_var=LD_LIBRARY_PATH
11081 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11082 case $host_os in
11083 openbsd2.[89] | openbsd2.[89].*)
11084 shlibpath_overrides_runpath=no
11085 ;;
11086 *)
11087 shlibpath_overrides_runpath=yes
11088 ;;
11089 esac
11090 else
11091 shlibpath_overrides_runpath=yes
11092 fi
11093 ;;
11094
11095 os2*)
11096 libname_spec='$name'
11097 shrext_cmds=".dll"
11098 need_lib_prefix=no
11099 library_names_spec='$libname${shared_ext} $libname.a'
11100 dynamic_linker='OS/2 ld.exe'
11101 shlibpath_var=LIBPATH
11102 ;;
11103
11104 osf3* | osf4* | osf5*)
11105 version_type=osf
11106 need_lib_prefix=no
11107 need_version=no
11108 soname_spec='${libname}${release}${shared_ext}$major'
11109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11112 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11113 ;;
11114
11115 rdos*)
11116 dynamic_linker=no
11117 ;;
11118
11119 solaris*)
11120 version_type=linux # correct to gnu/linux during the next big refactor
11121 need_lib_prefix=no
11122 need_version=no
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 soname_spec='${libname}${release}${shared_ext}$major'
11125 shlibpath_var=LD_LIBRARY_PATH
11126 shlibpath_overrides_runpath=yes
11127 hardcode_into_libs=yes
11128 # ldd complains unless libraries are executable
11129 postinstall_cmds='chmod +x $lib'
11130 ;;
11131
11132 sunos4*)
11133 version_type=sunos
11134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11136 shlibpath_var=LD_LIBRARY_PATH
11137 shlibpath_overrides_runpath=yes
11138 if test "$with_gnu_ld" = yes; then
11139 need_lib_prefix=no
11140 fi
11141 need_version=yes
11142 ;;
11143
11144 sysv4 | sysv4.3*)
11145 version_type=linux # correct to gnu/linux during the next big refactor
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147 soname_spec='${libname}${release}${shared_ext}$major'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 case $host_vendor in
11150 sni)
11151 shlibpath_overrides_runpath=no
11152 need_lib_prefix=no
11153 runpath_var=LD_RUN_PATH
11154 ;;
11155 siemens)
11156 need_lib_prefix=no
11157 ;;
11158 motorola)
11159 need_lib_prefix=no
11160 need_version=no
11161 shlibpath_overrides_runpath=no
11162 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11163 ;;
11164 esac
11165 ;;
11166
11167 sysv4*MP*)
11168 if test -d /usr/nec ;then
11169 version_type=linux # correct to gnu/linux during the next big refactor
11170 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11171 soname_spec='$libname${shared_ext}.$major'
11172 shlibpath_var=LD_LIBRARY_PATH
11173 fi
11174 ;;
11175
11176 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11177 version_type=freebsd-elf
11178 need_lib_prefix=no
11179 need_version=no
11180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11181 soname_spec='${libname}${release}${shared_ext}$major'
11182 shlibpath_var=LD_LIBRARY_PATH
11183 shlibpath_overrides_runpath=yes
11184 hardcode_into_libs=yes
11185 if test "$with_gnu_ld" = yes; then
11186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11187 else
11188 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11189 case $host_os in
11190 sco3.2v5*)
11191 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11192 ;;
11193 esac
11194 fi
11195 sys_lib_dlsearch_path_spec='/usr/lib'
11196 ;;
11197
11198 tpf*)
11199 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11200 version_type=linux # correct to gnu/linux during the next big refactor
11201 need_lib_prefix=no
11202 need_version=no
11203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204 shlibpath_var=LD_LIBRARY_PATH
11205 shlibpath_overrides_runpath=no
11206 hardcode_into_libs=yes
11207 ;;
11208
11209 uts4*)
11210 version_type=linux # correct to gnu/linux during the next big refactor
11211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 shlibpath_var=LD_LIBRARY_PATH
11214 ;;
11215
11216 *)
11217 dynamic_linker=no
11218 ;;
11219 esac
11220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11221 $as_echo "$dynamic_linker" >&6; }
11222 test "$dynamic_linker" = no && can_build_shared=no
11223
11224 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11225 if test "$GCC" = yes; then
11226 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11227 fi
11228
11229 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11230 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11231 fi
11232 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11233 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11234 fi
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11328 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11329 hardcode_action=
11330 if test -n "$hardcode_libdir_flag_spec" ||
11331 test -n "$runpath_var" ||
11332 test "X$hardcode_automatic" = "Xyes" ; then
11333
11334 # We can hardcode non-existent directories.
11335 if test "$hardcode_direct" != no &&
11336 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11337 # have to relink, otherwise we might link with an installed library
11338 # when we should be linking with a yet-to-be-installed one
11339 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11340 test "$hardcode_minus_L" != no; then
11341 # Linking always hardcodes the temporary library directory.
11342 hardcode_action=relink
11343 else
11344 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11345 hardcode_action=immediate
11346 fi
11347 else
11348 # We cannot hardcode anything, or else we can only hardcode existing
11349 # directories.
11350 hardcode_action=unsupported
11351 fi
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11353 $as_echo "$hardcode_action" >&6; }
11354
11355 if test "$hardcode_action" = relink ||
11356 test "$inherit_rpath" = yes; then
11357 # Fast installation is not supported
11358 enable_fast_install=no
11359 elif test "$shlibpath_overrides_runpath" = yes ||
11360 test "$enable_shared" = no; then
11361 # Fast installation is not necessary
11362 enable_fast_install=needless
11363 fi
11364
11365
11366
11367
11368
11369
11370 if test "x$enable_dlopen" != xyes; then
11371 enable_dlopen=unknown
11372 enable_dlopen_self=unknown
11373 enable_dlopen_self_static=unknown
11374 else
11375 lt_cv_dlopen=no
11376 lt_cv_dlopen_libs=
11377
11378 case $host_os in
11379 beos*)
11380 lt_cv_dlopen="load_add_on"
11381 lt_cv_dlopen_libs=
11382 lt_cv_dlopen_self=yes
11383 ;;
11384
11385 mingw* | pw32* | cegcc*)
11386 lt_cv_dlopen="LoadLibrary"
11387 lt_cv_dlopen_libs=
11388 ;;
11389
11390 cygwin*)
11391 lt_cv_dlopen="dlopen"
11392 lt_cv_dlopen_libs=
11393 ;;
11394
11395 darwin*)
11396 # if libdl is installed we need to link against it
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11398 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11399 if ${ac_cv_lib_dl_dlopen+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 ac_check_lib_save_LIBS=$LIBS
11403 LIBS="-ldl $LIBS"
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406
11407 /* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char dlopen ();
11414 int
11415 main ()
11416 {
11417 return dlopen ();
11418 ;
11419 return 0;
11420 }
11421 _ACEOF
11422 if ac_fn_c_try_link "$LINENO"; then :
11423 ac_cv_lib_dl_dlopen=yes
11424 else
11425 ac_cv_lib_dl_dlopen=no
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11432 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11433 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11434 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11435 else
11436
11437 lt_cv_dlopen="dyld"
11438 lt_cv_dlopen_libs=
11439 lt_cv_dlopen_self=yes
11440
11441 fi
11442
11443 ;;
11444
11445 *)
11446 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11447 if test "x$ac_cv_func_shl_load" = xyes; then :
11448 lt_cv_dlopen="shl_load"
11449 else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11451 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11452 if ${ac_cv_lib_dld_shl_load+:} false; then :
11453 $as_echo_n "(cached) " >&6
11454 else
11455 ac_check_lib_save_LIBS=$LIBS
11456 LIBS="-ldld $LIBS"
11457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11458 /* end confdefs.h. */
11459
11460 /* Override any GCC internal prototype to avoid an error.
11461 Use char because int might match the return type of a GCC
11462 builtin and then its argument prototype would still apply. */
11463 #ifdef __cplusplus
11464 extern "C"
11465 #endif
11466 char shl_load ();
11467 int
11468 main ()
11469 {
11470 return shl_load ();
11471 ;
11472 return 0;
11473 }
11474 _ACEOF
11475 if ac_fn_c_try_link "$LINENO"; then :
11476 ac_cv_lib_dld_shl_load=yes
11477 else
11478 ac_cv_lib_dld_shl_load=no
11479 fi
11480 rm -f core conftest.err conftest.$ac_objext \
11481 conftest$ac_exeext conftest.$ac_ext
11482 LIBS=$ac_check_lib_save_LIBS
11483 fi
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11485 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11486 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11487 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11488 else
11489 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11490 if test "x$ac_cv_func_dlopen" = xyes; then :
11491 lt_cv_dlopen="dlopen"
11492 else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11494 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11495 if ${ac_cv_lib_dl_dlopen+:} false; then :
11496 $as_echo_n "(cached) " >&6
11497 else
11498 ac_check_lib_save_LIBS=$LIBS
11499 LIBS="-ldl $LIBS"
11500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11501 /* end confdefs.h. */
11502
11503 /* Override any GCC internal prototype to avoid an error.
11504 Use char because int might match the return type of a GCC
11505 builtin and then its argument prototype would still apply. */
11506 #ifdef __cplusplus
11507 extern "C"
11508 #endif
11509 char dlopen ();
11510 int
11511 main ()
11512 {
11513 return dlopen ();
11514 ;
11515 return 0;
11516 }
11517 _ACEOF
11518 if ac_fn_c_try_link "$LINENO"; then :
11519 ac_cv_lib_dl_dlopen=yes
11520 else
11521 ac_cv_lib_dl_dlopen=no
11522 fi
11523 rm -f core conftest.err conftest.$ac_objext \
11524 conftest$ac_exeext conftest.$ac_ext
11525 LIBS=$ac_check_lib_save_LIBS
11526 fi
11527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11528 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11529 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11530 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11531 else
11532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11533 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11534 if ${ac_cv_lib_svld_dlopen+:} false; then :
11535 $as_echo_n "(cached) " >&6
11536 else
11537 ac_check_lib_save_LIBS=$LIBS
11538 LIBS="-lsvld $LIBS"
11539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11540 /* end confdefs.h. */
11541
11542 /* Override any GCC internal prototype to avoid an error.
11543 Use char because int might match the return type of a GCC
11544 builtin and then its argument prototype would still apply. */
11545 #ifdef __cplusplus
11546 extern "C"
11547 #endif
11548 char dlopen ();
11549 int
11550 main ()
11551 {
11552 return dlopen ();
11553 ;
11554 return 0;
11555 }
11556 _ACEOF
11557 if ac_fn_c_try_link "$LINENO"; then :
11558 ac_cv_lib_svld_dlopen=yes
11559 else
11560 ac_cv_lib_svld_dlopen=no
11561 fi
11562 rm -f core conftest.err conftest.$ac_objext \
11563 conftest$ac_exeext conftest.$ac_ext
11564 LIBS=$ac_check_lib_save_LIBS
11565 fi
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11567 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11568 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11569 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11570 else
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11572 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11573 if ${ac_cv_lib_dld_dld_link+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 ac_check_lib_save_LIBS=$LIBS
11577 LIBS="-ldld $LIBS"
11578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11579 /* end confdefs.h. */
11580
11581 /* Override any GCC internal prototype to avoid an error.
11582 Use char because int might match the return type of a GCC
11583 builtin and then its argument prototype would still apply. */
11584 #ifdef __cplusplus
11585 extern "C"
11586 #endif
11587 char dld_link ();
11588 int
11589 main ()
11590 {
11591 return dld_link ();
11592 ;
11593 return 0;
11594 }
11595 _ACEOF
11596 if ac_fn_c_try_link "$LINENO"; then :
11597 ac_cv_lib_dld_dld_link=yes
11598 else
11599 ac_cv_lib_dld_dld_link=no
11600 fi
11601 rm -f core conftest.err conftest.$ac_objext \
11602 conftest$ac_exeext conftest.$ac_ext
11603 LIBS=$ac_check_lib_save_LIBS
11604 fi
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11606 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11607 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11608 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11609 fi
11610
11611
11612 fi
11613
11614
11615 fi
11616
11617
11618 fi
11619
11620
11621 fi
11622
11623
11624 fi
11625
11626 ;;
11627 esac
11628
11629 if test "x$lt_cv_dlopen" != xno; then
11630 enable_dlopen=yes
11631 else
11632 enable_dlopen=no
11633 fi
11634
11635 case $lt_cv_dlopen in
11636 dlopen)
11637 save_CPPFLAGS="$CPPFLAGS"
11638 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11639
11640 save_LDFLAGS="$LDFLAGS"
11641 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11642
11643 save_LIBS="$LIBS"
11644 LIBS="$lt_cv_dlopen_libs $LIBS"
11645
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11647 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11648 if ${lt_cv_dlopen_self+:} false; then :
11649 $as_echo_n "(cached) " >&6
11650 else
11651 if test "$cross_compiling" = yes; then :
11652 lt_cv_dlopen_self=cross
11653 else
11654 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11655 lt_status=$lt_dlunknown
11656 cat > conftest.$ac_ext <<_LT_EOF
11657 #line $LINENO "configure"
11658 #include "confdefs.h"
11659
11660 #if HAVE_DLFCN_H
11661 #include <dlfcn.h>
11662 #endif
11663
11664 #include <stdio.h>
11665
11666 #ifdef RTLD_GLOBAL
11667 # define LT_DLGLOBAL RTLD_GLOBAL
11668 #else
11669 # ifdef DL_GLOBAL
11670 # define LT_DLGLOBAL DL_GLOBAL
11671 # else
11672 # define LT_DLGLOBAL 0
11673 # endif
11674 #endif
11675
11676 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11677 find out it does not work in some platform. */
11678 #ifndef LT_DLLAZY_OR_NOW
11679 # ifdef RTLD_LAZY
11680 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11681 # else
11682 # ifdef DL_LAZY
11683 # define LT_DLLAZY_OR_NOW DL_LAZY
11684 # else
11685 # ifdef RTLD_NOW
11686 # define LT_DLLAZY_OR_NOW RTLD_NOW
11687 # else
11688 # ifdef DL_NOW
11689 # define LT_DLLAZY_OR_NOW DL_NOW
11690 # else
11691 # define LT_DLLAZY_OR_NOW 0
11692 # endif
11693 # endif
11694 # endif
11695 # endif
11696 #endif
11697
11698 /* When -fvisbility=hidden is used, assume the code has been annotated
11699 correspondingly for the symbols needed. */
11700 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11701 int fnord () __attribute__((visibility("default")));
11702 #endif
11703
11704 int fnord () { return 42; }
11705 int main ()
11706 {
11707 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11708 int status = $lt_dlunknown;
11709
11710 if (self)
11711 {
11712 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11713 else
11714 {
11715 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11716 else puts (dlerror ());
11717 }
11718 /* dlclose (self); */
11719 }
11720 else
11721 puts (dlerror ());
11722
11723 return status;
11724 }
11725 _LT_EOF
11726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11727 (eval $ac_link) 2>&5
11728 ac_status=$?
11729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11730 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11731 (./conftest; exit; ) >&5 2>/dev/null
11732 lt_status=$?
11733 case x$lt_status in
11734 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11735 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11736 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11737 esac
11738 else :
11739 # compilation failed
11740 lt_cv_dlopen_self=no
11741 fi
11742 fi
11743 rm -fr conftest*
11744
11745
11746 fi
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11748 $as_echo "$lt_cv_dlopen_self" >&6; }
11749
11750 if test "x$lt_cv_dlopen_self" = xyes; then
11751 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11753 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11754 if ${lt_cv_dlopen_self_static+:} false; then :
11755 $as_echo_n "(cached) " >&6
11756 else
11757 if test "$cross_compiling" = yes; then :
11758 lt_cv_dlopen_self_static=cross
11759 else
11760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11761 lt_status=$lt_dlunknown
11762 cat > conftest.$ac_ext <<_LT_EOF
11763 #line $LINENO "configure"
11764 #include "confdefs.h"
11765
11766 #if HAVE_DLFCN_H
11767 #include <dlfcn.h>
11768 #endif
11769
11770 #include <stdio.h>
11771
11772 #ifdef RTLD_GLOBAL
11773 # define LT_DLGLOBAL RTLD_GLOBAL
11774 #else
11775 # ifdef DL_GLOBAL
11776 # define LT_DLGLOBAL DL_GLOBAL
11777 # else
11778 # define LT_DLGLOBAL 0
11779 # endif
11780 #endif
11781
11782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11783 find out it does not work in some platform. */
11784 #ifndef LT_DLLAZY_OR_NOW
11785 # ifdef RTLD_LAZY
11786 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11787 # else
11788 # ifdef DL_LAZY
11789 # define LT_DLLAZY_OR_NOW DL_LAZY
11790 # else
11791 # ifdef RTLD_NOW
11792 # define LT_DLLAZY_OR_NOW RTLD_NOW
11793 # else
11794 # ifdef DL_NOW
11795 # define LT_DLLAZY_OR_NOW DL_NOW
11796 # else
11797 # define LT_DLLAZY_OR_NOW 0
11798 # endif
11799 # endif
11800 # endif
11801 # endif
11802 #endif
11803
11804 /* When -fvisbility=hidden is used, assume the code has been annotated
11805 correspondingly for the symbols needed. */
11806 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11807 int fnord () __attribute__((visibility("default")));
11808 #endif
11809
11810 int fnord () { return 42; }
11811 int main ()
11812 {
11813 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11814 int status = $lt_dlunknown;
11815
11816 if (self)
11817 {
11818 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11819 else
11820 {
11821 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11822 else puts (dlerror ());
11823 }
11824 /* dlclose (self); */
11825 }
11826 else
11827 puts (dlerror ());
11828
11829 return status;
11830 }
11831 _LT_EOF
11832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11833 (eval $ac_link) 2>&5
11834 ac_status=$?
11835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11836 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11837 (./conftest; exit; ) >&5 2>/dev/null
11838 lt_status=$?
11839 case x$lt_status in
11840 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11841 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11842 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11843 esac
11844 else :
11845 # compilation failed
11846 lt_cv_dlopen_self_static=no
11847 fi
11848 fi
11849 rm -fr conftest*
11850
11851
11852 fi
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11854 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11855 fi
11856
11857 CPPFLAGS="$save_CPPFLAGS"
11858 LDFLAGS="$save_LDFLAGS"
11859 LIBS="$save_LIBS"
11860 ;;
11861 esac
11862
11863 case $lt_cv_dlopen_self in
11864 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11865 *) enable_dlopen_self=unknown ;;
11866 esac
11867
11868 case $lt_cv_dlopen_self_static in
11869 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11870 *) enable_dlopen_self_static=unknown ;;
11871 esac
11872 fi
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890 striplib=
11891 old_striplib=
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11893 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11894 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11895 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11896 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; }
11899 else
11900 # FIXME - insert some real tests, host_os isn't really good enough
11901 case $host_os in
11902 darwin*)
11903 if test -n "$STRIP" ; then
11904 striplib="$STRIP -x"
11905 old_striplib="$STRIP -S"
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11907 $as_echo "yes" >&6; }
11908 else
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11910 $as_echo "no" >&6; }
11911 fi
11912 ;;
11913 *)
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 ;;
11917 esac
11918 fi
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931 # Report which library types will actually be built
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11933 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11935 $as_echo "$can_build_shared" >&6; }
11936
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11938 $as_echo_n "checking whether to build shared libraries... " >&6; }
11939 test "$can_build_shared" = "no" && enable_shared=no
11940
11941 # On AIX, shared libraries and static libraries use the same namespace, and
11942 # are all built from PIC.
11943 case $host_os in
11944 aix3*)
11945 test "$enable_shared" = yes && enable_static=no
11946 if test -n "$RANLIB"; then
11947 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11948 postinstall_cmds='$RANLIB $lib'
11949 fi
11950 ;;
11951
11952 aix[4-9]*)
11953 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11954 test "$enable_shared" = yes && enable_static=no
11955 fi
11956 ;;
11957 esac
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11959 $as_echo "$enable_shared" >&6; }
11960
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11962 $as_echo_n "checking whether to build static libraries... " >&6; }
11963 # Make sure either enable_shared or enable_static is yes.
11964 test "$enable_shared" = yes || enable_static=yes
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11966 $as_echo "$enable_static" >&6; }
11967
11968
11969
11970
11971 fi
11972 ac_ext=c
11973 ac_cpp='$CPP $CPPFLAGS'
11974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11977
11978 CC="$lt_save_CC"
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994 ac_config_commands="$ac_config_commands libtool"
11995
11996
11997
11998
11999 # Only expand once:
12000
12001
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12003 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12004 if ${libltdl_cv_shlibext+:} false; then :
12005 $as_echo_n "(cached) " >&6
12006 else
12007
12008 module=yes
12009 eval libltdl_cv_shlibext=$shrext_cmds
12010 module=no
12011 eval libltdl_cv_shrext=$shrext_cmds
12012
12013 fi
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12015 $as_echo "$libltdl_cv_shlibext" >&6; }
12016 if test -n "$libltdl_cv_shlibext"; then
12017
12018 cat >>confdefs.h <<_ACEOF
12019 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12020 _ACEOF
12021
12022 fi
12023 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12024
12025 cat >>confdefs.h <<_ACEOF
12026 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12027 _ACEOF
12028
12029 fi
12030
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12032 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12033 if ${lt_cv_module_path_var+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 lt_cv_module_path_var="$shlibpath_var"
12037 fi
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12039 $as_echo "$lt_cv_module_path_var" >&6; }
12040 if test -n "$lt_cv_module_path_var"; then
12041
12042 cat >>confdefs.h <<_ACEOF
12043 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12044 _ACEOF
12045
12046 fi
12047
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12049 $as_echo_n "checking for the default library search path... " >&6; }
12050 if ${lt_cv_sys_dlsearch_path+:} false; then :
12051 $as_echo_n "(cached) " >&6
12052 else
12053 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12054 fi
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12056 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12057 if test -n "$lt_cv_sys_dlsearch_path"; then
12058 sys_dlsearch_path=
12059 for dir in $lt_cv_sys_dlsearch_path; do
12060 if test -z "$sys_dlsearch_path"; then
12061 sys_dlsearch_path="$dir"
12062 else
12063 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12064 fi
12065 done
12066
12067 cat >>confdefs.h <<_ACEOF
12068 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12069 _ACEOF
12070
12071 fi
12072
12073
12074 LT_DLLOADERS=
12075
12076
12077 ac_ext=c
12078 ac_cpp='$CPP $CPPFLAGS'
12079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12082
12083
12084 LIBADD_DLOPEN=
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12086 $as_echo_n "checking for library containing dlopen... " >&6; }
12087 if ${ac_cv_search_dlopen+:} false; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 ac_func_search_save_LIBS=$LIBS
12091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12092 /* end confdefs.h. */
12093
12094 /* Override any GCC internal prototype to avoid an error.
12095 Use char because int might match the return type of a GCC
12096 builtin and then its argument prototype would still apply. */
12097 #ifdef __cplusplus
12098 extern "C"
12099 #endif
12100 char dlopen ();
12101 int
12102 main ()
12103 {
12104 return dlopen ();
12105 ;
12106 return 0;
12107 }
12108 _ACEOF
12109 for ac_lib in '' dl; do
12110 if test -z "$ac_lib"; then
12111 ac_res="none required"
12112 else
12113 ac_res=-l$ac_lib
12114 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12115 fi
12116 if ac_fn_c_try_link "$LINENO"; then :
12117 ac_cv_search_dlopen=$ac_res
12118 fi
12119 rm -f core conftest.err conftest.$ac_objext \
12120 conftest$ac_exeext
12121 if ${ac_cv_search_dlopen+:} false; then :
12122 break
12123 fi
12124 done
12125 if ${ac_cv_search_dlopen+:} false; then :
12126
12127 else
12128 ac_cv_search_dlopen=no
12129 fi
12130 rm conftest.$ac_ext
12131 LIBS=$ac_func_search_save_LIBS
12132 fi
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12134 $as_echo "$ac_cv_search_dlopen" >&6; }
12135 ac_res=$ac_cv_search_dlopen
12136 if test "$ac_res" != no; then :
12137 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12138
12139 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12140
12141 if test "$ac_cv_search_dlopen" != "none required" ; then
12142 LIBADD_DLOPEN="-ldl"
12143 fi
12144 libltdl_cv_lib_dl_dlopen="yes"
12145 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12146 else
12147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12148 /* end confdefs.h. */
12149 #if HAVE_DLFCN_H
12150 # include <dlfcn.h>
12151 #endif
12152
12153 int
12154 main ()
12155 {
12156 dlopen(0, 0);
12157 ;
12158 return 0;
12159 }
12160 _ACEOF
12161 if ac_fn_c_try_link "$LINENO"; then :
12162
12163 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12164
12165 libltdl_cv_func_dlopen="yes"
12166 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12167 else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12169 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12170 if ${ac_cv_lib_svld_dlopen+:} false; then :
12171 $as_echo_n "(cached) " >&6
12172 else
12173 ac_check_lib_save_LIBS=$LIBS
12174 LIBS="-lsvld $LIBS"
12175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176 /* end confdefs.h. */
12177
12178 /* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 char dlopen ();
12185 int
12186 main ()
12187 {
12188 return dlopen ();
12189 ;
12190 return 0;
12191 }
12192 _ACEOF
12193 if ac_fn_c_try_link "$LINENO"; then :
12194 ac_cv_lib_svld_dlopen=yes
12195 else
12196 ac_cv_lib_svld_dlopen=no
12197 fi
12198 rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12200 LIBS=$ac_check_lib_save_LIBS
12201 fi
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12203 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12204 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12205
12206 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12207
12208 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12209 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12210 fi
12211
12212 fi
12213 rm -f core conftest.err conftest.$ac_objext \
12214 conftest$ac_exeext conftest.$ac_ext
12215 fi
12216
12217 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12218 then
12219 lt_save_LIBS="$LIBS"
12220 LIBS="$LIBS $LIBADD_DLOPEN"
12221 for ac_func in dlerror
12222 do :
12223 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12224 if test "x$ac_cv_func_dlerror" = xyes; then :
12225 cat >>confdefs.h <<_ACEOF
12226 #define HAVE_DLERROR 1
12227 _ACEOF
12228
12229 fi
12230 done
12231
12232 LIBS="$lt_save_LIBS"
12233 fi
12234
12235
12236 LIBADD_SHL_LOAD=
12237 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12238 if test "x$ac_cv_func_shl_load" = xyes; then :
12239
12240 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12241
12242 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12245 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12246 if ${ac_cv_lib_dld_shl_load+:} false; then :
12247 $as_echo_n "(cached) " >&6
12248 else
12249 ac_check_lib_save_LIBS=$LIBS
12250 LIBS="-ldld $LIBS"
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253
12254 /* Override any GCC internal prototype to avoid an error.
12255 Use char because int might match the return type of a GCC
12256 builtin and then its argument prototype would still apply. */
12257 #ifdef __cplusplus
12258 extern "C"
12259 #endif
12260 char shl_load ();
12261 int
12262 main ()
12263 {
12264 return shl_load ();
12265 ;
12266 return 0;
12267 }
12268 _ACEOF
12269 if ac_fn_c_try_link "$LINENO"; then :
12270 ac_cv_lib_dld_shl_load=yes
12271 else
12272 ac_cv_lib_dld_shl_load=no
12273 fi
12274 rm -f core conftest.err conftest.$ac_objext \
12275 conftest$ac_exeext conftest.$ac_ext
12276 LIBS=$ac_check_lib_save_LIBS
12277 fi
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12279 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12280 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12281
12282 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12283
12284 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12285 LIBADD_SHL_LOAD="-ldld"
12286 fi
12287
12288 fi
12289
12290
12291
12292 case $host_os in
12293 darwin[1567].*)
12294 # We only want this for pre-Mac OS X 10.4.
12295 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12296 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12297
12298 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12299
12300 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12301 fi
12302
12303 ;;
12304 beos*)
12305 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12306 ;;
12307 cygwin* | mingw* | os2* | pw32*)
12308 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12309 "
12310 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12311 ac_have_decl=1
12312 else
12313 ac_have_decl=0
12314 fi
12315
12316 cat >>confdefs.h <<_ACEOF
12317 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12318 _ACEOF
12319
12320 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12321 ;;
12322 esac
12323
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12325 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12326 if ${ac_cv_lib_dld_dld_link+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 ac_check_lib_save_LIBS=$LIBS
12330 LIBS="-ldld $LIBS"
12331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12332 /* end confdefs.h. */
12333
12334 /* Override any GCC internal prototype to avoid an error.
12335 Use char because int might match the return type of a GCC
12336 builtin and then its argument prototype would still apply. */
12337 #ifdef __cplusplus
12338 extern "C"
12339 #endif
12340 char dld_link ();
12341 int
12342 main ()
12343 {
12344 return dld_link ();
12345 ;
12346 return 0;
12347 }
12348 _ACEOF
12349 if ac_fn_c_try_link "$LINENO"; then :
12350 ac_cv_lib_dld_dld_link=yes
12351 else
12352 ac_cv_lib_dld_dld_link=no
12353 fi
12354 rm -f core conftest.err conftest.$ac_objext \
12355 conftest$ac_exeext conftest.$ac_ext
12356 LIBS=$ac_check_lib_save_LIBS
12357 fi
12358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12359 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12360 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12361
12362 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12363
12364 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12365 fi
12366
12367
12368
12369
12370 LT_DLPREOPEN=
12371 if test -n "$LT_DLLOADERS"
12372 then
12373 for lt_loader in $LT_DLLOADERS; do
12374 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12375 done
12376
12377 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12378
12379 fi
12380
12381
12382 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12383
12384
12385 ac_ext=c
12386 ac_cpp='$CPP $CPPFLAGS'
12387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12390
12391
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12393 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12394 if ${lt_cv_sys_symbol_underscore+:} false; then :
12395 $as_echo_n "(cached) " >&6
12396 else
12397 lt_cv_sys_symbol_underscore=no
12398 cat > conftest.$ac_ext <<_LT_EOF
12399 void nm_test_func(){}
12400 int main(){nm_test_func;return 0;}
12401 _LT_EOF
12402 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12403 (eval $ac_compile) 2>&5
12404 ac_status=$?
12405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12406 test $ac_status = 0; }; then
12407 # Now try to grab the symbols.
12408 ac_nlist=conftest.nm
12409 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12410 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12411 ac_status=$?
12412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12413 test $ac_status = 0; } && test -s "$ac_nlist"; then
12414 # See whether the symbols have a leading underscore.
12415 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12416 lt_cv_sys_symbol_underscore=yes
12417 else
12418 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12419 :
12420 else
12421 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12422 fi
12423 fi
12424 else
12425 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12426 fi
12427 else
12428 echo "configure: failed program was:" >&5
12429 cat conftest.c >&5
12430 fi
12431 rm -rf conftest*
12432
12433 fi
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12435 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12436 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12437
12438
12439 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12440 if test x"$libltdl_cv_func_dlopen" = xyes ||
12441 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12443 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12444 if ${libltdl_cv_need_uscore+:} false; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447 libltdl_cv_need_uscore=unknown
12448 save_LIBS="$LIBS"
12449 LIBS="$LIBS $LIBADD_DLOPEN"
12450 if test "$cross_compiling" = yes; then :
12451 libltdl_cv_need_uscore=cross
12452 else
12453 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12454 lt_status=$lt_dlunknown
12455 cat > conftest.$ac_ext <<_LT_EOF
12456 #line $LINENO "configure"
12457 #include "confdefs.h"
12458
12459 #if HAVE_DLFCN_H
12460 #include <dlfcn.h>
12461 #endif
12462
12463 #include <stdio.h>
12464
12465 #ifdef RTLD_GLOBAL
12466 # define LT_DLGLOBAL RTLD_GLOBAL
12467 #else
12468 # ifdef DL_GLOBAL
12469 # define LT_DLGLOBAL DL_GLOBAL
12470 # else
12471 # define LT_DLGLOBAL 0
12472 # endif
12473 #endif
12474
12475 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12476 find out it does not work in some platform. */
12477 #ifndef LT_DLLAZY_OR_NOW
12478 # ifdef RTLD_LAZY
12479 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12480 # else
12481 # ifdef DL_LAZY
12482 # define LT_DLLAZY_OR_NOW DL_LAZY
12483 # else
12484 # ifdef RTLD_NOW
12485 # define LT_DLLAZY_OR_NOW RTLD_NOW
12486 # else
12487 # ifdef DL_NOW
12488 # define LT_DLLAZY_OR_NOW DL_NOW
12489 # else
12490 # define LT_DLLAZY_OR_NOW 0
12491 # endif
12492 # endif
12493 # endif
12494 # endif
12495 #endif
12496
12497 /* When -fvisbility=hidden is used, assume the code has been annotated
12498 correspondingly for the symbols needed. */
12499 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12500 int fnord () __attribute__((visibility("default")));
12501 #endif
12502
12503 int fnord () { return 42; }
12504 int main ()
12505 {
12506 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12507 int status = $lt_dlunknown;
12508
12509 if (self)
12510 {
12511 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12512 else
12513 {
12514 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12515 else puts (dlerror ());
12516 }
12517 /* dlclose (self); */
12518 }
12519 else
12520 puts (dlerror ());
12521
12522 return status;
12523 }
12524 _LT_EOF
12525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12526 (eval $ac_link) 2>&5
12527 ac_status=$?
12528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12529 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12530 (./conftest; exit; ) >&5 2>/dev/null
12531 lt_status=$?
12532 case x$lt_status in
12533 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12534 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12535 x$lt_dlunknown|x*) ;;
12536 esac
12537 else :
12538 # compilation failed
12539
12540 fi
12541 fi
12542 rm -fr conftest*
12543
12544 LIBS="$save_LIBS"
12545
12546 fi
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12548 $as_echo "$libltdl_cv_need_uscore" >&6; }
12549 fi
12550 fi
12551
12552 if test x"$libltdl_cv_need_uscore" = xyes; then
12553
12554 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12555
12556 fi
12557
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12559 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12560 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12561 $as_echo_n "(cached) " >&6
12562 else
12563 # PORTME does your system automatically load deplibs for dlopen?
12564 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12565 # For now, we just catch OSes we know something about -- in the
12566 # future, we'll try test this programmatically.
12567 lt_cv_sys_dlopen_deplibs=unknown
12568 case $host_os in
12569 aix3*|aix4.1.*|aix4.2.*)
12570 # Unknown whether this is true for these versions of AIX, but
12571 # we want this `case' here to explicitly catch those versions.
12572 lt_cv_sys_dlopen_deplibs=unknown
12573 ;;
12574 aix[4-9]*)
12575 lt_cv_sys_dlopen_deplibs=yes
12576 ;;
12577 amigaos*)
12578 case $host_cpu in
12579 powerpc)
12580 lt_cv_sys_dlopen_deplibs=no
12581 ;;
12582 esac
12583 ;;
12584 darwin*)
12585 # Assuming the user has installed a libdl from somewhere, this is true
12586 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12587 lt_cv_sys_dlopen_deplibs=yes
12588 ;;
12589 freebsd* | dragonfly*)
12590 lt_cv_sys_dlopen_deplibs=yes
12591 ;;
12592 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12593 # GNU and its variants, using gnu ld.so (Glibc)
12594 lt_cv_sys_dlopen_deplibs=yes
12595 ;;
12596 hpux10*|hpux11*)
12597 lt_cv_sys_dlopen_deplibs=yes
12598 ;;
12599 interix*)
12600 lt_cv_sys_dlopen_deplibs=yes
12601 ;;
12602 irix[12345]*|irix6.[01]*)
12603 # Catch all versions of IRIX before 6.2, and indicate that we don't
12604 # know how it worked for any of those versions.
12605 lt_cv_sys_dlopen_deplibs=unknown
12606 ;;
12607 irix*)
12608 # The case above catches anything before 6.2, and it's known that
12609 # at 6.2 and later dlopen does load deplibs.
12610 lt_cv_sys_dlopen_deplibs=yes
12611 ;;
12612 netbsd*)
12613 lt_cv_sys_dlopen_deplibs=yes
12614 ;;
12615 openbsd*)
12616 lt_cv_sys_dlopen_deplibs=yes
12617 ;;
12618 osf[1234]*)
12619 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12620 # it did *not* use an RPATH in a shared library to find objects the
12621 # library depends on, so we explicitly say `no'.
12622 lt_cv_sys_dlopen_deplibs=no
12623 ;;
12624 osf5.0|osf5.0a|osf5.1)
12625 # dlopen *does* load deplibs and with the right loader patch applied
12626 # it even uses RPATH in a shared library to search for shared objects
12627 # that the library depends on, but there's no easy way to know if that
12628 # patch is installed. Since this is the case, all we can really
12629 # say is unknown -- it depends on the patch being installed. If
12630 # it is, this changes to `yes'. Without it, it would be `no'.
12631 lt_cv_sys_dlopen_deplibs=unknown
12632 ;;
12633 osf*)
12634 # the two cases above should catch all versions of osf <= 5.1. Read
12635 # the comments above for what we know about them.
12636 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12637 # is used to find them so we can finally say `yes'.
12638 lt_cv_sys_dlopen_deplibs=yes
12639 ;;
12640 qnx*)
12641 lt_cv_sys_dlopen_deplibs=yes
12642 ;;
12643 solaris*)
12644 lt_cv_sys_dlopen_deplibs=yes
12645 ;;
12646 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12647 libltdl_cv_sys_dlopen_deplibs=yes
12648 ;;
12649 esac
12650
12651 fi
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12653 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12654 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12655
12656 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12657
12658 fi
12659
12660 :
12661
12662 for ac_header in argz.h
12663 do :
12664 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12665 "
12666 if test "x$ac_cv_header_argz_h" = xyes; then :
12667 cat >>confdefs.h <<_ACEOF
12668 #define HAVE_ARGZ_H 1
12669 _ACEOF
12670
12671 fi
12672
12673 done
12674
12675
12676 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12677 # include <argz.h>
12678 #endif
12679 "
12680 if test "x$ac_cv_type_error_t" = xyes; then :
12681
12682 cat >>confdefs.h <<_ACEOF
12683 #define HAVE_ERROR_T 1
12684 _ACEOF
12685
12686
12687 else
12688
12689 $as_echo "#define error_t int" >>confdefs.h
12690
12691
12692 $as_echo "#define __error_t_defined 1" >>confdefs.h
12693
12694 fi
12695
12696
12697 ARGZ_H=
12698 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12699 argz_next argz_stringify
12700 do :
12701 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12702 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12703 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12704 cat >>confdefs.h <<_ACEOF
12705 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12706 _ACEOF
12707
12708 else
12709 ARGZ_H=argz.h;
12710
12711 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12712
12713 fi
12714 done
12715
12716
12717 if test -z "$ARGZ_H"; then :
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12719 $as_echo_n "checking if argz actually works... " >&6; }
12720 if ${lt_cv_sys_argz_works+:} false; then :
12721 $as_echo_n "(cached) " >&6
12722 else
12723 case $host_os in #(
12724 *cygwin*)
12725 lt_cv_sys_argz_works=no
12726 if test "$cross_compiling" != no; then
12727 lt_cv_sys_argz_works="guessing no"
12728 else
12729 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12730 save_IFS=$IFS
12731 IFS=-.
12732 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12733 IFS=$save_IFS
12734 lt_os_major=${2-0}
12735 lt_os_minor=${3-0}
12736 lt_os_micro=${4-0}
12737 if test "$lt_os_major" -gt 1 \
12738 || { test "$lt_os_major" -eq 1 \
12739 && { test "$lt_os_minor" -gt 5 \
12740 || { test "$lt_os_minor" -eq 5 \
12741 && test "$lt_os_micro" -gt 24; }; }; }; then
12742 lt_cv_sys_argz_works=yes
12743 fi
12744 fi
12745 ;; #(
12746 *) lt_cv_sys_argz_works=yes ;;
12747 esac
12748 fi
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12750 $as_echo "$lt_cv_sys_argz_works" >&6; }
12751 if test "$lt_cv_sys_argz_works" = yes; then :
12752
12753 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12754
12755 else
12756 ARGZ_H=argz.h
12757
12758
12759 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12760
12761 fi
12762 fi
12763
12764
12765
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12767 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12768 if ${libltdl_cv_preloaded_symbols+:} false; then :
12769 $as_echo_n "(cached) " >&6
12770 else
12771 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12772 libltdl_cv_preloaded_symbols=yes
12773 else
12774 libltdl_cv_preloaded_symbols=no
12775 fi
12776
12777 fi
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12779 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12780 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12781
12782 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12783
12784 fi
12785
12786 # Set options
12787
12788
12789
12790
12791
12792
12793
12794
12795
12796
12797
12798 # Check whether --with-included_ltdl was given.
12799 if test "${with_included_ltdl+set}" = set; then :
12800 withval=$with_included_ltdl;
12801 fi
12802
12803
12804 if test "x$with_included_ltdl" != xyes; then
12805 # We are not being forced to use the included libltdl sources, so
12806 # decide whether there is a useful installed version we can use.
12807 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12808
12809 "
12810 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12811 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12812 #include <ltdl.h>
12813 "
12814 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12816 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12817 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12818 $as_echo_n "(cached) " >&6
12819 else
12820 ac_check_lib_save_LIBS=$LIBS
12821 LIBS="-lltdl $LIBS"
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823 /* end confdefs.h. */
12824
12825 /* Override any GCC internal prototype to avoid an error.
12826 Use char because int might match the return type of a GCC
12827 builtin and then its argument prototype would still apply. */
12828 #ifdef __cplusplus
12829 extern "C"
12830 #endif
12831 char lt_dladvise_preload ();
12832 int
12833 main ()
12834 {
12835 return lt_dladvise_preload ();
12836 ;
12837 return 0;
12838 }
12839 _ACEOF
12840 if ac_fn_c_try_link "$LINENO"; then :
12841 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12842 else
12843 ac_cv_lib_ltdl_lt_dladvise_preload=no
12844 fi
12845 rm -f core conftest.err conftest.$ac_objext \
12846 conftest$ac_exeext conftest.$ac_ext
12847 LIBS=$ac_check_lib_save_LIBS
12848 fi
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12850 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12851 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12852 with_included_ltdl=no
12853 else
12854 with_included_ltdl=yes
12855 fi
12856
12857 else
12858 with_included_ltdl=yes
12859 fi
12860
12861 else
12862 with_included_ltdl=yes
12863 fi
12864
12865
12866 fi
12867
12868
12869
12870
12871 # Check whether --with-ltdl_include was given.
12872 if test "${with_ltdl_include+set}" = set; then :
12873 withval=$with_ltdl_include;
12874 fi
12875
12876
12877 if test -n "$with_ltdl_include"; then
12878 if test -f "$with_ltdl_include/ltdl.h"; then :
12879 else
12880 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12881 fi
12882 else
12883 with_ltdl_include=no
12884 fi
12885
12886
12887 # Check whether --with-ltdl_lib was given.
12888 if test "${with_ltdl_lib+set}" = set; then :
12889 withval=$with_ltdl_lib;
12890 fi
12891
12892
12893 if test -n "$with_ltdl_lib"; then
12894 if test -f "$with_ltdl_lib/libltdl.la"; then :
12895 else
12896 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12897 fi
12898 else
12899 with_ltdl_lib=no
12900 fi
12901
12902 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12903 ,yes,no,no,)
12904 case $enable_ltdl_convenience in
12905 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12906 "") enable_ltdl_convenience=yes
12907 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12908 esac
12909 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12910 LTDLDEPS=$LIBLTDL
12911 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12912
12913
12914
12915
12916
12917 # For backwards non-gettext consistent compatibility...
12918 INCLTDL="$LTDLINCL"
12919
12920
12921 ;;
12922 ,no,no,no,)
12923 # If the included ltdl is not to be used, then use the
12924 # preinstalled libltdl we found.
12925
12926 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12927
12928 LIBLTDL=-lltdl
12929 LTDLDEPS=
12930 LTDLINCL=
12931 ;;
12932 ,no*,no,*)
12933 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12934 ;;
12935 *) with_included_ltdl=no
12936 LIBLTDL="-L$with_ltdl_lib -lltdl"
12937 LTDLDEPS=
12938 LTDLINCL="-I$with_ltdl_include"
12939 ;;
12940 esac
12941 INCLTDL="$LTDLINCL"
12942
12943 # Report our decision...
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12945 $as_echo_n "checking where to find libltdl headers... " >&6; }
12946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12947 $as_echo "$LTDLINCL" >&6; }
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12949 $as_echo_n "checking where to find libltdl library... " >&6; }
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12951 $as_echo "$LIBLTDL" >&6; }
12952
12953
12954
12955 # Check whether --enable-ltdl-install was given.
12956 if test "${enable_ltdl_install+set}" = set; then :
12957 enableval=$enable_ltdl_install;
12958 fi
12959
12960
12961 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12962 *yes*) ;;
12963 *) enable_ltdl_convenience=yes ;;
12964 esac
12965
12966 if test x"${enable_ltdl_install-no}" != xno; then
12967 INSTALL_LTDL_TRUE=
12968 INSTALL_LTDL_FALSE='#'
12969 else
12970 INSTALL_LTDL_TRUE='#'
12971 INSTALL_LTDL_FALSE=
12972 fi
12973
12974 if test x"${enable_ltdl_convenience-no}" != xno; then
12975 CONVENIENCE_LTDL_TRUE=
12976 CONVENIENCE_LTDL_FALSE='#'
12977 else
12978 CONVENIENCE_LTDL_TRUE='#'
12979 CONVENIENCE_LTDL_FALSE=
12980 fi
12981
12982
12983
12984
12985
12986
12987 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12988 # the user used. This is so that ltdl.h can pick up the parent projects
12989 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12990 # definitions required by ltdl.c.
12991 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12992
12993
12994
12995 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12996 do :
12997 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12998 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12999 "
13000 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13001 cat >>confdefs.h <<_ACEOF
13002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13003 _ACEOF
13004
13005 fi
13006
13007 done
13008
13009
13010 for ac_func in closedir opendir readdir
13011 do :
13012 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13013 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13014 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13015 cat >>confdefs.h <<_ACEOF
13016 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13017 _ACEOF
13018
13019 else
13020
13021
13022 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13023
13024 fi
13025 done
13026
13027 for ac_func in strlcat strlcpy
13028 do :
13029 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13030 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13031 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13032 cat >>confdefs.h <<_ACEOF
13033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13034 _ACEOF
13035
13036 else
13037
13038
13039 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13040
13041 fi
13042 done
13043
13044
13045
13046 cat >>confdefs.h <<_ACEOF
13047 #define LT_LIBEXT "$libext"
13048 _ACEOF
13049
13050
13051 name=
13052 eval "lt_libprefix=\"$libname_spec\""
13053
13054 cat >>confdefs.h <<_ACEOF
13055 #define LT_LIBPREFIX "$lt_libprefix"
13056 _ACEOF
13057
13058
13059 name=ltdl
13060 eval "LTDLOPEN=\"$libname_spec\""
13061
13062
13063
13064
13065
13066
13067
13068
13069 # Only expand once:
13070
13071
13072 LIBTOOL="$LIBTOOL --silent"
13073
13074 # Checks for libraries.
13075
13076 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13077 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13078
13079 else
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13081 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13082 if ${ac_cv_search_getaddrinfo+:} false; then :
13083 $as_echo_n "(cached) " >&6
13084 else
13085 ac_func_search_save_LIBS=$LIBS
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13088
13089 /* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
13092 #ifdef __cplusplus
13093 extern "C"
13094 #endif
13095 char getaddrinfo ();
13096 int
13097 main ()
13098 {
13099 return getaddrinfo ();
13100 ;
13101 return 0;
13102 }
13103 _ACEOF
13104 for ac_lib in '' nsl; do
13105 if test -z "$ac_lib"; then
13106 ac_res="none required"
13107 else
13108 ac_res=-l$ac_lib
13109 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13110 fi
13111 if ac_fn_c_try_link "$LINENO"; then :
13112 ac_cv_search_getaddrinfo=$ac_res
13113 fi
13114 rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext
13116 if ${ac_cv_search_getaddrinfo+:} false; then :
13117 break
13118 fi
13119 done
13120 if ${ac_cv_search_getaddrinfo+:} false; then :
13121
13122 else
13123 ac_cv_search_getaddrinfo=no
13124 fi
13125 rm conftest.$ac_ext
13126 LIBS=$ac_func_search_save_LIBS
13127 fi
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13129 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13130 ac_res=$ac_cv_search_getaddrinfo
13131 if test "$ac_res" != no; then :
13132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13133
13134 fi
13135
13136 fi
13137
13138 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13139 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13140
13141 else
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13143 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13144 if ${ac_cv_search_getnameinfo+:} false; then :
13145 $as_echo_n "(cached) " >&6
13146 else
13147 ac_func_search_save_LIBS=$LIBS
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150
13151 /* Override any GCC internal prototype to avoid an error.
13152 Use char because int might match the return type of a GCC
13153 builtin and then its argument prototype would still apply. */
13154 #ifdef __cplusplus
13155 extern "C"
13156 #endif
13157 char getnameinfo ();
13158 int
13159 main ()
13160 {
13161 return getnameinfo ();
13162 ;
13163 return 0;
13164 }
13165 _ACEOF
13166 for ac_lib in '' nsl; do
13167 if test -z "$ac_lib"; then
13168 ac_res="none required"
13169 else
13170 ac_res=-l$ac_lib
13171 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13172 fi
13173 if ac_fn_c_try_link "$LINENO"; then :
13174 ac_cv_search_getnameinfo=$ac_res
13175 fi
13176 rm -f core conftest.err conftest.$ac_objext \
13177 conftest$ac_exeext
13178 if ${ac_cv_search_getnameinfo+:} false; then :
13179 break
13180 fi
13181 done
13182 if ${ac_cv_search_getnameinfo+:} false; then :
13183
13184 else
13185 ac_cv_search_getnameinfo=no
13186 fi
13187 rm conftest.$ac_ext
13188 LIBS=$ac_func_search_save_LIBS
13189 fi
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13191 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13192 ac_res=$ac_cv_search_getnameinfo
13193 if test "$ac_res" != no; then :
13194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13195
13196 fi
13197
13198 fi
13199
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13201 $as_echo_n "checking for library containing socket... " >&6; }
13202 if ${ac_cv_search_socket+:} false; then :
13203 $as_echo_n "(cached) " >&6
13204 else
13205 ac_func_search_save_LIBS=$LIBS
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13208
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13212 #ifdef __cplusplus
13213 extern "C"
13214 #endif
13215 char socket ();
13216 int
13217 main ()
13218 {
13219 return socket ();
13220 ;
13221 return 0;
13222 }
13223 _ACEOF
13224 for ac_lib in '' socket; do
13225 if test -z "$ac_lib"; then
13226 ac_res="none required"
13227 else
13228 ac_res=-l$ac_lib
13229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13230 fi
13231 if ac_fn_c_try_link "$LINENO"; then :
13232 ac_cv_search_socket=$ac_res
13233 fi
13234 rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext
13236 if ${ac_cv_search_socket+:} false; then :
13237 break
13238 fi
13239 done
13240 if ${ac_cv_search_socket+:} false; then :
13241
13242 else
13243 ac_cv_search_socket=no
13244 fi
13245 rm conftest.$ac_ext
13246 LIBS=$ac_func_search_save_LIBS
13247 fi
13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13249 $as_echo "$ac_cv_search_socket" >&6; }
13250 ac_res=$ac_cv_search_socket
13251 if test "$ac_res" != no; then :
13252 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13253
13254 else
13255 as_fn_error $? "socket library not found" "$LINENO" 5
13256 fi
13257
13258 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13259 #include <sys/socket.h>
13260 #include <netdb.h>
13261
13262 "
13263 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13264
13265 cat >>confdefs.h <<_ACEOF
13266 #define HAVE_STRUCT_SOCKADDR_IN 1
13267 _ACEOF
13268
13269
13270 fi
13271 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13272 #include <sys/socket.h>
13273 #include <netdb.h>
13274
13275 "
13276 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13277
13278 cat >>confdefs.h <<_ACEOF
13279 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13280 _ACEOF
13281
13282
13283 fi
13284 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13285 #include <sys/socket.h>
13286 #include <netdb.h>
13287
13288 "
13289 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13290
13291 cat >>confdefs.h <<_ACEOF
13292 #define HAVE_STRUCT_ADDRINFO 1
13293 _ACEOF
13294
13295
13296 fi
13297
13298 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13299 <sys/socket.h>
13300 "
13301 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13302
13303 cat >>confdefs.h <<_ACEOF
13304 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13305 _ACEOF
13306
13307
13308 fi
13309
13310
13311
13312 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13313 "
13314 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13315
13316 $as_echo "#define IPV6 1" >>confdefs.h
13317
13318 fi
13319
13320
13321
13322 # Checks for typedefs, structures, and compiler characteristics.
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13324 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13325 if ${ac_cv_c_bigendian+:} false; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 ac_cv_c_bigendian=unknown
13329 # See if we're dealing with a universal compiler.
13330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13332 #ifndef __APPLE_CC__
13333 not a universal capable compiler
13334 #endif
13335 typedef int dummy;
13336
13337 _ACEOF
13338 if ac_fn_c_try_compile "$LINENO"; then :
13339
13340 # Check for potential -arch flags. It is not universal unless
13341 # there are at least two -arch flags with different values.
13342 ac_arch=
13343 ac_prev=
13344 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13345 if test -n "$ac_prev"; then
13346 case $ac_word in
13347 i?86 | x86_64 | ppc | ppc64)
13348 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13349 ac_arch=$ac_word
13350 else
13351 ac_cv_c_bigendian=universal
13352 break
13353 fi
13354 ;;
13355 esac
13356 ac_prev=
13357 elif test "x$ac_word" = "x-arch"; then
13358 ac_prev=arch
13359 fi
13360 done
13361 fi
13362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13363 if test $ac_cv_c_bigendian = unknown; then
13364 # See if sys/param.h defines the BYTE_ORDER macro.
13365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13366 /* end confdefs.h. */
13367 #include <sys/types.h>
13368 #include <sys/param.h>
13369
13370 int
13371 main ()
13372 {
13373 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13374 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13375 && LITTLE_ENDIAN)
13376 bogus endian macros
13377 #endif
13378
13379 ;
13380 return 0;
13381 }
13382 _ACEOF
13383 if ac_fn_c_try_compile "$LINENO"; then :
13384 # It does; now see whether it defined to BIG_ENDIAN or not.
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387 #include <sys/types.h>
13388 #include <sys/param.h>
13389
13390 int
13391 main ()
13392 {
13393 #if BYTE_ORDER != BIG_ENDIAN
13394 not big endian
13395 #endif
13396
13397 ;
13398 return 0;
13399 }
13400 _ACEOF
13401 if ac_fn_c_try_compile "$LINENO"; then :
13402 ac_cv_c_bigendian=yes
13403 else
13404 ac_cv_c_bigendian=no
13405 fi
13406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 fi
13408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13409 fi
13410 if test $ac_cv_c_bigendian = unknown; then
13411 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <limits.h>
13415
13416 int
13417 main ()
13418 {
13419 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13420 bogus endian macros
13421 #endif
13422
13423 ;
13424 return 0;
13425 }
13426 _ACEOF
13427 if ac_fn_c_try_compile "$LINENO"; then :
13428 # It does; now see whether it defined to _BIG_ENDIAN or not.
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13431 #include <limits.h>
13432
13433 int
13434 main ()
13435 {
13436 #ifndef _BIG_ENDIAN
13437 not big endian
13438 #endif
13439
13440 ;
13441 return 0;
13442 }
13443 _ACEOF
13444 if ac_fn_c_try_compile "$LINENO"; then :
13445 ac_cv_c_bigendian=yes
13446 else
13447 ac_cv_c_bigendian=no
13448 fi
13449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13450 fi
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 fi
13453 if test $ac_cv_c_bigendian = unknown; then
13454 # Compile a test program.
13455 if test "$cross_compiling" = yes; then :
13456 # Try to guess by grepping values from an object file.
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13459 short int ascii_mm[] =
13460 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13461 short int ascii_ii[] =
13462 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13463 int use_ascii (int i) {
13464 return ascii_mm[i] + ascii_ii[i];
13465 }
13466 short int ebcdic_ii[] =
13467 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13468 short int ebcdic_mm[] =
13469 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13470 int use_ebcdic (int i) {
13471 return ebcdic_mm[i] + ebcdic_ii[i];
13472 }
13473 extern int foo;
13474
13475 int
13476 main ()
13477 {
13478 return use_ascii (foo) == use_ebcdic (foo);
13479 ;
13480 return 0;
13481 }
13482 _ACEOF
13483 if ac_fn_c_try_compile "$LINENO"; then :
13484 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13485 ac_cv_c_bigendian=yes
13486 fi
13487 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13488 if test "$ac_cv_c_bigendian" = unknown; then
13489 ac_cv_c_bigendian=no
13490 else
13491 # finding both strings is unlikely to happen, but who knows?
13492 ac_cv_c_bigendian=unknown
13493 fi
13494 fi
13495 fi
13496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13497 else
13498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13499 /* end confdefs.h. */
13500 $ac_includes_default
13501 int
13502 main ()
13503 {
13504
13505 /* Are we little or big endian? From Harbison&Steele. */
13506 union
13507 {
13508 long int l;
13509 char c[sizeof (long int)];
13510 } u;
13511 u.l = 1;
13512 return u.c[sizeof (long int) - 1] == 1;
13513
13514 ;
13515 return 0;
13516 }
13517 _ACEOF
13518 if ac_fn_c_try_run "$LINENO"; then :
13519 ac_cv_c_bigendian=no
13520 else
13521 ac_cv_c_bigendian=yes
13522 fi
13523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13524 conftest.$ac_objext conftest.beam conftest.$ac_ext
13525 fi
13526
13527 fi
13528 fi
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13530 $as_echo "$ac_cv_c_bigendian" >&6; }
13531 case $ac_cv_c_bigendian in #(
13532 yes)
13533 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13534 ;; #(
13535 no)
13536 ;; #(
13537 universal)
13538
13539 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13540
13541 ;; #(
13542 *)
13543 as_fn_error $? "unknown endianness
13544 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13545 esac
13546
13547
13548 # Checks for library functions.
13549
13550
13551
13552 for ac_func in $ac_func_list
13553 do :
13554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13555 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13556 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13557 cat >>confdefs.h <<_ACEOF
13558 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13559 _ACEOF
13560
13561 fi
13562 done
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574 # Checks for header files.
13575
13576
13577
13578 for ac_header in $ac_header_list
13579 do :
13580 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13581 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13582 "
13583 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13584 cat >>confdefs.h <<_ACEOF
13585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13586 _ACEOF
13587
13588 fi
13589
13590 done
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13609 $as_echo_n "checking for library containing crypt... " >&6; }
13610 if ${ac_cv_search_crypt+:} false; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613 ac_func_search_save_LIBS=$LIBS
13614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13615 /* end confdefs.h. */
13616
13617 /* Override any GCC internal prototype to avoid an error.
13618 Use char because int might match the return type of a GCC
13619 builtin and then its argument prototype would still apply. */
13620 #ifdef __cplusplus
13621 extern "C"
13622 #endif
13623 char crypt ();
13624 int
13625 main ()
13626 {
13627 return crypt ();
13628 ;
13629 return 0;
13630 }
13631 _ACEOF
13632 for ac_lib in '' crypt; do
13633 if test -z "$ac_lib"; then
13634 ac_res="none required"
13635 else
13636 ac_res=-l$ac_lib
13637 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13638 fi
13639 if ac_fn_c_try_link "$LINENO"; then :
13640 ac_cv_search_crypt=$ac_res
13641 fi
13642 rm -f core conftest.err conftest.$ac_objext \
13643 conftest$ac_exeext
13644 if ${ac_cv_search_crypt+:} false; then :
13645 break
13646 fi
13647 done
13648 if ${ac_cv_search_crypt+:} false; then :
13649
13650 else
13651 ac_cv_search_crypt=no
13652 fi
13653 rm conftest.$ac_ext
13654 LIBS=$ac_func_search_save_LIBS
13655 fi
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13657 $as_echo "$ac_cv_search_crypt" >&6; }
13658 ac_res=$ac_cv_search_crypt
13659 if test "$ac_res" != no; then :
13660 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13661
13662 fi
13663
13664
13665 # Check whether --enable-libpcre was given.
13666 if test "${enable_libpcre+set}" = set; then :
13667 enableval=$enable_libpcre;
13668 else
13669 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13670 if test "x$ac_cv_header_pcre_h" = xyes; then :
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
13672 $as_echo_n "checking for library containing pcre_study... " >&6; }
13673 if ${ac_cv_search_pcre_study+:} false; then :
13674 $as_echo_n "(cached) " >&6
13675 else
13676 ac_func_search_save_LIBS=$LIBS
13677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13678 /* end confdefs.h. */
13679
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13683 #ifdef __cplusplus
13684 extern "C"
13685 #endif
13686 char pcre_study ();
13687 int
13688 main ()
13689 {
13690 return pcre_study ();
13691 ;
13692 return 0;
13693 }
13694 _ACEOF
13695 for ac_lib in '' pcre; do
13696 if test -z "$ac_lib"; then
13697 ac_res="none required"
13698 else
13699 ac_res=-l$ac_lib
13700 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13701 fi
13702 if ac_fn_c_try_link "$LINENO"; then :
13703 ac_cv_search_pcre_study=$ac_res
13704 fi
13705 rm -f core conftest.err conftest.$ac_objext \
13706 conftest$ac_exeext
13707 if ${ac_cv_search_pcre_study+:} false; then :
13708 break
13709 fi
13710 done
13711 if ${ac_cv_search_pcre_study+:} false; then :
13712
13713 else
13714 ac_cv_search_pcre_study=no
13715 fi
13716 rm conftest.$ac_ext
13717 LIBS=$ac_func_search_save_LIBS
13718 fi
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
13720 $as_echo "$ac_cv_search_pcre_study" >&6; }
13721 ac_res=$ac_cv_search_pcre_study
13722 if test "$ac_res" != no; then :
13723 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13724
13725 $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13726
13727 fi
13728
13729 fi
13730
13731
13732 fi
13733
13734
13735 # Check whether --enable-openssl was given.
13736 if test "${enable_openssl+set}" = set; then :
13737 enableval=$enable_openssl; cf_enable_openssl=$enableval
13738 else
13739 cf_enable_openssl="auto"
13740 fi
13741
13742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13743 $as_echo_n "checking for OpenSSL... " >&6; }
13744 if test "$cf_enable_openssl" != "no"; then
13745 cf_openssl_basedir=""
13746 if test "$cf_enable_openssl" != "auto" &&
13747 test "$cf_enable_openssl" != "yes"; then
13748 cf_openssl_basedir="${cf_enable_openssl}"
13749 else
13750 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13751 /opt /opt/openssl /usr/local/openssl; do
13752 if test -f "${dirs}/include/openssl/opensslv.h"; then
13753 cf_openssl_basedir="${dirs}"
13754 break
13755 fi
13756 done
13757 unset dirs
13758 fi
13759
13760 if test ! -z "$cf_openssl_basedir"; then
13761 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13762 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13763 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13764 else
13765 cf_openssl_basedir=""
13766 fi
13767 else
13768 if test -f "/usr/include/openssl/opensslv.h"; then
13769 cf_openssl_basedir="/usr"
13770 fi
13771 fi
13772
13773 if test ! -z "$cf_openssl_basedir"; then
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13775 $as_echo "$cf_openssl_basedir" >&6; }
13776 cf_enable_openssl="yes"
13777 else
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13779 $as_echo "not found. Please check your path." >&6; }
13780 cf_enable_openssl="no"
13781 fi
13782 unset cf_openssl_basedir
13783 else
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13785 $as_echo "disabled" >&6; }
13786 fi
13787
13788 if test "$cf_enable_openssl" != "no"; then :
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
13790 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
13791 if test "$cross_compiling" = yes; then :
13792 cf_openssl_version_ok=no
13793 else
13794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13795 /* end confdefs.h. */
13796
13797
13798 #include <openssl/opensslv.h>
13799 #include <stdlib.h>
13800 int
13801 main ()
13802 {
13803 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
13804 ;
13805 return 0;
13806 }
13807 _ACEOF
13808 if ac_fn_c_try_run "$LINENO"; then :
13809 cf_openssl_version_ok=yes
13810 else
13811 cf_openssl_version_ok=no
13812 fi
13813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13814 conftest.$ac_objext conftest.beam conftest.$ac_ext
13815 fi
13816
13817
13818 if test "$cf_openssl_version_ok" = "yes"; then :
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13820 $as_echo "found" >&6; }
13821
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13823 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13824 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13825 $as_echo_n "(cached) " >&6
13826 else
13827 ac_check_lib_save_LIBS=$LIBS
13828 LIBS="-lcrypto $LIBS"
13829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13830 /* end confdefs.h. */
13831
13832 /* Override any GCC internal prototype to avoid an error.
13833 Use char because int might match the return type of a GCC
13834 builtin and then its argument prototype would still apply. */
13835 #ifdef __cplusplus
13836 extern "C"
13837 #endif
13838 char RSA_free ();
13839 int
13840 main ()
13841 {
13842 return RSA_free ();
13843 ;
13844 return 0;
13845 }
13846 _ACEOF
13847 if ac_fn_c_try_link "$LINENO"; then :
13848 ac_cv_lib_crypto_RSA_free=yes
13849 else
13850 ac_cv_lib_crypto_RSA_free=no
13851 fi
13852 rm -f core conftest.err conftest.$ac_objext \
13853 conftest$ac_exeext conftest.$ac_ext
13854 LIBS=$ac_check_lib_save_LIBS
13855 fi
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13857 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13858 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13859 cat >>confdefs.h <<_ACEOF
13860 #define HAVE_LIBCRYPTO 1
13861 _ACEOF
13862
13863 LIBS="-lcrypto $LIBS"
13864
13865 fi
13866
13867 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13869 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13870 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13871 $as_echo_n "(cached) " >&6
13872 else
13873 ac_check_lib_save_LIBS=$LIBS
13874 LIBS="-lssl $LIBS"
13875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13876 /* end confdefs.h. */
13877
13878 /* Override any GCC internal prototype to avoid an error.
13879 Use char because int might match the return type of a GCC
13880 builtin and then its argument prototype would still apply. */
13881 #ifdef __cplusplus
13882 extern "C"
13883 #endif
13884 char SSL_connect ();
13885 int
13886 main ()
13887 {
13888 return SSL_connect ();
13889 ;
13890 return 0;
13891 }
13892 _ACEOF
13893 if ac_fn_c_try_link "$LINENO"; then :
13894 ac_cv_lib_ssl_SSL_connect=yes
13895 else
13896 ac_cv_lib_ssl_SSL_connect=no
13897 fi
13898 rm -f core conftest.err conftest.$ac_objext \
13899 conftest$ac_exeext conftest.$ac_ext
13900 LIBS=$ac_check_lib_save_LIBS
13901 fi
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13903 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13904 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13905 cat >>confdefs.h <<_ACEOF
13906 #define HAVE_LIBSSL 1
13907 _ACEOF
13908
13909 LIBS="-lssl $LIBS"
13910
13911 fi
13912
13913 fi
13914
13915 else
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13917 $as_echo "no - OpenSSL support disabled" >&6; }
13918 cf_enable_openssl="no"
13919 fi
13920 fi
13921
13922 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13923 ENABLE_SSL_TRUE=
13924 ENABLE_SSL_FALSE='#'
13925 else
13926 ENABLE_SSL_TRUE='#'
13927 ENABLE_SSL_FALSE=
13928 fi
13929
13930
13931
13932 # Check whether --enable-assert was given.
13933 if test "${enable_assert+set}" = set; then :
13934 enableval=$enable_assert; assert=$enableval
13935 else
13936 assert=no
13937 fi
13938
13939
13940 if test "$assert" = "no"; then :
13941
13942 $as_echo "#define NDEBUG 1" >>confdefs.h
13943
13944 fi
13945
13946
13947
13948 $as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h
13949
13950
13951 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 64*1024" >>confdefs.h
13952
13953
13954 $as_echo "#define MP_CHUNK_SIZE_MEMBER 32*1024" >>confdefs.h
13955
13956
13957 $as_echo "#define MP_CHUNK_SIZE_BAN 16*1024" >>confdefs.h
13958
13959
13960 $as_echo "#define MP_CHUNK_SIZE_CLIENT 256*1024" >>confdefs.h
13961
13962
13963 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 128*1024" >>confdefs.h
13964
13965
13966 $as_echo "#define MP_CHUNK_SIZE_DNODE 8*1024" >>confdefs.h
13967
13968
13969 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
13970
13971
13972 $as_echo "#define MP_CHUNK_SIZE_AUTH 32*1024" >>confdefs.h
13973
13974
13975 $as_echo "#define MP_CHUNK_SIZE_DNS 16*1024" >>confdefs.h
13976
13977
13978 $as_echo "#define MP_CHUNK_SIZE_WATCH 4*1024" >>confdefs.h
13979
13980
13981 # Argument processing.
13982
13983 desired_iopoll_mechanism="none"
13984 # Check whether --enable-kqueue was given.
13985 if test "${enable_kqueue+set}" = set; then :
13986 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13987 fi
13988
13989 # Check whether --enable-epoll was given.
13990 if test "${enable_epoll+set}" = set; then :
13991 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13992 fi
13993
13994 # Check whether --enable-devpoll was given.
13995 if test "${enable_devpoll+set}" = set; then :
13996 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13997 fi
13998
13999 # Check whether --enable-rtsigio was given.
14000 if test "${enable_rtsigio+set}" = set; then :
14001 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
14002 fi
14003
14004 # Check whether --enable-poll was given.
14005 if test "${enable_poll+set}" = set; then :
14006 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14007 fi
14008
14009 # Check whether --enable-select was given.
14010 if test "${enable_select+set}" = set; then :
14011 enableval=$enable_select; desired_iopoll_mechanism="select"
14012 fi
14013
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14015 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14016 iopoll_mechanism_none=0
14017
14018 cat >>confdefs.h <<_ACEOF
14019 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14020 _ACEOF
14021
14022 iopoll_mechanism_kqueue=1
14023
14024 cat >>confdefs.h <<_ACEOF
14025 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14026 _ACEOF
14027
14028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14029 /* end confdefs.h. */
14030 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14032 #define kevent innocuous_kevent
14033
14034 /* System header to define __stub macros and hopefully few prototypes,
14035 which can conflict with char kevent (); below.
14036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14037 <limits.h> exists even on freestanding compilers. */
14038
14039 #ifdef __STDC__
14040 # include <limits.h>
14041 #else
14042 # include <assert.h>
14043 #endif
14044
14045 #undef kevent
14046
14047 /* Override any GCC internal prototype to avoid an error.
14048 Use char because int might match the return type of a GCC
14049 builtin and then its argument prototype would still apply. */
14050 #ifdef __cplusplus
14051 extern "C"
14052 #endif
14053 char kevent ();
14054 /* The GNU C library defines this for functions which it implements
14055 to always fail with ENOSYS. Some functions are actually named
14056 something starting with __ and the normal name is an alias. */
14057 #if defined __stub_kevent || defined __stub___kevent
14058 choke me
14059 #endif
14060
14061 int
14062 main ()
14063 {
14064 return kevent ();
14065 ;
14066 return 0;
14067 }
14068 _ACEOF
14069 if ac_fn_c_try_link "$LINENO"; then :
14070 is_kqueue_mechanism_available="yes"
14071 else
14072 is_kqueue_mechanism_available="no"
14073 fi
14074 rm -f core conftest.err conftest.$ac_objext \
14075 conftest$ac_exeext conftest.$ac_ext
14076 iopoll_mechanism_epoll=2
14077
14078 cat >>confdefs.h <<_ACEOF
14079 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14080 _ACEOF
14081
14082 if test "$cross_compiling" = yes; then :
14083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14085 as_fn_error $? "cannot run test program while cross compiling
14086 See \`config.log' for more details" "$LINENO" 5; }
14087 else
14088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14089 /* end confdefs.h. */
14090
14091 #include <sys/epoll.h>
14092 #include <sys/syscall.h>
14093 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14094 #if !defined(__NR_epoll_create)
14095 #if defined(__ia64__)
14096 #define __NR_epoll_create 1243
14097 #elif defined(__x86_64__)
14098 #define __NR_epoll_create 214
14099 #elif defined(__sparc64__) || defined(__sparc__)
14100 #define __NR_epoll_create 193
14101 #elif defined(__s390__) || defined(__m68k__)
14102 #define __NR_epoll_create 249
14103 #elif defined(__ppc64__) || defined(__ppc__)
14104 #define __NR_epoll_create 236
14105 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14106 #define __NR_epoll_create 224
14107 #elif defined(__alpha__)
14108 #define __NR_epoll_create 407
14109 #elif defined(__sh64__)
14110 #define __NR_epoll_create 282
14111 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14112 #define __NR_epoll_create 254
14113 #else
14114 #error No system call numbers defined for epoll family.
14115 #endif
14116 #endif
14117 _syscall1(int, epoll_create, int, size)
14118 #endif
14119
14120 int
14121 main ()
14122 {
14123 return epoll_create(256) == -1 ? 1 : 0
14124 ;
14125 return 0;
14126 }
14127 _ACEOF
14128 if ac_fn_c_try_run "$LINENO"; then :
14129 is_epoll_mechanism_available="yes"
14130 else
14131 is_epoll_mechanism_available="no"
14132 fi
14133 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14134 conftest.$ac_objext conftest.beam conftest.$ac_ext
14135 fi
14136
14137 iopoll_mechanism_devpoll=3
14138
14139 cat >>confdefs.h <<_ACEOF
14140 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14141 _ACEOF
14142
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 #include <devpoll.h>
14146 int
14147 main ()
14148 {
14149
14150 ;
14151 return 0;
14152 }
14153 _ACEOF
14154 if ac_fn_c_try_compile "$LINENO"; then :
14155 is_devpoll_mechanism_available="yes"
14156 else
14157 is_devpoll_mechanism_available="no"
14158 fi
14159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160 if test "$is_devpoll_mechanism_available" = "yes" ; then
14161
14162 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14163
14164 fi
14165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14166 /* end confdefs.h. */
14167 #include <sys/devpoll.h>
14168 int
14169 main ()
14170 {
14171
14172 ;
14173 return 0;
14174 }
14175 _ACEOF
14176 if ac_fn_c_try_compile "$LINENO"; then :
14177 is_devpoll_mechanism_available="yes"
14178 else
14179 is_devpoll_mechanism_available="no"
14180 fi
14181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14182 if test "$is_devpoll_mechanism_available" = "yes" ; then
14183
14184 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14185
14186 fi
14187 iopoll_mechanism_rtsigio=4
14188
14189 cat >>confdefs.h <<_ACEOF
14190 #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14191 _ACEOF
14192
14193 if test "$cross_compiling" = yes; then :
14194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14196 as_fn_error $? "cannot run test program while cross compiling
14197 See \`config.log' for more details" "$LINENO" 5; }
14198 else
14199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14200 /* end confdefs.h. */
14201
14202 #define _GNU_SOURCE
14203 #include <fcntl.h>
14204 static unsigned int have_f_setsig = 0;
14205
14206 int
14207 main ()
14208 {
14209
14210 #ifdef F_SETSIG
14211 have_f_setsig = 1;
14212 #endif
14213 return have_f_setsig == 0;
14214
14215 ;
14216 return 0;
14217 }
14218 _ACEOF
14219 if ac_fn_c_try_run "$LINENO"; then :
14220 is_rtsigio_mechanism_available="yes"
14221 else
14222 is_rtsigio_mechanism_available="no"
14223 fi
14224 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14225 conftest.$ac_objext conftest.beam conftest.$ac_ext
14226 fi
14227
14228 iopoll_mechanism_poll=5
14229
14230 cat >>confdefs.h <<_ACEOF
14231 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14232 _ACEOF
14233
14234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14235 /* end confdefs.h. */
14236 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14237 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14238 #define poll innocuous_poll
14239
14240 /* System header to define __stub macros and hopefully few prototypes,
14241 which can conflict with char poll (); 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 poll
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 poll ();
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_poll || defined __stub___poll
14264 choke me
14265 #endif
14266
14267 int
14268 main ()
14269 {
14270 return poll ();
14271 ;
14272 return 0;
14273 }
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"; then :
14276 is_poll_mechanism_available="yes"
14277 else
14278 is_poll_mechanism_available="no"
14279 fi
14280 rm -f core conftest.err conftest.$ac_objext \
14281 conftest$ac_exeext conftest.$ac_ext
14282 iopoll_mechanism_select=6
14283
14284 cat >>confdefs.h <<_ACEOF
14285 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14286 _ACEOF
14287
14288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14289 /* end confdefs.h. */
14290 /* Define select to an innocuous variant, in case <limits.h> declares select.
14291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14292 #define select innocuous_select
14293
14294 /* System header to define __stub macros and hopefully few prototypes,
14295 which can conflict with char select (); below.
14296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14297 <limits.h> exists even on freestanding compilers. */
14298
14299 #ifdef __STDC__
14300 # include <limits.h>
14301 #else
14302 # include <assert.h>
14303 #endif
14304
14305 #undef select
14306
14307 /* Override any GCC internal prototype to avoid an error.
14308 Use char because int might match the return type of a GCC
14309 builtin and then its argument prototype would still apply. */
14310 #ifdef __cplusplus
14311 extern "C"
14312 #endif
14313 char select ();
14314 /* The GNU C library defines this for functions which it implements
14315 to always fail with ENOSYS. Some functions are actually named
14316 something starting with __ and the normal name is an alias. */
14317 #if defined __stub_select || defined __stub___select
14318 choke me
14319 #endif
14320
14321 int
14322 main ()
14323 {
14324 return select ();
14325 ;
14326 return 0;
14327 }
14328 _ACEOF
14329 if ac_fn_c_try_link "$LINENO"; then :
14330 is_select_mechanism_available="yes"
14331 else
14332 is_select_mechanism_available="no"
14333 fi
14334 rm -f core conftest.err conftest.$ac_objext \
14335 conftest$ac_exeext conftest.$ac_ext
14336 optimal_iopoll_mechanism="none"
14337 for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14338 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14339 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14340 optimal_iopoll_mechanism="$mechanism"
14341 break
14342 fi
14343 done
14344 if test "$desired_iopoll_mechanism" = "none" ; then
14345 if test "$optimal_iopoll_mechanism" = "none" ; then
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14347 $as_echo "none" >&6; }
14348 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14349 else
14350 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14352 $as_echo "$selected_iopoll_mechanism" >&6; }
14353 fi
14354 else
14355 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14356 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14357 selected_iopoll_mechanism=$desired_iopoll_mechanism
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14359 $as_echo "$selected_iopoll_mechanism" >&6; }
14360 else
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14362 $as_echo "none" >&6; }
14363 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14364 fi
14365 fi
14366 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14367
14368 cat >>confdefs.h <<_ACEOF
14369 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14370 _ACEOF
14371
14372
14373
14374
14375 # Check whether --with-nicklen was given.
14376 if test "${with_nicklen+set}" = set; then :
14377 withval=$with_nicklen; nicklen="$withval"
14378 else
14379 nicklen="9"
14380 fi
14381
14382
14383 cat >>confdefs.h <<_ACEOF
14384 #define NICKLEN ($nicklen)
14385 _ACEOF
14386
14387
14388
14389
14390 # Check whether --with-topiclen was given.
14391 if test "${with_topiclen+set}" = set; then :
14392 withval=$with_topiclen; topiclen="$withval"
14393 else
14394 topiclen="160"
14395 fi
14396
14397
14398 cat >>confdefs.h <<_ACEOF
14399 #define TOPICLEN ($topiclen)
14400 _ACEOF
14401
14402
14403
14404 # Check whether --enable-halfops was given.
14405 if test "${enable_halfops+set}" = set; then :
14406 enableval=$enable_halfops; halfops="$enableval"
14407 else
14408 halfops="no"
14409 fi
14410
14411 if test "$halfops" = "yes" ; then
14412
14413 $as_echo "#define HALFOPS 1" >>confdefs.h
14414
14415 fi
14416
14417
14418 # Check whether --enable-debugging was given.
14419 if test "${enable_debugging+set}" = set; then :
14420 enableval=$enable_debugging; debugging="$enableval"
14421 else
14422 debugging="no"
14423 fi
14424
14425 if test "$debugging" = "yes" ; then
14426 CFLAGS="-Wall -g -O0"
14427 fi
14428
14429
14430 # Check whether --enable-warnings was given.
14431 if test "${enable_warnings+set}" = set; then :
14432 enableval=$enable_warnings; warnings="$enableval"
14433 else
14434 warnings="no"
14435 fi
14436
14437 if test "$warnings" = "yes" ; then
14438 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14439 fi
14440
14441
14442
14443 prefix_NONE=
14444 exec_prefix_NONE=
14445 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14446 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14447 eval ac_define_dir="\"$prefix\""
14448 eval ac_define_dir="\"$ac_define_dir\""
14449 PREFIX="$ac_define_dir"
14450
14451
14452 cat >>confdefs.h <<_ACEOF
14453 #define PREFIX "$ac_define_dir"
14454 _ACEOF
14455
14456 test "$prefix_NONE" && prefix=NONE
14457 test "$exec_prefix_NONE" && exec_prefix=NONE
14458
14459
14460 prefix_NONE=
14461 exec_prefix_NONE=
14462 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14463 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14464 eval ac_define_dir="\"$sysconfdir\""
14465 eval ac_define_dir="\"$ac_define_dir\""
14466 SYSCONFDIR="$ac_define_dir"
14467
14468
14469 cat >>confdefs.h <<_ACEOF
14470 #define SYSCONFDIR "$ac_define_dir"
14471 _ACEOF
14472
14473 test "$prefix_NONE" && prefix=NONE
14474 test "$exec_prefix_NONE" && exec_prefix=NONE
14475
14476
14477 prefix_NONE=
14478 exec_prefix_NONE=
14479 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14480 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14481 eval ac_define_dir="\"$libdir\""
14482 eval ac_define_dir="\"$ac_define_dir\""
14483 LIBDIR="$ac_define_dir"
14484
14485
14486 cat >>confdefs.h <<_ACEOF
14487 #define LIBDIR "$ac_define_dir"
14488 _ACEOF
14489
14490 test "$prefix_NONE" && prefix=NONE
14491 test "$exec_prefix_NONE" && exec_prefix=NONE
14492
14493
14494 prefix_NONE=
14495 exec_prefix_NONE=
14496 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14497 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14498 eval ac_define_dir="\"$datadir\""
14499 eval ac_define_dir="\"$ac_define_dir\""
14500 DATADIR="$ac_define_dir"
14501
14502
14503 cat >>confdefs.h <<_ACEOF
14504 #define DATADIR "$ac_define_dir"
14505 _ACEOF
14506
14507 test "$prefix_NONE" && prefix=NONE
14508 test "$exec_prefix_NONE" && exec_prefix=NONE
14509
14510
14511 prefix_NONE=
14512 exec_prefix_NONE=
14513 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14514 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14515 eval ac_define_dir="\"$localstatedir\""
14516 eval ac_define_dir="\"$ac_define_dir\""
14517 LOCALSTATEDIR="$ac_define_dir"
14518
14519
14520 cat >>confdefs.h <<_ACEOF
14521 #define LOCALSTATEDIR "$ac_define_dir"
14522 _ACEOF
14523
14524 test "$prefix_NONE" && prefix=NONE
14525 test "$exec_prefix_NONE" && exec_prefix=NONE
14526
14527
14528 ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
14529
14530
14531 cat >confcache <<\_ACEOF
14532 # This file is a shell script that caches the results of configure
14533 # tests run on this system so they can be shared between configure
14534 # scripts and configure runs, see configure's option --config-cache.
14535 # It is not useful on other systems. If it contains results you don't
14536 # want to keep, you may remove or edit it.
14537 #
14538 # config.status only pays attention to the cache file if you give it
14539 # the --recheck option to rerun configure.
14540 #
14541 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14542 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14543 # following values.
14544
14545 _ACEOF
14546
14547 # The following way of writing the cache mishandles newlines in values,
14548 # but we know of no workaround that is simple, portable, and efficient.
14549 # So, we kill variables containing newlines.
14550 # Ultrix sh set writes to stderr and can't be redirected directly,
14551 # and sets the high bit in the cache file unless we assign to the vars.
14552 (
14553 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14554 eval ac_val=\$$ac_var
14555 case $ac_val in #(
14556 *${as_nl}*)
14557 case $ac_var in #(
14558 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14559 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14560 esac
14561 case $ac_var in #(
14562 _ | IFS | as_nl) ;; #(
14563 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14564 *) { eval $ac_var=; unset $ac_var;} ;;
14565 esac ;;
14566 esac
14567 done
14568
14569 (set) 2>&1 |
14570 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14571 *${as_nl}ac_space=\ *)
14572 # `set' does not quote correctly, so add quotes: double-quote
14573 # substitution turns \\\\ into \\, and sed turns \\ into \.
14574 sed -n \
14575 "s/'/'\\\\''/g;
14576 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14577 ;; #(
14578 *)
14579 # `set' quotes correctly as required by POSIX, so do not add quotes.
14580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14581 ;;
14582 esac |
14583 sort
14584 ) |
14585 sed '
14586 /^ac_cv_env_/b end
14587 t clear
14588 :clear
14589 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14590 t end
14591 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14592 :end' >>confcache
14593 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14594 if test -w "$cache_file"; then
14595 if test "x$cache_file" != "x/dev/null"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14597 $as_echo "$as_me: updating cache $cache_file" >&6;}
14598 if test ! -f "$cache_file" || test -h "$cache_file"; then
14599 cat confcache >"$cache_file"
14600 else
14601 case $cache_file in #(
14602 */* | ?:*)
14603 mv -f confcache "$cache_file"$$ &&
14604 mv -f "$cache_file"$$ "$cache_file" ;; #(
14605 *)
14606 mv -f confcache "$cache_file" ;;
14607 esac
14608 fi
14609 fi
14610 else
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14612 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14613 fi
14614 fi
14615 rm -f confcache
14616
14617 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14618 # Let make expand exec_prefix.
14619 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14620
14621 DEFS=-DHAVE_CONFIG_H
14622
14623 ac_libobjs=
14624 ac_ltlibobjs=
14625 U=
14626 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14627 # 1. Remove the extension, and $U if already installed.
14628 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14629 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14630 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14631 # will be set to the directory where LIBOBJS objects are built.
14632 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14633 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14634 done
14635 LIBOBJS=$ac_libobjs
14636
14637 LTLIBOBJS=$ac_ltlibobjs
14638
14639
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14641 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14642 if test -n "$am_sleep_pid"; then
14643 # Hide warnings about reused PIDs.
14644 wait $am_sleep_pid 2>/dev/null
14645 fi
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14647 $as_echo "done" >&6; }
14648 if test -n "$EXEEXT"; then
14649 am__EXEEXT_TRUE=
14650 am__EXEEXT_FALSE='#'
14651 else
14652 am__EXEEXT_TRUE='#'
14653 am__EXEEXT_FALSE=
14654 fi
14655
14656 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14657 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14659 fi
14660 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14661 as_fn_error $? "conditional \"AMDEP\" was never defined.
14662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14663 fi
14664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14665 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14667 fi
14668 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14669 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14671 fi
14672 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14673 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14675 fi
14676 LT_CONFIG_H=config.h
14677
14678 _ltdl_libobjs=
14679 _ltdl_ltlibobjs=
14680 if test -n "$_LT_LIBOBJS"; then
14681 # Remove the extension.
14682 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14683 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14684 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14685 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14686 done
14687 fi
14688 ltdl_LIBOBJS=$_ltdl_libobjs
14689
14690 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14691
14692
14693
14694 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14695 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14696 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14697 fi
14698
14699 : "${CONFIG_STATUS=./config.status}"
14700 ac_write_fail=0
14701 ac_clean_files_save=$ac_clean_files
14702 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14704 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14705 as_write_fail=0
14706 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14707 #! $SHELL
14708 # Generated by $as_me.
14709 # Run this file to recreate the current configuration.
14710 # Compiler output produced by configure, useful for debugging
14711 # configure, is in config.log if it exists.
14712
14713 debug=false
14714 ac_cs_recheck=false
14715 ac_cs_silent=false
14716
14717 SHELL=\${CONFIG_SHELL-$SHELL}
14718 export SHELL
14719 _ASEOF
14720 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14721 ## -------------------- ##
14722 ## M4sh Initialization. ##
14723 ## -------------------- ##
14724
14725 # Be more Bourne compatible
14726 DUALCASE=1; export DUALCASE # for MKS sh
14727 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14728 emulate sh
14729 NULLCMD=:
14730 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14731 # is contrary to our usage. Disable this feature.
14732 alias -g '${1+"$@"}'='"$@"'
14733 setopt NO_GLOB_SUBST
14734 else
14735 case `(set -o) 2>/dev/null` in #(
14736 *posix*) :
14737 set -o posix ;; #(
14738 *) :
14739 ;;
14740 esac
14741 fi
14742
14743
14744 as_nl='
14745 '
14746 export as_nl
14747 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14748 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14749 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14750 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14751 # Prefer a ksh shell builtin over an external printf program on Solaris,
14752 # but without wasting forks for bash or zsh.
14753 if test -z "$BASH_VERSION$ZSH_VERSION" \
14754 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14755 as_echo='print -r --'
14756 as_echo_n='print -rn --'
14757 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14758 as_echo='printf %s\n'
14759 as_echo_n='printf %s'
14760 else
14761 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14762 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14763 as_echo_n='/usr/ucb/echo -n'
14764 else
14765 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14766 as_echo_n_body='eval
14767 arg=$1;
14768 case $arg in #(
14769 *"$as_nl"*)
14770 expr "X$arg" : "X\\(.*\\)$as_nl";
14771 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14772 esac;
14773 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14774 '
14775 export as_echo_n_body
14776 as_echo_n='sh -c $as_echo_n_body as_echo'
14777 fi
14778 export as_echo_body
14779 as_echo='sh -c $as_echo_body as_echo'
14780 fi
14781
14782 # The user is always right.
14783 if test "${PATH_SEPARATOR+set}" != set; then
14784 PATH_SEPARATOR=:
14785 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14786 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14787 PATH_SEPARATOR=';'
14788 }
14789 fi
14790
14791
14792 # IFS
14793 # We need space, tab and new line, in precisely that order. Quoting is
14794 # there to prevent editors from complaining about space-tab.
14795 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14796 # splitting by setting IFS to empty value.)
14797 IFS=" "" $as_nl"
14798
14799 # Find who we are. Look in the path if we contain no directory separator.
14800 as_myself=
14801 case $0 in #((
14802 *[\\/]* ) as_myself=$0 ;;
14803 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14804 for as_dir in $PATH
14805 do
14806 IFS=$as_save_IFS
14807 test -z "$as_dir" && as_dir=.
14808 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14809 done
14810 IFS=$as_save_IFS
14811
14812 ;;
14813 esac
14814 # We did not find ourselves, most probably we were run as `sh COMMAND'
14815 # in which case we are not to be found in the path.
14816 if test "x$as_myself" = x; then
14817 as_myself=$0
14818 fi
14819 if test ! -f "$as_myself"; then
14820 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14821 exit 1
14822 fi
14823
14824 # Unset variables that we do not need and which cause bugs (e.g. in
14825 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14826 # suppresses any "Segmentation fault" message there. '((' could
14827 # trigger a bug in pdksh 5.2.14.
14828 for as_var in BASH_ENV ENV MAIL MAILPATH
14829 do eval test x\${$as_var+set} = xset \
14830 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14831 done
14832 PS1='$ '
14833 PS2='> '
14834 PS4='+ '
14835
14836 # NLS nuisances.
14837 LC_ALL=C
14838 export LC_ALL
14839 LANGUAGE=C
14840 export LANGUAGE
14841
14842 # CDPATH.
14843 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14844
14845
14846 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14847 # ----------------------------------------
14848 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14849 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14850 # script with STATUS, using 1 if that was 0.
14851 as_fn_error ()
14852 {
14853 as_status=$1; test $as_status -eq 0 && as_status=1
14854 if test "$4"; then
14855 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14856 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14857 fi
14858 $as_echo "$as_me: error: $2" >&2
14859 as_fn_exit $as_status
14860 } # as_fn_error
14861
14862
14863 # as_fn_set_status STATUS
14864 # -----------------------
14865 # Set $? to STATUS, without forking.
14866 as_fn_set_status ()
14867 {
14868 return $1
14869 } # as_fn_set_status
14870
14871 # as_fn_exit STATUS
14872 # -----------------
14873 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14874 as_fn_exit ()
14875 {
14876 set +e
14877 as_fn_set_status $1
14878 exit $1
14879 } # as_fn_exit
14880
14881 # as_fn_unset VAR
14882 # ---------------
14883 # Portably unset VAR.
14884 as_fn_unset ()
14885 {
14886 { eval $1=; unset $1;}
14887 }
14888 as_unset=as_fn_unset
14889 # as_fn_append VAR VALUE
14890 # ----------------------
14891 # Append the text in VALUE to the end of the definition contained in VAR. Take
14892 # advantage of any shell optimizations that allow amortized linear growth over
14893 # repeated appends, instead of the typical quadratic growth present in naive
14894 # implementations.
14895 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14896 eval 'as_fn_append ()
14897 {
14898 eval $1+=\$2
14899 }'
14900 else
14901 as_fn_append ()
14902 {
14903 eval $1=\$$1\$2
14904 }
14905 fi # as_fn_append
14906
14907 # as_fn_arith ARG...
14908 # ------------------
14909 # Perform arithmetic evaluation on the ARGs, and store the result in the
14910 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14911 # must be portable across $(()) and expr.
14912 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14913 eval 'as_fn_arith ()
14914 {
14915 as_val=$(( $* ))
14916 }'
14917 else
14918 as_fn_arith ()
14919 {
14920 as_val=`expr "$@" || test $? -eq 1`
14921 }
14922 fi # as_fn_arith
14923
14924
14925 if expr a : '\(a\)' >/dev/null 2>&1 &&
14926 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14927 as_expr=expr
14928 else
14929 as_expr=false
14930 fi
14931
14932 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14933 as_basename=basename
14934 else
14935 as_basename=false
14936 fi
14937
14938 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14939 as_dirname=dirname
14940 else
14941 as_dirname=false
14942 fi
14943
14944 as_me=`$as_basename -- "$0" ||
14945 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14946 X"$0" : 'X\(//\)$' \| \
14947 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14948 $as_echo X/"$0" |
14949 sed '/^.*\/\([^/][^/]*\)\/*$/{
14950 s//\1/
14951 q
14952 }
14953 /^X\/\(\/\/\)$/{
14954 s//\1/
14955 q
14956 }
14957 /^X\/\(\/\).*/{
14958 s//\1/
14959 q
14960 }
14961 s/.*/./; q'`
14962
14963 # Avoid depending upon Character Ranges.
14964 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14965 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14966 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14967 as_cr_digits='0123456789'
14968 as_cr_alnum=$as_cr_Letters$as_cr_digits
14969
14970 ECHO_C= ECHO_N= ECHO_T=
14971 case `echo -n x` in #(((((
14972 -n*)
14973 case `echo 'xy\c'` in
14974 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14975 xy) ECHO_C='\c';;
14976 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14977 ECHO_T=' ';;
14978 esac;;
14979 *)
14980 ECHO_N='-n';;
14981 esac
14982
14983 rm -f conf$$ conf$$.exe conf$$.file
14984 if test -d conf$$.dir; then
14985 rm -f conf$$.dir/conf$$.file
14986 else
14987 rm -f conf$$.dir
14988 mkdir conf$$.dir 2>/dev/null
14989 fi
14990 if (echo >conf$$.file) 2>/dev/null; then
14991 if ln -s conf$$.file conf$$ 2>/dev/null; then
14992 as_ln_s='ln -s'
14993 # ... but there are two gotchas:
14994 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14995 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14996 # In both cases, we have to default to `cp -pR'.
14997 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14998 as_ln_s='cp -pR'
14999 elif ln conf$$.file conf$$ 2>/dev/null; then
15000 as_ln_s=ln
15001 else
15002 as_ln_s='cp -pR'
15003 fi
15004 else
15005 as_ln_s='cp -pR'
15006 fi
15007 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15008 rmdir conf$$.dir 2>/dev/null
15009
15010
15011 # as_fn_mkdir_p
15012 # -------------
15013 # Create "$as_dir" as a directory, including parents if necessary.
15014 as_fn_mkdir_p ()
15015 {
15016
15017 case $as_dir in #(
15018 -*) as_dir=./$as_dir;;
15019 esac
15020 test -d "$as_dir" || eval $as_mkdir_p || {
15021 as_dirs=
15022 while :; do
15023 case $as_dir in #(
15024 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15025 *) as_qdir=$as_dir;;
15026 esac
15027 as_dirs="'$as_qdir' $as_dirs"
15028 as_dir=`$as_dirname -- "$as_dir" ||
15029 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15030 X"$as_dir" : 'X\(//\)[^/]' \| \
15031 X"$as_dir" : 'X\(//\)$' \| \
15032 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15033 $as_echo X"$as_dir" |
15034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15035 s//\1/
15036 q
15037 }
15038 /^X\(\/\/\)[^/].*/{
15039 s//\1/
15040 q
15041 }
15042 /^X\(\/\/\)$/{
15043 s//\1/
15044 q
15045 }
15046 /^X\(\/\).*/{
15047 s//\1/
15048 q
15049 }
15050 s/.*/./; q'`
15051 test -d "$as_dir" && break
15052 done
15053 test -z "$as_dirs" || eval "mkdir $as_dirs"
15054 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15055
15056
15057 } # as_fn_mkdir_p
15058 if mkdir -p . 2>/dev/null; then
15059 as_mkdir_p='mkdir -p "$as_dir"'
15060 else
15061 test -d ./-p && rmdir ./-p
15062 as_mkdir_p=false
15063 fi
15064
15065
15066 # as_fn_executable_p FILE
15067 # -----------------------
15068 # Test if FILE is an executable regular file.
15069 as_fn_executable_p ()
15070 {
15071 test -f "$1" && test -x "$1"
15072 } # as_fn_executable_p
15073 as_test_x='test -x'
15074 as_executable_p=as_fn_executable_p
15075
15076 # Sed expression to map a string onto a valid CPP name.
15077 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15078
15079 # Sed expression to map a string onto a valid variable name.
15080 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15081
15082
15083 exec 6>&1
15084 ## ----------------------------------- ##
15085 ## Main body of $CONFIG_STATUS script. ##
15086 ## ----------------------------------- ##
15087 _ASEOF
15088 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15089
15090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15091 # Save the log message, to keep $0 and so on meaningful, and to
15092 # report actual input values of CONFIG_FILES etc. instead of their
15093 # values after options handling.
15094 ac_log="
15095 This file was extended by ircd-hybrid $as_me TRUNK, which was
15096 generated by GNU Autoconf 2.69. Invocation command line was
15097
15098 CONFIG_FILES = $CONFIG_FILES
15099 CONFIG_HEADERS = $CONFIG_HEADERS
15100 CONFIG_LINKS = $CONFIG_LINKS
15101 CONFIG_COMMANDS = $CONFIG_COMMANDS
15102 $ $0 $@
15103
15104 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15105 "
15106
15107 _ACEOF
15108
15109 case $ac_config_files in *"
15110 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15111 esac
15112
15113 case $ac_config_headers in *"
15114 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15115 esac
15116
15117
15118 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15119 # Files that config.status was made for.
15120 config_files="$ac_config_files"
15121 config_headers="$ac_config_headers"
15122 config_commands="$ac_config_commands"
15123
15124 _ACEOF
15125
15126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15127 ac_cs_usage="\
15128 \`$as_me' instantiates files and other configuration actions
15129 from templates according to the current configuration. Unless the files
15130 and actions are specified as TAGs, all are instantiated by default.
15131
15132 Usage: $0 [OPTION]... [TAG]...
15133
15134 -h, --help print this help, then exit
15135 -V, --version print version number and configuration settings, then exit
15136 --config print configuration, then exit
15137 -q, --quiet, --silent
15138 do not print progress messages
15139 -d, --debug don't remove temporary files
15140 --recheck update $as_me by reconfiguring in the same conditions
15141 --file=FILE[:TEMPLATE]
15142 instantiate the configuration file FILE
15143 --header=FILE[:TEMPLATE]
15144 instantiate the configuration header FILE
15145
15146 Configuration files:
15147 $config_files
15148
15149 Configuration headers:
15150 $config_headers
15151
15152 Configuration commands:
15153 $config_commands
15154
15155 Report bugs to <bugs@ircd-hybrid.org>."
15156
15157 _ACEOF
15158 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15159 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15160 ac_cs_version="\\
15161 ircd-hybrid config.status TRUNK
15162 configured by $0, generated by GNU Autoconf 2.69,
15163 with options \\"\$ac_cs_config\\"
15164
15165 Copyright (C) 2012 Free Software Foundation, Inc.
15166 This config.status script is free software; the Free Software Foundation
15167 gives unlimited permission to copy, distribute and modify it."
15168
15169 ac_pwd='$ac_pwd'
15170 srcdir='$srcdir'
15171 INSTALL='$INSTALL'
15172 MKDIR_P='$MKDIR_P'
15173 AWK='$AWK'
15174 test -n "\$AWK" || AWK=awk
15175 _ACEOF
15176
15177 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15178 # The default lists apply if the user does not specify any file.
15179 ac_need_defaults=:
15180 while test $# != 0
15181 do
15182 case $1 in
15183 --*=?*)
15184 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15185 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15186 ac_shift=:
15187 ;;
15188 --*=)
15189 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15190 ac_optarg=
15191 ac_shift=:
15192 ;;
15193 *)
15194 ac_option=$1
15195 ac_optarg=$2
15196 ac_shift=shift
15197 ;;
15198 esac
15199
15200 case $ac_option in
15201 # Handling of the options.
15202 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15203 ac_cs_recheck=: ;;
15204 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15205 $as_echo "$ac_cs_version"; exit ;;
15206 --config | --confi | --conf | --con | --co | --c )
15207 $as_echo "$ac_cs_config"; exit ;;
15208 --debug | --debu | --deb | --de | --d | -d )
15209 debug=: ;;
15210 --file | --fil | --fi | --f )
15211 $ac_shift
15212 case $ac_optarg in
15213 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15214 '') as_fn_error $? "missing file argument" ;;
15215 esac
15216 as_fn_append CONFIG_FILES " '$ac_optarg'"
15217 ac_need_defaults=false;;
15218 --header | --heade | --head | --hea )
15219 $ac_shift
15220 case $ac_optarg in
15221 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15222 esac
15223 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15224 ac_need_defaults=false;;
15225 --he | --h)
15226 # Conflict between --help and --header
15227 as_fn_error $? "ambiguous option: \`$1'
15228 Try \`$0 --help' for more information.";;
15229 --help | --hel | -h )
15230 $as_echo "$ac_cs_usage"; exit ;;
15231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15232 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15233 ac_cs_silent=: ;;
15234
15235 # This is an error.
15236 -*) as_fn_error $? "unrecognized option: \`$1'
15237 Try \`$0 --help' for more information." ;;
15238
15239 *) as_fn_append ac_config_targets " $1"
15240 ac_need_defaults=false ;;
15241
15242 esac
15243 shift
15244 done
15245
15246 ac_configure_extra_args=
15247
15248 if $ac_cs_silent; then
15249 exec 6>/dev/null
15250 ac_configure_extra_args="$ac_configure_extra_args --silent"
15251 fi
15252
15253 _ACEOF
15254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15255 if \$ac_cs_recheck; then
15256 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15257 shift
15258 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15259 CONFIG_SHELL='$SHELL'
15260 export CONFIG_SHELL
15261 exec "\$@"
15262 fi
15263
15264 _ACEOF
15265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15266 exec 5>>config.log
15267 {
15268 echo
15269 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15270 ## Running $as_me. ##
15271 _ASBOX
15272 $as_echo "$ac_log"
15273 } >&5
15274
15275 _ACEOF
15276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15277 #
15278 # INIT-COMMANDS
15279 #
15280 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15281
15282
15283 # The HP-UX ksh and POSIX shell print the target directory to stdout
15284 # if CDPATH is set.
15285 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15286
15287 sed_quote_subst='$sed_quote_subst'
15288 double_quote_subst='$double_quote_subst'
15289 delay_variable_subst='$delay_variable_subst'
15290 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15291 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15292 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15293 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15294 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15295 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15296 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15297 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15298 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15299 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15300 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15301 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15302 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15303 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15304 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15305 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15306 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15307 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15308 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15309 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15310 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15311 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15312 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15313 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15314 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15315 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15316 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15317 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15318 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15319 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15320 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15321 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15322 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15323 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15324 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15325 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15326 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15327 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15328 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15329 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15330 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15331 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15332 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15333 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15334 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15335 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15336 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15337 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15338 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15339 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15340 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15341 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15342 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15343 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15344 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15345 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15346 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"`'
15347 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15348 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15349 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15350 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15351 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15352 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15353 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15354 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15355 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15356 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15357 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15358 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15359 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15360 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15361 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15362 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15363 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15364 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15365 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15366 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15367 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15368 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15369 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15370 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15371 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15372 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15373 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15374 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15375 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15376 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15377 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15378 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15379 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15380 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15381 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15382 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15383 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15384 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15385 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15386 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15387 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15388 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15389 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15390 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15391 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15392 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15393 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15394 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15395 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15396 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15397 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15398 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15399 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15400 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15401 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15402 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15403 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15404 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15405 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15406 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15407 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15408 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15409 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15410 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15411 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15412 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15413 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15414 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15415 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15416 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15417 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15418 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15419 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15420
15421 LTCC='$LTCC'
15422 LTCFLAGS='$LTCFLAGS'
15423 compiler='$compiler_DEFAULT'
15424
15425 # A function that is used when there is no print builtin or printf.
15426 func_fallback_echo ()
15427 {
15428 eval 'cat <<_LTECHO_EOF
15429 \$1
15430 _LTECHO_EOF'
15431 }
15432
15433 # Quote evaled strings.
15434 for var in SHELL \
15435 ECHO \
15436 PATH_SEPARATOR \
15437 SED \
15438 GREP \
15439 EGREP \
15440 FGREP \
15441 LD \
15442 NM \
15443 LN_S \
15444 lt_SP2NL \
15445 lt_NL2SP \
15446 reload_flag \
15447 OBJDUMP \
15448 deplibs_check_method \
15449 file_magic_cmd \
15450 file_magic_glob \
15451 want_nocaseglob \
15452 DLLTOOL \
15453 sharedlib_from_linklib_cmd \
15454 AR \
15455 AR_FLAGS \
15456 archiver_list_spec \
15457 STRIP \
15458 RANLIB \
15459 CC \
15460 CFLAGS \
15461 compiler \
15462 lt_cv_sys_global_symbol_pipe \
15463 lt_cv_sys_global_symbol_to_cdecl \
15464 lt_cv_sys_global_symbol_to_c_name_address \
15465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15466 nm_file_list_spec \
15467 lt_prog_compiler_no_builtin_flag \
15468 lt_prog_compiler_pic \
15469 lt_prog_compiler_wl \
15470 lt_prog_compiler_static \
15471 lt_cv_prog_compiler_c_o \
15472 need_locks \
15473 MANIFEST_TOOL \
15474 DSYMUTIL \
15475 NMEDIT \
15476 LIPO \
15477 OTOOL \
15478 OTOOL64 \
15479 shrext_cmds \
15480 export_dynamic_flag_spec \
15481 whole_archive_flag_spec \
15482 compiler_needs_object \
15483 with_gnu_ld \
15484 allow_undefined_flag \
15485 no_undefined_flag \
15486 hardcode_libdir_flag_spec \
15487 hardcode_libdir_separator \
15488 exclude_expsyms \
15489 include_expsyms \
15490 file_list_spec \
15491 variables_saved_for_relink \
15492 libname_spec \
15493 library_names_spec \
15494 soname_spec \
15495 install_override_mode \
15496 finish_eval \
15497 old_striplib \
15498 striplib; do
15499 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15500 *[\\\\\\\`\\"\\\$]*)
15501 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15502 ;;
15503 *)
15504 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15505 ;;
15506 esac
15507 done
15508
15509 # Double-quote double-evaled strings.
15510 for var in reload_cmds \
15511 old_postinstall_cmds \
15512 old_postuninstall_cmds \
15513 old_archive_cmds \
15514 extract_expsyms_cmds \
15515 old_archive_from_new_cmds \
15516 old_archive_from_expsyms_cmds \
15517 archive_cmds \
15518 archive_expsym_cmds \
15519 module_cmds \
15520 module_expsym_cmds \
15521 export_symbols_cmds \
15522 prelink_cmds \
15523 postlink_cmds \
15524 postinstall_cmds \
15525 postuninstall_cmds \
15526 finish_cmds \
15527 sys_lib_search_path_spec \
15528 sys_lib_dlsearch_path_spec; do
15529 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15530 *[\\\\\\\`\\"\\\$]*)
15531 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15532 ;;
15533 *)
15534 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15535 ;;
15536 esac
15537 done
15538
15539 ac_aux_dir='$ac_aux_dir'
15540 xsi_shell='$xsi_shell'
15541 lt_shell_append='$lt_shell_append'
15542
15543 # See if we are running on zsh, and set the options which allow our
15544 # commands through without removal of \ escapes INIT.
15545 if test -n "\${ZSH_VERSION+set}" ; then
15546 setopt NO_GLOB_SUBST
15547 fi
15548
15549
15550 PACKAGE='$PACKAGE'
15551 VERSION='$VERSION'
15552 TIMESTAMP='$TIMESTAMP'
15553 RM='$RM'
15554 ofile='$ofile'
15555
15556
15557
15558
15559 _ACEOF
15560
15561 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15562
15563 # Handling of arguments.
15564 for ac_config_target in $ac_config_targets
15565 do
15566 case $ac_config_target in
15567 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15568 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15569 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15570 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15571 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15572 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15573 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15574 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15575 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15576 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15577 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15578 "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15579 "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15580 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15581
15582 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15583 esac
15584 done
15585
15586
15587 # If the user did not use the arguments to specify the items to instantiate,
15588 # then the envvar interface is used. Set only those that are not.
15589 # We use the long form for the default assignment because of an extremely
15590 # bizarre bug on SunOS 4.1.3.
15591 if $ac_need_defaults; then
15592 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15593 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15594 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15595 fi
15596
15597 # Have a temporary directory for convenience. Make it in the build tree
15598 # simply because there is no reason against having it here, and in addition,
15599 # creating and moving files from /tmp can sometimes cause problems.
15600 # Hook for its removal unless debugging.
15601 # Note that there is a small window in which the directory will not be cleaned:
15602 # after its creation but before its name has been assigned to `$tmp'.
15603 $debug ||
15604 {
15605 tmp= ac_tmp=
15606 trap 'exit_status=$?
15607 : "${ac_tmp:=$tmp}"
15608 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15609 ' 0
15610 trap 'as_fn_exit 1' 1 2 13 15
15611 }
15612 # Create a (secure) tmp directory for tmp files.
15613
15614 {
15615 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15616 test -d "$tmp"
15617 } ||
15618 {
15619 tmp=./conf$$-$RANDOM
15620 (umask 077 && mkdir "$tmp")
15621 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15622 ac_tmp=$tmp
15623
15624 # Set up the scripts for CONFIG_FILES section.
15625 # No need to generate them if there are no CONFIG_FILES.
15626 # This happens for instance with `./config.status config.h'.
15627 if test -n "$CONFIG_FILES"; then
15628
15629
15630 ac_cr=`echo X | tr X '\015'`
15631 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15632 # But we know of no other shell where ac_cr would be empty at this
15633 # point, so we can use a bashism as a fallback.
15634 if test "x$ac_cr" = x; then
15635 eval ac_cr=\$\'\\r\'
15636 fi
15637 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15638 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15639 ac_cs_awk_cr='\\r'
15640 else
15641 ac_cs_awk_cr=$ac_cr
15642 fi
15643
15644 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15645 _ACEOF
15646
15647
15648 {
15649 echo "cat >conf$$subs.awk <<_ACEOF" &&
15650 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15651 echo "_ACEOF"
15652 } >conf$$subs.sh ||
15653 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15654 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15655 ac_delim='%!_!# '
15656 for ac_last_try in false false false false false :; do
15657 . ./conf$$subs.sh ||
15658 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15659
15660 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15661 if test $ac_delim_n = $ac_delim_num; then
15662 break
15663 elif $ac_last_try; then
15664 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15665 else
15666 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15667 fi
15668 done
15669 rm -f conf$$subs.sh
15670
15671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15672 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15673 _ACEOF
15674 sed -n '
15675 h
15676 s/^/S["/; s/!.*/"]=/
15677 p
15678 g
15679 s/^[^!]*!//
15680 :repl
15681 t repl
15682 s/'"$ac_delim"'$//
15683 t delim
15684 :nl
15685 h
15686 s/\(.\{148\}\)..*/\1/
15687 t more1
15688 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15689 p
15690 n
15691 b repl
15692 :more1
15693 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15694 p
15695 g
15696 s/.\{148\}//
15697 t nl
15698 :delim
15699 h
15700 s/\(.\{148\}\)..*/\1/
15701 t more2
15702 s/["\\]/\\&/g; s/^/"/; s/$/"/
15703 p
15704 b
15705 :more2
15706 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15707 p
15708 g
15709 s/.\{148\}//
15710 t delim
15711 ' <conf$$subs.awk | sed '
15712 /^[^""]/{
15713 N
15714 s/\n//
15715 }
15716 ' >>$CONFIG_STATUS || ac_write_fail=1
15717 rm -f conf$$subs.awk
15718 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15719 _ACAWK
15720 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15721 for (key in S) S_is_set[key] = 1
15722 FS = ""
15723
15724 }
15725 {
15726 line = $ 0
15727 nfields = split(line, field, "@")
15728 substed = 0
15729 len = length(field[1])
15730 for (i = 2; i < nfields; i++) {
15731 key = field[i]
15732 keylen = length(key)
15733 if (S_is_set[key]) {
15734 value = S[key]
15735 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15736 len += length(value) + length(field[++i])
15737 substed = 1
15738 } else
15739 len += 1 + keylen
15740 }
15741
15742 print line
15743 }
15744
15745 _ACAWK
15746 _ACEOF
15747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15748 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15749 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15750 else
15751 cat
15752 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15753 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15754 _ACEOF
15755
15756 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15757 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15758 # trailing colons and then remove the whole line if VPATH becomes empty
15759 # (actually we leave an empty line to preserve line numbers).
15760 if test "x$srcdir" = x.; then
15761 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15762 h
15763 s///
15764 s/^/:/
15765 s/[ ]*$/:/
15766 s/:\$(srcdir):/:/g
15767 s/:\${srcdir}:/:/g
15768 s/:@srcdir@:/:/g
15769 s/^:*//
15770 s/:*$//
15771 x
15772 s/\(=[ ]*\).*/\1/
15773 G
15774 s/\n//
15775 s/^[^=]*=[ ]*$//
15776 }'
15777 fi
15778
15779 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15780 fi # test -n "$CONFIG_FILES"
15781
15782 # Set up the scripts for CONFIG_HEADERS section.
15783 # No need to generate them if there are no CONFIG_HEADERS.
15784 # This happens for instance with `./config.status Makefile'.
15785 if test -n "$CONFIG_HEADERS"; then
15786 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15787 BEGIN {
15788 _ACEOF
15789
15790 # Transform confdefs.h into an awk script `defines.awk', embedded as
15791 # here-document in config.status, that substitutes the proper values into
15792 # config.h.in to produce config.h.
15793
15794 # Create a delimiter string that does not exist in confdefs.h, to ease
15795 # handling of long lines.
15796 ac_delim='%!_!# '
15797 for ac_last_try in false false :; do
15798 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15799 if test -z "$ac_tt"; then
15800 break
15801 elif $ac_last_try; then
15802 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15803 else
15804 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15805 fi
15806 done
15807
15808 # For the awk script, D is an array of macro values keyed by name,
15809 # likewise P contains macro parameters if any. Preserve backslash
15810 # newline sequences.
15811
15812 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15813 sed -n '
15814 s/.\{148\}/&'"$ac_delim"'/g
15815 t rset
15816 :rset
15817 s/^[ ]*#[ ]*define[ ][ ]*/ /
15818 t def
15819 d
15820 :def
15821 s/\\$//
15822 t bsnl
15823 s/["\\]/\\&/g
15824 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15825 D["\1"]=" \3"/p
15826 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15827 d
15828 :bsnl
15829 s/["\\]/\\&/g
15830 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15831 D["\1"]=" \3\\\\\\n"\\/p
15832 t cont
15833 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15834 t cont
15835 d
15836 :cont
15837 n
15838 s/.\{148\}/&'"$ac_delim"'/g
15839 t clear
15840 :clear
15841 s/\\$//
15842 t bsnlc
15843 s/["\\]/\\&/g; s/^/"/; s/$/"/p
15844 d
15845 :bsnlc
15846 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15847 b cont
15848 ' <confdefs.h | sed '
15849 s/'"$ac_delim"'/"\\\
15850 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15851
15852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15853 for (key in D) D_is_set[key] = 1
15854 FS = ""
15855 }
15856 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15857 line = \$ 0
15858 split(line, arg, " ")
15859 if (arg[1] == "#") {
15860 defundef = arg[2]
15861 mac1 = arg[3]
15862 } else {
15863 defundef = substr(arg[1], 2)
15864 mac1 = arg[2]
15865 }
15866 split(mac1, mac2, "(") #)
15867 macro = mac2[1]
15868 prefix = substr(line, 1, index(line, defundef) - 1)
15869 if (D_is_set[macro]) {
15870 # Preserve the white space surrounding the "#".
15871 print prefix "define", macro P[macro] D[macro]
15872 next
15873 } else {
15874 # Replace #undef with comments. This is necessary, for example,
15875 # in the case of _POSIX_SOURCE, which is predefined and required
15876 # on some systems where configure will not decide to define it.
15877 if (defundef == "undef") {
15878 print "/*", prefix defundef, macro, "*/"
15879 next
15880 }
15881 }
15882 }
15883 { print }
15884 _ACAWK
15885 _ACEOF
15886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15887 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15888 fi # test -n "$CONFIG_HEADERS"
15889
15890
15891 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15892 shift
15893 for ac_tag
15894 do
15895 case $ac_tag in
15896 :[FHLC]) ac_mode=$ac_tag; continue;;
15897 esac
15898 case $ac_mode$ac_tag in
15899 :[FHL]*:*);;
15900 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15901 :[FH]-) ac_tag=-:-;;
15902 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15903 esac
15904 ac_save_IFS=$IFS
15905 IFS=:
15906 set x $ac_tag
15907 IFS=$ac_save_IFS
15908 shift
15909 ac_file=$1
15910 shift
15911
15912 case $ac_mode in
15913 :L) ac_source=$1;;
15914 :[FH])
15915 ac_file_inputs=
15916 for ac_f
15917 do
15918 case $ac_f in
15919 -) ac_f="$ac_tmp/stdin";;
15920 *) # Look for the file first in the build tree, then in the source tree
15921 # (if the path is not absolute). The absolute path cannot be DOS-style,
15922 # because $ac_f cannot contain `:'.
15923 test -f "$ac_f" ||
15924 case $ac_f in
15925 [\\/$]*) false;;
15926 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15927 esac ||
15928 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15929 esac
15930 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15931 as_fn_append ac_file_inputs " '$ac_f'"
15932 done
15933
15934 # Let's still pretend it is `configure' which instantiates (i.e., don't
15935 # use $as_me), people would be surprised to read:
15936 # /* config.h. Generated by config.status. */
15937 configure_input='Generated from '`
15938 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15939 `' by configure.'
15940 if test x"$ac_file" != x-; then
15941 configure_input="$ac_file. $configure_input"
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15943 $as_echo "$as_me: creating $ac_file" >&6;}
15944 fi
15945 # Neutralize special characters interpreted by sed in replacement strings.
15946 case $configure_input in #(
15947 *\&* | *\|* | *\\* )
15948 ac_sed_conf_input=`$as_echo "$configure_input" |
15949 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15950 *) ac_sed_conf_input=$configure_input;;
15951 esac
15952
15953 case $ac_tag in
15954 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15955 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15956 esac
15957 ;;
15958 esac
15959
15960 ac_dir=`$as_dirname -- "$ac_file" ||
15961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15962 X"$ac_file" : 'X\(//\)[^/]' \| \
15963 X"$ac_file" : 'X\(//\)$' \| \
15964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15965 $as_echo X"$ac_file" |
15966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15967 s//\1/
15968 q
15969 }
15970 /^X\(\/\/\)[^/].*/{
15971 s//\1/
15972 q
15973 }
15974 /^X\(\/\/\)$/{
15975 s//\1/
15976 q
15977 }
15978 /^X\(\/\).*/{
15979 s//\1/
15980 q
15981 }
15982 s/.*/./; q'`
15983 as_dir="$ac_dir"; as_fn_mkdir_p
15984 ac_builddir=.
15985
15986 case "$ac_dir" in
15987 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15988 *)
15989 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15990 # A ".." for each directory in $ac_dir_suffix.
15991 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15992 case $ac_top_builddir_sub in
15993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15995 esac ;;
15996 esac
15997 ac_abs_top_builddir=$ac_pwd
15998 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15999 # for backward compatibility:
16000 ac_top_builddir=$ac_top_build_prefix
16001
16002 case $srcdir in
16003 .) # We are building in place.
16004 ac_srcdir=.
16005 ac_top_srcdir=$ac_top_builddir_sub
16006 ac_abs_top_srcdir=$ac_pwd ;;
16007 [\\/]* | ?:[\\/]* ) # Absolute name.
16008 ac_srcdir=$srcdir$ac_dir_suffix;
16009 ac_top_srcdir=$srcdir
16010 ac_abs_top_srcdir=$srcdir ;;
16011 *) # Relative name.
16012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16013 ac_top_srcdir=$ac_top_build_prefix$srcdir
16014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16015 esac
16016 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16017
16018
16019 case $ac_mode in
16020 :F)
16021 #
16022 # CONFIG_FILE
16023 #
16024
16025 case $INSTALL in
16026 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16027 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16028 esac
16029 ac_MKDIR_P=$MKDIR_P
16030 case $MKDIR_P in
16031 [\\/$]* | ?:[\\/]* ) ;;
16032 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16033 esac
16034 _ACEOF
16035
16036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16037 # If the template does not know about datarootdir, expand it.
16038 # FIXME: This hack should be removed a few years after 2.60.
16039 ac_datarootdir_hack=; ac_datarootdir_seen=
16040 ac_sed_dataroot='
16041 /datarootdir/ {
16042 p
16043 q
16044 }
16045 /@datadir@/p
16046 /@docdir@/p
16047 /@infodir@/p
16048 /@localedir@/p
16049 /@mandir@/p'
16050 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16051 *datarootdir*) ac_datarootdir_seen=yes;;
16052 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16054 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16055 _ACEOF
16056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16057 ac_datarootdir_hack='
16058 s&@datadir@&$datadir&g
16059 s&@docdir@&$docdir&g
16060 s&@infodir@&$infodir&g
16061 s&@localedir@&$localedir&g
16062 s&@mandir@&$mandir&g
16063 s&\\\${datarootdir}&$datarootdir&g' ;;
16064 esac
16065 _ACEOF
16066
16067 # Neutralize VPATH when `$srcdir' = `.'.
16068 # Shell code in configure.ac might set extrasub.
16069 # FIXME: do we really want to maintain this feature?
16070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16071 ac_sed_extra="$ac_vpsub
16072 $extrasub
16073 _ACEOF
16074 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16075 :t
16076 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16077 s|@configure_input@|$ac_sed_conf_input|;t t
16078 s&@top_builddir@&$ac_top_builddir_sub&;t t
16079 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16080 s&@srcdir@&$ac_srcdir&;t t
16081 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16082 s&@top_srcdir@&$ac_top_srcdir&;t t
16083 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16084 s&@builddir@&$ac_builddir&;t t
16085 s&@abs_builddir@&$ac_abs_builddir&;t t
16086 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16087 s&@INSTALL@&$ac_INSTALL&;t t
16088 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16089 $ac_datarootdir_hack
16090 "
16091 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16092 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16093
16094 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16095 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16096 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16097 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16099 which seems to be undefined. Please make sure it is defined" >&5
16100 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16101 which seems to be undefined. Please make sure it is defined" >&2;}
16102
16103 rm -f "$ac_tmp/stdin"
16104 case $ac_file in
16105 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16106 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16107 esac \
16108 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16109 ;;
16110 :H)
16111 #
16112 # CONFIG_HEADER
16113 #
16114 if test x"$ac_file" != x-; then
16115 {
16116 $as_echo "/* $configure_input */" \
16117 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16118 } >"$ac_tmp/config.h" \
16119 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16120 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16122 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16123 else
16124 rm -f "$ac_file"
16125 mv "$ac_tmp/config.h" "$ac_file" \
16126 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16127 fi
16128 else
16129 $as_echo "/* $configure_input */" \
16130 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16131 || as_fn_error $? "could not create -" "$LINENO" 5
16132 fi
16133 # Compute "$ac_file"'s index in $config_headers.
16134 _am_arg="$ac_file"
16135 _am_stamp_count=1
16136 for _am_header in $config_headers :; do
16137 case $_am_header in
16138 $_am_arg | $_am_arg:* )
16139 break ;;
16140 * )
16141 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16142 esac
16143 done
16144 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16145 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16146 X"$_am_arg" : 'X\(//\)[^/]' \| \
16147 X"$_am_arg" : 'X\(//\)$' \| \
16148 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16149 $as_echo X"$_am_arg" |
16150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16151 s//\1/
16152 q
16153 }
16154 /^X\(\/\/\)[^/].*/{
16155 s//\1/
16156 q
16157 }
16158 /^X\(\/\/\)$/{
16159 s//\1/
16160 q
16161 }
16162 /^X\(\/\).*/{
16163 s//\1/
16164 q
16165 }
16166 s/.*/./; q'`/stamp-h$_am_stamp_count
16167 ;;
16168
16169 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16170 $as_echo "$as_me: executing $ac_file commands" >&6;}
16171 ;;
16172 esac
16173
16174
16175 case $ac_file$ac_mode in
16176 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16177 # Older Autoconf quotes --file arguments for eval, but not when files
16178 # are listed without --file. Let's play safe and only enable the eval
16179 # if we detect the quoting.
16180 case $CONFIG_FILES in
16181 *\'*) eval set x "$CONFIG_FILES" ;;
16182 *) set x $CONFIG_FILES ;;
16183 esac
16184 shift
16185 for mf
16186 do
16187 # Strip MF so we end up with the name of the file.
16188 mf=`echo "$mf" | sed -e 's/:.*$//'`
16189 # Check whether this is an Automake generated Makefile or not.
16190 # We used to match only the files named 'Makefile.in', but
16191 # some people rename them; so instead we look at the file content.
16192 # Grep'ing the first line is not enough: some people post-process
16193 # each Makefile.in and add a new line on top of each file to say so.
16194 # Grep'ing the whole file is not good either: AIX grep has a line
16195 # limit of 2048, but all sed's we know have understand at least 4000.
16196 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16197 dirpart=`$as_dirname -- "$mf" ||
16198 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16199 X"$mf" : 'X\(//\)[^/]' \| \
16200 X"$mf" : 'X\(//\)$' \| \
16201 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16202 $as_echo X"$mf" |
16203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16204 s//\1/
16205 q
16206 }
16207 /^X\(\/\/\)[^/].*/{
16208 s//\1/
16209 q
16210 }
16211 /^X\(\/\/\)$/{
16212 s//\1/
16213 q
16214 }
16215 /^X\(\/\).*/{
16216 s//\1/
16217 q
16218 }
16219 s/.*/./; q'`
16220 else
16221 continue
16222 fi
16223 # Extract the definition of DEPDIR, am__include, and am__quote
16224 # from the Makefile without running 'make'.
16225 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16226 test -z "$DEPDIR" && continue
16227 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16228 test -z "am__include" && continue
16229 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16230 # Find all dependency output files, they are included files with
16231 # $(DEPDIR) in their names. We invoke sed twice because it is the
16232 # simplest approach to changing $(DEPDIR) to its actual value in the
16233 # expansion.
16234 for file in `sed -n "
16235 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16236 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16237 # Make sure the directory exists.
16238 test -f "$dirpart/$file" && continue
16239 fdir=`$as_dirname -- "$file" ||
16240 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16241 X"$file" : 'X\(//\)[^/]' \| \
16242 X"$file" : 'X\(//\)$' \| \
16243 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16244 $as_echo X"$file" |
16245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16246 s//\1/
16247 q
16248 }
16249 /^X\(\/\/\)[^/].*/{
16250 s//\1/
16251 q
16252 }
16253 /^X\(\/\/\)$/{
16254 s//\1/
16255 q
16256 }
16257 /^X\(\/\).*/{
16258 s//\1/
16259 q
16260 }
16261 s/.*/./; q'`
16262 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16263 # echo "creating $dirpart/$file"
16264 echo '# dummy' > "$dirpart/$file"
16265 done
16266 done
16267 }
16268 ;;
16269 "libtool":C)
16270
16271 # See if we are running on zsh, and set the options which allow our
16272 # commands through without removal of \ escapes.
16273 if test -n "${ZSH_VERSION+set}" ; then
16274 setopt NO_GLOB_SUBST
16275 fi
16276
16277 cfgfile="${ofile}T"
16278 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16279 $RM "$cfgfile"
16280
16281 cat <<_LT_EOF >> "$cfgfile"
16282 #! $SHELL
16283
16284 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16285 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16287 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16288 #
16289 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16290 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16291 # Foundation, Inc.
16292 # Written by Gordon Matzigkeit, 1996
16293 #
16294 # This file is part of GNU Libtool.
16295 #
16296 # GNU Libtool is free software; you can redistribute it and/or
16297 # modify it under the terms of the GNU General Public License as
16298 # published by the Free Software Foundation; either version 2 of
16299 # the License, or (at your option) any later version.
16300 #
16301 # As a special exception to the GNU General Public License,
16302 # if you distribute this file as part of a program or library that
16303 # is built using GNU Libtool, you may include this file under the
16304 # same distribution terms that you use for the rest of that program.
16305 #
16306 # GNU Libtool is distributed in the hope that it will be useful,
16307 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16308 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16309 # GNU General Public License for more details.
16310 #
16311 # You should have received a copy of the GNU General Public License
16312 # along with GNU Libtool; see the file COPYING. If not, a copy
16313 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16314 # obtained by writing to the Free Software Foundation, Inc.,
16315 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16316
16317
16318 # The names of the tagged configurations supported by this script.
16319 available_tags=""
16320
16321 # ### BEGIN LIBTOOL CONFIG
16322
16323 # Which release of libtool.m4 was used?
16324 macro_version=$macro_version
16325 macro_revision=$macro_revision
16326
16327 # Whether or not to build static libraries.
16328 build_old_libs=$enable_static
16329
16330 # Whether or not to build shared libraries.
16331 build_libtool_libs=$enable_shared
16332
16333 # What type of objects to build.
16334 pic_mode=$pic_mode
16335
16336 # Whether or not to optimize for fast installation.
16337 fast_install=$enable_fast_install
16338
16339 # Shell to use when invoking shell scripts.
16340 SHELL=$lt_SHELL
16341
16342 # An echo program that protects backslashes.
16343 ECHO=$lt_ECHO
16344
16345 # The PATH separator for the build system.
16346 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16347
16348 # The host system.
16349 host_alias=$host_alias
16350 host=$host
16351 host_os=$host_os
16352
16353 # The build system.
16354 build_alias=$build_alias
16355 build=$build
16356 build_os=$build_os
16357
16358 # A sed program that does not truncate output.
16359 SED=$lt_SED
16360
16361 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16362 Xsed="\$SED -e 1s/^X//"
16363
16364 # A grep program that handles long lines.
16365 GREP=$lt_GREP
16366
16367 # An ERE matcher.
16368 EGREP=$lt_EGREP
16369
16370 # A literal string matcher.
16371 FGREP=$lt_FGREP
16372
16373 # A BSD- or MS-compatible name lister.
16374 NM=$lt_NM
16375
16376 # Whether we need soft or hard links.
16377 LN_S=$lt_LN_S
16378
16379 # What is the maximum length of a command?
16380 max_cmd_len=$max_cmd_len
16381
16382 # Object file suffix (normally "o").
16383 objext=$ac_objext
16384
16385 # Executable file suffix (normally "").
16386 exeext=$exeext
16387
16388 # whether the shell understands "unset".
16389 lt_unset=$lt_unset
16390
16391 # turn spaces into newlines.
16392 SP2NL=$lt_lt_SP2NL
16393
16394 # turn newlines into spaces.
16395 NL2SP=$lt_lt_NL2SP
16396
16397 # convert \$build file names to \$host format.
16398 to_host_file_cmd=$lt_cv_to_host_file_cmd
16399
16400 # convert \$build files to toolchain format.
16401 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16402
16403 # An object symbol dumper.
16404 OBJDUMP=$lt_OBJDUMP
16405
16406 # Method to check whether dependent libraries are shared objects.
16407 deplibs_check_method=$lt_deplibs_check_method
16408
16409 # Command to use when deplibs_check_method = "file_magic".
16410 file_magic_cmd=$lt_file_magic_cmd
16411
16412 # How to find potential files when deplibs_check_method = "file_magic".
16413 file_magic_glob=$lt_file_magic_glob
16414
16415 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16416 want_nocaseglob=$lt_want_nocaseglob
16417
16418 # DLL creation program.
16419 DLLTOOL=$lt_DLLTOOL
16420
16421 # Command to associate shared and link libraries.
16422 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16423
16424 # The archiver.
16425 AR=$lt_AR
16426
16427 # Flags to create an archive.
16428 AR_FLAGS=$lt_AR_FLAGS
16429
16430 # How to feed a file listing to the archiver.
16431 archiver_list_spec=$lt_archiver_list_spec
16432
16433 # A symbol stripping program.
16434 STRIP=$lt_STRIP
16435
16436 # Commands used to install an old-style archive.
16437 RANLIB=$lt_RANLIB
16438 old_postinstall_cmds=$lt_old_postinstall_cmds
16439 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16440
16441 # Whether to use a lock for old archive extraction.
16442 lock_old_archive_extraction=$lock_old_archive_extraction
16443
16444 # A C compiler.
16445 LTCC=$lt_CC
16446
16447 # LTCC compiler flags.
16448 LTCFLAGS=$lt_CFLAGS
16449
16450 # Take the output of nm and produce a listing of raw symbols and C names.
16451 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16452
16453 # Transform the output of nm in a proper C declaration.
16454 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16455
16456 # Transform the output of nm in a C name address pair.
16457 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16458
16459 # Transform the output of nm in a C name address pair when lib prefix is needed.
16460 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16461
16462 # Specify filename containing input files for \$NM.
16463 nm_file_list_spec=$lt_nm_file_list_spec
16464
16465 # The root where to search for dependent libraries,and in which our libraries should be installed.
16466 lt_sysroot=$lt_sysroot
16467
16468 # The name of the directory that contains temporary libtool files.
16469 objdir=$objdir
16470
16471 # Used to examine libraries when file_magic_cmd begins with "file".
16472 MAGIC_CMD=$MAGIC_CMD
16473
16474 # Must we lock files when doing compilation?
16475 need_locks=$lt_need_locks
16476
16477 # Manifest tool.
16478 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16479
16480 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16481 DSYMUTIL=$lt_DSYMUTIL
16482
16483 # Tool to change global to local symbols on Mac OS X.
16484 NMEDIT=$lt_NMEDIT
16485
16486 # Tool to manipulate fat objects and archives on Mac OS X.
16487 LIPO=$lt_LIPO
16488
16489 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16490 OTOOL=$lt_OTOOL
16491
16492 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16493 OTOOL64=$lt_OTOOL64
16494
16495 # Old archive suffix (normally "a").
16496 libext=$libext
16497
16498 # Shared library suffix (normally ".so").
16499 shrext_cmds=$lt_shrext_cmds
16500
16501 # The commands to extract the exported symbol list from a shared archive.
16502 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16503
16504 # Variables whose values should be saved in libtool wrapper scripts and
16505 # restored at link time.
16506 variables_saved_for_relink=$lt_variables_saved_for_relink
16507
16508 # Do we need the "lib" prefix for modules?
16509 need_lib_prefix=$need_lib_prefix
16510
16511 # Do we need a version for libraries?
16512 need_version=$need_version
16513
16514 # Library versioning type.
16515 version_type=$version_type
16516
16517 # Shared library runtime path variable.
16518 runpath_var=$runpath_var
16519
16520 # Shared library path variable.
16521 shlibpath_var=$shlibpath_var
16522
16523 # Is shlibpath searched before the hard-coded library search path?
16524 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16525
16526 # Format of library name prefix.
16527 libname_spec=$lt_libname_spec
16528
16529 # List of archive names. First name is the real one, the rest are links.
16530 # The last name is the one that the linker finds with -lNAME
16531 library_names_spec=$lt_library_names_spec
16532
16533 # The coded name of the library, if different from the real name.
16534 soname_spec=$lt_soname_spec
16535
16536 # Permission mode override for installation of shared libraries.
16537 install_override_mode=$lt_install_override_mode
16538
16539 # Command to use after installation of a shared archive.
16540 postinstall_cmds=$lt_postinstall_cmds
16541
16542 # Command to use after uninstallation of a shared archive.
16543 postuninstall_cmds=$lt_postuninstall_cmds
16544
16545 # Commands used to finish a libtool library installation in a directory.
16546 finish_cmds=$lt_finish_cmds
16547
16548 # As "finish_cmds", except a single script fragment to be evaled but
16549 # not shown.
16550 finish_eval=$lt_finish_eval
16551
16552 # Whether we should hardcode library paths into libraries.
16553 hardcode_into_libs=$hardcode_into_libs
16554
16555 # Compile-time system search path for libraries.
16556 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16557
16558 # Run-time system search path for libraries.
16559 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16560
16561 # Whether dlopen is supported.
16562 dlopen_support=$enable_dlopen
16563
16564 # Whether dlopen of programs is supported.
16565 dlopen_self=$enable_dlopen_self
16566
16567 # Whether dlopen of statically linked programs is supported.
16568 dlopen_self_static=$enable_dlopen_self_static
16569
16570 # Commands to strip libraries.
16571 old_striplib=$lt_old_striplib
16572 striplib=$lt_striplib
16573
16574
16575 # The linker used to build libraries.
16576 LD=$lt_LD
16577
16578 # How to create reloadable object files.
16579 reload_flag=$lt_reload_flag
16580 reload_cmds=$lt_reload_cmds
16581
16582 # Commands used to build an old-style archive.
16583 old_archive_cmds=$lt_old_archive_cmds
16584
16585 # A language specific compiler.
16586 CC=$lt_compiler
16587
16588 # Is the compiler the GNU compiler?
16589 with_gcc=$GCC
16590
16591 # Compiler flag to turn off builtin functions.
16592 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16593
16594 # Additional compiler flags for building library objects.
16595 pic_flag=$lt_lt_prog_compiler_pic
16596
16597 # How to pass a linker flag through the compiler.
16598 wl=$lt_lt_prog_compiler_wl
16599
16600 # Compiler flag to prevent dynamic linking.
16601 link_static_flag=$lt_lt_prog_compiler_static
16602
16603 # Does compiler simultaneously support -c and -o options?
16604 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16605
16606 # Whether or not to add -lc for building shared libraries.
16607 build_libtool_need_lc=$archive_cmds_need_lc
16608
16609 # Whether or not to disallow shared libs when runtime libs are static.
16610 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16611
16612 # Compiler flag to allow reflexive dlopens.
16613 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16614
16615 # Compiler flag to generate shared objects directly from archives.
16616 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16617
16618 # Whether the compiler copes with passing no objects directly.
16619 compiler_needs_object=$lt_compiler_needs_object
16620
16621 # Create an old-style archive from a shared archive.
16622 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16623
16624 # Create a temporary old-style archive to link instead of a shared archive.
16625 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16626
16627 # Commands used to build a shared archive.
16628 archive_cmds=$lt_archive_cmds
16629 archive_expsym_cmds=$lt_archive_expsym_cmds
16630
16631 # Commands used to build a loadable module if different from building
16632 # a shared archive.
16633 module_cmds=$lt_module_cmds
16634 module_expsym_cmds=$lt_module_expsym_cmds
16635
16636 # Whether we are building with GNU ld or not.
16637 with_gnu_ld=$lt_with_gnu_ld
16638
16639 # Flag that allows shared libraries with undefined symbols to be built.
16640 allow_undefined_flag=$lt_allow_undefined_flag
16641
16642 # Flag that enforces no undefined symbols.
16643 no_undefined_flag=$lt_no_undefined_flag
16644
16645 # Flag to hardcode \$libdir into a binary during linking.
16646 # This must work even if \$libdir does not exist
16647 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16648
16649 # Whether we need a single "-rpath" flag with a separated argument.
16650 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16651
16652 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16653 # DIR into the resulting binary.
16654 hardcode_direct=$hardcode_direct
16655
16656 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16657 # DIR into the resulting binary and the resulting library dependency is
16658 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16659 # library is relocated.
16660 hardcode_direct_absolute=$hardcode_direct_absolute
16661
16662 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16663 # into the resulting binary.
16664 hardcode_minus_L=$hardcode_minus_L
16665
16666 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16667 # into the resulting binary.
16668 hardcode_shlibpath_var=$hardcode_shlibpath_var
16669
16670 # Set to "yes" if building a shared library automatically hardcodes DIR
16671 # into the library and all subsequent libraries and executables linked
16672 # against it.
16673 hardcode_automatic=$hardcode_automatic
16674
16675 # Set to yes if linker adds runtime paths of dependent libraries
16676 # to runtime path list.
16677 inherit_rpath=$inherit_rpath
16678
16679 # Whether libtool must link a program against all its dependency libraries.
16680 link_all_deplibs=$link_all_deplibs
16681
16682 # Set to "yes" if exported symbols are required.
16683 always_export_symbols=$always_export_symbols
16684
16685 # The commands to list exported symbols.
16686 export_symbols_cmds=$lt_export_symbols_cmds
16687
16688 # Symbols that should not be listed in the preloaded symbols.
16689 exclude_expsyms=$lt_exclude_expsyms
16690
16691 # Symbols that must always be exported.
16692 include_expsyms=$lt_include_expsyms
16693
16694 # Commands necessary for linking programs (against libraries) with templates.
16695 prelink_cmds=$lt_prelink_cmds
16696
16697 # Commands necessary for finishing linking programs.
16698 postlink_cmds=$lt_postlink_cmds
16699
16700 # Specify filename containing input files.
16701 file_list_spec=$lt_file_list_spec
16702
16703 # How to hardcode a shared library path into an executable.
16704 hardcode_action=$hardcode_action
16705
16706 # ### END LIBTOOL CONFIG
16707
16708 _LT_EOF
16709
16710 case $host_os in
16711 aix3*)
16712 cat <<\_LT_EOF >> "$cfgfile"
16713 # AIX sometimes has problems with the GCC collect2 program. For some
16714 # reason, if we set the COLLECT_NAMES environment variable, the problems
16715 # vanish in a puff of smoke.
16716 if test "X${COLLECT_NAMES+set}" != Xset; then
16717 COLLECT_NAMES=
16718 export COLLECT_NAMES
16719 fi
16720 _LT_EOF
16721 ;;
16722 esac
16723
16724
16725 ltmain="$ac_aux_dir/ltmain.sh"
16726
16727
16728 # We use sed instead of cat because bash on DJGPP gets confused if
16729 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16730 # text mode, it properly converts lines to CR/LF. This bash problem
16731 # is reportedly fixed, but why not run on old versions too?
16732 sed '$q' "$ltmain" >> "$cfgfile" \
16733 || (rm -f "$cfgfile"; exit 1)
16734
16735 if test x"$xsi_shell" = xyes; then
16736 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16737 func_dirname ()\
16738 {\
16739 \ case ${1} in\
16740 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16741 \ * ) func_dirname_result="${3}" ;;\
16742 \ esac\
16743 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16744 && mv -f "$cfgfile.tmp" "$cfgfile" \
16745 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16746 test 0 -eq $? || _lt_function_replace_fail=:
16747
16748
16749 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16750 func_basename ()\
16751 {\
16752 \ func_basename_result="${1##*/}"\
16753 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16754 && mv -f "$cfgfile.tmp" "$cfgfile" \
16755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16756 test 0 -eq $? || _lt_function_replace_fail=:
16757
16758
16759 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16760 func_dirname_and_basename ()\
16761 {\
16762 \ case ${1} in\
16763 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16764 \ * ) func_dirname_result="${3}" ;;\
16765 \ esac\
16766 \ func_basename_result="${1##*/}"\
16767 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16768 && mv -f "$cfgfile.tmp" "$cfgfile" \
16769 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16770 test 0 -eq $? || _lt_function_replace_fail=:
16771
16772
16773 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16774 func_stripname ()\
16775 {\
16776 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16777 \ # positional parameters, so assign one to ordinary parameter first.\
16778 \ func_stripname_result=${3}\
16779 \ func_stripname_result=${func_stripname_result#"${1}"}\
16780 \ func_stripname_result=${func_stripname_result%"${2}"}\
16781 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16782 && mv -f "$cfgfile.tmp" "$cfgfile" \
16783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16784 test 0 -eq $? || _lt_function_replace_fail=:
16785
16786
16787 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16788 func_split_long_opt ()\
16789 {\
16790 \ func_split_long_opt_name=${1%%=*}\
16791 \ func_split_long_opt_arg=${1#*=}\
16792 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16793 && mv -f "$cfgfile.tmp" "$cfgfile" \
16794 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16795 test 0 -eq $? || _lt_function_replace_fail=:
16796
16797
16798 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16799 func_split_short_opt ()\
16800 {\
16801 \ func_split_short_opt_arg=${1#??}\
16802 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16803 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16804 && mv -f "$cfgfile.tmp" "$cfgfile" \
16805 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16806 test 0 -eq $? || _lt_function_replace_fail=:
16807
16808
16809 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16810 func_lo2o ()\
16811 {\
16812 \ case ${1} in\
16813 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16814 \ *) func_lo2o_result=${1} ;;\
16815 \ esac\
16816 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16817 && mv -f "$cfgfile.tmp" "$cfgfile" \
16818 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16819 test 0 -eq $? || _lt_function_replace_fail=:
16820
16821
16822 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16823 func_xform ()\
16824 {\
16825 func_xform_result=${1%.*}.lo\
16826 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16827 && mv -f "$cfgfile.tmp" "$cfgfile" \
16828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16829 test 0 -eq $? || _lt_function_replace_fail=:
16830
16831
16832 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16833 func_arith ()\
16834 {\
16835 func_arith_result=$(( $* ))\
16836 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16837 && mv -f "$cfgfile.tmp" "$cfgfile" \
16838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16839 test 0 -eq $? || _lt_function_replace_fail=:
16840
16841
16842 sed -e '/^func_len ()$/,/^} # func_len /c\
16843 func_len ()\
16844 {\
16845 func_len_result=${#1}\
16846 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16847 && mv -f "$cfgfile.tmp" "$cfgfile" \
16848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16849 test 0 -eq $? || _lt_function_replace_fail=:
16850
16851 fi
16852
16853 if test x"$lt_shell_append" = xyes; then
16854 sed -e '/^func_append ()$/,/^} # func_append /c\
16855 func_append ()\
16856 {\
16857 eval "${1}+=\\${2}"\
16858 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16859 && mv -f "$cfgfile.tmp" "$cfgfile" \
16860 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16861 test 0 -eq $? || _lt_function_replace_fail=:
16862
16863
16864 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16865 func_append_quoted ()\
16866 {\
16867 \ func_quote_for_eval "${2}"\
16868 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16869 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16870 && mv -f "$cfgfile.tmp" "$cfgfile" \
16871 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16872 test 0 -eq $? || _lt_function_replace_fail=:
16873
16874
16875 # Save a `func_append' function call where possible by direct use of '+='
16876 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16877 && mv -f "$cfgfile.tmp" "$cfgfile" \
16878 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16879 test 0 -eq $? || _lt_function_replace_fail=:
16880 else
16881 # Save a `func_append' function call even when '+=' is not available
16882 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16883 && mv -f "$cfgfile.tmp" "$cfgfile" \
16884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16885 test 0 -eq $? || _lt_function_replace_fail=:
16886 fi
16887
16888 if test x"$_lt_function_replace_fail" = x":"; then
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16890 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16891 fi
16892
16893
16894 mv -f "$cfgfile" "$ofile" ||
16895 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16896 chmod +x "$ofile"
16897
16898 ;;
16899
16900 esac
16901 done # for ac_tag
16902
16903
16904 as_fn_exit 0
16905 _ACEOF
16906 ac_clean_files=$ac_clean_files_save
16907
16908 test $ac_write_fail = 0 ||
16909 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16910
16911
16912 # configure is writing to config.log, and then calls config.status.
16913 # config.status does its own redirection, appending to config.log.
16914 # Unfortunately, on DOS this fails, as config.log is still kept open
16915 # by configure, so config.status won't be able to write to it; its
16916 # output is simply discarded. So we exec the FD to /dev/null,
16917 # effectively closing config.log, so it can be properly (re)opened and
16918 # appended to by config.status. When coming back to configure, we
16919 # need to make the FD available again.
16920 if test "$no_create" != yes; then
16921 ac_cs_success=:
16922 ac_config_status_args=
16923 test "$silent" = yes &&
16924 ac_config_status_args="$ac_config_status_args --quiet"
16925 exec 5>/dev/null
16926 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16927 exec 5>>config.log
16928 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16929 # would make configure fail if this is the last instruction.
16930 $ac_cs_success || as_fn_exit 1
16931 fi
16932 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16934 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16935 fi
16936

Properties

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