ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
Revision: 2491
Committed: Fri Oct 25 16:55:01 2013 UTC (12 years, 11 months ago) by michael
File size: 515228 byte(s)
Log Message:
- Instead of forcefully adding
  -Wall
  -Wextra
  -Wno-unused
  -Wcast-qual
  -Wcast-align
  -Wbad-function-cast
  -Wmissing-declarations
  -Wmissing-prototypes
  -Wnested-externs
  -Wredundant-decls
  -Wshadow
  -Wwrite-strings
  -Wundef
  to CFLAGS, 'configure' now tests if the flags are understood by the compiler

File Contents

# Content
1 #! /bin/sh
2 # From configure.ac Id: configure.ac 2481 2013-10-23 16:38:58Z 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_libgeoip
809 enable_openssl
810 enable_assert
811 enable_kqueue
812 enable_epoll
813 enable_devpoll
814 enable_poll
815 enable_select
816 enable_halfops
817 enable_debugging
818 enable_warnings
819 '
820 ac_precious_vars='build_alias
821 host_alias
822 target_alias
823 CC
824 CFLAGS
825 LDFLAGS
826 LIBS
827 CPPFLAGS
828 YACC
829 YFLAGS
830 CPP'
831
832
833 # Initialize some variables set by options.
834 ac_init_help=
835 ac_init_version=false
836 ac_unrecognized_opts=
837 ac_unrecognized_sep=
838 # The variables have the same names as the options, with
839 # dashes changed to underlines.
840 cache_file=/dev/null
841 exec_prefix=NONE
842 no_create=
843 no_recursion=
844 prefix=NONE
845 program_prefix=NONE
846 program_suffix=NONE
847 program_transform_name=s,x,x,
848 silent=
849 site=
850 srcdir=
851 verbose=
852 x_includes=NONE
853 x_libraries=NONE
854
855 # Installation directory options.
856 # These are left unexpanded so users can "make install exec_prefix=/foo"
857 # and all the variables that are supposed to be based on exec_prefix
858 # by default will actually change.
859 # Use braces instead of parens because sh, perl, etc. also accept them.
860 # (The list follows the same order as the GNU Coding Standards.)
861 bindir='${exec_prefix}/bin'
862 sbindir='${exec_prefix}/sbin'
863 libexecdir='${exec_prefix}/libexec'
864 datarootdir='${prefix}/share'
865 datadir='${datarootdir}'
866 sysconfdir='${prefix}/etc'
867 sharedstatedir='${prefix}/com'
868 localstatedir='${prefix}/var'
869 includedir='${prefix}/include'
870 oldincludedir='/usr/include'
871 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
872 infodir='${datarootdir}/info'
873 htmldir='${docdir}'
874 dvidir='${docdir}'
875 pdfdir='${docdir}'
876 psdir='${docdir}'
877 libdir='${exec_prefix}/lib'
878 localedir='${datarootdir}/locale'
879 mandir='${datarootdir}/man'
880
881 ac_prev=
882 ac_dashdash=
883 for ac_option
884 do
885 # If the previous option needs an argument, assign it.
886 if test -n "$ac_prev"; then
887 eval $ac_prev=\$ac_option
888 ac_prev=
889 continue
890 fi
891
892 case $ac_option in
893 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
894 *=) ac_optarg= ;;
895 *) ac_optarg=yes ;;
896 esac
897
898 # Accept the important Cygnus configure options, so we can diagnose typos.
899
900 case $ac_dashdash$ac_option in
901 --)
902 ac_dashdash=yes ;;
903
904 -bindir | --bindir | --bindi | --bind | --bin | --bi)
905 ac_prev=bindir ;;
906 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
907 bindir=$ac_optarg ;;
908
909 -build | --build | --buil | --bui | --bu)
910 ac_prev=build_alias ;;
911 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
912 build_alias=$ac_optarg ;;
913
914 -cache-file | --cache-file | --cache-fil | --cache-fi \
915 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
916 ac_prev=cache_file ;;
917 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
918 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
919 cache_file=$ac_optarg ;;
920
921 --config-cache | -C)
922 cache_file=config.cache ;;
923
924 -datadir | --datadir | --datadi | --datad)
925 ac_prev=datadir ;;
926 -datadir=* | --datadir=* | --datadi=* | --datad=*)
927 datadir=$ac_optarg ;;
928
929 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
930 | --dataroo | --dataro | --datar)
931 ac_prev=datarootdir ;;
932 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
933 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
934 datarootdir=$ac_optarg ;;
935
936 -disable-* | --disable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
944 *"
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=no ;;
951
952 -docdir | --docdir | --docdi | --doc | --do)
953 ac_prev=docdir ;;
954 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
955 docdir=$ac_optarg ;;
956
957 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
958 ac_prev=dvidir ;;
959 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
960 dvidir=$ac_optarg ;;
961
962 -enable-* | --enable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=\$ac_optarg ;;
977
978 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
979 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
980 | --exec | --exe | --ex)
981 ac_prev=exec_prefix ;;
982 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
983 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
984 | --exec=* | --exe=* | --ex=*)
985 exec_prefix=$ac_optarg ;;
986
987 -gas | --gas | --ga | --g)
988 # Obsolete; use --with-gas.
989 with_gas=yes ;;
990
991 -help | --help | --hel | --he | -h)
992 ac_init_help=long ;;
993 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
994 ac_init_help=recursive ;;
995 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
996 ac_init_help=short ;;
997
998 -host | --host | --hos | --ho)
999 ac_prev=host_alias ;;
1000 -host=* | --host=* | --hos=* | --ho=*)
1001 host_alias=$ac_optarg ;;
1002
1003 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1004 ac_prev=htmldir ;;
1005 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1006 | --ht=*)
1007 htmldir=$ac_optarg ;;
1008
1009 -includedir | --includedir | --includedi | --included | --include \
1010 | --includ | --inclu | --incl | --inc)
1011 ac_prev=includedir ;;
1012 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1013 | --includ=* | --inclu=* | --incl=* | --inc=*)
1014 includedir=$ac_optarg ;;
1015
1016 -infodir | --infodir | --infodi | --infod | --info | --inf)
1017 ac_prev=infodir ;;
1018 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1019 infodir=$ac_optarg ;;
1020
1021 -libdir | --libdir | --libdi | --libd)
1022 ac_prev=libdir ;;
1023 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1024 libdir=$ac_optarg ;;
1025
1026 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1027 | --libexe | --libex | --libe)
1028 ac_prev=libexecdir ;;
1029 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1030 | --libexe=* | --libex=* | --libe=*)
1031 libexecdir=$ac_optarg ;;
1032
1033 -localedir | --localedir | --localedi | --localed | --locale)
1034 ac_prev=localedir ;;
1035 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1036 localedir=$ac_optarg ;;
1037
1038 -localstatedir | --localstatedir | --localstatedi | --localstated \
1039 | --localstate | --localstat | --localsta | --localst | --locals)
1040 ac_prev=localstatedir ;;
1041 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1042 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1043 localstatedir=$ac_optarg ;;
1044
1045 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1046 ac_prev=mandir ;;
1047 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1048 mandir=$ac_optarg ;;
1049
1050 -nfp | --nfp | --nf)
1051 # Obsolete; use --without-fp.
1052 with_fp=no ;;
1053
1054 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1055 | --no-cr | --no-c | -n)
1056 no_create=yes ;;
1057
1058 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1059 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1060 no_recursion=yes ;;
1061
1062 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1063 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1064 | --oldin | --oldi | --old | --ol | --o)
1065 ac_prev=oldincludedir ;;
1066 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1067 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1068 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1069 oldincludedir=$ac_optarg ;;
1070
1071 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1072 ac_prev=prefix ;;
1073 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1074 prefix=$ac_optarg ;;
1075
1076 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1077 | --program-pre | --program-pr | --program-p)
1078 ac_prev=program_prefix ;;
1079 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1080 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1081 program_prefix=$ac_optarg ;;
1082
1083 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1084 | --program-suf | --program-su | --program-s)
1085 ac_prev=program_suffix ;;
1086 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1087 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1088 program_suffix=$ac_optarg ;;
1089
1090 -program-transform-name | --program-transform-name \
1091 | --program-transform-nam | --program-transform-na \
1092 | --program-transform-n | --program-transform- \
1093 | --program-transform | --program-transfor \
1094 | --program-transfo | --program-transf \
1095 | --program-trans | --program-tran \
1096 | --progr-tra | --program-tr | --program-t)
1097 ac_prev=program_transform_name ;;
1098 -program-transform-name=* | --program-transform-name=* \
1099 | --program-transform-nam=* | --program-transform-na=* \
1100 | --program-transform-n=* | --program-transform-=* \
1101 | --program-transform=* | --program-transfor=* \
1102 | --program-transfo=* | --program-transf=* \
1103 | --program-trans=* | --program-tran=* \
1104 | --progr-tra=* | --program-tr=* | --program-t=*)
1105 program_transform_name=$ac_optarg ;;
1106
1107 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1108 ac_prev=pdfdir ;;
1109 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1110 pdfdir=$ac_optarg ;;
1111
1112 -psdir | --psdir | --psdi | --psd | --ps)
1113 ac_prev=psdir ;;
1114 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1115 psdir=$ac_optarg ;;
1116
1117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1118 | -silent | --silent | --silen | --sile | --sil)
1119 silent=yes ;;
1120
1121 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1122 ac_prev=sbindir ;;
1123 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1124 | --sbi=* | --sb=*)
1125 sbindir=$ac_optarg ;;
1126
1127 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1128 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1129 | --sharedst | --shareds | --shared | --share | --shar \
1130 | --sha | --sh)
1131 ac_prev=sharedstatedir ;;
1132 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1133 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1134 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1135 | --sha=* | --sh=*)
1136 sharedstatedir=$ac_optarg ;;
1137
1138 -site | --site | --sit)
1139 ac_prev=site ;;
1140 -site=* | --site=* | --sit=*)
1141 site=$ac_optarg ;;
1142
1143 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1144 ac_prev=srcdir ;;
1145 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1146 srcdir=$ac_optarg ;;
1147
1148 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1149 | --syscon | --sysco | --sysc | --sys | --sy)
1150 ac_prev=sysconfdir ;;
1151 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1152 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1153 sysconfdir=$ac_optarg ;;
1154
1155 -target | --target | --targe | --targ | --tar | --ta | --t)
1156 ac_prev=target_alias ;;
1157 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1158 target_alias=$ac_optarg ;;
1159
1160 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1161 verbose=yes ;;
1162
1163 -version | --version | --versio | --versi | --vers | -V)
1164 ac_init_version=: ;;
1165
1166 -with-* | --with-*)
1167 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1168 # Reject names that are not valid shell variable names.
1169 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1170 as_fn_error $? "invalid package name: $ac_useropt"
1171 ac_useropt_orig=$ac_useropt
1172 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1173 case $ac_user_opts in
1174 *"
1175 "with_$ac_useropt"
1176 "*) ;;
1177 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1178 ac_unrecognized_sep=', ';;
1179 esac
1180 eval with_$ac_useropt=\$ac_optarg ;;
1181
1182 -without-* | --without-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1184 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 as_fn_error $? "invalid package name: $ac_useropt"
1187 ac_useropt_orig=$ac_useropt
1188 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1189 case $ac_user_opts in
1190 *"
1191 "with_$ac_useropt"
1192 "*) ;;
1193 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1194 ac_unrecognized_sep=', ';;
1195 esac
1196 eval with_$ac_useropt=no ;;
1197
1198 --x)
1199 # Obsolete; use --with-x.
1200 with_x=yes ;;
1201
1202 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1203 | --x-incl | --x-inc | --x-in | --x-i)
1204 ac_prev=x_includes ;;
1205 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1206 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1207 x_includes=$ac_optarg ;;
1208
1209 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1210 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1211 ac_prev=x_libraries ;;
1212 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1213 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1214 x_libraries=$ac_optarg ;;
1215
1216 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1217 Try \`$0 --help' for more information"
1218 ;;
1219
1220 *=*)
1221 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1222 # Reject names that are not valid shell variable names.
1223 case $ac_envvar in #(
1224 '' | [0-9]* | *[!_$as_cr_alnum]* )
1225 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1226 esac
1227 eval $ac_envvar=\$ac_optarg
1228 export $ac_envvar ;;
1229
1230 *)
1231 # FIXME: should be removed in autoconf 3.0.
1232 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1233 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1234 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1235 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1236 ;;
1237
1238 esac
1239 done
1240
1241 if test -n "$ac_prev"; then
1242 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1243 as_fn_error $? "missing argument to $ac_option"
1244 fi
1245
1246 if test -n "$ac_unrecognized_opts"; then
1247 case $enable_option_checking in
1248 no) ;;
1249 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1250 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1251 esac
1252 fi
1253
1254 # Check all directory arguments for consistency.
1255 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1256 datadir sysconfdir sharedstatedir localstatedir includedir \
1257 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1258 libdir localedir mandir
1259 do
1260 eval ac_val=\$$ac_var
1261 # Remove trailing slashes.
1262 case $ac_val in
1263 */ )
1264 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1265 eval $ac_var=\$ac_val;;
1266 esac
1267 # Be sure to have absolute directory names.
1268 case $ac_val in
1269 [\\/$]* | ?:[\\/]* ) continue;;
1270 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1271 esac
1272 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1273 done
1274
1275 # There might be people who depend on the old broken behavior: `$host'
1276 # used to hold the argument of --host etc.
1277 # FIXME: To remove some day.
1278 build=$build_alias
1279 host=$host_alias
1280 target=$target_alias
1281
1282 # FIXME: To remove some day.
1283 if test "x$host_alias" != x; then
1284 if test "x$build_alias" = x; then
1285 cross_compiling=maybe
1286 elif test "x$build_alias" != "x$host_alias"; then
1287 cross_compiling=yes
1288 fi
1289 fi
1290
1291 ac_tool_prefix=
1292 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1293
1294 test "$silent" = yes && exec 6>/dev/null
1295
1296
1297 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1298 ac_ls_di=`ls -di .` &&
1299 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1300 as_fn_error $? "working directory cannot be determined"
1301 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1302 as_fn_error $? "pwd does not report name of working directory"
1303
1304
1305 # Find the source files, if location was not specified.
1306 if test -z "$srcdir"; then
1307 ac_srcdir_defaulted=yes
1308 # Try the directory containing this script, then the parent directory.
1309 ac_confdir=`$as_dirname -- "$as_myself" ||
1310 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1311 X"$as_myself" : 'X\(//\)[^/]' \| \
1312 X"$as_myself" : 'X\(//\)$' \| \
1313 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1314 $as_echo X"$as_myself" |
1315 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)[^/].*/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\/\)$/{
1324 s//\1/
1325 q
1326 }
1327 /^X\(\/\).*/{
1328 s//\1/
1329 q
1330 }
1331 s/.*/./; q'`
1332 srcdir=$ac_confdir
1333 if test ! -r "$srcdir/$ac_unique_file"; then
1334 srcdir=..
1335 fi
1336 else
1337 ac_srcdir_defaulted=no
1338 fi
1339 if test ! -r "$srcdir/$ac_unique_file"; then
1340 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1341 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1342 fi
1343 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1344 ac_abs_confdir=`(
1345 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1346 pwd)`
1347 # When building in place, set srcdir=.
1348 if test "$ac_abs_confdir" = "$ac_pwd"; then
1349 srcdir=.
1350 fi
1351 # Remove unnecessary trailing slashes from srcdir.
1352 # Double slashes in file names in object file debugging info
1353 # mess up M-x gdb in Emacs.
1354 case $srcdir in
1355 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1356 esac
1357 for ac_var in $ac_precious_vars; do
1358 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1359 eval ac_env_${ac_var}_value=\$${ac_var}
1360 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1361 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1362 done
1363
1364 #
1365 # Report the --help message.
1366 #
1367 if test "$ac_init_help" = "long"; then
1368 # Omit some internal or obsolete options to make the list less imposing.
1369 # This message is too long to be a string in the A/UX 3.1 sh.
1370 cat <<_ACEOF
1371 \`configure' configures ircd-hybrid TRUNK to adapt to many kinds of systems.
1372
1373 Usage: $0 [OPTION]... [VAR=VALUE]...
1374
1375 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1376 VAR=VALUE. See below for descriptions of some of the useful variables.
1377
1378 Defaults for the options are specified in brackets.
1379
1380 Configuration:
1381 -h, --help display this help and exit
1382 --help=short display options specific to this package
1383 --help=recursive display the short help of all the included packages
1384 -V, --version display version information and exit
1385 -q, --quiet, --silent do not print \`checking ...' messages
1386 --cache-file=FILE cache test results in FILE [disabled]
1387 -C, --config-cache alias for \`--cache-file=config.cache'
1388 -n, --no-create do not create output files
1389 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1390
1391 Installation directories:
1392 --prefix=PREFIX install architecture-independent files in PREFIX
1393 [$ac_default_prefix]
1394 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1395 [PREFIX]
1396
1397 By default, \`make install' will install all the files in
1398 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1399 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1400 for instance \`--prefix=\$HOME'.
1401
1402 For better control, use the options below.
1403
1404 Fine tuning of the installation directories:
1405 --bindir=DIR user executables [EPREFIX/bin]
1406 --sbindir=DIR system admin executables [EPREFIX/sbin]
1407 --libexecdir=DIR program executables [EPREFIX/libexec]
1408 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1409 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1410 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1411 --libdir=DIR object code libraries [EPREFIX/lib]
1412 --includedir=DIR C header files [PREFIX/include]
1413 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1414 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1415 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1416 --infodir=DIR info documentation [DATAROOTDIR/info]
1417 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1418 --mandir=DIR man documentation [DATAROOTDIR/man]
1419 --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1420 --htmldir=DIR html documentation [DOCDIR]
1421 --dvidir=DIR dvi documentation [DOCDIR]
1422 --pdfdir=DIR pdf documentation [DOCDIR]
1423 --psdir=DIR ps documentation [DOCDIR]
1424 _ACEOF
1425
1426 cat <<\_ACEOF
1427
1428 Program names:
1429 --program-prefix=PREFIX prepend PREFIX to installed program names
1430 --program-suffix=SUFFIX append SUFFIX to installed program names
1431 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1432
1433 System types:
1434 --build=BUILD configure for building on BUILD [guessed]
1435 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1436 _ACEOF
1437 fi
1438
1439 if test -n "$ac_init_help"; then
1440 case $ac_init_help in
1441 short | recursive ) echo "Configuration of ircd-hybrid TRUNK:";;
1442 esac
1443 cat <<\_ACEOF
1444
1445 Optional Features:
1446 --disable-option-checking ignore unrecognized --enable/--with options
1447 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1448 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1449 --enable-silent-rules less verbose build output (undo: "make V=1")
1450 --disable-silent-rules verbose build output (undo: "make V=0")
1451 --enable-maintainer-mode
1452 enable make rules and dependencies not useful (and
1453 sometimes confusing) to the casual installer
1454 --enable-dependency-tracking
1455 do not reject slow dependency extractors
1456 --disable-dependency-tracking
1457 speeds up one-time build
1458 --enable-static[=PKGS] build static libraries [default=no]
1459 --enable-shared[=PKGS] build shared libraries [default=yes]
1460 --enable-fast-install[=PKGS]
1461 optimize for fast installation [default=yes]
1462 --disable-libtool-lock avoid locking (might break parallel builds)
1463 --enable-ltdl-install install libltdl
1464 --disable-libgeoip Disable GeoIP support
1465 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1466 --disable-openssl Disable OpenSSL support.
1467 --enable-assert Enable assert() statements
1468 --enable-kqueue Force kqueue usage.
1469 --enable-epoll Force epoll usage.
1470 --enable-devpoll Force devpoll usage.
1471 --enable-poll Force poll usage.
1472 --enable-select Force select usage.
1473 --enable-halfops Enable halfops support.
1474 --enable-debugging Enable debugging.
1475 --enable-warnings Enable compiler warnings.
1476
1477 Optional Packages:
1478 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1479 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1480 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1481 both]
1482 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1483 --with-sysroot=DIR Search for dependent libraries within DIR
1484 (or the compiler's sysroot if not specified).
1485 --with-included-ltdl use the GNU ltdl sources included here
1486 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1487 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1488
1489 Some influential environment variables:
1490 CC C compiler command
1491 CFLAGS C compiler flags
1492 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1493 nonstandard directory <lib dir>
1494 LIBS libraries to pass to the linker, e.g. -l<library>
1495 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1496 you have headers in a nonstandard directory <include dir>
1497 YACC The `Yet Another Compiler Compiler' implementation to use.
1498 Defaults to the first program found out of: `bison -y', `byacc',
1499 `yacc'.
1500 YFLAGS The list of arguments that will be passed by default to $YACC.
1501 This script will default YFLAGS to the empty string to avoid a
1502 default value of `-d' given by some make applications.
1503 CPP C preprocessor
1504
1505 Use these variables to override the choices made by `configure' or to help
1506 it to find libraries and programs with nonstandard names/locations.
1507
1508 Report bugs to <bugs@ircd-hybrid.org>.
1509 _ACEOF
1510 ac_status=$?
1511 fi
1512
1513 if test "$ac_init_help" = "recursive"; then
1514 # If there are subdirs, report their specific --help.
1515 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1516 test -d "$ac_dir" ||
1517 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1518 continue
1519 ac_builddir=.
1520
1521 case "$ac_dir" in
1522 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1523 *)
1524 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1525 # A ".." for each directory in $ac_dir_suffix.
1526 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1527 case $ac_top_builddir_sub in
1528 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1530 esac ;;
1531 esac
1532 ac_abs_top_builddir=$ac_pwd
1533 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1534 # for backward compatibility:
1535 ac_top_builddir=$ac_top_build_prefix
1536
1537 case $srcdir in
1538 .) # We are building in place.
1539 ac_srcdir=.
1540 ac_top_srcdir=$ac_top_builddir_sub
1541 ac_abs_top_srcdir=$ac_pwd ;;
1542 [\\/]* | ?:[\\/]* ) # Absolute name.
1543 ac_srcdir=$srcdir$ac_dir_suffix;
1544 ac_top_srcdir=$srcdir
1545 ac_abs_top_srcdir=$srcdir ;;
1546 *) # Relative name.
1547 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1548 ac_top_srcdir=$ac_top_build_prefix$srcdir
1549 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1550 esac
1551 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1552
1553 cd "$ac_dir" || { ac_status=$?; continue; }
1554 # Check for guested configure.
1555 if test -f "$ac_srcdir/configure.gnu"; then
1556 echo &&
1557 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1558 elif test -f "$ac_srcdir/configure"; then
1559 echo &&
1560 $SHELL "$ac_srcdir/configure" --help=recursive
1561 else
1562 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1563 fi || ac_status=$?
1564 cd "$ac_pwd" || { ac_status=$?; break; }
1565 done
1566 fi
1567
1568 test -n "$ac_init_help" && exit $ac_status
1569 if $ac_init_version; then
1570 cat <<\_ACEOF
1571 ircd-hybrid configure TRUNK
1572 generated by GNU Autoconf 2.69
1573
1574 Copyright (C) 2012 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1579 fi
1580
1581 ## ------------------------ ##
1582 ## Autoconf initialization. ##
1583 ## ------------------------ ##
1584
1585 # ac_fn_c_try_compile LINENO
1586 # --------------------------
1587 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1588 ac_fn_c_try_compile ()
1589 {
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 rm -f conftest.$ac_objext
1592 if { { ac_try="$ac_compile"
1593 case "(($ac_try" in
1594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1595 *) ac_try_echo=$ac_try;;
1596 esac
1597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1598 $as_echo "$ac_try_echo"; } >&5
1599 (eval "$ac_compile") 2>conftest.err
1600 ac_status=$?
1601 if test -s conftest.err; then
1602 grep -v '^ *+' conftest.err >conftest.er1
1603 cat conftest.er1 >&5
1604 mv -f conftest.er1 conftest.err
1605 fi
1606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1607 test $ac_status = 0; } && {
1608 test -z "$ac_c_werror_flag" ||
1609 test ! -s conftest.err
1610 } && test -s conftest.$ac_objext; then :
1611 ac_retval=0
1612 else
1613 $as_echo "$as_me: failed program was:" >&5
1614 sed 's/^/| /' conftest.$ac_ext >&5
1615
1616 ac_retval=1
1617 fi
1618 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1619 as_fn_set_status $ac_retval
1620
1621 } # ac_fn_c_try_compile
1622
1623 # ac_fn_c_try_link LINENO
1624 # -----------------------
1625 # Try to link conftest.$ac_ext, and return whether this succeeded.
1626 ac_fn_c_try_link ()
1627 {
1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1629 rm -f conftest.$ac_objext conftest$ac_exeext
1630 if { { ac_try="$ac_link"
1631 case "(($ac_try" in
1632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1633 *) ac_try_echo=$ac_try;;
1634 esac
1635 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1636 $as_echo "$ac_try_echo"; } >&5
1637 (eval "$ac_link") 2>conftest.err
1638 ac_status=$?
1639 if test -s conftest.err; then
1640 grep -v '^ *+' conftest.err >conftest.er1
1641 cat conftest.er1 >&5
1642 mv -f conftest.er1 conftest.err
1643 fi
1644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1645 test $ac_status = 0; } && {
1646 test -z "$ac_c_werror_flag" ||
1647 test ! -s conftest.err
1648 } && test -s conftest$ac_exeext && {
1649 test "$cross_compiling" = yes ||
1650 test -x conftest$ac_exeext
1651 }; then :
1652 ac_retval=0
1653 else
1654 $as_echo "$as_me: failed program was:" >&5
1655 sed 's/^/| /' conftest.$ac_ext >&5
1656
1657 ac_retval=1
1658 fi
1659 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1660 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1661 # interfere with the next link command; also delete a directory that is
1662 # left behind by Apple's compiler. We do this before executing the actions.
1663 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1666
1667 } # ac_fn_c_try_link
1668
1669 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1670 # -------------------------------------------------------
1671 # Tests whether HEADER exists and can be compiled using the include files in
1672 # INCLUDES, setting the cache variable VAR accordingly.
1673 ac_fn_c_check_header_compile ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1677 $as_echo_n "checking for $2... " >&6; }
1678 if eval \${$3+:} false; then :
1679 $as_echo_n "(cached) " >&6
1680 else
1681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1682 /* end confdefs.h. */
1683 $4
1684 #include <$2>
1685 _ACEOF
1686 if ac_fn_c_try_compile "$LINENO"; then :
1687 eval "$3=yes"
1688 else
1689 eval "$3=no"
1690 fi
1691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1692 fi
1693 eval ac_res=\$$3
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1695 $as_echo "$ac_res" >&6; }
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
1698 } # ac_fn_c_check_header_compile
1699
1700 # ac_fn_c_try_cpp LINENO
1701 # ----------------------
1702 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1703 ac_fn_c_try_cpp ()
1704 {
1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706 if { { ac_try="$ac_cpp conftest.$ac_ext"
1707 case "(($ac_try" in
1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709 *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 $as_echo "$ac_try_echo"; } >&5
1713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1714 ac_status=$?
1715 if test -s conftest.err; then
1716 grep -v '^ *+' conftest.err >conftest.er1
1717 cat conftest.er1 >&5
1718 mv -f conftest.er1 conftest.err
1719 fi
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; } > conftest.i && {
1722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1723 test ! -s conftest.err
1724 }; then :
1725 ac_retval=0
1726 else
1727 $as_echo "$as_me: failed program was:" >&5
1728 sed 's/^/| /' conftest.$ac_ext >&5
1729
1730 ac_retval=1
1731 fi
1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1733 as_fn_set_status $ac_retval
1734
1735 } # ac_fn_c_try_cpp
1736
1737 # ac_fn_c_try_run LINENO
1738 # ----------------------
1739 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1740 # that executables *can* be run.
1741 ac_fn_c_try_run ()
1742 {
1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744 if { { ac_try="$ac_link"
1745 case "(($ac_try" in
1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1747 *) ac_try_echo=$ac_try;;
1748 esac
1749 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1750 $as_echo "$ac_try_echo"; } >&5
1751 (eval "$ac_link") 2>&5
1752 ac_status=$?
1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1755 { { case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_try") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; }; }; then :
1765 ac_retval=0
1766 else
1767 $as_echo "$as_me: program exited with status $ac_status" >&5
1768 $as_echo "$as_me: failed program was:" >&5
1769 sed 's/^/| /' conftest.$ac_ext >&5
1770
1771 ac_retval=$ac_status
1772 fi
1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1775 as_fn_set_status $ac_retval
1776
1777 } # ac_fn_c_try_run
1778
1779 # ac_fn_c_check_func LINENO FUNC VAR
1780 # ----------------------------------
1781 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1782 ac_fn_c_check_func ()
1783 {
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1786 $as_echo_n "checking for $2... " >&6; }
1787 if eval \${$3+:} false; then :
1788 $as_echo_n "(cached) " >&6
1789 else
1790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791 /* end confdefs.h. */
1792 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1794 #define $2 innocuous_$2
1795
1796 /* System header to define __stub macros and hopefully few prototypes,
1797 which can conflict with char $2 (); below.
1798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1799 <limits.h> exists even on freestanding compilers. */
1800
1801 #ifdef __STDC__
1802 # include <limits.h>
1803 #else
1804 # include <assert.h>
1805 #endif
1806
1807 #undef $2
1808
1809 /* Override any GCC internal prototype to avoid an error.
1810 Use char because int might match the return type of a GCC
1811 builtin and then its argument prototype would still apply. */
1812 #ifdef __cplusplus
1813 extern "C"
1814 #endif
1815 char $2 ();
1816 /* The GNU C library defines this for functions which it implements
1817 to always fail with ENOSYS. Some functions are actually named
1818 something starting with __ and the normal name is an alias. */
1819 #if defined __stub_$2 || defined __stub___$2
1820 choke me
1821 #endif
1822
1823 int
1824 main ()
1825 {
1826 return $2 ();
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_link "$LINENO"; then :
1832 eval "$3=yes"
1833 else
1834 eval "$3=no"
1835 fi
1836 rm -f core conftest.err conftest.$ac_objext \
1837 conftest$ac_exeext conftest.$ac_ext
1838 fi
1839 eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841 $as_echo "$ac_res" >&6; }
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843
1844 } # ac_fn_c_check_func
1845
1846 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1847 # ---------------------------------------------
1848 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1849 # accordingly.
1850 ac_fn_c_check_decl ()
1851 {
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 as_decl_name=`echo $2|sed 's/ *(.*//'`
1854 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1856 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1857 if eval \${$3+:} false; then :
1858 $as_echo_n "(cached) " >&6
1859 else
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 $4
1863 int
1864 main ()
1865 {
1866 #ifndef $as_decl_name
1867 #ifdef __cplusplus
1868 (void) $as_decl_use;
1869 #else
1870 (void) $as_decl_name;
1871 #endif
1872 #endif
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1884 fi
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889
1890 } # ac_fn_c_check_decl
1891
1892 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1893 # -------------------------------------------
1894 # Tests whether TYPE exists after having included INCLUDES, setting cache
1895 # variable VAR accordingly.
1896 ac_fn_c_check_type ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1900 $as_echo_n "checking for $2... " >&6; }
1901 if eval \${$3+:} false; then :
1902 $as_echo_n "(cached) " >&6
1903 else
1904 eval "$3=no"
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 $4
1908 int
1909 main ()
1910 {
1911 if (sizeof ($2))
1912 return 0;
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_compile "$LINENO"; then :
1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1919 /* end confdefs.h. */
1920 $4
1921 int
1922 main ()
1923 {
1924 if (sizeof (($2)))
1925 return 0;
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931
1932 else
1933 eval "$3=yes"
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 fi
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938 fi
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943
1944 } # ac_fn_c_check_type
1945
1946 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1947 # ----------------------------------------------------
1948 # Tries to find if the field MEMBER exists in type AGGR, after including
1949 # INCLUDES, setting cache variable VAR accordingly.
1950 ac_fn_c_check_member ()
1951 {
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1954 $as_echo_n "checking for $2.$3... " >&6; }
1955 if eval \${$4+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (ac_aggr.$3)
1966 return 0;
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973 else
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1976 $5
1977 int
1978 main ()
1979 {
1980 static $2 ac_aggr;
1981 if (sizeof ac_aggr.$3)
1982 return 0;
1983 ;
1984 return 0;
1985 }
1986 _ACEOF
1987 if ac_fn_c_try_compile "$LINENO"; then :
1988 eval "$4=yes"
1989 else
1990 eval "$4=no"
1991 fi
1992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1993 fi
1994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1995 fi
1996 eval ac_res=\$$4
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998 $as_echo "$ac_res" >&6; }
1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2000
2001 } # ac_fn_c_check_member
2002
2003 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2004 # -------------------------------------------------------
2005 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2006 # the include files in INCLUDES and setting the cache variable VAR
2007 # accordingly.
2008 ac_fn_c_check_header_mongrel ()
2009 {
2010 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2011 if eval \${$3+:} false; then :
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 fi
2017 eval ac_res=\$$3
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2019 $as_echo "$ac_res" >&6; }
2020 else
2021 # Is the header compilable?
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2023 $as_echo_n "checking $2 usability... " >&6; }
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025 /* end confdefs.h. */
2026 $4
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_compile "$LINENO"; then :
2030 ac_header_compiler=yes
2031 else
2032 ac_header_compiler=no
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2036 $as_echo "$ac_header_compiler" >&6; }
2037
2038 # Is the header present?
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2040 $as_echo_n "checking $2 presence... " >&6; }
2041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2042 /* end confdefs.h. */
2043 #include <$2>
2044 _ACEOF
2045 if ac_fn_c_try_cpp "$LINENO"; then :
2046 ac_header_preproc=yes
2047 else
2048 ac_header_preproc=no
2049 fi
2050 rm -f conftest.err conftest.i conftest.$ac_ext
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2052 $as_echo "$ac_header_preproc" >&6; }
2053
2054 # So? What about this header?
2055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2056 yes:no: )
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2058 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2061 ;;
2062 no:yes:* )
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2064 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2066 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2068 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2070 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2072 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2073 ( $as_echo "## ----------------------------------- ##
2074 ## Report this to bugs@ircd-hybrid.org ##
2075 ## ----------------------------------- ##"
2076 ) | sed "s/^/$as_me: WARNING: /" >&2
2077 ;;
2078 esac
2079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2080 $as_echo_n "checking for $2... " >&6; }
2081 if eval \${$3+:} false; then :
2082 $as_echo_n "(cached) " >&6
2083 else
2084 eval "$3=\$ac_header_compiler"
2085 fi
2086 eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088 $as_echo "$ac_res" >&6; }
2089 fi
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092 } # ac_fn_c_check_header_mongrel
2093 cat >config.log <<_ACEOF
2094 This file contains any messages produced by compilers while
2095 running configure, to aid debugging if configure makes a mistake.
2096
2097 It was created by ircd-hybrid $as_me TRUNK, which was
2098 generated by GNU Autoconf 2.69. Invocation command line was
2099
2100 $ $0 $@
2101
2102 _ACEOF
2103 exec 5>>config.log
2104 {
2105 cat <<_ASUNAME
2106 ## --------- ##
2107 ## Platform. ##
2108 ## --------- ##
2109
2110 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2111 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2112 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2113 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2114 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2115
2116 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2117 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2118
2119 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2120 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2121 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2122 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2123 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2124 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2125 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2126
2127 _ASUNAME
2128
2129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2130 for as_dir in $PATH
2131 do
2132 IFS=$as_save_IFS
2133 test -z "$as_dir" && as_dir=.
2134 $as_echo "PATH: $as_dir"
2135 done
2136 IFS=$as_save_IFS
2137
2138 } >&5
2139
2140 cat >&5 <<_ACEOF
2141
2142
2143 ## ----------- ##
2144 ## Core tests. ##
2145 ## ----------- ##
2146
2147 _ACEOF
2148
2149
2150 # Keep a trace of the command line.
2151 # Strip out --no-create and --no-recursion so they do not pile up.
2152 # Strip out --silent because we don't want to record it for future runs.
2153 # Also quote any args containing shell meta-characters.
2154 # Make two passes to allow for proper duplicate-argument suppression.
2155 ac_configure_args=
2156 ac_configure_args0=
2157 ac_configure_args1=
2158 ac_must_keep_next=false
2159 for ac_pass in 1 2
2160 do
2161 for ac_arg
2162 do
2163 case $ac_arg in
2164 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2166 | -silent | --silent | --silen | --sile | --sil)
2167 continue ;;
2168 *\'*)
2169 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2170 esac
2171 case $ac_pass in
2172 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2173 2)
2174 as_fn_append ac_configure_args1 " '$ac_arg'"
2175 if test $ac_must_keep_next = true; then
2176 ac_must_keep_next=false # Got value, back to normal.
2177 else
2178 case $ac_arg in
2179 *=* | --config-cache | -C | -disable-* | --disable-* \
2180 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2181 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2182 | -with-* | --with-* | -without-* | --without-* | --x)
2183 case "$ac_configure_args0 " in
2184 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2185 esac
2186 ;;
2187 -* ) ac_must_keep_next=true ;;
2188 esac
2189 fi
2190 as_fn_append ac_configure_args " '$ac_arg'"
2191 ;;
2192 esac
2193 done
2194 done
2195 { ac_configure_args0=; unset ac_configure_args0;}
2196 { ac_configure_args1=; unset ac_configure_args1;}
2197
2198 # When interrupted or exit'd, cleanup temporary files, and complete
2199 # config.log. We remove comments because anyway the quotes in there
2200 # would cause problems or look ugly.
2201 # WARNING: Use '\'' to represent an apostrophe within the trap.
2202 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2203 trap 'exit_status=$?
2204 # Save into config.log some information that might help in debugging.
2205 {
2206 echo
2207
2208 $as_echo "## ---------------- ##
2209 ## Cache variables. ##
2210 ## ---------------- ##"
2211 echo
2212 # The following way of writing the cache mishandles newlines in values,
2213 (
2214 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2215 eval ac_val=\$$ac_var
2216 case $ac_val in #(
2217 *${as_nl}*)
2218 case $ac_var in #(
2219 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2220 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2221 esac
2222 case $ac_var in #(
2223 _ | IFS | as_nl) ;; #(
2224 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2225 *) { eval $ac_var=; unset $ac_var;} ;;
2226 esac ;;
2227 esac
2228 done
2229 (set) 2>&1 |
2230 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2231 *${as_nl}ac_space=\ *)
2232 sed -n \
2233 "s/'\''/'\''\\\\'\'''\''/g;
2234 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2235 ;; #(
2236 *)
2237 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2238 ;;
2239 esac |
2240 sort
2241 )
2242 echo
2243
2244 $as_echo "## ----------------- ##
2245 ## Output variables. ##
2246 ## ----------------- ##"
2247 echo
2248 for ac_var in $ac_subst_vars
2249 do
2250 eval ac_val=\$$ac_var
2251 case $ac_val in
2252 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2253 esac
2254 $as_echo "$ac_var='\''$ac_val'\''"
2255 done | sort
2256 echo
2257
2258 if test -n "$ac_subst_files"; then
2259 $as_echo "## ------------------- ##
2260 ## File substitutions. ##
2261 ## ------------------- ##"
2262 echo
2263 for ac_var in $ac_subst_files
2264 do
2265 eval ac_val=\$$ac_var
2266 case $ac_val in
2267 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2268 esac
2269 $as_echo "$ac_var='\''$ac_val'\''"
2270 done | sort
2271 echo
2272 fi
2273
2274 if test -s confdefs.h; then
2275 $as_echo "## ----------- ##
2276 ## confdefs.h. ##
2277 ## ----------- ##"
2278 echo
2279 cat confdefs.h
2280 echo
2281 fi
2282 test "$ac_signal" != 0 &&
2283 $as_echo "$as_me: caught signal $ac_signal"
2284 $as_echo "$as_me: exit $exit_status"
2285 } >&5
2286 rm -f core *.core core.conftest.* &&
2287 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2288 exit $exit_status
2289 ' 0
2290 for ac_signal in 1 2 13 15; do
2291 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2292 done
2293 ac_signal=0
2294
2295 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2296 rm -f -r conftest* confdefs.h
2297
2298 $as_echo "/* confdefs.h */" > confdefs.h
2299
2300 # Predefined preprocessor variables.
2301
2302 cat >>confdefs.h <<_ACEOF
2303 #define PACKAGE_NAME "$PACKAGE_NAME"
2304 _ACEOF
2305
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2308 _ACEOF
2309
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2312 _ACEOF
2313
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_STRING "$PACKAGE_STRING"
2316 _ACEOF
2317
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2320 _ACEOF
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_URL "$PACKAGE_URL"
2324 _ACEOF
2325
2326
2327 # Let the site file select an alternate cache file if it wants to.
2328 # Prefer an explicitly selected file to automatically selected ones.
2329 ac_site_file1=NONE
2330 ac_site_file2=NONE
2331 if test -n "$CONFIG_SITE"; then
2332 # We do not want a PATH search for config.site.
2333 case $CONFIG_SITE in #((
2334 -*) ac_site_file1=./$CONFIG_SITE;;
2335 */*) ac_site_file1=$CONFIG_SITE;;
2336 *) ac_site_file1=./$CONFIG_SITE;;
2337 esac
2338 elif test "x$prefix" != xNONE; then
2339 ac_site_file1=$prefix/share/config.site
2340 ac_site_file2=$prefix/etc/config.site
2341 else
2342 ac_site_file1=$ac_default_prefix/share/config.site
2343 ac_site_file2=$ac_default_prefix/etc/config.site
2344 fi
2345 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2346 do
2347 test "x$ac_site_file" = xNONE && continue
2348 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2350 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2351 sed 's/^/| /' "$ac_site_file" >&5
2352 . "$ac_site_file" \
2353 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2355 as_fn_error $? "failed to load site script $ac_site_file
2356 See \`config.log' for more details" "$LINENO" 5; }
2357 fi
2358 done
2359
2360 if test -r "$cache_file"; then
2361 # Some versions of bash will fail to source /dev/null (special files
2362 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2363 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2365 $as_echo "$as_me: loading cache $cache_file" >&6;}
2366 case $cache_file in
2367 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2368 *) . "./$cache_file";;
2369 esac
2370 fi
2371 else
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2373 $as_echo "$as_me: creating cache $cache_file" >&6;}
2374 >$cache_file
2375 fi
2376
2377 as_fn_append ac_func_list " strtok_r"
2378 as_fn_append ac_func_list " usleep"
2379 as_fn_append ac_func_list " strlcat"
2380 as_fn_append ac_func_list " strlcpy"
2381 as_fn_append ac_header_list " crypt.h"
2382 as_fn_append ac_header_list " sys/resource.h"
2383 as_fn_append ac_header_list " sys/param.h"
2384 as_fn_append ac_header_list " types.h"
2385 as_fn_append ac_header_list " socket.h"
2386 as_fn_append ac_header_list " sys/wait.h"
2387 as_fn_append ac_header_list " wait.h"
2388 # Check that the precious variables saved in the cache have kept the same
2389 # value.
2390 ac_cache_corrupted=false
2391 for ac_var in $ac_precious_vars; do
2392 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2393 eval ac_new_set=\$ac_env_${ac_var}_set
2394 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2395 eval ac_new_val=\$ac_env_${ac_var}_value
2396 case $ac_old_set,$ac_new_set in
2397 set,)
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2399 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2400 ac_cache_corrupted=: ;;
2401 ,set)
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2403 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2404 ac_cache_corrupted=: ;;
2405 ,);;
2406 *)
2407 if test "x$ac_old_val" != "x$ac_new_val"; then
2408 # differences in whitespace do not lead to failure.
2409 ac_old_val_w=`echo x $ac_old_val`
2410 ac_new_val_w=`echo x $ac_new_val`
2411 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2413 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2414 ac_cache_corrupted=:
2415 else
2416 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2417 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2418 eval $ac_var=\$ac_old_val
2419 fi
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2421 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2423 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2424 fi;;
2425 esac
2426 # Pass precious variables to config.status.
2427 if test "$ac_new_set" = set; then
2428 case $ac_new_val in
2429 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2430 *) ac_arg=$ac_var=$ac_new_val ;;
2431 esac
2432 case " $ac_configure_args " in
2433 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2434 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2435 esac
2436 fi
2437 done
2438 if $ac_cache_corrupted; then
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2442 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2443 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2444 fi
2445 ## -------------------- ##
2446 ## Main body of script. ##
2447 ## -------------------- ##
2448
2449 ac_ext=c
2450 ac_cpp='$CPP $CPPFLAGS'
2451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2454
2455
2456 am__api_version='1.14'
2457
2458 ac_aux_dir=
2459 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2460 if test -f "$ac_dir/install-sh"; then
2461 ac_aux_dir=$ac_dir
2462 ac_install_sh="$ac_aux_dir/install-sh -c"
2463 break
2464 elif test -f "$ac_dir/install.sh"; then
2465 ac_aux_dir=$ac_dir
2466 ac_install_sh="$ac_aux_dir/install.sh -c"
2467 break
2468 elif test -f "$ac_dir/shtool"; then
2469 ac_aux_dir=$ac_dir
2470 ac_install_sh="$ac_aux_dir/shtool install -c"
2471 break
2472 fi
2473 done
2474 if test -z "$ac_aux_dir"; then
2475 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2476 fi
2477
2478 # These three variables are undocumented and unsupported,
2479 # and are intended to be withdrawn in a future Autoconf release.
2480 # They can cause serious problems if a builder's source tree is in a directory
2481 # whose full name contains unusual characters.
2482 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2483 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2484 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2485
2486
2487 # Find a good install program. We prefer a C program (faster),
2488 # so one script is as good as another. But avoid the broken or
2489 # incompatible versions:
2490 # SysV /etc/install, /usr/sbin/install
2491 # SunOS /usr/etc/install
2492 # IRIX /sbin/install
2493 # AIX /bin/install
2494 # AmigaOS /C/install, which installs bootblocks on floppy discs
2495 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2496 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2497 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2498 # OS/2's system install, which has a completely different semantic
2499 # ./install, which can be erroneously created by make from ./install.sh.
2500 # Reject install programs that cannot install multiple files.
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2502 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2503 if test -z "$INSTALL"; then
2504 if ${ac_cv_path_install+:} false; then :
2505 $as_echo_n "(cached) " >&6
2506 else
2507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2508 for as_dir in $PATH
2509 do
2510 IFS=$as_save_IFS
2511 test -z "$as_dir" && as_dir=.
2512 # Account for people who put trailing slashes in PATH elements.
2513 case $as_dir/ in #((
2514 ./ | .// | /[cC]/* | \
2515 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2517 /usr/ucb/* ) ;;
2518 *)
2519 # OSF1 and SCO ODT 3.0 have their own names for install.
2520 # Don't use installbsd from OSF since it installs stuff as root
2521 # by default.
2522 for ac_prog in ginstall scoinst install; do
2523 for ac_exec_ext in '' $ac_executable_extensions; do
2524 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525 if test $ac_prog = install &&
2526 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2527 # AIX install. It has an incompatible calling convention.
2528 :
2529 elif test $ac_prog = install &&
2530 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2531 # program-specific install script used by HP pwplus--don't use.
2532 :
2533 else
2534 rm -rf conftest.one conftest.two conftest.dir
2535 echo one > conftest.one
2536 echo two > conftest.two
2537 mkdir conftest.dir
2538 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2539 test -s conftest.one && test -s conftest.two &&
2540 test -s conftest.dir/conftest.one &&
2541 test -s conftest.dir/conftest.two
2542 then
2543 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2544 break 3
2545 fi
2546 fi
2547 fi
2548 done
2549 done
2550 ;;
2551 esac
2552
2553 done
2554 IFS=$as_save_IFS
2555
2556 rm -rf conftest.one conftest.two conftest.dir
2557
2558 fi
2559 if test "${ac_cv_path_install+set}" = set; then
2560 INSTALL=$ac_cv_path_install
2561 else
2562 # As a last resort, use the slow shell script. Don't cache a
2563 # value for INSTALL within a source directory, because that will
2564 # break other packages using the cache if that directory is
2565 # removed, or if the value is a relative name.
2566 INSTALL=$ac_install_sh
2567 fi
2568 fi
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2570 $as_echo "$INSTALL" >&6; }
2571
2572 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2573 # It thinks the first close brace ends the variable substitution.
2574 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2575
2576 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2577
2578 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2579
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2581 $as_echo_n "checking whether build environment is sane... " >&6; }
2582 # Reject unsafe characters in $srcdir or the absolute working directory
2583 # name. Accept space and tab only in the latter.
2584 am_lf='
2585 '
2586 case `pwd` in
2587 *[\\\"\#\$\&\'\`$am_lf]*)
2588 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2589 esac
2590 case $srcdir in
2591 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2592 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2593 esac
2594
2595 # Do 'set' in a subshell so we don't clobber the current shell's
2596 # arguments. Must try -L first in case configure is actually a
2597 # symlink; some systems play weird games with the mod time of symlinks
2598 # (eg FreeBSD returns the mod time of the symlink's containing
2599 # directory).
2600 if (
2601 am_has_slept=no
2602 for am_try in 1 2; do
2603 echo "timestamp, slept: $am_has_slept" > conftest.file
2604 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2605 if test "$*" = "X"; then
2606 # -L didn't work.
2607 set X `ls -t "$srcdir/configure" conftest.file`
2608 fi
2609 if test "$*" != "X $srcdir/configure conftest.file" \
2610 && test "$*" != "X conftest.file $srcdir/configure"; then
2611
2612 # If neither matched, then we have a broken ls. This can happen
2613 # if, for instance, CONFIG_SHELL is bash and it inherits a
2614 # broken ls alias from the environment. This has actually
2615 # happened. Such a system could not be considered "sane".
2616 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2617 alias in your environment" "$LINENO" 5
2618 fi
2619 if test "$2" = conftest.file || test $am_try -eq 2; then
2620 break
2621 fi
2622 # Just in case.
2623 sleep 1
2624 am_has_slept=yes
2625 done
2626 test "$2" = conftest.file
2627 )
2628 then
2629 # Ok.
2630 :
2631 else
2632 as_fn_error $? "newly created file is older than distributed files!
2633 Check your system clock" "$LINENO" 5
2634 fi
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636 $as_echo "yes" >&6; }
2637 # If we didn't sleep, we still need to ensure time stamps of config.status and
2638 # generated files are strictly newer.
2639 am_sleep_pid=
2640 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2641 ( sleep 1 ) &
2642 am_sleep_pid=$!
2643 fi
2644
2645 rm -f conftest.file
2646
2647 test "$program_prefix" != NONE &&
2648 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2649 # Use a double $ so make ignores it.
2650 test "$program_suffix" != NONE &&
2651 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2652 # Double any \ or $.
2653 # By default was `s,x,x', remove it if useless.
2654 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2655 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2656
2657 # expand $ac_aux_dir to an absolute path
2658 am_aux_dir=`cd $ac_aux_dir && pwd`
2659
2660 if test x"${MISSING+set}" != xset; then
2661 case $am_aux_dir in
2662 *\ * | *\ *)
2663 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2664 *)
2665 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2666 esac
2667 fi
2668 # Use eval to expand $SHELL
2669 if eval "$MISSING --is-lightweight"; then
2670 am_missing_run="$MISSING "
2671 else
2672 am_missing_run=
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2674 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2675 fi
2676
2677 if test x"${install_sh}" != xset; then
2678 case $am_aux_dir in
2679 *\ * | *\ *)
2680 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2681 *)
2682 install_sh="\${SHELL} $am_aux_dir/install-sh"
2683 esac
2684 fi
2685
2686 # Installed binaries are usually stripped using 'strip' when the user
2687 # run "make install-strip". However 'strip' might not be the right
2688 # tool to use in cross-compilation environments, therefore Automake
2689 # will honor the 'STRIP' environment variable to overrule this program.
2690 if test "$cross_compiling" != no; then
2691 if test -n "$ac_tool_prefix"; then
2692 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2693 set dummy ${ac_tool_prefix}strip; ac_word=$2
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 $as_echo_n "checking for $ac_word... " >&6; }
2696 if ${ac_cv_prog_STRIP+:} false; then :
2697 $as_echo_n "(cached) " >&6
2698 else
2699 if test -n "$STRIP"; then
2700 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2701 else
2702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2703 for as_dir in $PATH
2704 do
2705 IFS=$as_save_IFS
2706 test -z "$as_dir" && as_dir=.
2707 for ac_exec_ext in '' $ac_executable_extensions; do
2708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 break 2
2712 fi
2713 done
2714 done
2715 IFS=$as_save_IFS
2716
2717 fi
2718 fi
2719 STRIP=$ac_cv_prog_STRIP
2720 if test -n "$STRIP"; then
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2722 $as_echo "$STRIP" >&6; }
2723 else
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 $as_echo "no" >&6; }
2726 fi
2727
2728
2729 fi
2730 if test -z "$ac_cv_prog_STRIP"; then
2731 ac_ct_STRIP=$STRIP
2732 # Extract the first word of "strip", so it can be a program name with args.
2733 set dummy strip; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$ac_ct_STRIP"; then
2740 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_ac_ct_STRIP="strip"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2760 if test -n "$ac_ct_STRIP"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2762 $as_echo "$ac_ct_STRIP" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768 if test "x$ac_ct_STRIP" = x; then
2769 STRIP=":"
2770 else
2771 case $cross_compiling:$ac_tool_warned in
2772 yes:)
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2775 ac_tool_warned=yes ;;
2776 esac
2777 STRIP=$ac_ct_STRIP
2778 fi
2779 else
2780 STRIP="$ac_cv_prog_STRIP"
2781 fi
2782
2783 fi
2784 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2785
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2787 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2788 if test -z "$MKDIR_P"; then
2789 if ${ac_cv_path_mkdir+:} false; then :
2790 $as_echo_n "(cached) " >&6
2791 else
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2794 do
2795 IFS=$as_save_IFS
2796 test -z "$as_dir" && as_dir=.
2797 for ac_prog in mkdir gmkdir; do
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2800 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2801 'mkdir (GNU coreutils) '* | \
2802 'mkdir (coreutils) '* | \
2803 'mkdir (fileutils) '4.1*)
2804 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2805 break 3;;
2806 esac
2807 done
2808 done
2809 done
2810 IFS=$as_save_IFS
2811
2812 fi
2813
2814 test -d ./--version && rmdir ./--version
2815 if test "${ac_cv_path_mkdir+set}" = set; then
2816 MKDIR_P="$ac_cv_path_mkdir -p"
2817 else
2818 # As a last resort, use the slow shell script. Don't cache a
2819 # value for MKDIR_P within a source directory, because that will
2820 # break other packages using the cache if that directory is
2821 # removed, or if the value is a relative name.
2822 MKDIR_P="$ac_install_sh -d"
2823 fi
2824 fi
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2826 $as_echo "$MKDIR_P" >&6; }
2827
2828 for ac_prog in gawk mawk nawk awk
2829 do
2830 # Extract the first word of "$ac_prog", so it can be a program name with args.
2831 set dummy $ac_prog; ac_word=$2
2832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 $as_echo_n "checking for $ac_word... " >&6; }
2834 if ${ac_cv_prog_AWK+:} false; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 if test -n "$AWK"; then
2838 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH
2842 do
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_exec_ext in '' $ac_executable_extensions; do
2846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 ac_cv_prog_AWK="$ac_prog"
2848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 break 2
2850 fi
2851 done
2852 done
2853 IFS=$as_save_IFS
2854
2855 fi
2856 fi
2857 AWK=$ac_cv_prog_AWK
2858 if test -n "$AWK"; then
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2860 $as_echo "$AWK" >&6; }
2861 else
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 $as_echo "no" >&6; }
2864 fi
2865
2866
2867 test -n "$AWK" && break
2868 done
2869
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2871 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2872 set x ${MAKE-make}
2873 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2874 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2875 $as_echo_n "(cached) " >&6
2876 else
2877 cat >conftest.make <<\_ACEOF
2878 SHELL = /bin/sh
2879 all:
2880 @echo '@@@%%%=$(MAKE)=@@@%%%'
2881 _ACEOF
2882 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2883 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2884 *@@@%%%=?*=@@@%%%*)
2885 eval ac_cv_prog_make_${ac_make}_set=yes;;
2886 *)
2887 eval ac_cv_prog_make_${ac_make}_set=no;;
2888 esac
2889 rm -f conftest.make
2890 fi
2891 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2893 $as_echo "yes" >&6; }
2894 SET_MAKE=
2895 else
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 $as_echo "no" >&6; }
2898 SET_MAKE="MAKE=${MAKE-make}"
2899 fi
2900
2901 rm -rf .tst 2>/dev/null
2902 mkdir .tst 2>/dev/null
2903 if test -d .tst; then
2904 am__leading_dot=.
2905 else
2906 am__leading_dot=_
2907 fi
2908 rmdir .tst 2>/dev/null
2909
2910 # Check whether --enable-silent-rules was given.
2911 if test "${enable_silent_rules+set}" = set; then :
2912 enableval=$enable_silent_rules;
2913 fi
2914
2915 case $enable_silent_rules in # (((
2916 yes) AM_DEFAULT_VERBOSITY=0;;
2917 no) AM_DEFAULT_VERBOSITY=1;;
2918 *) AM_DEFAULT_VERBOSITY=1;;
2919 esac
2920 am_make=${MAKE-make}
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2922 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2923 if ${am_cv_make_support_nested_variables+:} false; then :
2924 $as_echo_n "(cached) " >&6
2925 else
2926 if $as_echo 'TRUE=$(BAR$(V))
2927 BAR0=false
2928 BAR1=true
2929 V=1
2930 am__doit:
2931 @$(TRUE)
2932 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2933 am_cv_make_support_nested_variables=yes
2934 else
2935 am_cv_make_support_nested_variables=no
2936 fi
2937 fi
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2939 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2940 if test $am_cv_make_support_nested_variables = yes; then
2941 AM_V='$(V)'
2942 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2943 else
2944 AM_V=$AM_DEFAULT_VERBOSITY
2945 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2946 fi
2947 AM_BACKSLASH='\'
2948
2949 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2950 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2951 # is not polluted with repeated "-I."
2952 am__isrc=' -I$(srcdir)'
2953 # test to see if srcdir already configured
2954 if test -f $srcdir/config.status; then
2955 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2956 fi
2957 fi
2958
2959 # test whether we have cygpath
2960 if test -z "$CYGPATH_W"; then
2961 if (cygpath --version) >/dev/null 2>/dev/null; then
2962 CYGPATH_W='cygpath -w'
2963 else
2964 CYGPATH_W=echo
2965 fi
2966 fi
2967
2968
2969 # Define the identity of the package.
2970 PACKAGE='ircd-hybrid'
2971 VERSION='TRUNK'
2972
2973
2974 cat >>confdefs.h <<_ACEOF
2975 #define PACKAGE "$PACKAGE"
2976 _ACEOF
2977
2978
2979 cat >>confdefs.h <<_ACEOF
2980 #define VERSION "$VERSION"
2981 _ACEOF
2982
2983 # Some tools Automake needs.
2984
2985 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2986
2987
2988 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2989
2990
2991 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2992
2993
2994 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2995
2996
2997 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2998
2999 # For better backward compatibility. To be removed once Automake 1.9.x
3000 # dies out for good. For more background, see:
3001 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3002 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3003 mkdir_p='$(MKDIR_P)'
3004
3005 # We need awk for the "check" target. The system "awk" is bad on
3006 # some platforms.
3007 # Always define AMTAR for backward compatibility. Yes, it's still used
3008 # in the wild :-( We should find a proper way to deprecate it ...
3009 AMTAR='$${TAR-tar}'
3010
3011
3012 # We'll loop over all known methods to create a tar archive until one works.
3013 _am_tools='gnutar pax cpio none'
3014
3015 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3016
3017
3018
3019
3020
3021
3022 # POSIX will say in a future version that running "rm -f" with no argument
3023 # is OK; and we want to be able to make that assumption in our Makefile
3024 # recipes. So use an aggressive probe to check that the usage we want is
3025 # actually supported "in the wild" to an acceptable degree.
3026 # See automake bug#10828.
3027 # To make any issue more visible, cause the running configure to be aborted
3028 # by default if the 'rm' program in use doesn't match our expectations; the
3029 # user can still override this though.
3030 if rm -f && rm -fr && rm -rf; then : OK; else
3031 cat >&2 <<'END'
3032 Oops!
3033
3034 Your 'rm' program seems unable to run without file operands specified
3035 on the command line, even when the '-f' option is present. This is contrary
3036 to the behaviour of most rm programs out there, and not conforming with
3037 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3038
3039 Please tell bug-automake@gnu.org about your system, including the value
3040 of your $PATH and any error possibly output before this message. This
3041 can help us improve future automake versions.
3042
3043 END
3044 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3045 echo 'Configuration will proceed anyway, since you have set the' >&2
3046 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3047 echo >&2
3048 else
3049 cat >&2 <<'END'
3050 Aborting the configuration process, to ensure you take notice of the issue.
3051
3052 You can download and install GNU coreutils to get an 'rm' implementation
3053 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3054
3055 If you want to complete the configuration process using your problematic
3056 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3057 to "yes", and re-run configure.
3058
3059 END
3060 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3061 fi
3062 fi
3063
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3065 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3066 # Check whether --enable-maintainer-mode was given.
3067 if test "${enable_maintainer_mode+set}" = set; then :
3068 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3069 else
3070 USE_MAINTAINER_MODE=no
3071 fi
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3074 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3075 if test $USE_MAINTAINER_MODE = yes; then
3076 MAINTAINER_MODE_TRUE=
3077 MAINTAINER_MODE_FALSE='#'
3078 else
3079 MAINTAINER_MODE_TRUE='#'
3080 MAINTAINER_MODE_FALSE=
3081 fi
3082
3083 MAINT=$MAINTAINER_MODE_TRUE
3084
3085
3086
3087 ac_config_headers="$ac_config_headers config.h"
3088
3089
3090
3091 # Checks for programs.
3092 DEPDIR="${am__leading_dot}deps"
3093
3094 ac_config_commands="$ac_config_commands depfiles"
3095
3096
3097 am_make=${MAKE-make}
3098 cat > confinc << 'END'
3099 am__doit:
3100 @echo this is the am__doit target
3101 .PHONY: am__doit
3102 END
3103 # If we don't find an include directive, just comment out the code.
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3105 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3106 am__include="#"
3107 am__quote=
3108 _am_result=none
3109 # First try GNU make style include.
3110 echo "include confinc" > confmf
3111 # Ignore all kinds of additional output from 'make'.
3112 case `$am_make -s -f confmf 2> /dev/null` in #(
3113 *the\ am__doit\ target*)
3114 am__include=include
3115 am__quote=
3116 _am_result=GNU
3117 ;;
3118 esac
3119 # Now try BSD make style include.
3120 if test "$am__include" = "#"; then
3121 echo '.include "confinc"' > confmf
3122 case `$am_make -s -f confmf 2> /dev/null` in #(
3123 *the\ am__doit\ target*)
3124 am__include=.include
3125 am__quote="\""
3126 _am_result=BSD
3127 ;;
3128 esac
3129 fi
3130
3131
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3133 $as_echo "$_am_result" >&6; }
3134 rm -f confinc confmf
3135
3136 # Check whether --enable-dependency-tracking was given.
3137 if test "${enable_dependency_tracking+set}" = set; then :
3138 enableval=$enable_dependency_tracking;
3139 fi
3140
3141 if test "x$enable_dependency_tracking" != xno; then
3142 am_depcomp="$ac_aux_dir/depcomp"
3143 AMDEPBACKSLASH='\'
3144 am__nodep='_no'
3145 fi
3146 if test "x$enable_dependency_tracking" != xno; then
3147 AMDEP_TRUE=
3148 AMDEP_FALSE='#'
3149 else
3150 AMDEP_TRUE='#'
3151 AMDEP_FALSE=
3152 fi
3153
3154
3155 ac_ext=c
3156 ac_cpp='$CPP $CPPFLAGS'
3157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3158 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3160 if test -n "$ac_tool_prefix"; then
3161 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3162 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3164 $as_echo_n "checking for $ac_word... " >&6; }
3165 if ${ac_cv_prog_CC+:} false; then :
3166 $as_echo_n "(cached) " >&6
3167 else
3168 if test -n "$CC"; then
3169 ac_cv_prog_CC="$CC" # Let the user override the test.
3170 else
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3172 for as_dir in $PATH
3173 do
3174 IFS=$as_save_IFS
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 break 2
3181 fi
3182 done
3183 done
3184 IFS=$as_save_IFS
3185
3186 fi
3187 fi
3188 CC=$ac_cv_prog_CC
3189 if test -n "$CC"; then
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3191 $as_echo "$CC" >&6; }
3192 else
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3194 $as_echo "no" >&6; }
3195 fi
3196
3197
3198 fi
3199 if test -z "$ac_cv_prog_CC"; then
3200 ac_ct_CC=$CC
3201 # Extract the first word of "gcc", so it can be a program name with args.
3202 set dummy gcc; ac_word=$2
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; }
3205 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3206 $as_echo_n "(cached) " >&6
3207 else
3208 if test -n "$ac_ct_CC"; then
3209 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3210 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH
3213 do
3214 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3218 ac_cv_prog_ac_ct_CC="gcc"
3219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2
3221 fi
3222 done
3223 done
3224 IFS=$as_save_IFS
3225
3226 fi
3227 fi
3228 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3229 if test -n "$ac_ct_CC"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3231 $as_echo "$ac_ct_CC" >&6; }
3232 else
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; }
3235 fi
3236
3237 if test "x$ac_ct_CC" = x; then
3238 CC=""
3239 else
3240 case $cross_compiling:$ac_tool_warned in
3241 yes:)
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3244 ac_tool_warned=yes ;;
3245 esac
3246 CC=$ac_ct_CC
3247 fi
3248 else
3249 CC="$ac_cv_prog_CC"
3250 fi
3251
3252 if test -z "$CC"; then
3253 if test -n "$ac_tool_prefix"; then
3254 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3255 set dummy ${ac_tool_prefix}cc; ac_word=$2
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3257 $as_echo_n "checking for $ac_word... " >&6; }
3258 if ${ac_cv_prog_CC+:} false; then :
3259 $as_echo_n "(cached) " >&6
3260 else
3261 if test -n "$CC"; then
3262 ac_cv_prog_CC="$CC" # Let the user override the test.
3263 else
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 ac_cv_prog_CC="${ac_tool_prefix}cc"
3272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3273 break 2
3274 fi
3275 done
3276 done
3277 IFS=$as_save_IFS
3278
3279 fi
3280 fi
3281 CC=$ac_cv_prog_CC
3282 if test -n "$CC"; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3284 $as_echo "$CC" >&6; }
3285 else
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 fi
3289
3290
3291 fi
3292 fi
3293 if test -z "$CC"; then
3294 # Extract the first word of "cc", so it can be a program name with args.
3295 set dummy cc; ac_word=$2
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3297 $as_echo_n "checking for $ac_word... " >&6; }
3298 if ${ac_cv_prog_CC+:} false; then :
3299 $as_echo_n "(cached) " >&6
3300 else
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC="$CC" # Let the user override the test.
3303 else
3304 ac_prog_rejected=no
3305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3306 for as_dir in $PATH
3307 do
3308 IFS=$as_save_IFS
3309 test -z "$as_dir" && as_dir=.
3310 for ac_exec_ext in '' $ac_executable_extensions; do
3311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3312 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3313 ac_prog_rejected=yes
3314 continue
3315 fi
3316 ac_cv_prog_CC="cc"
3317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 break 2
3319 fi
3320 done
3321 done
3322 IFS=$as_save_IFS
3323
3324 if test $ac_prog_rejected = yes; then
3325 # We found a bogon in the path, so make sure we never use it.
3326 set dummy $ac_cv_prog_CC
3327 shift
3328 if test $# != 0; then
3329 # We chose a different compiler from the bogus one.
3330 # However, it has the same basename, so the bogon will be chosen
3331 # first if we set CC to just the basename; use the full file name.
3332 shift
3333 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3334 fi
3335 fi
3336 fi
3337 fi
3338 CC=$ac_cv_prog_CC
3339 if test -n "$CC"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3341 $as_echo "$CC" >&6; }
3342 else
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 fi
3346
3347
3348 fi
3349 if test -z "$CC"; then
3350 if test -n "$ac_tool_prefix"; then
3351 for ac_prog in cl.exe
3352 do
3353 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3354 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3356 $as_echo_n "checking for $ac_word... " >&6; }
3357 if ${ac_cv_prog_CC+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 if test -n "$CC"; then
3361 ac_cv_prog_CC="$CC" # Let the user override the test.
3362 else
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3364 for as_dir in $PATH
3365 do
3366 IFS=$as_save_IFS
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3372 break 2
3373 fi
3374 done
3375 done
3376 IFS=$as_save_IFS
3377
3378 fi
3379 fi
3380 CC=$ac_cv_prog_CC
3381 if test -n "$CC"; then
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3383 $as_echo "$CC" >&6; }
3384 else
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3386 $as_echo "no" >&6; }
3387 fi
3388
3389
3390 test -n "$CC" && break
3391 done
3392 fi
3393 if test -z "$CC"; then
3394 ac_ct_CC=$CC
3395 for ac_prog in cl.exe
3396 do
3397 # Extract the first word of "$ac_prog", so it can be a program name with args.
3398 set dummy $ac_prog; ac_word=$2
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3400 $as_echo_n "checking for $ac_word... " >&6; }
3401 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3402 $as_echo_n "(cached) " >&6
3403 else
3404 if test -n "$ac_ct_CC"; then
3405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3406 else
3407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3408 for as_dir in $PATH
3409 do
3410 IFS=$as_save_IFS
3411 test -z "$as_dir" && as_dir=.
3412 for ac_exec_ext in '' $ac_executable_extensions; do
3413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3414 ac_cv_prog_ac_ct_CC="$ac_prog"
3415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 break 2
3417 fi
3418 done
3419 done
3420 IFS=$as_save_IFS
3421
3422 fi
3423 fi
3424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3425 if test -n "$ac_ct_CC"; then
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3427 $as_echo "$ac_ct_CC" >&6; }
3428 else
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3430 $as_echo "no" >&6; }
3431 fi
3432
3433
3434 test -n "$ac_ct_CC" && break
3435 done
3436
3437 if test "x$ac_ct_CC" = x; then
3438 CC=""
3439 else
3440 case $cross_compiling:$ac_tool_warned in
3441 yes:)
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3444 ac_tool_warned=yes ;;
3445 esac
3446 CC=$ac_ct_CC
3447 fi
3448 fi
3449
3450 fi
3451
3452
3453 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error $? "no acceptable C compiler found in \$PATH
3456 See \`config.log' for more details" "$LINENO" 5; }
3457
3458 # Provide some information about the compiler.
3459 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3460 set X $ac_compile
3461 ac_compiler=$2
3462 for ac_option in --version -v -V -qversion; do
3463 { { ac_try="$ac_compiler $ac_option >&5"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3469 $as_echo "$ac_try_echo"; } >&5
3470 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3471 ac_status=$?
3472 if test -s conftest.err; then
3473 sed '10a\
3474 ... rest of stderr output deleted ...
3475 10q' conftest.err >conftest.er1
3476 cat conftest.er1 >&5
3477 fi
3478 rm -f conftest.er1 conftest.err
3479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3480 test $ac_status = 0; }
3481 done
3482
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3485
3486 int
3487 main ()
3488 {
3489
3490 ;
3491 return 0;
3492 }
3493 _ACEOF
3494 ac_clean_files_save=$ac_clean_files
3495 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3496 # Try to create an executable without -o first, disregard a.out.
3497 # It will help us diagnose broken compilers, and finding out an intuition
3498 # of exeext.
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3500 $as_echo_n "checking whether the C compiler works... " >&6; }
3501 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3502
3503 # The possible output files:
3504 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3505
3506 ac_rmfiles=
3507 for ac_file in $ac_files
3508 do
3509 case $ac_file in
3510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3511 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3512 esac
3513 done
3514 rm -f $ac_rmfiles
3515
3516 if { { ac_try="$ac_link_default"
3517 case "(($ac_try" in
3518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3520 esac
3521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3522 $as_echo "$ac_try_echo"; } >&5
3523 (eval "$ac_link_default") 2>&5
3524 ac_status=$?
3525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3526 test $ac_status = 0; }; then :
3527 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3528 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3529 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3530 # so that the user can short-circuit this test for compilers unknown to
3531 # Autoconf.
3532 for ac_file in $ac_files ''
3533 do
3534 test -f "$ac_file" || continue
3535 case $ac_file in
3536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3537 ;;
3538 [ab].out )
3539 # We found the default executable, but exeext='' is most
3540 # certainly right.
3541 break;;
3542 *.* )
3543 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3544 then :; else
3545 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3546 fi
3547 # We set ac_cv_exeext here because the later test for it is not
3548 # safe: cross compilers may not add the suffix if given an `-o'
3549 # argument, so we may need to know it at that point already.
3550 # Even if this section looks crufty: it has the advantage of
3551 # actually working.
3552 break;;
3553 * )
3554 break;;
3555 esac
3556 done
3557 test "$ac_cv_exeext" = no && ac_cv_exeext=
3558
3559 else
3560 ac_file=''
3561 fi
3562 if test -z "$ac_file"; then :
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3564 $as_echo "no" >&6; }
3565 $as_echo "$as_me: failed program was:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3567
3568 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3569 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3570 as_fn_error 77 "C compiler cannot create executables
3571 See \`config.log' for more details" "$LINENO" 5; }
3572 else
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3574 $as_echo "yes" >&6; }
3575 fi
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3577 $as_echo_n "checking for C compiler default output file name... " >&6; }
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3579 $as_echo "$ac_file" >&6; }
3580 ac_exeext=$ac_cv_exeext
3581
3582 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3583 ac_clean_files=$ac_clean_files_save
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3585 $as_echo_n "checking for suffix of executables... " >&6; }
3586 if { { ac_try="$ac_link"
3587 case "(($ac_try" in
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3590 esac
3591 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_link") 2>&5
3594 ac_status=$?
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }; then :
3597 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3598 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3599 # work properly (i.e., refer to `conftest.exe'), while it won't with
3600 # `rm'.
3601 for ac_file in conftest.exe conftest conftest.*; do
3602 test -f "$ac_file" || continue
3603 case $ac_file in
3604 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3605 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3606 break;;
3607 * ) break;;
3608 esac
3609 done
3610 else
3611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3612 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3613 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3614 See \`config.log' for more details" "$LINENO" 5; }
3615 fi
3616 rm -f conftest conftest$ac_cv_exeext
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3618 $as_echo "$ac_cv_exeext" >&6; }
3619
3620 rm -f conftest.$ac_ext
3621 EXEEXT=$ac_cv_exeext
3622 ac_exeext=$EXEEXT
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3625 #include <stdio.h>
3626 int
3627 main ()
3628 {
3629 FILE *f = fopen ("conftest.out", "w");
3630 return ferror (f) || fclose (f) != 0;
3631
3632 ;
3633 return 0;
3634 }
3635 _ACEOF
3636 ac_clean_files="$ac_clean_files conftest.out"
3637 # Check that the compiler produces executables we can run. If not, either
3638 # the compiler is broken, or we cross compile.
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3640 $as_echo_n "checking whether we are cross compiling... " >&6; }
3641 if test "$cross_compiling" != yes; then
3642 { { ac_try="$ac_link"
3643 case "(($ac_try" in
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3646 esac
3647 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3648 $as_echo "$ac_try_echo"; } >&5
3649 (eval "$ac_link") 2>&5
3650 ac_status=$?
3651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3652 test $ac_status = 0; }
3653 if { ac_try='./conftest$ac_cv_exeext'
3654 { { case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3659 $as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_try") 2>&5
3661 ac_status=$?
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }; }; then
3664 cross_compiling=no
3665 else
3666 if test "$cross_compiling" = maybe; then
3667 cross_compiling=yes
3668 else
3669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3670 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3671 as_fn_error $? "cannot run C compiled programs.
3672 If you meant to cross compile, use \`--host'.
3673 See \`config.log' for more details" "$LINENO" 5; }
3674 fi
3675 fi
3676 fi
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3678 $as_echo "$cross_compiling" >&6; }
3679
3680 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3681 ac_clean_files=$ac_clean_files_save
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3683 $as_echo_n "checking for suffix of object files... " >&6; }
3684 if ${ac_cv_objext+:} false; then :
3685 $as_echo_n "(cached) " >&6
3686 else
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689
3690 int
3691 main ()
3692 {
3693
3694 ;
3695 return 0;
3696 }
3697 _ACEOF
3698 rm -f conftest.o conftest.obj
3699 if { { ac_try="$ac_compile"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_compile") 2>&5
3707 ac_status=$?
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }; then :
3710 for ac_file in conftest.o conftest.obj conftest.*; do
3711 test -f "$ac_file" || continue;
3712 case $ac_file in
3713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3714 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3715 break;;
3716 esac
3717 done
3718 else
3719 $as_echo "$as_me: failed program was:" >&5
3720 sed 's/^/| /' conftest.$ac_ext >&5
3721
3722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 as_fn_error $? "cannot compute suffix of object files: cannot compile
3725 See \`config.log' for more details" "$LINENO" 5; }
3726 fi
3727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3728 fi
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3730 $as_echo "$ac_cv_objext" >&6; }
3731 OBJEXT=$ac_cv_objext
3732 ac_objext=$OBJEXT
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3734 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3735 if ${ac_cv_c_compiler_gnu+:} false; then :
3736 $as_echo_n "(cached) " >&6
3737 else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740
3741 int
3742 main ()
3743 {
3744 #ifndef __GNUC__
3745 choke me
3746 #endif
3747
3748 ;
3749 return 0;
3750 }
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_compiler_gnu=yes
3754 else
3755 ac_compiler_gnu=no
3756 fi
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3759
3760 fi
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3762 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3763 if test $ac_compiler_gnu = yes; then
3764 GCC=yes
3765 else
3766 GCC=
3767 fi
3768 ac_test_CFLAGS=${CFLAGS+set}
3769 ac_save_CFLAGS=$CFLAGS
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3771 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3772 if ${ac_cv_prog_cc_g+:} false; then :
3773 $as_echo_n "(cached) " >&6
3774 else
3775 ac_save_c_werror_flag=$ac_c_werror_flag
3776 ac_c_werror_flag=yes
3777 ac_cv_prog_cc_g=no
3778 CFLAGS="-g"
3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3780 /* end confdefs.h. */
3781
3782 int
3783 main ()
3784 {
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 if ac_fn_c_try_compile "$LINENO"; then :
3791 ac_cv_prog_cc_g=yes
3792 else
3793 CFLAGS=""
3794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3795 /* end confdefs.h. */
3796
3797 int
3798 main ()
3799 {
3800
3801 ;
3802 return 0;
3803 }
3804 _ACEOF
3805 if ac_fn_c_try_compile "$LINENO"; then :
3806
3807 else
3808 ac_c_werror_flag=$ac_save_c_werror_flag
3809 CFLAGS="-g"
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812
3813 int
3814 main ()
3815 {
3816
3817 ;
3818 return 0;
3819 }
3820 _ACEOF
3821 if ac_fn_c_try_compile "$LINENO"; then :
3822 ac_cv_prog_cc_g=yes
3823 fi
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3827 fi
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_c_werror_flag=$ac_save_c_werror_flag
3830 fi
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3832 $as_echo "$ac_cv_prog_cc_g" >&6; }
3833 if test "$ac_test_CFLAGS" = set; then
3834 CFLAGS=$ac_save_CFLAGS
3835 elif test $ac_cv_prog_cc_g = yes; then
3836 if test "$GCC" = yes; then
3837 CFLAGS="-g -O2"
3838 else
3839 CFLAGS="-g"
3840 fi
3841 else
3842 if test "$GCC" = yes; then
3843 CFLAGS="-O2"
3844 else
3845 CFLAGS=
3846 fi
3847 fi
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3849 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3850 if ${ac_cv_prog_cc_c89+:} false; then :
3851 $as_echo_n "(cached) " >&6
3852 else
3853 ac_cv_prog_cc_c89=no
3854 ac_save_CC=$CC
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #include <stdarg.h>
3858 #include <stdio.h>
3859 struct stat;
3860 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3861 struct buf { int x; };
3862 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3863 static char *e (p, i)
3864 char **p;
3865 int i;
3866 {
3867 return p[i];
3868 }
3869 static char *f (char * (*g) (char **, int), char **p, ...)
3870 {
3871 char *s;
3872 va_list v;
3873 va_start (v,p);
3874 s = g (p, va_arg (v,int));
3875 va_end (v);
3876 return s;
3877 }
3878
3879 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3880 function prototypes and stuff, but not '\xHH' hex character constants.
3881 These don't provoke an error unfortunately, instead are silently treated
3882 as 'x'. The following induces an error, until -std is added to get
3883 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3884 array size at least. It's necessary to write '\x00'==0 to get something
3885 that's true only with -std. */
3886 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3887
3888 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3889 inside strings and character constants. */
3890 #define FOO(x) 'x'
3891 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3892
3893 int test (int i, double x);
3894 struct s1 {int (*f) (int a);};
3895 struct s2 {int (*f) (double a);};
3896 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3897 int argc;
3898 char **argv;
3899 int
3900 main ()
3901 {
3902 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3908 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3909 do
3910 CC="$ac_save_CC $ac_arg"
3911 if ac_fn_c_try_compile "$LINENO"; then :
3912 ac_cv_prog_cc_c89=$ac_arg
3913 fi
3914 rm -f core conftest.err conftest.$ac_objext
3915 test "x$ac_cv_prog_cc_c89" != "xno" && break
3916 done
3917 rm -f conftest.$ac_ext
3918 CC=$ac_save_CC
3919
3920 fi
3921 # AC_CACHE_VAL
3922 case "x$ac_cv_prog_cc_c89" in
3923 x)
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3925 $as_echo "none needed" >&6; } ;;
3926 xno)
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3928 $as_echo "unsupported" >&6; } ;;
3929 *)
3930 CC="$CC $ac_cv_prog_cc_c89"
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3932 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3933 esac
3934 if test "x$ac_cv_prog_cc_c89" != xno; then :
3935
3936 fi
3937
3938 ac_ext=c
3939 ac_cpp='$CPP $CPPFLAGS'
3940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3943
3944 ac_ext=c
3945 ac_cpp='$CPP $CPPFLAGS'
3946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3950 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3951 if ${am_cv_prog_cc_c_o+:} false; then :
3952 $as_echo_n "(cached) " >&6
3953 else
3954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 /* end confdefs.h. */
3956
3957 int
3958 main ()
3959 {
3960
3961 ;
3962 return 0;
3963 }
3964 _ACEOF
3965 # Make sure it works both with $CC and with simple cc.
3966 # Following AC_PROG_CC_C_O, we do the test twice because some
3967 # compilers refuse to overwrite an existing .o file with -o,
3968 # though they will create one.
3969 am_cv_prog_cc_c_o=yes
3970 for am_i in 1 2; do
3971 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3972 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3973 ac_status=$?
3974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 (exit $ac_status); } \
3976 && test -f conftest2.$ac_objext; then
3977 : OK
3978 else
3979 am_cv_prog_cc_c_o=no
3980 break
3981 fi
3982 done
3983 rm -f core conftest*
3984 unset am_i
3985 fi
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3987 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3988 if test "$am_cv_prog_cc_c_o" != yes; then
3989 # Losing compiler, so override with the script.
3990 # FIXME: It is wrong to rewrite CC.
3991 # But if we don't then we get into trouble of one sort or another.
3992 # A longer-term fix would be to have automake use am__CC in this case,
3993 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3994 CC="$am_aux_dir/compile $CC"
3995 fi
3996 ac_ext=c
3997 ac_cpp='$CPP $CPPFLAGS'
3998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4001
4002
4003 depcc="$CC" am_compiler_list=
4004
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4006 $as_echo_n "checking dependency style of $depcc... " >&6; }
4007 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4011 # We make a subdir and do the tests there. Otherwise we can end up
4012 # making bogus files that we don't know about and never remove. For
4013 # instance it was reported that on HP-UX the gcc test will end up
4014 # making a dummy file named 'D' -- because '-MD' means "put the output
4015 # in D".
4016 rm -rf conftest.dir
4017 mkdir conftest.dir
4018 # Copy depcomp to subdir because otherwise we won't find it if we're
4019 # using a relative directory.
4020 cp "$am_depcomp" conftest.dir
4021 cd conftest.dir
4022 # We will build objects and dependencies in a subdirectory because
4023 # it helps to detect inapplicable dependency modes. For instance
4024 # both Tru64's cc and ICC support -MD to output dependencies as a
4025 # side effect of compilation, but ICC will put the dependencies in
4026 # the current directory while Tru64 will put them in the object
4027 # directory.
4028 mkdir sub
4029
4030 am_cv_CC_dependencies_compiler_type=none
4031 if test "$am_compiler_list" = ""; then
4032 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4033 fi
4034 am__universal=false
4035 case " $depcc " in #(
4036 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4037 esac
4038
4039 for depmode in $am_compiler_list; do
4040 # Setup a source with many dependencies, because some compilers
4041 # like to wrap large dependency lists on column 80 (with \), and
4042 # we should not choose a depcomp mode which is confused by this.
4043 #
4044 # We need to recreate these files for each test, as the compiler may
4045 # overwrite some of them when testing with obscure command lines.
4046 # This happens at least with the AIX C compiler.
4047 : > sub/conftest.c
4048 for i in 1 2 3 4 5 6; do
4049 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4050 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4051 # Solaris 10 /bin/sh.
4052 echo '/* dummy */' > sub/conftst$i.h
4053 done
4054 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4055
4056 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4057 # mode. It turns out that the SunPro C++ compiler does not properly
4058 # handle '-M -o', and we need to detect this. Also, some Intel
4059 # versions had trouble with output in subdirs.
4060 am__obj=sub/conftest.${OBJEXT-o}
4061 am__minus_obj="-o $am__obj"
4062 case $depmode in
4063 gcc)
4064 # This depmode causes a compiler race in universal mode.
4065 test "$am__universal" = false || continue
4066 ;;
4067 nosideeffect)
4068 # After this tag, mechanisms are not by side-effect, so they'll
4069 # only be used when explicitly requested.
4070 if test "x$enable_dependency_tracking" = xyes; then
4071 continue
4072 else
4073 break
4074 fi
4075 ;;
4076 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4077 # This compiler won't grok '-c -o', but also, the minuso test has
4078 # not run yet. These depmodes are late enough in the game, and
4079 # so weak that their functioning should not be impacted.
4080 am__obj=conftest.${OBJEXT-o}
4081 am__minus_obj=
4082 ;;
4083 none) break ;;
4084 esac
4085 if depmode=$depmode \
4086 source=sub/conftest.c object=$am__obj \
4087 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4088 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4089 >/dev/null 2>conftest.err &&
4090 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4091 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4092 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4093 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4094 # icc doesn't choke on unknown options, it will just issue warnings
4095 # or remarks (even with -Werror). So we grep stderr for any message
4096 # that says an option was ignored or not supported.
4097 # When given -MP, icc 7.0 and 7.1 complain thusly:
4098 # icc: Command line warning: ignoring option '-M'; no argument required
4099 # The diagnosis changed in icc 8.0:
4100 # icc: Command line remark: option '-MP' not supported
4101 if (grep 'ignoring option' conftest.err ||
4102 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4103 am_cv_CC_dependencies_compiler_type=$depmode
4104 break
4105 fi
4106 fi
4107 done
4108
4109 cd ..
4110 rm -rf conftest.dir
4111 else
4112 am_cv_CC_dependencies_compiler_type=none
4113 fi
4114
4115 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4117 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4118 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4119
4120 if
4121 test "x$enable_dependency_tracking" != xno \
4122 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4123 am__fastdepCC_TRUE=
4124 am__fastdepCC_FALSE='#'
4125 else
4126 am__fastdepCC_TRUE='#'
4127 am__fastdepCC_FALSE=
4128 fi
4129
4130
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4132 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4133 if ${ac_cv_prog_cc_c99+:} false; then :
4134 $as_echo_n "(cached) " >&6
4135 else
4136 ac_cv_prog_cc_c99=no
4137 ac_save_CC=$CC
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4140 #include <stdarg.h>
4141 #include <stdbool.h>
4142 #include <stdlib.h>
4143 #include <wchar.h>
4144 #include <stdio.h>
4145
4146 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4147 #define debug(...) fprintf (stderr, __VA_ARGS__)
4148 #define showlist(...) puts (#__VA_ARGS__)
4149 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4150 static void
4151 test_varargs_macros (void)
4152 {
4153 int x = 1234;
4154 int y = 5678;
4155 debug ("Flag");
4156 debug ("X = %d\n", x);
4157 showlist (The first, second, and third items.);
4158 report (x>y, "x is %d but y is %d", x, y);
4159 }
4160
4161 // Check long long types.
4162 #define BIG64 18446744073709551615ull
4163 #define BIG32 4294967295ul
4164 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4165 #if !BIG_OK
4166 your preprocessor is broken;
4167 #endif
4168 #if BIG_OK
4169 #else
4170 your preprocessor is broken;
4171 #endif
4172 static long long int bignum = -9223372036854775807LL;
4173 static unsigned long long int ubignum = BIG64;
4174
4175 struct incomplete_array
4176 {
4177 int datasize;
4178 double data[];
4179 };
4180
4181 struct named_init {
4182 int number;
4183 const wchar_t *name;
4184 double average;
4185 };
4186
4187 typedef const char *ccp;
4188
4189 static inline int
4190 test_restrict (ccp restrict text)
4191 {
4192 // See if C++-style comments work.
4193 // Iterate through items via the restricted pointer.
4194 // Also check for declarations in for loops.
4195 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4196 continue;
4197 return 0;
4198 }
4199
4200 // Check varargs and va_copy.
4201 static void
4202 test_varargs (const char *format, ...)
4203 {
4204 va_list args;
4205 va_start (args, format);
4206 va_list args_copy;
4207 va_copy (args_copy, args);
4208
4209 const char *str;
4210 int number;
4211 float fnumber;
4212
4213 while (*format)
4214 {
4215 switch (*format++)
4216 {
4217 case 's': // string
4218 str = va_arg (args_copy, const char *);
4219 break;
4220 case 'd': // int
4221 number = va_arg (args_copy, int);
4222 break;
4223 case 'f': // float
4224 fnumber = va_arg (args_copy, double);
4225 break;
4226 default:
4227 break;
4228 }
4229 }
4230 va_end (args_copy);
4231 va_end (args);
4232 }
4233
4234 int
4235 main ()
4236 {
4237
4238 // Check bool.
4239 _Bool success = false;
4240
4241 // Check restrict.
4242 if (test_restrict ("String literal") == 0)
4243 success = true;
4244 char *restrict newvar = "Another string";
4245
4246 // Check varargs.
4247 test_varargs ("s, d' f .", "string", 65, 34.234);
4248 test_varargs_macros ();
4249
4250 // Check flexible array members.
4251 struct incomplete_array *ia =
4252 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4253 ia->datasize = 10;
4254 for (int i = 0; i < ia->datasize; ++i)
4255 ia->data[i] = i * 1.234;
4256
4257 // Check named initializers.
4258 struct named_init ni = {
4259 .number = 34,
4260 .name = L"Test wide string",
4261 .average = 543.34343,
4262 };
4263
4264 ni.number = 58;
4265
4266 int dynamic_array[ni.number];
4267 dynamic_array[ni.number - 1] = 543;
4268
4269 // work around unused variable warnings
4270 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4271 || dynamic_array[ni.number - 1] != 543);
4272
4273 ;
4274 return 0;
4275 }
4276 _ACEOF
4277 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4278 do
4279 CC="$ac_save_CC $ac_arg"
4280 if ac_fn_c_try_compile "$LINENO"; then :
4281 ac_cv_prog_cc_c99=$ac_arg
4282 fi
4283 rm -f core conftest.err conftest.$ac_objext
4284 test "x$ac_cv_prog_cc_c99" != "xno" && break
4285 done
4286 rm -f conftest.$ac_ext
4287 CC=$ac_save_CC
4288
4289 fi
4290 # AC_CACHE_VAL
4291 case "x$ac_cv_prog_cc_c99" in
4292 x)
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4294 $as_echo "none needed" >&6; } ;;
4295 xno)
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4297 $as_echo "unsupported" >&6; } ;;
4298 *)
4299 CC="$CC $ac_cv_prog_cc_c99"
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4301 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4302 esac
4303 if test "x$ac_cv_prog_cc_c99" != xno; then :
4304
4305 fi
4306
4307
4308 if test "$ac_cv_prog_cc_c99" = "no"; then :
4309 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4310 fi
4311 for ac_prog in 'bison -y' byacc
4312 do
4313 # Extract the first word of "$ac_prog", so it can be a program name with args.
4314 set dummy $ac_prog; ac_word=$2
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4316 $as_echo_n "checking for $ac_word... " >&6; }
4317 if ${ac_cv_prog_YACC+:} false; then :
4318 $as_echo_n "(cached) " >&6
4319 else
4320 if test -n "$YACC"; then
4321 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4322 else
4323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324 for as_dir in $PATH
4325 do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
4328 for ac_exec_ext in '' $ac_executable_extensions; do
4329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4330 ac_cv_prog_YACC="$ac_prog"
4331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4332 break 2
4333 fi
4334 done
4335 done
4336 IFS=$as_save_IFS
4337
4338 fi
4339 fi
4340 YACC=$ac_cv_prog_YACC
4341 if test -n "$YACC"; then
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4343 $as_echo "$YACC" >&6; }
4344 else
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4346 $as_echo "no" >&6; }
4347 fi
4348
4349
4350 test -n "$YACC" && break
4351 done
4352 test -n "$YACC" || YACC="yacc"
4353
4354
4355 for ac_prog in flex lex
4356 do
4357 # Extract the first word of "$ac_prog", so it can be a program name with args.
4358 set dummy $ac_prog; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_prog_LEX+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 if test -n "$LEX"; then
4365 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374 ac_cv_prog_LEX="$ac_prog"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4377 fi
4378 done
4379 done
4380 IFS=$as_save_IFS
4381
4382 fi
4383 fi
4384 LEX=$ac_cv_prog_LEX
4385 if test -n "$LEX"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4387 $as_echo "$LEX" >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4391 fi
4392
4393
4394 test -n "$LEX" && break
4395 done
4396 test -n "$LEX" || LEX=":"
4397
4398 if test "x$LEX" != "x:"; then
4399 cat >conftest.l <<_ACEOF
4400 %%
4401 a { ECHO; }
4402 b { REJECT; }
4403 c { yymore (); }
4404 d { yyless (1); }
4405 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4406 yyless ((input () != 0)); }
4407 f { unput (yytext[0]); }
4408 . { BEGIN INITIAL; }
4409 %%
4410 #ifdef YYTEXT_POINTER
4411 extern char *yytext;
4412 #endif
4413 int
4414 main (void)
4415 {
4416 return ! yylex () + ! yywrap ();
4417 }
4418 _ACEOF
4419 { { ac_try="$LEX conftest.l"
4420 case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$LEX conftest.l") 2>&5
4427 ac_status=$?
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4431 $as_echo_n "checking lex output file root... " >&6; }
4432 if ${ac_cv_prog_lex_root+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435
4436 if test -f lex.yy.c; then
4437 ac_cv_prog_lex_root=lex.yy
4438 elif test -f lexyy.c; then
4439 ac_cv_prog_lex_root=lexyy
4440 else
4441 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4442 fi
4443 fi
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4445 $as_echo "$ac_cv_prog_lex_root" >&6; }
4446 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4447
4448 if test -z "${LEXLIB+set}"; then
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4450 $as_echo_n "checking lex library... " >&6; }
4451 if ${ac_cv_lib_lex+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453 else
4454
4455 ac_save_LIBS=$LIBS
4456 ac_cv_lib_lex='none needed'
4457 for ac_lib in '' -lfl -ll; do
4458 LIBS="$ac_lib $ac_save_LIBS"
4459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4460 /* end confdefs.h. */
4461 `cat $LEX_OUTPUT_ROOT.c`
4462 _ACEOF
4463 if ac_fn_c_try_link "$LINENO"; then :
4464 ac_cv_lib_lex=$ac_lib
4465 fi
4466 rm -f core conftest.err conftest.$ac_objext \
4467 conftest$ac_exeext conftest.$ac_ext
4468 test "$ac_cv_lib_lex" != 'none needed' && break
4469 done
4470 LIBS=$ac_save_LIBS
4471
4472 fi
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4474 $as_echo "$ac_cv_lib_lex" >&6; }
4475 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4476 fi
4477
4478
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4480 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4481 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 # POSIX says lex can declare yytext either as a pointer or an array; the
4485 # default is implementation-dependent. Figure out which it is, since
4486 # not all implementations provide the %pointer and %array declarations.
4487 ac_cv_prog_lex_yytext_pointer=no
4488 ac_save_LIBS=$LIBS
4489 LIBS="$LEXLIB $ac_save_LIBS"
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492
4493 #define YYTEXT_POINTER 1
4494 `cat $LEX_OUTPUT_ROOT.c`
4495 _ACEOF
4496 if ac_fn_c_try_link "$LINENO"; then :
4497 ac_cv_prog_lex_yytext_pointer=yes
4498 fi
4499 rm -f core conftest.err conftest.$ac_objext \
4500 conftest$ac_exeext conftest.$ac_ext
4501 LIBS=$ac_save_LIBS
4502
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4505 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4506 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4507
4508 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4509
4510 fi
4511 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4512
4513 fi
4514 if test "$LEX" = :; then
4515 LEX=${am_missing_run}flex
4516 fi
4517
4518
4519 # Initializing libtool.
4520
4521
4522
4523
4524
4525
4526
4527 case `pwd` in
4528 *\ * | *\ *)
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4530 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4531 esac
4532
4533
4534
4535 macro_version='2.4.2'
4536 macro_revision='1.3337'
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550 ltmain="$ac_aux_dir/ltmain.sh"
4551
4552 # Make sure we can run config.sub.
4553 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4554 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4555
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4557 $as_echo_n "checking build system type... " >&6; }
4558 if ${ac_cv_build+:} false; then :
4559 $as_echo_n "(cached) " >&6
4560 else
4561 ac_build_alias=$build_alias
4562 test "x$ac_build_alias" = x &&
4563 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4564 test "x$ac_build_alias" = x &&
4565 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4566 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4567 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4568
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4571 $as_echo "$ac_cv_build" >&6; }
4572 case $ac_cv_build in
4573 *-*-*) ;;
4574 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4575 esac
4576 build=$ac_cv_build
4577 ac_save_IFS=$IFS; IFS='-'
4578 set x $ac_cv_build
4579 shift
4580 build_cpu=$1
4581 build_vendor=$2
4582 shift; shift
4583 # Remember, the first character of IFS is used to create $*,
4584 # except with old shells:
4585 build_os=$*
4586 IFS=$ac_save_IFS
4587 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4588
4589
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4591 $as_echo_n "checking host system type... " >&6; }
4592 if ${ac_cv_host+:} false; then :
4593 $as_echo_n "(cached) " >&6
4594 else
4595 if test "x$host_alias" = x; then
4596 ac_cv_host=$ac_cv_build
4597 else
4598 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4599 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4600 fi
4601
4602 fi
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4604 $as_echo "$ac_cv_host" >&6; }
4605 case $ac_cv_host in
4606 *-*-*) ;;
4607 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4608 esac
4609 host=$ac_cv_host
4610 ac_save_IFS=$IFS; IFS='-'
4611 set x $ac_cv_host
4612 shift
4613 host_cpu=$1
4614 host_vendor=$2
4615 shift; shift
4616 # Remember, the first character of IFS is used to create $*,
4617 # except with old shells:
4618 host_os=$*
4619 IFS=$ac_save_IFS
4620 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4621
4622
4623 # Backslashify metacharacters that are still active within
4624 # double-quoted strings.
4625 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4626
4627 # Same as above, but do not quote variable references.
4628 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4629
4630 # Sed substitution to delay expansion of an escaped shell variable in a
4631 # double_quote_subst'ed string.
4632 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4633
4634 # Sed substitution to delay expansion of an escaped single quote.
4635 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4636
4637 # Sed substitution to avoid accidental globbing in evaled expressions
4638 no_glob_subst='s/\*/\\\*/g'
4639
4640 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4641 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4642 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4643
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4645 $as_echo_n "checking how to print strings... " >&6; }
4646 # Test print first, because it will be a builtin if present.
4647 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4648 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4649 ECHO='print -r --'
4650 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4651 ECHO='printf %s\n'
4652 else
4653 # Use this function as a fallback that always works.
4654 func_fallback_echo ()
4655 {
4656 eval 'cat <<_LTECHO_EOF
4657 $1
4658 _LTECHO_EOF'
4659 }
4660 ECHO='func_fallback_echo'
4661 fi
4662
4663 # func_echo_all arg...
4664 # Invoke $ECHO with all args, space-separated.
4665 func_echo_all ()
4666 {
4667 $ECHO ""
4668 }
4669
4670 case "$ECHO" in
4671 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4672 $as_echo "printf" >&6; } ;;
4673 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4674 $as_echo "print -r" >&6; } ;;
4675 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4676 $as_echo "cat" >&6; } ;;
4677 esac
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4693 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4694 if ${ac_cv_path_SED+:} false; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4698 for ac_i in 1 2 3 4 5 6 7; do
4699 ac_script="$ac_script$as_nl$ac_script"
4700 done
4701 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4702 { ac_script=; unset ac_script;}
4703 if test -z "$SED"; then
4704 ac_path_SED_found=false
4705 # Loop through the user's path and test for each of PROGNAME-LIST
4706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4707 for as_dir in $PATH
4708 do
4709 IFS=$as_save_IFS
4710 test -z "$as_dir" && as_dir=.
4711 for ac_prog in sed gsed; do
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4714 as_fn_executable_p "$ac_path_SED" || continue
4715 # Check for GNU ac_path_SED and select it if it is found.
4716 # Check for GNU $ac_path_SED
4717 case `"$ac_path_SED" --version 2>&1` in
4718 *GNU*)
4719 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4720 *)
4721 ac_count=0
4722 $as_echo_n 0123456789 >"conftest.in"
4723 while :
4724 do
4725 cat "conftest.in" "conftest.in" >"conftest.tmp"
4726 mv "conftest.tmp" "conftest.in"
4727 cp "conftest.in" "conftest.nl"
4728 $as_echo '' >> "conftest.nl"
4729 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4731 as_fn_arith $ac_count + 1 && ac_count=$as_val
4732 if test $ac_count -gt ${ac_path_SED_max-0}; then
4733 # Best one so far, save it but keep looking for a better one
4734 ac_cv_path_SED="$ac_path_SED"
4735 ac_path_SED_max=$ac_count
4736 fi
4737 # 10*(2^10) chars as input seems more than enough
4738 test $ac_count -gt 10 && break
4739 done
4740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4741 esac
4742
4743 $ac_path_SED_found && break 3
4744 done
4745 done
4746 done
4747 IFS=$as_save_IFS
4748 if test -z "$ac_cv_path_SED"; then
4749 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4750 fi
4751 else
4752 ac_cv_path_SED=$SED
4753 fi
4754
4755 fi
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4757 $as_echo "$ac_cv_path_SED" >&6; }
4758 SED="$ac_cv_path_SED"
4759 rm -f conftest.sed
4760
4761 test -z "$SED" && SED=sed
4762 Xsed="$SED -e 1s/^X//"
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4775 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4776 if ${ac_cv_path_GREP+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 if test -z "$GREP"; then
4780 ac_path_GREP_found=false
4781 # Loop through the user's path and test for each of PROGNAME-LIST
4782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4784 do
4785 IFS=$as_save_IFS
4786 test -z "$as_dir" && as_dir=.
4787 for ac_prog in grep ggrep; do
4788 for ac_exec_ext in '' $ac_executable_extensions; do
4789 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4790 as_fn_executable_p "$ac_path_GREP" || continue
4791 # Check for GNU ac_path_GREP and select it if it is found.
4792 # Check for GNU $ac_path_GREP
4793 case `"$ac_path_GREP" --version 2>&1` in
4794 *GNU*)
4795 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4796 *)
4797 ac_count=0
4798 $as_echo_n 0123456789 >"conftest.in"
4799 while :
4800 do
4801 cat "conftest.in" "conftest.in" >"conftest.tmp"
4802 mv "conftest.tmp" "conftest.in"
4803 cp "conftest.in" "conftest.nl"
4804 $as_echo 'GREP' >> "conftest.nl"
4805 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4806 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4807 as_fn_arith $ac_count + 1 && ac_count=$as_val
4808 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4809 # Best one so far, save it but keep looking for a better one
4810 ac_cv_path_GREP="$ac_path_GREP"
4811 ac_path_GREP_max=$ac_count
4812 fi
4813 # 10*(2^10) chars as input seems more than enough
4814 test $ac_count -gt 10 && break
4815 done
4816 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4817 esac
4818
4819 $ac_path_GREP_found && break 3
4820 done
4821 done
4822 done
4823 IFS=$as_save_IFS
4824 if test -z "$ac_cv_path_GREP"; then
4825 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4826 fi
4827 else
4828 ac_cv_path_GREP=$GREP
4829 fi
4830
4831 fi
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4833 $as_echo "$ac_cv_path_GREP" >&6; }
4834 GREP="$ac_cv_path_GREP"
4835
4836
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4838 $as_echo_n "checking for egrep... " >&6; }
4839 if ${ac_cv_path_EGREP+:} false; then :
4840 $as_echo_n "(cached) " >&6
4841 else
4842 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4843 then ac_cv_path_EGREP="$GREP -E"
4844 else
4845 if test -z "$EGREP"; then
4846 ac_path_EGREP_found=false
4847 # Loop through the user's path and test for each of PROGNAME-LIST
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4850 do
4851 IFS=$as_save_IFS
4852 test -z "$as_dir" && as_dir=.
4853 for ac_prog in egrep; do
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4856 as_fn_executable_p "$ac_path_EGREP" || continue
4857 # Check for GNU ac_path_EGREP and select it if it is found.
4858 # Check for GNU $ac_path_EGREP
4859 case `"$ac_path_EGREP" --version 2>&1` in
4860 *GNU*)
4861 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4862 *)
4863 ac_count=0
4864 $as_echo_n 0123456789 >"conftest.in"
4865 while :
4866 do
4867 cat "conftest.in" "conftest.in" >"conftest.tmp"
4868 mv "conftest.tmp" "conftest.in"
4869 cp "conftest.in" "conftest.nl"
4870 $as_echo 'EGREP' >> "conftest.nl"
4871 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4872 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4873 as_fn_arith $ac_count + 1 && ac_count=$as_val
4874 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4875 # Best one so far, save it but keep looking for a better one
4876 ac_cv_path_EGREP="$ac_path_EGREP"
4877 ac_path_EGREP_max=$ac_count
4878 fi
4879 # 10*(2^10) chars as input seems more than enough
4880 test $ac_count -gt 10 && break
4881 done
4882 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4883 esac
4884
4885 $ac_path_EGREP_found && break 3
4886 done
4887 done
4888 done
4889 IFS=$as_save_IFS
4890 if test -z "$ac_cv_path_EGREP"; then
4891 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4892 fi
4893 else
4894 ac_cv_path_EGREP=$EGREP
4895 fi
4896
4897 fi
4898 fi
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4900 $as_echo "$ac_cv_path_EGREP" >&6; }
4901 EGREP="$ac_cv_path_EGREP"
4902
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4905 $as_echo_n "checking for fgrep... " >&6; }
4906 if ${ac_cv_path_FGREP+:} false; then :
4907 $as_echo_n "(cached) " >&6
4908 else
4909 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4910 then ac_cv_path_FGREP="$GREP -F"
4911 else
4912 if test -z "$FGREP"; then
4913 ac_path_FGREP_found=false
4914 # Loop through the user's path and test for each of PROGNAME-LIST
4915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4917 do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_prog in fgrep; do
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4923 as_fn_executable_p "$ac_path_FGREP" || continue
4924 # Check for GNU ac_path_FGREP and select it if it is found.
4925 # Check for GNU $ac_path_FGREP
4926 case `"$ac_path_FGREP" --version 2>&1` in
4927 *GNU*)
4928 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4929 *)
4930 ac_count=0
4931 $as_echo_n 0123456789 >"conftest.in"
4932 while :
4933 do
4934 cat "conftest.in" "conftest.in" >"conftest.tmp"
4935 mv "conftest.tmp" "conftest.in"
4936 cp "conftest.in" "conftest.nl"
4937 $as_echo 'FGREP' >> "conftest.nl"
4938 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4939 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4940 as_fn_arith $ac_count + 1 && ac_count=$as_val
4941 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4942 # Best one so far, save it but keep looking for a better one
4943 ac_cv_path_FGREP="$ac_path_FGREP"
4944 ac_path_FGREP_max=$ac_count
4945 fi
4946 # 10*(2^10) chars as input seems more than enough
4947 test $ac_count -gt 10 && break
4948 done
4949 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4950 esac
4951
4952 $ac_path_FGREP_found && break 3
4953 done
4954 done
4955 done
4956 IFS=$as_save_IFS
4957 if test -z "$ac_cv_path_FGREP"; then
4958 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4959 fi
4960 else
4961 ac_cv_path_FGREP=$FGREP
4962 fi
4963
4964 fi
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4967 $as_echo "$ac_cv_path_FGREP" >&6; }
4968 FGREP="$ac_cv_path_FGREP"
4969
4970
4971 test -z "$GREP" && GREP=grep
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991 # Check whether --with-gnu-ld was given.
4992 if test "${with_gnu_ld+set}" = set; then :
4993 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4994 else
4995 with_gnu_ld=no
4996 fi
4997
4998 ac_prog=ld
4999 if test "$GCC" = yes; then
5000 # Check if gcc -print-prog-name=ld gives a path.
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5002 $as_echo_n "checking for ld used by $CC... " >&6; }
5003 case $host in
5004 *-*-mingw*)
5005 # gcc leaves a trailing carriage return which upsets mingw
5006 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5007 *)
5008 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5009 esac
5010 case $ac_prog in
5011 # Accept absolute paths.
5012 [\\/]* | ?:[\\/]*)
5013 re_direlt='/[^/][^/]*/\.\./'
5014 # Canonicalize the pathname of ld
5015 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5016 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5017 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5018 done
5019 test -z "$LD" && LD="$ac_prog"
5020 ;;
5021 "")
5022 # If it fails, then pretend we aren't using GCC.
5023 ac_prog=ld
5024 ;;
5025 *)
5026 # If it is relative, then search for the first ld in PATH.
5027 with_gnu_ld=unknown
5028 ;;
5029 esac
5030 elif test "$with_gnu_ld" = yes; then
5031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5032 $as_echo_n "checking for GNU ld... " >&6; }
5033 else
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5035 $as_echo_n "checking for non-GNU ld... " >&6; }
5036 fi
5037 if ${lt_cv_path_LD+:} false; then :
5038 $as_echo_n "(cached) " >&6
5039 else
5040 if test -z "$LD"; then
5041 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5042 for ac_dir in $PATH; do
5043 IFS="$lt_save_ifs"
5044 test -z "$ac_dir" && ac_dir=.
5045 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5046 lt_cv_path_LD="$ac_dir/$ac_prog"
5047 # Check to see if the program is GNU ld. I'd rather use --version,
5048 # but apparently some variants of GNU ld only accept -v.
5049 # Break only if it was the GNU/non-GNU ld that we prefer.
5050 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5051 *GNU* | *'with BFD'*)
5052 test "$with_gnu_ld" != no && break
5053 ;;
5054 *)
5055 test "$with_gnu_ld" != yes && break
5056 ;;
5057 esac
5058 fi
5059 done
5060 IFS="$lt_save_ifs"
5061 else
5062 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5063 fi
5064 fi
5065
5066 LD="$lt_cv_path_LD"
5067 if test -n "$LD"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5069 $as_echo "$LD" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5073 fi
5074 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5076 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5077 if ${lt_cv_prog_gnu_ld+:} false; then :
5078 $as_echo_n "(cached) " >&6
5079 else
5080 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5081 case `$LD -v 2>&1 </dev/null` in
5082 *GNU* | *'with BFD'*)
5083 lt_cv_prog_gnu_ld=yes
5084 ;;
5085 *)
5086 lt_cv_prog_gnu_ld=no
5087 ;;
5088 esac
5089 fi
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5091 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5092 with_gnu_ld=$lt_cv_prog_gnu_ld
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5103 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5104 if ${lt_cv_path_NM+:} false; then :
5105 $as_echo_n "(cached) " >&6
5106 else
5107 if test -n "$NM"; then
5108 # Let the user override the test.
5109 lt_cv_path_NM="$NM"
5110 else
5111 lt_nm_to_check="${ac_tool_prefix}nm"
5112 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5113 lt_nm_to_check="$lt_nm_to_check nm"
5114 fi
5115 for lt_tmp_nm in $lt_nm_to_check; do
5116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5117 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5118 IFS="$lt_save_ifs"
5119 test -z "$ac_dir" && ac_dir=.
5120 tmp_nm="$ac_dir/$lt_tmp_nm"
5121 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5122 # Check to see if the nm accepts a BSD-compat flag.
5123 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5124 # nm: unknown option "B" ignored
5125 # Tru64's nm complains that /dev/null is an invalid object file
5126 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5127 */dev/null* | *'Invalid file or object type'*)
5128 lt_cv_path_NM="$tmp_nm -B"
5129 break
5130 ;;
5131 *)
5132 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5133 */dev/null*)
5134 lt_cv_path_NM="$tmp_nm -p"
5135 break
5136 ;;
5137 *)
5138 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5139 continue # so that we can try to find one that supports BSD flags
5140 ;;
5141 esac
5142 ;;
5143 esac
5144 fi
5145 done
5146 IFS="$lt_save_ifs"
5147 done
5148 : ${lt_cv_path_NM=no}
5149 fi
5150 fi
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5152 $as_echo "$lt_cv_path_NM" >&6; }
5153 if test "$lt_cv_path_NM" != "no"; then
5154 NM="$lt_cv_path_NM"
5155 else
5156 # Didn't find any BSD compatible name lister, look for dumpbin.
5157 if test -n "$DUMPBIN"; then :
5158 # Let the user override the test.
5159 else
5160 if test -n "$ac_tool_prefix"; then
5161 for ac_prog in dumpbin "link -dump"
5162 do
5163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if ${ac_cv_prog_DUMPBIN+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$DUMPBIN"; then
5171 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5180 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5183 fi
5184 done
5185 done
5186 IFS=$as_save_IFS
5187
5188 fi
5189 fi
5190 DUMPBIN=$ac_cv_prog_DUMPBIN
5191 if test -n "$DUMPBIN"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5193 $as_echo "$DUMPBIN" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5197 fi
5198
5199
5200 test -n "$DUMPBIN" && break
5201 done
5202 fi
5203 if test -z "$DUMPBIN"; then
5204 ac_ct_DUMPBIN=$DUMPBIN
5205 for ac_prog in dumpbin "link -dump"
5206 do
5207 # Extract the first word of "$ac_prog", so it can be a program name with args.
5208 set dummy $ac_prog; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 if test -n "$ac_ct_DUMPBIN"; then
5215 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5219 do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5224 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228 done
5229 done
5230 IFS=$as_save_IFS
5231
5232 fi
5233 fi
5234 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5235 if test -n "$ac_ct_DUMPBIN"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5237 $as_echo "$ac_ct_DUMPBIN" >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5241 fi
5242
5243
5244 test -n "$ac_ct_DUMPBIN" && break
5245 done
5246
5247 if test "x$ac_ct_DUMPBIN" = x; then
5248 DUMPBIN=":"
5249 else
5250 case $cross_compiling:$ac_tool_warned in
5251 yes:)
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254 ac_tool_warned=yes ;;
5255 esac
5256 DUMPBIN=$ac_ct_DUMPBIN
5257 fi
5258 fi
5259
5260 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5261 *COFF*)
5262 DUMPBIN="$DUMPBIN -symbols"
5263 ;;
5264 *)
5265 DUMPBIN=:
5266 ;;
5267 esac
5268 fi
5269
5270 if test "$DUMPBIN" != ":"; then
5271 NM="$DUMPBIN"
5272 fi
5273 fi
5274 test -z "$NM" && NM=nm
5275
5276
5277
5278
5279
5280
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5282 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5283 if ${lt_cv_nm_interface+:} false; then :
5284 $as_echo_n "(cached) " >&6
5285 else
5286 lt_cv_nm_interface="BSD nm"
5287 echo "int some_variable = 0;" > conftest.$ac_ext
5288 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5289 (eval "$ac_compile" 2>conftest.err)
5290 cat conftest.err >&5
5291 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5292 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5293 cat conftest.err >&5
5294 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5295 cat conftest.out >&5
5296 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5297 lt_cv_nm_interface="MS dumpbin"
5298 fi
5299 rm -f conftest*
5300 fi
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5302 $as_echo "$lt_cv_nm_interface" >&6; }
5303
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5305 $as_echo_n "checking whether ln -s works... " >&6; }
5306 LN_S=$as_ln_s
5307 if test "$LN_S" = "ln -s"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5309 $as_echo "yes" >&6; }
5310 else
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5312 $as_echo "no, using $LN_S" >&6; }
5313 fi
5314
5315 # find the maximum length of command line arguments
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5317 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5318 if ${lt_cv_sys_max_cmd_len+:} false; then :
5319 $as_echo_n "(cached) " >&6
5320 else
5321 i=0
5322 teststring="ABCD"
5323
5324 case $build_os in
5325 msdosdjgpp*)
5326 # On DJGPP, this test can blow up pretty badly due to problems in libc
5327 # (any single argument exceeding 2000 bytes causes a buffer overrun
5328 # during glob expansion). Even if it were fixed, the result of this
5329 # check would be larger than it should be.
5330 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5331 ;;
5332
5333 gnu*)
5334 # Under GNU Hurd, this test is not required because there is
5335 # no limit to the length of command line arguments.
5336 # Libtool will interpret -1 as no limit whatsoever
5337 lt_cv_sys_max_cmd_len=-1;
5338 ;;
5339
5340 cygwin* | mingw* | cegcc*)
5341 # On Win9x/ME, this test blows up -- it succeeds, but takes
5342 # about 5 minutes as the teststring grows exponentially.
5343 # Worse, since 9x/ME are not pre-emptively multitasking,
5344 # you end up with a "frozen" computer, even though with patience
5345 # the test eventually succeeds (with a max line length of 256k).
5346 # Instead, let's just punt: use the minimum linelength reported by
5347 # all of the supported platforms: 8192 (on NT/2K/XP).
5348 lt_cv_sys_max_cmd_len=8192;
5349 ;;
5350
5351 mint*)
5352 # On MiNT this can take a long time and run out of memory.
5353 lt_cv_sys_max_cmd_len=8192;
5354 ;;
5355
5356 amigaos*)
5357 # On AmigaOS with pdksh, this test takes hours, literally.
5358 # So we just punt and use a minimum line length of 8192.
5359 lt_cv_sys_max_cmd_len=8192;
5360 ;;
5361
5362 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5363 # This has been around since 386BSD, at least. Likely further.
5364 if test -x /sbin/sysctl; then
5365 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5366 elif test -x /usr/sbin/sysctl; then
5367 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5368 else
5369 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5370 fi
5371 # And add a safety zone
5372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5373 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5374 ;;
5375
5376 interix*)
5377 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5378 lt_cv_sys_max_cmd_len=196608
5379 ;;
5380
5381 os2*)
5382 # The test takes a long time on OS/2.
5383 lt_cv_sys_max_cmd_len=8192
5384 ;;
5385
5386 osf*)
5387 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5388 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5389 # nice to cause kernel panics so lets avoid the loop below.
5390 # First set a reasonable default.
5391 lt_cv_sys_max_cmd_len=16384
5392 #
5393 if test -x /sbin/sysconfig; then
5394 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5395 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5396 esac
5397 fi
5398 ;;
5399 sco3.2v5*)
5400 lt_cv_sys_max_cmd_len=102400
5401 ;;
5402 sysv5* | sco5v6* | sysv4.2uw2*)
5403 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5404 if test -n "$kargmax"; then
5405 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5406 else
5407 lt_cv_sys_max_cmd_len=32768
5408 fi
5409 ;;
5410 *)
5411 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5412 if test -n "$lt_cv_sys_max_cmd_len"; then
5413 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5414 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5415 else
5416 # Make teststring a little bigger before we do anything with it.
5417 # a 1K string should be a reasonable start.
5418 for i in 1 2 3 4 5 6 7 8 ; do
5419 teststring=$teststring$teststring
5420 done
5421 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5422 # If test is not a shell built-in, we'll probably end up computing a
5423 # maximum length that is only half of the actual maximum length, but
5424 # we can't tell.
5425 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5426 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5427 test $i != 17 # 1/2 MB should be enough
5428 do
5429 i=`expr $i + 1`
5430 teststring=$teststring$teststring
5431 done
5432 # Only check the string length outside the loop.
5433 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5434 teststring=
5435 # Add a significant safety factor because C++ compilers can tack on
5436 # massive amounts of additional arguments before passing them to the
5437 # linker. It appears as though 1/2 is a usable value.
5438 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5439 fi
5440 ;;
5441 esac
5442
5443 fi
5444
5445 if test -n $lt_cv_sys_max_cmd_len ; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5447 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5448 else
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5450 $as_echo "none" >&6; }
5451 fi
5452 max_cmd_len=$lt_cv_sys_max_cmd_len
5453
5454
5455
5456
5457
5458
5459 : ${CP="cp -f"}
5460 : ${MV="mv -f"}
5461 : ${RM="rm -f"}
5462
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5464 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5465 # Try some XSI features
5466 xsi_shell=no
5467 ( _lt_dummy="a/b/c"
5468 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5469 = c,a/b,b/c, \
5470 && eval 'test $(( 1 + 1 )) -eq 2 \
5471 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5472 && xsi_shell=yes
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5474 $as_echo "$xsi_shell" >&6; }
5475
5476
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5478 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5479 lt_shell_append=no
5480 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5481 >/dev/null 2>&1 \
5482 && lt_shell_append=yes
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5484 $as_echo "$lt_shell_append" >&6; }
5485
5486
5487 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5488 lt_unset=unset
5489 else
5490 lt_unset=false
5491 fi
5492
5493
5494
5495
5496
5497 # test EBCDIC or ASCII
5498 case `echo X|tr X '\101'` in
5499 A) # ASCII based system
5500 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5501 lt_SP2NL='tr \040 \012'
5502 lt_NL2SP='tr \015\012 \040\040'
5503 ;;
5504 *) # EBCDIC based system
5505 lt_SP2NL='tr \100 \n'
5506 lt_NL2SP='tr \r\n \100\100'
5507 ;;
5508 esac
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5519 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5520 if ${lt_cv_to_host_file_cmd+:} false; then :
5521 $as_echo_n "(cached) " >&6
5522 else
5523 case $host in
5524 *-*-mingw* )
5525 case $build in
5526 *-*-mingw* ) # actually msys
5527 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5528 ;;
5529 *-*-cygwin* )
5530 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5531 ;;
5532 * ) # otherwise, assume *nix
5533 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5534 ;;
5535 esac
5536 ;;
5537 *-*-cygwin* )
5538 case $build in
5539 *-*-mingw* ) # actually msys
5540 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5541 ;;
5542 *-*-cygwin* )
5543 lt_cv_to_host_file_cmd=func_convert_file_noop
5544 ;;
5545 * ) # otherwise, assume *nix
5546 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5547 ;;
5548 esac
5549 ;;
5550 * ) # unhandled hosts (and "normal" native builds)
5551 lt_cv_to_host_file_cmd=func_convert_file_noop
5552 ;;
5553 esac
5554
5555 fi
5556
5557 to_host_file_cmd=$lt_cv_to_host_file_cmd
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5559 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5560
5561
5562
5563
5564
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5566 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5567 if ${lt_cv_to_tool_file_cmd+:} false; then :
5568 $as_echo_n "(cached) " >&6
5569 else
5570 #assume ordinary cross tools, or native build.
5571 lt_cv_to_tool_file_cmd=func_convert_file_noop
5572 case $host in
5573 *-*-mingw* )
5574 case $build in
5575 *-*-mingw* ) # actually msys
5576 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5577 ;;
5578 esac
5579 ;;
5580 esac
5581
5582 fi
5583
5584 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5586 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5587
5588
5589
5590
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5593 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5594 if ${lt_cv_ld_reload_flag+:} false; then :
5595 $as_echo_n "(cached) " >&6
5596 else
5597 lt_cv_ld_reload_flag='-r'
5598 fi
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5600 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5601 reload_flag=$lt_cv_ld_reload_flag
5602 case $reload_flag in
5603 "" | " "*) ;;
5604 *) reload_flag=" $reload_flag" ;;
5605 esac
5606 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5607 case $host_os in
5608 cygwin* | mingw* | pw32* | cegcc*)
5609 if test "$GCC" != yes; then
5610 reload_cmds=false
5611 fi
5612 ;;
5613 darwin*)
5614 if test "$GCC" = yes; then
5615 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5616 else
5617 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5618 fi
5619 ;;
5620 esac
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630 if test -n "$ac_tool_prefix"; then
5631 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5632 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5634 $as_echo_n "checking for $ac_word... " >&6; }
5635 if ${ac_cv_prog_OBJDUMP+:} false; then :
5636 $as_echo_n "(cached) " >&6
5637 else
5638 if test -n "$OBJDUMP"; then
5639 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5640 else
5641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5642 for as_dir in $PATH
5643 do
5644 IFS=$as_save_IFS
5645 test -z "$as_dir" && as_dir=.
5646 for ac_exec_ext in '' $ac_executable_extensions; do
5647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5648 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5650 break 2
5651 fi
5652 done
5653 done
5654 IFS=$as_save_IFS
5655
5656 fi
5657 fi
5658 OBJDUMP=$ac_cv_prog_OBJDUMP
5659 if test -n "$OBJDUMP"; then
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5661 $as_echo "$OBJDUMP" >&6; }
5662 else
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5664 $as_echo "no" >&6; }
5665 fi
5666
5667
5668 fi
5669 if test -z "$ac_cv_prog_OBJDUMP"; then
5670 ac_ct_OBJDUMP=$OBJDUMP
5671 # Extract the first word of "objdump", so it can be a program name with args.
5672 set dummy objdump; ac_word=$2
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5674 $as_echo_n "checking for $ac_word... " >&6; }
5675 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5676 $as_echo_n "(cached) " >&6
5677 else
5678 if test -n "$ac_ct_OBJDUMP"; then
5679 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5680 else
5681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5682 for as_dir in $PATH
5683 do
5684 IFS=$as_save_IFS
5685 test -z "$as_dir" && as_dir=.
5686 for ac_exec_ext in '' $ac_executable_extensions; do
5687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5688 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5690 break 2
5691 fi
5692 done
5693 done
5694 IFS=$as_save_IFS
5695
5696 fi
5697 fi
5698 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5699 if test -n "$ac_ct_OBJDUMP"; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5701 $as_echo "$ac_ct_OBJDUMP" >&6; }
5702 else
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5704 $as_echo "no" >&6; }
5705 fi
5706
5707 if test "x$ac_ct_OBJDUMP" = x; then
5708 OBJDUMP="false"
5709 else
5710 case $cross_compiling:$ac_tool_warned in
5711 yes:)
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5714 ac_tool_warned=yes ;;
5715 esac
5716 OBJDUMP=$ac_ct_OBJDUMP
5717 fi
5718 else
5719 OBJDUMP="$ac_cv_prog_OBJDUMP"
5720 fi
5721
5722 test -z "$OBJDUMP" && OBJDUMP=objdump
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5733 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5734 if ${lt_cv_deplibs_check_method+:} false; then :
5735 $as_echo_n "(cached) " >&6
5736 else
5737 lt_cv_file_magic_cmd='$MAGIC_CMD'
5738 lt_cv_file_magic_test_file=
5739 lt_cv_deplibs_check_method='unknown'
5740 # Need to set the preceding variable on all platforms that support
5741 # interlibrary dependencies.
5742 # 'none' -- dependencies not supported.
5743 # `unknown' -- same as none, but documents that we really don't know.
5744 # 'pass_all' -- all dependencies passed with no checks.
5745 # 'test_compile' -- check by making test program.
5746 # 'file_magic [[regex]]' -- check by looking for files in library path
5747 # which responds to the $file_magic_cmd with a given extended regex.
5748 # If you have `file' or equivalent on your system and you're not sure
5749 # whether `pass_all' will *always* work, you probably want this one.
5750
5751 case $host_os in
5752 aix[4-9]*)
5753 lt_cv_deplibs_check_method=pass_all
5754 ;;
5755
5756 beos*)
5757 lt_cv_deplibs_check_method=pass_all
5758 ;;
5759
5760 bsdi[45]*)
5761 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5762 lt_cv_file_magic_cmd='/usr/bin/file -L'
5763 lt_cv_file_magic_test_file=/shlib/libc.so
5764 ;;
5765
5766 cygwin*)
5767 # func_win32_libid is a shell function defined in ltmain.sh
5768 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5769 lt_cv_file_magic_cmd='func_win32_libid'
5770 ;;
5771
5772 mingw* | pw32*)
5773 # Base MSYS/MinGW do not provide the 'file' command needed by
5774 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5775 # unless we find 'file', for example because we are cross-compiling.
5776 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5777 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5778 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5779 lt_cv_file_magic_cmd='func_win32_libid'
5780 else
5781 # Keep this pattern in sync with the one in func_win32_libid.
5782 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5783 lt_cv_file_magic_cmd='$OBJDUMP -f'
5784 fi
5785 ;;
5786
5787 cegcc*)
5788 # use the weaker test based on 'objdump'. See mingw*.
5789 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5790 lt_cv_file_magic_cmd='$OBJDUMP -f'
5791 ;;
5792
5793 darwin* | rhapsody*)
5794 lt_cv_deplibs_check_method=pass_all
5795 ;;
5796
5797 freebsd* | dragonfly*)
5798 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5799 case $host_cpu in
5800 i*86 )
5801 # Not sure whether the presence of OpenBSD here was a mistake.
5802 # Let's accept both of them until this is cleared up.
5803 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5804 lt_cv_file_magic_cmd=/usr/bin/file
5805 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5806 ;;
5807 esac
5808 else
5809 lt_cv_deplibs_check_method=pass_all
5810 fi
5811 ;;
5812
5813 gnu*)
5814 lt_cv_deplibs_check_method=pass_all
5815 ;;
5816
5817 haiku*)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
5820
5821 hpux10.20* | hpux11*)
5822 lt_cv_file_magic_cmd=/usr/bin/file
5823 case $host_cpu in
5824 ia64*)
5825 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5826 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5827 ;;
5828 hppa*64*)
5829 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]'
5830 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5831 ;;
5832 *)
5833 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5834 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5835 ;;
5836 esac
5837 ;;
5838
5839 interix[3-9]*)
5840 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5841 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5842 ;;
5843
5844 irix5* | irix6* | nonstopux*)
5845 case $LD in
5846 *-32|*"-32 ") libmagic=32-bit;;
5847 *-n32|*"-n32 ") libmagic=N32;;
5848 *-64|*"-64 ") libmagic=64-bit;;
5849 *) libmagic=never-match;;
5850 esac
5851 lt_cv_deplibs_check_method=pass_all
5852 ;;
5853
5854 # This must be glibc/ELF.
5855 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5856 lt_cv_deplibs_check_method=pass_all
5857 ;;
5858
5859 netbsd*)
5860 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5862 else
5863 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5864 fi
5865 ;;
5866
5867 newos6*)
5868 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5869 lt_cv_file_magic_cmd=/usr/bin/file
5870 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5871 ;;
5872
5873 *nto* | *qnx*)
5874 lt_cv_deplibs_check_method=pass_all
5875 ;;
5876
5877 openbsd*)
5878 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5880 else
5881 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5882 fi
5883 ;;
5884
5885 osf3* | osf4* | osf5*)
5886 lt_cv_deplibs_check_method=pass_all
5887 ;;
5888
5889 rdos*)
5890 lt_cv_deplibs_check_method=pass_all
5891 ;;
5892
5893 solaris*)
5894 lt_cv_deplibs_check_method=pass_all
5895 ;;
5896
5897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5898 lt_cv_deplibs_check_method=pass_all
5899 ;;
5900
5901 sysv4 | sysv4.3*)
5902 case $host_vendor in
5903 motorola)
5904 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]'
5905 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5906 ;;
5907 ncr)
5908 lt_cv_deplibs_check_method=pass_all
5909 ;;
5910 sequent)
5911 lt_cv_file_magic_cmd='/bin/file'
5912 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5913 ;;
5914 sni)
5915 lt_cv_file_magic_cmd='/bin/file'
5916 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5917 lt_cv_file_magic_test_file=/lib/libc.so
5918 ;;
5919 siemens)
5920 lt_cv_deplibs_check_method=pass_all
5921 ;;
5922 pc)
5923 lt_cv_deplibs_check_method=pass_all
5924 ;;
5925 esac
5926 ;;
5927
5928 tpf*)
5929 lt_cv_deplibs_check_method=pass_all
5930 ;;
5931 esac
5932
5933 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5935 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5936
5937 file_magic_glob=
5938 want_nocaseglob=no
5939 if test "$build" = "$host"; then
5940 case $host_os in
5941 mingw* | pw32*)
5942 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5943 want_nocaseglob=yes
5944 else
5945 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5946 fi
5947 ;;
5948 esac
5949 fi
5950
5951 file_magic_cmd=$lt_cv_file_magic_cmd
5952 deplibs_check_method=$lt_cv_deplibs_check_method
5953 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976 if test -n "$ac_tool_prefix"; then
5977 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5978 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5980 $as_echo_n "checking for $ac_word... " >&6; }
5981 if ${ac_cv_prog_DLLTOOL+:} false; then :
5982 $as_echo_n "(cached) " >&6
5983 else
5984 if test -n "$DLLTOOL"; then
5985 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5986 else
5987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5988 for as_dir in $PATH
5989 do
5990 IFS=$as_save_IFS
5991 test -z "$as_dir" && as_dir=.
5992 for ac_exec_ext in '' $ac_executable_extensions; do
5993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5994 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 break 2
5997 fi
5998 done
5999 done
6000 IFS=$as_save_IFS
6001
6002 fi
6003 fi
6004 DLLTOOL=$ac_cv_prog_DLLTOOL
6005 if test -n "$DLLTOOL"; then
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6007 $as_echo "$DLLTOOL" >&6; }
6008 else
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6010 $as_echo "no" >&6; }
6011 fi
6012
6013
6014 fi
6015 if test -z "$ac_cv_prog_DLLTOOL"; then
6016 ac_ct_DLLTOOL=$DLLTOOL
6017 # Extract the first word of "dlltool", so it can be a program name with args.
6018 set dummy dlltool; ac_word=$2
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6020 $as_echo_n "checking for $ac_word... " >&6; }
6021 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6022 $as_echo_n "(cached) " >&6
6023 else
6024 if test -n "$ac_ct_DLLTOOL"; then
6025 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6026 else
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028 for as_dir in $PATH
6029 do
6030 IFS=$as_save_IFS
6031 test -z "$as_dir" && as_dir=.
6032 for ac_exec_ext in '' $ac_executable_extensions; do
6033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6034 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6036 break 2
6037 fi
6038 done
6039 done
6040 IFS=$as_save_IFS
6041
6042 fi
6043 fi
6044 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6045 if test -n "$ac_ct_DLLTOOL"; then
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6047 $as_echo "$ac_ct_DLLTOOL" >&6; }
6048 else
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6050 $as_echo "no" >&6; }
6051 fi
6052
6053 if test "x$ac_ct_DLLTOOL" = x; then
6054 DLLTOOL="false"
6055 else
6056 case $cross_compiling:$ac_tool_warned in
6057 yes:)
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6059 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6060 ac_tool_warned=yes ;;
6061 esac
6062 DLLTOOL=$ac_ct_DLLTOOL
6063 fi
6064 else
6065 DLLTOOL="$ac_cv_prog_DLLTOOL"
6066 fi
6067
6068 test -z "$DLLTOOL" && DLLTOOL=dlltool
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6080 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6081 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 lt_cv_sharedlib_from_linklib_cmd='unknown'
6085
6086 case $host_os in
6087 cygwin* | mingw* | pw32* | cegcc*)
6088 # two different shell functions defined in ltmain.sh
6089 # decide which to use based on capabilities of $DLLTOOL
6090 case `$DLLTOOL --help 2>&1` in
6091 *--identify-strict*)
6092 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6093 ;;
6094 *)
6095 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6096 ;;
6097 esac
6098 ;;
6099 *)
6100 # fallback: assume linklib IS sharedlib
6101 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6102 ;;
6103 esac
6104
6105 fi
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6107 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6108 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6109 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6110
6111
6112
6113
6114
6115
6116
6117 if test -n "$ac_tool_prefix"; then
6118 for ac_prog in ar
6119 do
6120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6121 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6123 $as_echo_n "checking for $ac_word... " >&6; }
6124 if ${ac_cv_prog_AR+:} false; then :
6125 $as_echo_n "(cached) " >&6
6126 else
6127 if test -n "$AR"; then
6128 ac_cv_prog_AR="$AR" # Let the user override the test.
6129 else
6130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6131 for as_dir in $PATH
6132 do
6133 IFS=$as_save_IFS
6134 test -z "$as_dir" && as_dir=.
6135 for ac_exec_ext in '' $ac_executable_extensions; do
6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6137 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6139 break 2
6140 fi
6141 done
6142 done
6143 IFS=$as_save_IFS
6144
6145 fi
6146 fi
6147 AR=$ac_cv_prog_AR
6148 if test -n "$AR"; then
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6150 $as_echo "$AR" >&6; }
6151 else
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6153 $as_echo "no" >&6; }
6154 fi
6155
6156
6157 test -n "$AR" && break
6158 done
6159 fi
6160 if test -z "$AR"; then
6161 ac_ct_AR=$AR
6162 for ac_prog in ar
6163 do
6164 # Extract the first word of "$ac_prog", so it can be a program name with args.
6165 set dummy $ac_prog; ac_word=$2
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6167 $as_echo_n "checking for $ac_word... " >&6; }
6168 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170 else
6171 if test -n "$ac_ct_AR"; then
6172 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177 IFS=$as_save_IFS
6178 test -z "$as_dir" && as_dir=.
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6181 ac_cv_prog_ac_ct_AR="$ac_prog"
6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6183 break 2
6184 fi
6185 done
6186 done
6187 IFS=$as_save_IFS
6188
6189 fi
6190 fi
6191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6192 if test -n "$ac_ct_AR"; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6194 $as_echo "$ac_ct_AR" >&6; }
6195 else
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6197 $as_echo "no" >&6; }
6198 fi
6199
6200
6201 test -n "$ac_ct_AR" && break
6202 done
6203
6204 if test "x$ac_ct_AR" = x; then
6205 AR="false"
6206 else
6207 case $cross_compiling:$ac_tool_warned in
6208 yes:)
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6211 ac_tool_warned=yes ;;
6212 esac
6213 AR=$ac_ct_AR
6214 fi
6215 fi
6216
6217 : ${AR=ar}
6218 : ${AR_FLAGS=cru}
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6231 $as_echo_n "checking for archiver @FILE support... " >&6; }
6232 if ${lt_cv_ar_at_file+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 lt_cv_ar_at_file=no
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6238
6239 int
6240 main ()
6241 {
6242
6243 ;
6244 return 0;
6245 }
6246 _ACEOF
6247 if ac_fn_c_try_compile "$LINENO"; then :
6248 echo conftest.$ac_objext > conftest.lst
6249 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6250 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6251 (eval $lt_ar_try) 2>&5
6252 ac_status=$?
6253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6254 test $ac_status = 0; }
6255 if test "$ac_status" -eq 0; then
6256 # Ensure the archiver fails upon bogus file names.
6257 rm -f conftest.$ac_objext libconftest.a
6258 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6259 (eval $lt_ar_try) 2>&5
6260 ac_status=$?
6261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6262 test $ac_status = 0; }
6263 if test "$ac_status" -ne 0; then
6264 lt_cv_ar_at_file=@
6265 fi
6266 fi
6267 rm -f conftest.* libconftest.a
6268
6269 fi
6270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6271
6272 fi
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6274 $as_echo "$lt_cv_ar_at_file" >&6; }
6275
6276 if test "x$lt_cv_ar_at_file" = xno; then
6277 archiver_list_spec=
6278 else
6279 archiver_list_spec=$lt_cv_ar_at_file
6280 fi
6281
6282
6283
6284
6285
6286
6287
6288 if test -n "$ac_tool_prefix"; then
6289 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6290 set dummy ${ac_tool_prefix}strip; ac_word=$2
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6292 $as_echo_n "checking for $ac_word... " >&6; }
6293 if ${ac_cv_prog_STRIP+:} false; then :
6294 $as_echo_n "(cached) " >&6
6295 else
6296 if test -n "$STRIP"; then
6297 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6298 else
6299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6300 for as_dir in $PATH
6301 do
6302 IFS=$as_save_IFS
6303 test -z "$as_dir" && as_dir=.
6304 for ac_exec_ext in '' $ac_executable_extensions; do
6305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6306 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 break 2
6309 fi
6310 done
6311 done
6312 IFS=$as_save_IFS
6313
6314 fi
6315 fi
6316 STRIP=$ac_cv_prog_STRIP
6317 if test -n "$STRIP"; then
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6319 $as_echo "$STRIP" >&6; }
6320 else
6321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6322 $as_echo "no" >&6; }
6323 fi
6324
6325
6326 fi
6327 if test -z "$ac_cv_prog_STRIP"; then
6328 ac_ct_STRIP=$STRIP
6329 # Extract the first word of "strip", so it can be a program name with args.
6330 set dummy strip; ac_word=$2
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6332 $as_echo_n "checking for $ac_word... " >&6; }
6333 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if test -n "$ac_ct_STRIP"; then
6337 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6338 else
6339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340 for as_dir in $PATH
6341 do
6342 IFS=$as_save_IFS
6343 test -z "$as_dir" && as_dir=.
6344 for ac_exec_ext in '' $ac_executable_extensions; do
6345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6346 ac_cv_prog_ac_ct_STRIP="strip"
6347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 break 2
6349 fi
6350 done
6351 done
6352 IFS=$as_save_IFS
6353
6354 fi
6355 fi
6356 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6357 if test -n "$ac_ct_STRIP"; then
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6359 $as_echo "$ac_ct_STRIP" >&6; }
6360 else
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362 $as_echo "no" >&6; }
6363 fi
6364
6365 if test "x$ac_ct_STRIP" = x; then
6366 STRIP=":"
6367 else
6368 case $cross_compiling:$ac_tool_warned in
6369 yes:)
6370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6372 ac_tool_warned=yes ;;
6373 esac
6374 STRIP=$ac_ct_STRIP
6375 fi
6376 else
6377 STRIP="$ac_cv_prog_STRIP"
6378 fi
6379
6380 test -z "$STRIP" && STRIP=:
6381
6382
6383
6384
6385
6386
6387 if test -n "$ac_tool_prefix"; then
6388 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6389 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6391 $as_echo_n "checking for $ac_word... " >&6; }
6392 if ${ac_cv_prog_RANLIB+:} false; then :
6393 $as_echo_n "(cached) " >&6
6394 else
6395 if test -n "$RANLIB"; then
6396 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6397 else
6398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 for as_dir in $PATH
6400 do
6401 IFS=$as_save_IFS
6402 test -z "$as_dir" && as_dir=.
6403 for ac_exec_ext in '' $ac_executable_extensions; do
6404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6405 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6407 break 2
6408 fi
6409 done
6410 done
6411 IFS=$as_save_IFS
6412
6413 fi
6414 fi
6415 RANLIB=$ac_cv_prog_RANLIB
6416 if test -n "$RANLIB"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6418 $as_echo "$RANLIB" >&6; }
6419 else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421 $as_echo "no" >&6; }
6422 fi
6423
6424
6425 fi
6426 if test -z "$ac_cv_prog_RANLIB"; then
6427 ac_ct_RANLIB=$RANLIB
6428 # Extract the first word of "ranlib", so it can be a program name with args.
6429 set dummy ranlib; ac_word=$2
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6431 $as_echo_n "checking for $ac_word... " >&6; }
6432 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6433 $as_echo_n "(cached) " >&6
6434 else
6435 if test -n "$ac_ct_RANLIB"; then
6436 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6437 else
6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6439 for as_dir in $PATH
6440 do
6441 IFS=$as_save_IFS
6442 test -z "$as_dir" && as_dir=.
6443 for ac_exec_ext in '' $ac_executable_extensions; do
6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6445 ac_cv_prog_ac_ct_RANLIB="ranlib"
6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6447 break 2
6448 fi
6449 done
6450 done
6451 IFS=$as_save_IFS
6452
6453 fi
6454 fi
6455 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6456 if test -n "$ac_ct_RANLIB"; then
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6458 $as_echo "$ac_ct_RANLIB" >&6; }
6459 else
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6462 fi
6463
6464 if test "x$ac_ct_RANLIB" = x; then
6465 RANLIB=":"
6466 else
6467 case $cross_compiling:$ac_tool_warned in
6468 yes:)
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6471 ac_tool_warned=yes ;;
6472 esac
6473 RANLIB=$ac_ct_RANLIB
6474 fi
6475 else
6476 RANLIB="$ac_cv_prog_RANLIB"
6477 fi
6478
6479 test -z "$RANLIB" && RANLIB=:
6480
6481
6482
6483
6484
6485
6486 # Determine commands to create old-style static archives.
6487 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6488 old_postinstall_cmds='chmod 644 $oldlib'
6489 old_postuninstall_cmds=
6490
6491 if test -n "$RANLIB"; then
6492 case $host_os in
6493 openbsd*)
6494 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6495 ;;
6496 *)
6497 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6498 ;;
6499 esac
6500 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6501 fi
6502
6503 case $host_os in
6504 darwin*)
6505 lock_old_archive_extraction=yes ;;
6506 *)
6507 lock_old_archive_extraction=no ;;
6508 esac
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548 # If no C compiler was specified, use CC.
6549 LTCC=${LTCC-"$CC"}
6550
6551 # If no C compiler flags were specified, use CFLAGS.
6552 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6553
6554 # Allow CC to be a program name with arguments.
6555 compiler=$CC
6556
6557
6558 # Check for command to grab the raw symbol name followed by C symbol from nm.
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6560 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6561 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6562 $as_echo_n "(cached) " >&6
6563 else
6564
6565 # These are sane defaults that work on at least a few old systems.
6566 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6567
6568 # Character class describing NM global symbol codes.
6569 symcode='[BCDEGRST]'
6570
6571 # Regexp to match symbols that can be accessed directly from C.
6572 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6573
6574 # Define system-specific variables.
6575 case $host_os in
6576 aix*)
6577 symcode='[BCDT]'
6578 ;;
6579 cygwin* | mingw* | pw32* | cegcc*)
6580 symcode='[ABCDGISTW]'
6581 ;;
6582 hpux*)
6583 if test "$host_cpu" = ia64; then
6584 symcode='[ABCDEGRST]'
6585 fi
6586 ;;
6587 irix* | nonstopux*)
6588 symcode='[BCDEGRST]'
6589 ;;
6590 osf*)
6591 symcode='[BCDEGQRST]'
6592 ;;
6593 solaris*)
6594 symcode='[BDRT]'
6595 ;;
6596 sco3.2v5*)
6597 symcode='[DT]'
6598 ;;
6599 sysv4.2uw2*)
6600 symcode='[DT]'
6601 ;;
6602 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6603 symcode='[ABDT]'
6604 ;;
6605 sysv4)
6606 symcode='[DFNSTU]'
6607 ;;
6608 esac
6609
6610 # If we're using GNU nm, then use its standard symbol codes.
6611 case `$NM -V 2>&1` in
6612 *GNU* | *'with BFD'*)
6613 symcode='[ABCDGIRSTW]' ;;
6614 esac
6615
6616 # Transform an extracted symbol line into a proper C declaration.
6617 # Some systems (esp. on ia64) link data and code symbols differently,
6618 # so use this general approach.
6619 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6620
6621 # Transform an extracted symbol line into symbol name and symbol address
6622 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6623 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'"
6624
6625 # Handle CRLF in mingw tool chain
6626 opt_cr=
6627 case $build_os in
6628 mingw*)
6629 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6630 ;;
6631 esac
6632
6633 # Try without a prefix underscore, then with it.
6634 for ac_symprfx in "" "_"; do
6635
6636 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6637 symxfrm="\\1 $ac_symprfx\\2 \\2"
6638
6639 # Write the raw and C identifiers.
6640 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6641 # Fake it for dumpbin and say T for any non-static function
6642 # and D for any global variable.
6643 # Also find C++ and __fastcall symbols from MSVC++,
6644 # which start with @ or ?.
6645 lt_cv_sys_global_symbol_pipe="$AWK '"\
6646 " {last_section=section; section=\$ 3};"\
6647 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6648 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6649 " \$ 0!~/External *\|/{next};"\
6650 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6651 " {if(hide[section]) next};"\
6652 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6653 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6654 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6655 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6656 " ' prfx=^$ac_symprfx"
6657 else
6658 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6659 fi
6660 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6661
6662 # Check to see that the pipe works correctly.
6663 pipe_works=no
6664
6665 rm -f conftest*
6666 cat > conftest.$ac_ext <<_LT_EOF
6667 #ifdef __cplusplus
6668 extern "C" {
6669 #endif
6670 char nm_test_var;
6671 void nm_test_func(void);
6672 void nm_test_func(void){}
6673 #ifdef __cplusplus
6674 }
6675 #endif
6676 int main(){nm_test_var='a';nm_test_func();return(0);}
6677 _LT_EOF
6678
6679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6680 (eval $ac_compile) 2>&5
6681 ac_status=$?
6682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6683 test $ac_status = 0; }; then
6684 # Now try to grab the symbols.
6685 nlist=conftest.nm
6686 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6687 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6688 ac_status=$?
6689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6690 test $ac_status = 0; } && test -s "$nlist"; then
6691 # Try sorting and uniquifying the output.
6692 if sort "$nlist" | uniq > "$nlist"T; then
6693 mv -f "$nlist"T "$nlist"
6694 else
6695 rm -f "$nlist"T
6696 fi
6697
6698 # Make sure that we snagged all the symbols we need.
6699 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6700 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6701 cat <<_LT_EOF > conftest.$ac_ext
6702 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6703 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6704 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6705 relocations are performed -- see ld's documentation on pseudo-relocs. */
6706 # define LT_DLSYM_CONST
6707 #elif defined(__osf__)
6708 /* This system does not cope well with relocations in const data. */
6709 # define LT_DLSYM_CONST
6710 #else
6711 # define LT_DLSYM_CONST const
6712 #endif
6713
6714 #ifdef __cplusplus
6715 extern "C" {
6716 #endif
6717
6718 _LT_EOF
6719 # Now generate the symbol file.
6720 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6721
6722 cat <<_LT_EOF >> conftest.$ac_ext
6723
6724 /* The mapping between symbol names and symbols. */
6725 LT_DLSYM_CONST struct {
6726 const char *name;
6727 void *address;
6728 }
6729 lt__PROGRAM__LTX_preloaded_symbols[] =
6730 {
6731 { "@PROGRAM@", (void *) 0 },
6732 _LT_EOF
6733 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6734 cat <<\_LT_EOF >> conftest.$ac_ext
6735 {0, (void *) 0}
6736 };
6737
6738 /* This works around a problem in FreeBSD linker */
6739 #ifdef FREEBSD_WORKAROUND
6740 static const void *lt_preloaded_setup() {
6741 return lt__PROGRAM__LTX_preloaded_symbols;
6742 }
6743 #endif
6744
6745 #ifdef __cplusplus
6746 }
6747 #endif
6748 _LT_EOF
6749 # Now try linking the two files.
6750 mv conftest.$ac_objext conftstm.$ac_objext
6751 lt_globsym_save_LIBS=$LIBS
6752 lt_globsym_save_CFLAGS=$CFLAGS
6753 LIBS="conftstm.$ac_objext"
6754 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6755 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6756 (eval $ac_link) 2>&5
6757 ac_status=$?
6758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6759 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6760 pipe_works=yes
6761 fi
6762 LIBS=$lt_globsym_save_LIBS
6763 CFLAGS=$lt_globsym_save_CFLAGS
6764 else
6765 echo "cannot find nm_test_func in $nlist" >&5
6766 fi
6767 else
6768 echo "cannot find nm_test_var in $nlist" >&5
6769 fi
6770 else
6771 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6772 fi
6773 else
6774 echo "$progname: failed program was:" >&5
6775 cat conftest.$ac_ext >&5
6776 fi
6777 rm -rf conftest* conftst*
6778
6779 # Do not use the global_symbol_pipe unless it works.
6780 if test "$pipe_works" = yes; then
6781 break
6782 else
6783 lt_cv_sys_global_symbol_pipe=
6784 fi
6785 done
6786
6787 fi
6788
6789 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6790 lt_cv_sys_global_symbol_to_cdecl=
6791 fi
6792 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6794 $as_echo "failed" >&6; }
6795 else
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6797 $as_echo "ok" >&6; }
6798 fi
6799
6800 # Response file support.
6801 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6802 nm_file_list_spec='@'
6803 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6804 nm_file_list_spec='@'
6805 fi
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826
6827
6828
6829
6830
6831
6832
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6834 $as_echo_n "checking for sysroot... " >&6; }
6835
6836 # Check whether --with-sysroot was given.
6837 if test "${with_sysroot+set}" = set; then :
6838 withval=$with_sysroot;
6839 else
6840 with_sysroot=no
6841 fi
6842
6843
6844 lt_sysroot=
6845 case ${with_sysroot} in #(
6846 yes)
6847 if test "$GCC" = yes; then
6848 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6849 fi
6850 ;; #(
6851 /*)
6852 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6853 ;; #(
6854 no|'')
6855 ;; #(
6856 *)
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6858 $as_echo "${with_sysroot}" >&6; }
6859 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6860 ;;
6861 esac
6862
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6864 $as_echo "${lt_sysroot:-no}" >&6; }
6865
6866
6867
6868
6869
6870 # Check whether --enable-libtool-lock was given.
6871 if test "${enable_libtool_lock+set}" = set; then :
6872 enableval=$enable_libtool_lock;
6873 fi
6874
6875 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6876
6877 # Some flags need to be propagated to the compiler or linker for good
6878 # libtool support.
6879 case $host in
6880 ia64-*-hpux*)
6881 # Find out which ABI we are using.
6882 echo 'int i;' > conftest.$ac_ext
6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6884 (eval $ac_compile) 2>&5
6885 ac_status=$?
6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6887 test $ac_status = 0; }; then
6888 case `/usr/bin/file conftest.$ac_objext` in
6889 *ELF-32*)
6890 HPUX_IA64_MODE="32"
6891 ;;
6892 *ELF-64*)
6893 HPUX_IA64_MODE="64"
6894 ;;
6895 esac
6896 fi
6897 rm -rf conftest*
6898 ;;
6899 *-*-irix6*)
6900 # Find out which ABI we are using.
6901 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6902 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6903 (eval $ac_compile) 2>&5
6904 ac_status=$?
6905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6906 test $ac_status = 0; }; then
6907 if test "$lt_cv_prog_gnu_ld" = yes; then
6908 case `/usr/bin/file conftest.$ac_objext` in
6909 *32-bit*)
6910 LD="${LD-ld} -melf32bsmip"
6911 ;;
6912 *N32*)
6913 LD="${LD-ld} -melf32bmipn32"
6914 ;;
6915 *64-bit*)
6916 LD="${LD-ld} -melf64bmip"
6917 ;;
6918 esac
6919 else
6920 case `/usr/bin/file conftest.$ac_objext` in
6921 *32-bit*)
6922 LD="${LD-ld} -32"
6923 ;;
6924 *N32*)
6925 LD="${LD-ld} -n32"
6926 ;;
6927 *64-bit*)
6928 LD="${LD-ld} -64"
6929 ;;
6930 esac
6931 fi
6932 fi
6933 rm -rf conftest*
6934 ;;
6935
6936 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6937 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6938 # Find out which ABI we are using.
6939 echo 'int i;' > conftest.$ac_ext
6940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6941 (eval $ac_compile) 2>&5
6942 ac_status=$?
6943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6944 test $ac_status = 0; }; then
6945 case `/usr/bin/file conftest.o` in
6946 *32-bit*)
6947 case $host in
6948 x86_64-*kfreebsd*-gnu)
6949 LD="${LD-ld} -m elf_i386_fbsd"
6950 ;;
6951 x86_64-*linux*)
6952 LD="${LD-ld} -m elf_i386"
6953 ;;
6954 ppc64-*linux*|powerpc64-*linux*)
6955 LD="${LD-ld} -m elf32ppclinux"
6956 ;;
6957 s390x-*linux*)
6958 LD="${LD-ld} -m elf_s390"
6959 ;;
6960 sparc64-*linux*)
6961 LD="${LD-ld} -m elf32_sparc"
6962 ;;
6963 esac
6964 ;;
6965 *64-bit*)
6966 case $host in
6967 x86_64-*kfreebsd*-gnu)
6968 LD="${LD-ld} -m elf_x86_64_fbsd"
6969 ;;
6970 x86_64-*linux*)
6971 LD="${LD-ld} -m elf_x86_64"
6972 ;;
6973 ppc*-*linux*|powerpc*-*linux*)
6974 LD="${LD-ld} -m elf64ppc"
6975 ;;
6976 s390*-*linux*|s390*-*tpf*)
6977 LD="${LD-ld} -m elf64_s390"
6978 ;;
6979 sparc*-*linux*)
6980 LD="${LD-ld} -m elf64_sparc"
6981 ;;
6982 esac
6983 ;;
6984 esac
6985 fi
6986 rm -rf conftest*
6987 ;;
6988
6989 *-*-sco3.2v5*)
6990 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6991 SAVE_CFLAGS="$CFLAGS"
6992 CFLAGS="$CFLAGS -belf"
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6994 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6995 if ${lt_cv_cc_needs_belf+:} false; then :
6996 $as_echo_n "(cached) " >&6
6997 else
6998 ac_ext=c
6999 ac_cpp='$CPP $CPPFLAGS'
7000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7003
7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7005 /* end confdefs.h. */
7006
7007 int
7008 main ()
7009 {
7010
7011 ;
7012 return 0;
7013 }
7014 _ACEOF
7015 if ac_fn_c_try_link "$LINENO"; then :
7016 lt_cv_cc_needs_belf=yes
7017 else
7018 lt_cv_cc_needs_belf=no
7019 fi
7020 rm -f core conftest.err conftest.$ac_objext \
7021 conftest$ac_exeext conftest.$ac_ext
7022 ac_ext=c
7023 ac_cpp='$CPP $CPPFLAGS'
7024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7027
7028 fi
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7030 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7031 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7032 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7033 CFLAGS="$SAVE_CFLAGS"
7034 fi
7035 ;;
7036 *-*solaris*)
7037 # Find out which ABI we are using.
7038 echo 'int i;' > conftest.$ac_ext
7039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7040 (eval $ac_compile) 2>&5
7041 ac_status=$?
7042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7043 test $ac_status = 0; }; then
7044 case `/usr/bin/file conftest.o` in
7045 *64-bit*)
7046 case $lt_cv_prog_gnu_ld in
7047 yes*)
7048 case $host in
7049 i?86-*-solaris*)
7050 LD="${LD-ld} -m elf_x86_64"
7051 ;;
7052 sparc*-*-solaris*)
7053 LD="${LD-ld} -m elf64_sparc"
7054 ;;
7055 esac
7056 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7057 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7058 LD="${LD-ld}_sol2"
7059 fi
7060 ;;
7061 *)
7062 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7063 LD="${LD-ld} -64"
7064 fi
7065 ;;
7066 esac
7067 ;;
7068 esac
7069 fi
7070 rm -rf conftest*
7071 ;;
7072 esac
7073
7074 need_locks="$enable_libtool_lock"
7075
7076 if test -n "$ac_tool_prefix"; then
7077 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7078 set dummy ${ac_tool_prefix}mt; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 if test -n "$MANIFEST_TOOL"; then
7085 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7097 fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7101
7102 fi
7103 fi
7104 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7105 if test -n "$MANIFEST_TOOL"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7107 $as_echo "$MANIFEST_TOOL" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7112
7113
7114 fi
7115 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7116 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7117 # Extract the first word of "mt", so it can be a program name with args.
7118 set dummy mt; ac_word=$2
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7120 $as_echo_n "checking for $ac_word... " >&6; }
7121 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7122 $as_echo_n "(cached) " >&6
7123 else
7124 if test -n "$ac_ct_MANIFEST_TOOL"; then
7125 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7126 else
7127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7128 for as_dir in $PATH
7129 do
7130 IFS=$as_save_IFS
7131 test -z "$as_dir" && as_dir=.
7132 for ac_exec_ext in '' $ac_executable_extensions; do
7133 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7134 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 break 2
7137 fi
7138 done
7139 done
7140 IFS=$as_save_IFS
7141
7142 fi
7143 fi
7144 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7145 if test -n "$ac_ct_MANIFEST_TOOL"; then
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7147 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 $as_echo "no" >&6; }
7151 fi
7152
7153 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7154 MANIFEST_TOOL=":"
7155 else
7156 case $cross_compiling:$ac_tool_warned in
7157 yes:)
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7159 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7160 ac_tool_warned=yes ;;
7161 esac
7162 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7163 fi
7164 else
7165 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7166 fi
7167
7168 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7170 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7171 if ${lt_cv_path_mainfest_tool+:} false; then :
7172 $as_echo_n "(cached) " >&6
7173 else
7174 lt_cv_path_mainfest_tool=no
7175 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7176 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7177 cat conftest.err >&5
7178 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7179 lt_cv_path_mainfest_tool=yes
7180 fi
7181 rm -f conftest*
7182 fi
7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7184 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7185 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7186 MANIFEST_TOOL=:
7187 fi
7188
7189
7190
7191
7192
7193
7194 case $host_os in
7195 rhapsody* | darwin*)
7196 if test -n "$ac_tool_prefix"; then
7197 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7198 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7202 $as_echo_n "(cached) " >&6
7203 else
7204 if test -n "$DSYMUTIL"; then
7205 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7206 else
7207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7208 for as_dir in $PATH
7209 do
7210 IFS=$as_save_IFS
7211 test -z "$as_dir" && as_dir=.
7212 for ac_exec_ext in '' $ac_executable_extensions; do
7213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7216 break 2
7217 fi
7218 done
7219 done
7220 IFS=$as_save_IFS
7221
7222 fi
7223 fi
7224 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7225 if test -n "$DSYMUTIL"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7227 $as_echo "$DSYMUTIL" >&6; }
7228 else
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7231 fi
7232
7233
7234 fi
7235 if test -z "$ac_cv_prog_DSYMUTIL"; then
7236 ac_ct_DSYMUTIL=$DSYMUTIL
7237 # Extract the first word of "dsymutil", so it can be a program name with args.
7238 set dummy dsymutil; ac_word=$2
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7240 $as_echo_n "checking for $ac_word... " >&6; }
7241 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7242 $as_echo_n "(cached) " >&6
7243 else
7244 if test -n "$ac_ct_DSYMUTIL"; then
7245 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7246 else
7247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7248 for as_dir in $PATH
7249 do
7250 IFS=$as_save_IFS
7251 test -z "$as_dir" && as_dir=.
7252 for ac_exec_ext in '' $ac_executable_extensions; do
7253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7254 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7256 break 2
7257 fi
7258 done
7259 done
7260 IFS=$as_save_IFS
7261
7262 fi
7263 fi
7264 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7265 if test -n "$ac_ct_DSYMUTIL"; then
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7267 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7268 else
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7270 $as_echo "no" >&6; }
7271 fi
7272
7273 if test "x$ac_ct_DSYMUTIL" = x; then
7274 DSYMUTIL=":"
7275 else
7276 case $cross_compiling:$ac_tool_warned in
7277 yes:)
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7279 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7280 ac_tool_warned=yes ;;
7281 esac
7282 DSYMUTIL=$ac_ct_DSYMUTIL
7283 fi
7284 else
7285 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7286 fi
7287
7288 if test -n "$ac_tool_prefix"; then
7289 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7290 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7292 $as_echo_n "checking for $ac_word... " >&6; }
7293 if ${ac_cv_prog_NMEDIT+:} false; then :
7294 $as_echo_n "(cached) " >&6
7295 else
7296 if test -n "$NMEDIT"; then
7297 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7298 else
7299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7300 for as_dir in $PATH
7301 do
7302 IFS=$as_save_IFS
7303 test -z "$as_dir" && as_dir=.
7304 for ac_exec_ext in '' $ac_executable_extensions; do
7305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7306 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 break 2
7309 fi
7310 done
7311 done
7312 IFS=$as_save_IFS
7313
7314 fi
7315 fi
7316 NMEDIT=$ac_cv_prog_NMEDIT
7317 if test -n "$NMEDIT"; then
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7319 $as_echo "$NMEDIT" >&6; }
7320 else
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7322 $as_echo "no" >&6; }
7323 fi
7324
7325
7326 fi
7327 if test -z "$ac_cv_prog_NMEDIT"; then
7328 ac_ct_NMEDIT=$NMEDIT
7329 # Extract the first word of "nmedit", so it can be a program name with args.
7330 set dummy nmedit; ac_word=$2
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7332 $as_echo_n "checking for $ac_word... " >&6; }
7333 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7334 $as_echo_n "(cached) " >&6
7335 else
7336 if test -n "$ac_ct_NMEDIT"; then
7337 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7338 else
7339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7340 for as_dir in $PATH
7341 do
7342 IFS=$as_save_IFS
7343 test -z "$as_dir" && as_dir=.
7344 for ac_exec_ext in '' $ac_executable_extensions; do
7345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7346 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 break 2
7349 fi
7350 done
7351 done
7352 IFS=$as_save_IFS
7353
7354 fi
7355 fi
7356 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7357 if test -n "$ac_ct_NMEDIT"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7359 $as_echo "$ac_ct_NMEDIT" >&6; }
7360 else
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7363 fi
7364
7365 if test "x$ac_ct_NMEDIT" = x; then
7366 NMEDIT=":"
7367 else
7368 case $cross_compiling:$ac_tool_warned in
7369 yes:)
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372 ac_tool_warned=yes ;;
7373 esac
7374 NMEDIT=$ac_ct_NMEDIT
7375 fi
7376 else
7377 NMEDIT="$ac_cv_prog_NMEDIT"
7378 fi
7379
7380 if test -n "$ac_tool_prefix"; then
7381 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7382 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7384 $as_echo_n "checking for $ac_word... " >&6; }
7385 if ${ac_cv_prog_LIPO+:} false; then :
7386 $as_echo_n "(cached) " >&6
7387 else
7388 if test -n "$LIPO"; then
7389 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7390 else
7391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7392 for as_dir in $PATH
7393 do
7394 IFS=$as_save_IFS
7395 test -z "$as_dir" && as_dir=.
7396 for ac_exec_ext in '' $ac_executable_extensions; do
7397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7398 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 break 2
7401 fi
7402 done
7403 done
7404 IFS=$as_save_IFS
7405
7406 fi
7407 fi
7408 LIPO=$ac_cv_prog_LIPO
7409 if test -n "$LIPO"; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7411 $as_echo "$LIPO" >&6; }
7412 else
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7414 $as_echo "no" >&6; }
7415 fi
7416
7417
7418 fi
7419 if test -z "$ac_cv_prog_LIPO"; then
7420 ac_ct_LIPO=$LIPO
7421 # Extract the first word of "lipo", so it can be a program name with args.
7422 set dummy lipo; ac_word=$2
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424 $as_echo_n "checking for $ac_word... " >&6; }
7425 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7426 $as_echo_n "(cached) " >&6
7427 else
7428 if test -n "$ac_ct_LIPO"; then
7429 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7430 else
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7432 for as_dir in $PATH
7433 do
7434 IFS=$as_save_IFS
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_ac_ct_LIPO="lipo"
7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 break 2
7441 fi
7442 done
7443 done
7444 IFS=$as_save_IFS
7445
7446 fi
7447 fi
7448 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7449 if test -n "$ac_ct_LIPO"; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7451 $as_echo "$ac_ct_LIPO" >&6; }
7452 else
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 $as_echo "no" >&6; }
7455 fi
7456
7457 if test "x$ac_ct_LIPO" = x; then
7458 LIPO=":"
7459 else
7460 case $cross_compiling:$ac_tool_warned in
7461 yes:)
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7463 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7464 ac_tool_warned=yes ;;
7465 esac
7466 LIPO=$ac_ct_LIPO
7467 fi
7468 else
7469 LIPO="$ac_cv_prog_LIPO"
7470 fi
7471
7472 if test -n "$ac_tool_prefix"; then
7473 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7474 set dummy ${ac_tool_prefix}otool; ac_word=$2
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7476 $as_echo_n "checking for $ac_word... " >&6; }
7477 if ${ac_cv_prog_OTOOL+:} false; then :
7478 $as_echo_n "(cached) " >&6
7479 else
7480 if test -n "$OTOOL"; then
7481 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7482 else
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486 IFS=$as_save_IFS
7487 test -z "$as_dir" && as_dir=.
7488 for ac_exec_ext in '' $ac_executable_extensions; do
7489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7490 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7492 break 2
7493 fi
7494 done
7495 done
7496 IFS=$as_save_IFS
7497
7498 fi
7499 fi
7500 OTOOL=$ac_cv_prog_OTOOL
7501 if test -n "$OTOOL"; then
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7503 $as_echo "$OTOOL" >&6; }
7504 else
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7506 $as_echo "no" >&6; }
7507 fi
7508
7509
7510 fi
7511 if test -z "$ac_cv_prog_OTOOL"; then
7512 ac_ct_OTOOL=$OTOOL
7513 # Extract the first word of "otool", so it can be a program name with args.
7514 set dummy otool; ac_word=$2
7515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7516 $as_echo_n "checking for $ac_word... " >&6; }
7517 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7518 $as_echo_n "(cached) " >&6
7519 else
7520 if test -n "$ac_ct_OTOOL"; then
7521 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7522 else
7523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7524 for as_dir in $PATH
7525 do
7526 IFS=$as_save_IFS
7527 test -z "$as_dir" && as_dir=.
7528 for ac_exec_ext in '' $ac_executable_extensions; do
7529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7530 ac_cv_prog_ac_ct_OTOOL="otool"
7531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 break 2
7533 fi
7534 done
7535 done
7536 IFS=$as_save_IFS
7537
7538 fi
7539 fi
7540 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7541 if test -n "$ac_ct_OTOOL"; then
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7543 $as_echo "$ac_ct_OTOOL" >&6; }
7544 else
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7546 $as_echo "no" >&6; }
7547 fi
7548
7549 if test "x$ac_ct_OTOOL" = x; then
7550 OTOOL=":"
7551 else
7552 case $cross_compiling:$ac_tool_warned in
7553 yes:)
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7556 ac_tool_warned=yes ;;
7557 esac
7558 OTOOL=$ac_ct_OTOOL
7559 fi
7560 else
7561 OTOOL="$ac_cv_prog_OTOOL"
7562 fi
7563
7564 if test -n "$ac_tool_prefix"; then
7565 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7566 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7568 $as_echo_n "checking for $ac_word... " >&6; }
7569 if ${ac_cv_prog_OTOOL64+:} false; then :
7570 $as_echo_n "(cached) " >&6
7571 else
7572 if test -n "$OTOOL64"; then
7573 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7574 else
7575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7576 for as_dir in $PATH
7577 do
7578 IFS=$as_save_IFS
7579 test -z "$as_dir" && as_dir=.
7580 for ac_exec_ext in '' $ac_executable_extensions; do
7581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7582 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7584 break 2
7585 fi
7586 done
7587 done
7588 IFS=$as_save_IFS
7589
7590 fi
7591 fi
7592 OTOOL64=$ac_cv_prog_OTOOL64
7593 if test -n "$OTOOL64"; then
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7595 $as_echo "$OTOOL64" >&6; }
7596 else
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7598 $as_echo "no" >&6; }
7599 fi
7600
7601
7602 fi
7603 if test -z "$ac_cv_prog_OTOOL64"; then
7604 ac_ct_OTOOL64=$OTOOL64
7605 # Extract the first word of "otool64", so it can be a program name with args.
7606 set dummy otool64; ac_word=$2
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7608 $as_echo_n "checking for $ac_word... " >&6; }
7609 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 if test -n "$ac_ct_OTOOL64"; then
7613 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7614 else
7615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7616 for as_dir in $PATH
7617 do
7618 IFS=$as_save_IFS
7619 test -z "$as_dir" && as_dir=.
7620 for ac_exec_ext in '' $ac_executable_extensions; do
7621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7622 ac_cv_prog_ac_ct_OTOOL64="otool64"
7623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 break 2
7625 fi
7626 done
7627 done
7628 IFS=$as_save_IFS
7629
7630 fi
7631 fi
7632 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7633 if test -n "$ac_ct_OTOOL64"; then
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7635 $as_echo "$ac_ct_OTOOL64" >&6; }
7636 else
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7638 $as_echo "no" >&6; }
7639 fi
7640
7641 if test "x$ac_ct_OTOOL64" = x; then
7642 OTOOL64=":"
7643 else
7644 case $cross_compiling:$ac_tool_warned in
7645 yes:)
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7648 ac_tool_warned=yes ;;
7649 esac
7650 OTOOL64=$ac_ct_OTOOL64
7651 fi
7652 else
7653 OTOOL64="$ac_cv_prog_OTOOL64"
7654 fi
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7683 $as_echo_n "checking for -single_module linker flag... " >&6; }
7684 if ${lt_cv_apple_cc_single_mod+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 lt_cv_apple_cc_single_mod=no
7688 if test -z "${LT_MULTI_MODULE}"; then
7689 # By default we will add the -single_module flag. You can override
7690 # by either setting the environment variable LT_MULTI_MODULE
7691 # non-empty at configure time, or by adding -multi_module to the
7692 # link flags.
7693 rm -rf libconftest.dylib*
7694 echo "int foo(void){return 1;}" > conftest.c
7695 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7696 -dynamiclib -Wl,-single_module conftest.c" >&5
7697 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7698 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7699 _lt_result=$?
7700 # If there is a non-empty error log, and "single_module"
7701 # appears in it, assume the flag caused a linker warning
7702 if test -s conftest.err && $GREP single_module conftest.err; then
7703 cat conftest.err >&5
7704 # Otherwise, if the output was created with a 0 exit code from
7705 # the compiler, it worked.
7706 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7707 lt_cv_apple_cc_single_mod=yes
7708 else
7709 cat conftest.err >&5
7710 fi
7711 rm -rf libconftest.dylib*
7712 rm -f conftest.*
7713 fi
7714 fi
7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7716 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7717
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7719 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7720 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7721 $as_echo_n "(cached) " >&6
7722 else
7723 lt_cv_ld_exported_symbols_list=no
7724 save_LDFLAGS=$LDFLAGS
7725 echo "_main" > conftest.sym
7726 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7729
7730 int
7731 main ()
7732 {
7733
7734 ;
7735 return 0;
7736 }
7737 _ACEOF
7738 if ac_fn_c_try_link "$LINENO"; then :
7739 lt_cv_ld_exported_symbols_list=yes
7740 else
7741 lt_cv_ld_exported_symbols_list=no
7742 fi
7743 rm -f core conftest.err conftest.$ac_objext \
7744 conftest$ac_exeext conftest.$ac_ext
7745 LDFLAGS="$save_LDFLAGS"
7746
7747 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7749 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7750
7751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7752 $as_echo_n "checking for -force_load linker flag... " >&6; }
7753 if ${lt_cv_ld_force_load+:} false; then :
7754 $as_echo_n "(cached) " >&6
7755 else
7756 lt_cv_ld_force_load=no
7757 cat > conftest.c << _LT_EOF
7758 int forced_loaded() { return 2;}
7759 _LT_EOF
7760 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7761 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7762 echo "$AR cru libconftest.a conftest.o" >&5
7763 $AR cru libconftest.a conftest.o 2>&5
7764 echo "$RANLIB libconftest.a" >&5
7765 $RANLIB libconftest.a 2>&5
7766 cat > conftest.c << _LT_EOF
7767 int main() { return 0;}
7768 _LT_EOF
7769 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7770 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7771 _lt_result=$?
7772 if test -s conftest.err && $GREP force_load conftest.err; then
7773 cat conftest.err >&5
7774 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7775 lt_cv_ld_force_load=yes
7776 else
7777 cat conftest.err >&5
7778 fi
7779 rm -f conftest.err libconftest.a conftest conftest.c
7780 rm -rf conftest.dSYM
7781
7782 fi
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7784 $as_echo "$lt_cv_ld_force_load" >&6; }
7785 case $host_os in
7786 rhapsody* | darwin1.[012])
7787 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7788 darwin1.*)
7789 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7790 darwin*) # darwin 5.x on
7791 # if running on 10.5 or later, the deployment target defaults
7792 # to the OS version, if on x86, and 10.4, the deployment
7793 # target defaults to 10.4. Don't you love it?
7794 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7795 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7796 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7797 10.[012]*)
7798 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7799 10.*)
7800 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7801 esac
7802 ;;
7803 esac
7804 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7805 _lt_dar_single_mod='$single_module'
7806 fi
7807 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7808 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7809 else
7810 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7811 fi
7812 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7813 _lt_dsymutil='~$DSYMUTIL $lib || :'
7814 else
7815 _lt_dsymutil=
7816 fi
7817 ;;
7818 esac
7819
7820 ac_ext=c
7821 ac_cpp='$CPP $CPPFLAGS'
7822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7826 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7827 # On Suns, sometimes $CPP names a directory.
7828 if test -n "$CPP" && test -d "$CPP"; then
7829 CPP=
7830 fi
7831 if test -z "$CPP"; then
7832 if ${ac_cv_prog_CPP+:} false; then :
7833 $as_echo_n "(cached) " >&6
7834 else
7835 # Double quotes because CPP needs to be expanded
7836 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7837 do
7838 ac_preproc_ok=false
7839 for ac_c_preproc_warn_flag in '' yes
7840 do
7841 # Use a header file that comes with gcc, so configuring glibc
7842 # with a fresh cross-compiler works.
7843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7844 # <limits.h> exists even on freestanding compilers.
7845 # On the NeXT, cc -E runs the code through the compiler's parser,
7846 # not just through cpp. "Syntax error" is here to catch this case.
7847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 #ifdef __STDC__
7850 # include <limits.h>
7851 #else
7852 # include <assert.h>
7853 #endif
7854 Syntax error
7855 _ACEOF
7856 if ac_fn_c_try_cpp "$LINENO"; then :
7857
7858 else
7859 # Broken: fails on valid input.
7860 continue
7861 fi
7862 rm -f conftest.err conftest.i conftest.$ac_ext
7863
7864 # OK, works on sane cases. Now check whether nonexistent headers
7865 # can be detected and how.
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7867 /* end confdefs.h. */
7868 #include <ac_nonexistent.h>
7869 _ACEOF
7870 if ac_fn_c_try_cpp "$LINENO"; then :
7871 # Broken: success on invalid input.
7872 continue
7873 else
7874 # Passes both tests.
7875 ac_preproc_ok=:
7876 break
7877 fi
7878 rm -f conftest.err conftest.i conftest.$ac_ext
7879
7880 done
7881 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7882 rm -f conftest.i conftest.err conftest.$ac_ext
7883 if $ac_preproc_ok; then :
7884 break
7885 fi
7886
7887 done
7888 ac_cv_prog_CPP=$CPP
7889
7890 fi
7891 CPP=$ac_cv_prog_CPP
7892 else
7893 ac_cv_prog_CPP=$CPP
7894 fi
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7896 $as_echo "$CPP" >&6; }
7897 ac_preproc_ok=false
7898 for ac_c_preproc_warn_flag in '' yes
7899 do
7900 # Use a header file that comes with gcc, so configuring glibc
7901 # with a fresh cross-compiler works.
7902 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7903 # <limits.h> exists even on freestanding compilers.
7904 # On the NeXT, cc -E runs the code through the compiler's parser,
7905 # not just through cpp. "Syntax error" is here to catch this case.
7906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7907 /* end confdefs.h. */
7908 #ifdef __STDC__
7909 # include <limits.h>
7910 #else
7911 # include <assert.h>
7912 #endif
7913 Syntax error
7914 _ACEOF
7915 if ac_fn_c_try_cpp "$LINENO"; then :
7916
7917 else
7918 # Broken: fails on valid input.
7919 continue
7920 fi
7921 rm -f conftest.err conftest.i conftest.$ac_ext
7922
7923 # OK, works on sane cases. Now check whether nonexistent headers
7924 # can be detected and how.
7925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7926 /* end confdefs.h. */
7927 #include <ac_nonexistent.h>
7928 _ACEOF
7929 if ac_fn_c_try_cpp "$LINENO"; then :
7930 # Broken: success on invalid input.
7931 continue
7932 else
7933 # Passes both tests.
7934 ac_preproc_ok=:
7935 break
7936 fi
7937 rm -f conftest.err conftest.i conftest.$ac_ext
7938
7939 done
7940 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7941 rm -f conftest.i conftest.err conftest.$ac_ext
7942 if $ac_preproc_ok; then :
7943
7944 else
7945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7947 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7948 See \`config.log' for more details" "$LINENO" 5; }
7949 fi
7950
7951 ac_ext=c
7952 ac_cpp='$CPP $CPPFLAGS'
7953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7956
7957
7958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7959 $as_echo_n "checking for ANSI C header files... " >&6; }
7960 if ${ac_cv_header_stdc+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962 else
7963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7964 /* end confdefs.h. */
7965 #include <stdlib.h>
7966 #include <stdarg.h>
7967 #include <string.h>
7968 #include <float.h>
7969
7970 int
7971 main ()
7972 {
7973
7974 ;
7975 return 0;
7976 }
7977 _ACEOF
7978 if ac_fn_c_try_compile "$LINENO"; then :
7979 ac_cv_header_stdc=yes
7980 else
7981 ac_cv_header_stdc=no
7982 fi
7983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7984
7985 if test $ac_cv_header_stdc = yes; then
7986 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 #include <string.h>
7990
7991 _ACEOF
7992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7993 $EGREP "memchr" >/dev/null 2>&1; then :
7994
7995 else
7996 ac_cv_header_stdc=no
7997 fi
7998 rm -f conftest*
7999
8000 fi
8001
8002 if test $ac_cv_header_stdc = yes; then
8003 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8005 /* end confdefs.h. */
8006 #include <stdlib.h>
8007
8008 _ACEOF
8009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8010 $EGREP "free" >/dev/null 2>&1; then :
8011
8012 else
8013 ac_cv_header_stdc=no
8014 fi
8015 rm -f conftest*
8016
8017 fi
8018
8019 if test $ac_cv_header_stdc = yes; then
8020 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8021 if test "$cross_compiling" = yes; then :
8022 :
8023 else
8024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8025 /* end confdefs.h. */
8026 #include <ctype.h>
8027 #include <stdlib.h>
8028 #if ((' ' & 0x0FF) == 0x020)
8029 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8030 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8031 #else
8032 # define ISLOWER(c) \
8033 (('a' <= (c) && (c) <= 'i') \
8034 || ('j' <= (c) && (c) <= 'r') \
8035 || ('s' <= (c) && (c) <= 'z'))
8036 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8037 #endif
8038
8039 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8040 int
8041 main ()
8042 {
8043 int i;
8044 for (i = 0; i < 256; i++)
8045 if (XOR (islower (i), ISLOWER (i))
8046 || toupper (i) != TOUPPER (i))
8047 return 2;
8048 return 0;
8049 }
8050 _ACEOF
8051 if ac_fn_c_try_run "$LINENO"; then :
8052
8053 else
8054 ac_cv_header_stdc=no
8055 fi
8056 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8057 conftest.$ac_objext conftest.beam conftest.$ac_ext
8058 fi
8059
8060 fi
8061 fi
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8063 $as_echo "$ac_cv_header_stdc" >&6; }
8064 if test $ac_cv_header_stdc = yes; then
8065
8066 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8067
8068 fi
8069
8070 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8071 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8072 inttypes.h stdint.h unistd.h
8073 do :
8074 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8075 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8076 "
8077 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8078 cat >>confdefs.h <<_ACEOF
8079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8080 _ACEOF
8081
8082 fi
8083
8084 done
8085
8086
8087 for ac_header in dlfcn.h
8088 do :
8089 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8090 "
8091 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8092 cat >>confdefs.h <<_ACEOF
8093 #define HAVE_DLFCN_H 1
8094 _ACEOF
8095
8096 fi
8097
8098 done
8099
8100
8101
8102
8103
8104 # Set options
8105 enable_dlopen=yes
8106 # Check whether --enable-static was given.
8107 if test "${enable_static+set}" = set; then :
8108 enableval=$enable_static; p=${PACKAGE-default}
8109 case $enableval in
8110 yes) enable_static=yes ;;
8111 no) enable_static=no ;;
8112 *)
8113 enable_static=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_static=yes
8120 fi
8121 done
8122 IFS="$lt_save_ifs"
8123 ;;
8124 esac
8125 else
8126 enable_static=no
8127 fi
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139 enable_win32_dll=no
8140
8141
8142 # Check whether --enable-shared was given.
8143 if test "${enable_shared+set}" = set; then :
8144 enableval=$enable_shared; p=${PACKAGE-default}
8145 case $enableval in
8146 yes) enable_shared=yes ;;
8147 no) enable_shared=no ;;
8148 *)
8149 enable_shared=no
8150 # Look at the argument we got. We use all the common list separators.
8151 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8152 for pkg in $enableval; do
8153 IFS="$lt_save_ifs"
8154 if test "X$pkg" = "X$p"; then
8155 enable_shared=yes
8156 fi
8157 done
8158 IFS="$lt_save_ifs"
8159 ;;
8160 esac
8161 else
8162 enable_shared=yes
8163 fi
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175 # Check whether --with-pic was given.
8176 if test "${with_pic+set}" = set; then :
8177 withval=$with_pic; lt_p=${PACKAGE-default}
8178 case $withval in
8179 yes|no) pic_mode=$withval ;;
8180 *)
8181 pic_mode=default
8182 # Look at the argument we got. We use all the common list separators.
8183 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8184 for lt_pkg in $withval; do
8185 IFS="$lt_save_ifs"
8186 if test "X$lt_pkg" = "X$lt_p"; then
8187 pic_mode=yes
8188 fi
8189 done
8190 IFS="$lt_save_ifs"
8191 ;;
8192 esac
8193 else
8194 pic_mode=default
8195 fi
8196
8197
8198 test -z "$pic_mode" && pic_mode=default
8199
8200
8201
8202
8203
8204
8205
8206 # Check whether --enable-fast-install was given.
8207 if test "${enable_fast_install+set}" = set; then :
8208 enableval=$enable_fast_install; p=${PACKAGE-default}
8209 case $enableval in
8210 yes) enable_fast_install=yes ;;
8211 no) enable_fast_install=no ;;
8212 *)
8213 enable_fast_install=no
8214 # Look at the argument we got. We use all the common list separators.
8215 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8216 for pkg in $enableval; do
8217 IFS="$lt_save_ifs"
8218 if test "X$pkg" = "X$p"; then
8219 enable_fast_install=yes
8220 fi
8221 done
8222 IFS="$lt_save_ifs"
8223 ;;
8224 esac
8225 else
8226 enable_fast_install=yes
8227 fi
8228
8229
8230
8231
8232
8233
8234
8235
8236
8237
8238
8239 # This can be used to rebuild libtool when needed
8240 LIBTOOL_DEPS="$ltmain"
8241
8242 # Always use our own libtool.
8243 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8244
8245
8246
8247
8248
8249
8250
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268
8269
8270
8271
8272
8273
8274 test -z "$LN_S" && LN_S="ln -s"
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289 if test -n "${ZSH_VERSION+set}" ; then
8290 setopt NO_GLOB_SUBST
8291 fi
8292
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8294 $as_echo_n "checking for objdir... " >&6; }
8295 if ${lt_cv_objdir+:} false; then :
8296 $as_echo_n "(cached) " >&6
8297 else
8298 rm -f .libs 2>/dev/null
8299 mkdir .libs 2>/dev/null
8300 if test -d .libs; then
8301 lt_cv_objdir=.libs
8302 else
8303 # MS-DOS does not allow filenames that begin with a dot.
8304 lt_cv_objdir=_libs
8305 fi
8306 rmdir .libs 2>/dev/null
8307 fi
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8309 $as_echo "$lt_cv_objdir" >&6; }
8310 objdir=$lt_cv_objdir
8311
8312
8313
8314
8315
8316 cat >>confdefs.h <<_ACEOF
8317 #define LT_OBJDIR "$lt_cv_objdir/"
8318 _ACEOF
8319
8320
8321
8322
8323 case $host_os in
8324 aix3*)
8325 # AIX sometimes has problems with the GCC collect2 program. For some
8326 # reason, if we set the COLLECT_NAMES environment variable, the problems
8327 # vanish in a puff of smoke.
8328 if test "X${COLLECT_NAMES+set}" != Xset; then
8329 COLLECT_NAMES=
8330 export COLLECT_NAMES
8331 fi
8332 ;;
8333 esac
8334
8335 # Global variables:
8336 ofile=libtool
8337 can_build_shared=yes
8338
8339 # All known linkers require a `.a' archive for static linking (except MSVC,
8340 # which needs '.lib').
8341 libext=a
8342
8343 with_gnu_ld="$lt_cv_prog_gnu_ld"
8344
8345 old_CC="$CC"
8346 old_CFLAGS="$CFLAGS"
8347
8348 # Set sane defaults for various variables
8349 test -z "$CC" && CC=cc
8350 test -z "$LTCC" && LTCC=$CC
8351 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8352 test -z "$LD" && LD=ld
8353 test -z "$ac_objext" && ac_objext=o
8354
8355 for cc_temp in $compiler""; do
8356 case $cc_temp in
8357 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8358 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8359 \-*) ;;
8360 *) break;;
8361 esac
8362 done
8363 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8364
8365
8366 # Only perform the check for file, if the check method requires it
8367 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8368 case $deplibs_check_method in
8369 file_magic*)
8370 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8372 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8373 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8374 $as_echo_n "(cached) " >&6
8375 else
8376 case $MAGIC_CMD in
8377 [\\/*] | ?:[\\/]*)
8378 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8379 ;;
8380 *)
8381 lt_save_MAGIC_CMD="$MAGIC_CMD"
8382 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8383 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8384 for ac_dir in $ac_dummy; do
8385 IFS="$lt_save_ifs"
8386 test -z "$ac_dir" && ac_dir=.
8387 if test -f $ac_dir/${ac_tool_prefix}file; then
8388 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8389 if test -n "$file_magic_test_file"; then
8390 case $deplibs_check_method in
8391 "file_magic "*)
8392 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8393 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8394 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8395 $EGREP "$file_magic_regex" > /dev/null; then
8396 :
8397 else
8398 cat <<_LT_EOF 1>&2
8399
8400 *** Warning: the command libtool uses to detect shared libraries,
8401 *** $file_magic_cmd, produces output that libtool cannot recognize.
8402 *** The result is that libtool may fail to recognize shared libraries
8403 *** as such. This will affect the creation of libtool libraries that
8404 *** depend on shared libraries, but programs linked with such libtool
8405 *** libraries will work regardless of this problem. Nevertheless, you
8406 *** may want to report the problem to your system manager and/or to
8407 *** bug-libtool@gnu.org
8408
8409 _LT_EOF
8410 fi ;;
8411 esac
8412 fi
8413 break
8414 fi
8415 done
8416 IFS="$lt_save_ifs"
8417 MAGIC_CMD="$lt_save_MAGIC_CMD"
8418 ;;
8419 esac
8420 fi
8421
8422 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8423 if test -n "$MAGIC_CMD"; then
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8425 $as_echo "$MAGIC_CMD" >&6; }
8426 else
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8428 $as_echo "no" >&6; }
8429 fi
8430
8431
8432
8433
8434
8435 if test -z "$lt_cv_path_MAGIC_CMD"; then
8436 if test -n "$ac_tool_prefix"; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8438 $as_echo_n "checking for file... " >&6; }
8439 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8440 $as_echo_n "(cached) " >&6
8441 else
8442 case $MAGIC_CMD in
8443 [\\/*] | ?:[\\/]*)
8444 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8445 ;;
8446 *)
8447 lt_save_MAGIC_CMD="$MAGIC_CMD"
8448 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8449 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8450 for ac_dir in $ac_dummy; do
8451 IFS="$lt_save_ifs"
8452 test -z "$ac_dir" && ac_dir=.
8453 if test -f $ac_dir/file; then
8454 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8455 if test -n "$file_magic_test_file"; then
8456 case $deplibs_check_method in
8457 "file_magic "*)
8458 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8459 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8460 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8461 $EGREP "$file_magic_regex" > /dev/null; then
8462 :
8463 else
8464 cat <<_LT_EOF 1>&2
8465
8466 *** Warning: the command libtool uses to detect shared libraries,
8467 *** $file_magic_cmd, produces output that libtool cannot recognize.
8468 *** The result is that libtool may fail to recognize shared libraries
8469 *** as such. This will affect the creation of libtool libraries that
8470 *** depend on shared libraries, but programs linked with such libtool
8471 *** libraries will work regardless of this problem. Nevertheless, you
8472 *** may want to report the problem to your system manager and/or to
8473 *** bug-libtool@gnu.org
8474
8475 _LT_EOF
8476 fi ;;
8477 esac
8478 fi
8479 break
8480 fi
8481 done
8482 IFS="$lt_save_ifs"
8483 MAGIC_CMD="$lt_save_MAGIC_CMD"
8484 ;;
8485 esac
8486 fi
8487
8488 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8489 if test -n "$MAGIC_CMD"; then
8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8491 $as_echo "$MAGIC_CMD" >&6; }
8492 else
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8494 $as_echo "no" >&6; }
8495 fi
8496
8497
8498 else
8499 MAGIC_CMD=:
8500 fi
8501 fi
8502
8503 fi
8504 ;;
8505 esac
8506
8507 # Use C for the default configuration in the libtool script
8508
8509 lt_save_CC="$CC"
8510 ac_ext=c
8511 ac_cpp='$CPP $CPPFLAGS'
8512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8515
8516
8517 # Source file extension for C test sources.
8518 ac_ext=c
8519
8520 # Object file extension for compiled C test sources.
8521 objext=o
8522 objext=$objext
8523
8524 # Code to be used in simple compile tests
8525 lt_simple_compile_test_code="int some_variable = 0;"
8526
8527 # Code to be used in simple link tests
8528 lt_simple_link_test_code='int main(){return(0);}'
8529
8530
8531
8532
8533
8534
8535
8536 # If no C compiler was specified, use CC.
8537 LTCC=${LTCC-"$CC"}
8538
8539 # If no C compiler flags were specified, use CFLAGS.
8540 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8541
8542 # Allow CC to be a program name with arguments.
8543 compiler=$CC
8544
8545 # Save the default compiler, since it gets overwritten when the other
8546 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8547 compiler_DEFAULT=$CC
8548
8549 # save warnings/boilerplate of simple test code
8550 ac_outfile=conftest.$ac_objext
8551 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8552 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8553 _lt_compiler_boilerplate=`cat conftest.err`
8554 $RM conftest*
8555
8556 ac_outfile=conftest.$ac_objext
8557 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8558 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8559 _lt_linker_boilerplate=`cat conftest.err`
8560 $RM -r conftest*
8561
8562
8563 ## CAVEAT EMPTOR:
8564 ## There is no encapsulation within the following macros, do not change
8565 ## the running order or otherwise move them around unless you know exactly
8566 ## what you are doing...
8567 if test -n "$compiler"; then
8568
8569 lt_prog_compiler_no_builtin_flag=
8570
8571 if test "$GCC" = yes; then
8572 case $cc_basename in
8573 nvcc*)
8574 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8575 *)
8576 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8577 esac
8578
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8580 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8581 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8582 $as_echo_n "(cached) " >&6
8583 else
8584 lt_cv_prog_compiler_rtti_exceptions=no
8585 ac_outfile=conftest.$ac_objext
8586 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8587 lt_compiler_flag="-fno-rtti -fno-exceptions"
8588 # Insert the option either (1) after the last *FLAGS variable, or
8589 # (2) before a word containing "conftest.", or (3) at the end.
8590 # Note that $ac_compile itself does not contain backslashes and begins
8591 # with a dollar sign (not a hyphen), so the echo should work correctly.
8592 # The option is referenced via a variable to avoid confusing sed.
8593 lt_compile=`echo "$ac_compile" | $SED \
8594 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8595 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8596 -e 's:$: $lt_compiler_flag:'`
8597 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8598 (eval "$lt_compile" 2>conftest.err)
8599 ac_status=$?
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 if (exit $ac_status) && test -s "$ac_outfile"; then
8603 # The compiler can only warn and ignore the option if not recognized
8604 # So say no if there are warnings other than the usual output.
8605 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8607 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8608 lt_cv_prog_compiler_rtti_exceptions=yes
8609 fi
8610 fi
8611 $RM conftest*
8612
8613 fi
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8615 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8616
8617 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8618 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8619 else
8620 :
8621 fi
8622
8623 fi
8624
8625
8626
8627
8628
8629
8630 lt_prog_compiler_wl=
8631 lt_prog_compiler_pic=
8632 lt_prog_compiler_static=
8633
8634
8635 if test "$GCC" = yes; then
8636 lt_prog_compiler_wl='-Wl,'
8637 lt_prog_compiler_static='-static'
8638
8639 case $host_os in
8640 aix*)
8641 # All AIX code is PIC.
8642 if test "$host_cpu" = ia64; then
8643 # AIX 5 now supports IA64 processor
8644 lt_prog_compiler_static='-Bstatic'
8645 fi
8646 ;;
8647
8648 amigaos*)
8649 case $host_cpu in
8650 powerpc)
8651 # see comment about AmigaOS4 .so support
8652 lt_prog_compiler_pic='-fPIC'
8653 ;;
8654 m68k)
8655 # FIXME: we need at least 68020 code to build shared libraries, but
8656 # adding the `-m68020' flag to GCC prevents building anything better,
8657 # like `-m68040'.
8658 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8659 ;;
8660 esac
8661 ;;
8662
8663 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8664 # PIC is the default for these OSes.
8665 ;;
8666
8667 mingw* | cygwin* | pw32* | os2* | cegcc*)
8668 # This hack is so that the source file can tell whether it is being
8669 # built for inclusion in a dll (and should export symbols for example).
8670 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8671 # (--disable-auto-import) libraries
8672 lt_prog_compiler_pic='-DDLL_EXPORT'
8673 ;;
8674
8675 darwin* | rhapsody*)
8676 # PIC is the default on this platform
8677 # Common symbols not allowed in MH_DYLIB files
8678 lt_prog_compiler_pic='-fno-common'
8679 ;;
8680
8681 haiku*)
8682 # PIC is the default for Haiku.
8683 # The "-static" flag exists, but is broken.
8684 lt_prog_compiler_static=
8685 ;;
8686
8687 hpux*)
8688 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8689 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8690 # sets the default TLS model and affects inlining.
8691 case $host_cpu in
8692 hppa*64*)
8693 # +Z the default
8694 ;;
8695 *)
8696 lt_prog_compiler_pic='-fPIC'
8697 ;;
8698 esac
8699 ;;
8700
8701 interix[3-9]*)
8702 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8703 # Instead, we relocate shared libraries at runtime.
8704 ;;
8705
8706 msdosdjgpp*)
8707 # Just because we use GCC doesn't mean we suddenly get shared libraries
8708 # on systems that don't support them.
8709 lt_prog_compiler_can_build_shared=no
8710 enable_shared=no
8711 ;;
8712
8713 *nto* | *qnx*)
8714 # QNX uses GNU C++, but need to define -shared option too, otherwise
8715 # it will coredump.
8716 lt_prog_compiler_pic='-fPIC -shared'
8717 ;;
8718
8719 sysv4*MP*)
8720 if test -d /usr/nec; then
8721 lt_prog_compiler_pic=-Kconform_pic
8722 fi
8723 ;;
8724
8725 *)
8726 lt_prog_compiler_pic='-fPIC'
8727 ;;
8728 esac
8729
8730 case $cc_basename in
8731 nvcc*) # Cuda Compiler Driver 2.2
8732 lt_prog_compiler_wl='-Xlinker '
8733 if test -n "$lt_prog_compiler_pic"; then
8734 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8735 fi
8736 ;;
8737 esac
8738 else
8739 # PORTME Check for flag to pass linker flags through the system compiler.
8740 case $host_os in
8741 aix*)
8742 lt_prog_compiler_wl='-Wl,'
8743 if test "$host_cpu" = ia64; then
8744 # AIX 5 now supports IA64 processor
8745 lt_prog_compiler_static='-Bstatic'
8746 else
8747 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8748 fi
8749 ;;
8750
8751 mingw* | cygwin* | pw32* | os2* | cegcc*)
8752 # This hack is so that the source file can tell whether it is being
8753 # built for inclusion in a dll (and should export symbols for example).
8754 lt_prog_compiler_pic='-DDLL_EXPORT'
8755 ;;
8756
8757 hpux9* | hpux10* | hpux11*)
8758 lt_prog_compiler_wl='-Wl,'
8759 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8760 # not for PA HP-UX.
8761 case $host_cpu in
8762 hppa*64*|ia64*)
8763 # +Z the default
8764 ;;
8765 *)
8766 lt_prog_compiler_pic='+Z'
8767 ;;
8768 esac
8769 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8770 lt_prog_compiler_static='${wl}-a ${wl}archive'
8771 ;;
8772
8773 irix5* | irix6* | nonstopux*)
8774 lt_prog_compiler_wl='-Wl,'
8775 # PIC (with -KPIC) is the default.
8776 lt_prog_compiler_static='-non_shared'
8777 ;;
8778
8779 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8780 case $cc_basename in
8781 # old Intel for x86_64 which still supported -KPIC.
8782 ecc*)
8783 lt_prog_compiler_wl='-Wl,'
8784 lt_prog_compiler_pic='-KPIC'
8785 lt_prog_compiler_static='-static'
8786 ;;
8787 # icc used to be incompatible with GCC.
8788 # ICC 10 doesn't accept -KPIC any more.
8789 icc* | ifort*)
8790 lt_prog_compiler_wl='-Wl,'
8791 lt_prog_compiler_pic='-fPIC'
8792 lt_prog_compiler_static='-static'
8793 ;;
8794 # Lahey Fortran 8.1.
8795 lf95*)
8796 lt_prog_compiler_wl='-Wl,'
8797 lt_prog_compiler_pic='--shared'
8798 lt_prog_compiler_static='--static'
8799 ;;
8800 nagfor*)
8801 # NAG Fortran compiler
8802 lt_prog_compiler_wl='-Wl,-Wl,,'
8803 lt_prog_compiler_pic='-PIC'
8804 lt_prog_compiler_static='-Bstatic'
8805 ;;
8806 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8807 # Portland Group compilers (*not* the Pentium gcc compiler,
8808 # which looks to be a dead project)
8809 lt_prog_compiler_wl='-Wl,'
8810 lt_prog_compiler_pic='-fpic'
8811 lt_prog_compiler_static='-Bstatic'
8812 ;;
8813 ccc*)
8814 lt_prog_compiler_wl='-Wl,'
8815 # All Alpha code is PIC.
8816 lt_prog_compiler_static='-non_shared'
8817 ;;
8818 xl* | bgxl* | bgf* | mpixl*)
8819 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8820 lt_prog_compiler_wl='-Wl,'
8821 lt_prog_compiler_pic='-qpic'
8822 lt_prog_compiler_static='-qstaticlink'
8823 ;;
8824 *)
8825 case `$CC -V 2>&1 | sed 5q` in
8826 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8827 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8828 lt_prog_compiler_pic='-KPIC'
8829 lt_prog_compiler_static='-Bstatic'
8830 lt_prog_compiler_wl=''
8831 ;;
8832 *Sun\ F* | *Sun*Fortran*)
8833 lt_prog_compiler_pic='-KPIC'
8834 lt_prog_compiler_static='-Bstatic'
8835 lt_prog_compiler_wl='-Qoption ld '
8836 ;;
8837 *Sun\ C*)
8838 # Sun C 5.9
8839 lt_prog_compiler_pic='-KPIC'
8840 lt_prog_compiler_static='-Bstatic'
8841 lt_prog_compiler_wl='-Wl,'
8842 ;;
8843 *Intel*\ [CF]*Compiler*)
8844 lt_prog_compiler_wl='-Wl,'
8845 lt_prog_compiler_pic='-fPIC'
8846 lt_prog_compiler_static='-static'
8847 ;;
8848 *Portland\ Group*)
8849 lt_prog_compiler_wl='-Wl,'
8850 lt_prog_compiler_pic='-fpic'
8851 lt_prog_compiler_static='-Bstatic'
8852 ;;
8853 esac
8854 ;;
8855 esac
8856 ;;
8857
8858 newsos6)
8859 lt_prog_compiler_pic='-KPIC'
8860 lt_prog_compiler_static='-Bstatic'
8861 ;;
8862
8863 *nto* | *qnx*)
8864 # QNX uses GNU C++, but need to define -shared option too, otherwise
8865 # it will coredump.
8866 lt_prog_compiler_pic='-fPIC -shared'
8867 ;;
8868
8869 osf3* | osf4* | osf5*)
8870 lt_prog_compiler_wl='-Wl,'
8871 # All OSF/1 code is PIC.
8872 lt_prog_compiler_static='-non_shared'
8873 ;;
8874
8875 rdos*)
8876 lt_prog_compiler_static='-non_shared'
8877 ;;
8878
8879 solaris*)
8880 lt_prog_compiler_pic='-KPIC'
8881 lt_prog_compiler_static='-Bstatic'
8882 case $cc_basename in
8883 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8884 lt_prog_compiler_wl='-Qoption ld ';;
8885 *)
8886 lt_prog_compiler_wl='-Wl,';;
8887 esac
8888 ;;
8889
8890 sunos4*)
8891 lt_prog_compiler_wl='-Qoption ld '
8892 lt_prog_compiler_pic='-PIC'
8893 lt_prog_compiler_static='-Bstatic'
8894 ;;
8895
8896 sysv4 | sysv4.2uw2* | sysv4.3*)
8897 lt_prog_compiler_wl='-Wl,'
8898 lt_prog_compiler_pic='-KPIC'
8899 lt_prog_compiler_static='-Bstatic'
8900 ;;
8901
8902 sysv4*MP*)
8903 if test -d /usr/nec ;then
8904 lt_prog_compiler_pic='-Kconform_pic'
8905 lt_prog_compiler_static='-Bstatic'
8906 fi
8907 ;;
8908
8909 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8910 lt_prog_compiler_wl='-Wl,'
8911 lt_prog_compiler_pic='-KPIC'
8912 lt_prog_compiler_static='-Bstatic'
8913 ;;
8914
8915 unicos*)
8916 lt_prog_compiler_wl='-Wl,'
8917 lt_prog_compiler_can_build_shared=no
8918 ;;
8919
8920 uts4*)
8921 lt_prog_compiler_pic='-pic'
8922 lt_prog_compiler_static='-Bstatic'
8923 ;;
8924
8925 *)
8926 lt_prog_compiler_can_build_shared=no
8927 ;;
8928 esac
8929 fi
8930
8931 case $host_os in
8932 # For platforms which do not support PIC, -DPIC is meaningless:
8933 *djgpp*)
8934 lt_prog_compiler_pic=
8935 ;;
8936 *)
8937 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8938 ;;
8939 esac
8940
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8942 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8943 if ${lt_cv_prog_compiler_pic+:} false; then :
8944 $as_echo_n "(cached) " >&6
8945 else
8946 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8947 fi
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8949 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8950 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8951
8952 #
8953 # Check to make sure the PIC flag actually works.
8954 #
8955 if test -n "$lt_prog_compiler_pic"; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8957 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8958 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 lt_cv_prog_compiler_pic_works=no
8962 ac_outfile=conftest.$ac_objext
8963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8964 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8965 # Insert the option either (1) after the last *FLAGS variable, or
8966 # (2) before a word containing "conftest.", or (3) at the end.
8967 # Note that $ac_compile itself does not contain backslashes and begins
8968 # with a dollar sign (not a hyphen), so the echo should work correctly.
8969 # The option is referenced via a variable to avoid confusing sed.
8970 lt_compile=`echo "$ac_compile" | $SED \
8971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8973 -e 's:$: $lt_compiler_flag:'`
8974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8975 (eval "$lt_compile" 2>conftest.err)
8976 ac_status=$?
8977 cat conftest.err >&5
8978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979 if (exit $ac_status) && test -s "$ac_outfile"; then
8980 # The compiler can only warn and ignore the option if not recognized
8981 # So say no if there are warnings other than the usual output.
8982 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8983 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8984 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8985 lt_cv_prog_compiler_pic_works=yes
8986 fi
8987 fi
8988 $RM conftest*
8989
8990 fi
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8992 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8993
8994 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8995 case $lt_prog_compiler_pic in
8996 "" | " "*) ;;
8997 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8998 esac
8999 else
9000 lt_prog_compiler_pic=
9001 lt_prog_compiler_can_build_shared=no
9002 fi
9003
9004 fi
9005
9006
9007
9008
9009
9010
9011
9012
9013
9014
9015
9016 #
9017 # Check to make sure the static flag actually works.
9018 #
9019 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9021 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9022 if ${lt_cv_prog_compiler_static_works+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 lt_cv_prog_compiler_static_works=no
9026 save_LDFLAGS="$LDFLAGS"
9027 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9028 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9029 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9030 # The linker can only warn and ignore the option if not recognized
9031 # So say no if there are warnings
9032 if test -s conftest.err; then
9033 # Append any errors to the config.log.
9034 cat conftest.err 1>&5
9035 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9036 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9037 if diff conftest.exp conftest.er2 >/dev/null; then
9038 lt_cv_prog_compiler_static_works=yes
9039 fi
9040 else
9041 lt_cv_prog_compiler_static_works=yes
9042 fi
9043 fi
9044 $RM -r conftest*
9045 LDFLAGS="$save_LDFLAGS"
9046
9047 fi
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9049 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9050
9051 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9052 :
9053 else
9054 lt_prog_compiler_static=
9055 fi
9056
9057
9058
9059
9060
9061
9062
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9064 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9065 if ${lt_cv_prog_compiler_c_o+:} false; then :
9066 $as_echo_n "(cached) " >&6
9067 else
9068 lt_cv_prog_compiler_c_o=no
9069 $RM -r conftest 2>/dev/null
9070 mkdir conftest
9071 cd conftest
9072 mkdir out
9073 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9074
9075 lt_compiler_flag="-o out/conftest2.$ac_objext"
9076 # Insert the option either (1) after the last *FLAGS variable, or
9077 # (2) before a word containing "conftest.", or (3) at the end.
9078 # Note that $ac_compile itself does not contain backslashes and begins
9079 # with a dollar sign (not a hyphen), so the echo should work correctly.
9080 lt_compile=`echo "$ac_compile" | $SED \
9081 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9082 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9083 -e 's:$: $lt_compiler_flag:'`
9084 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9085 (eval "$lt_compile" 2>out/conftest.err)
9086 ac_status=$?
9087 cat out/conftest.err >&5
9088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9089 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9090 then
9091 # The compiler can only warn and ignore the option if not recognized
9092 # So say no if there are warnings
9093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9094 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9095 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9096 lt_cv_prog_compiler_c_o=yes
9097 fi
9098 fi
9099 chmod u+w . 2>&5
9100 $RM conftest*
9101 # SGI C++ compiler will create directory out/ii_files/ for
9102 # template instantiation
9103 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9104 $RM out/* && rmdir out
9105 cd ..
9106 $RM -r conftest
9107 $RM conftest*
9108
9109 fi
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9111 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9112
9113
9114
9115
9116
9117
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9119 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9120 if ${lt_cv_prog_compiler_c_o+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 lt_cv_prog_compiler_c_o=no
9124 $RM -r conftest 2>/dev/null
9125 mkdir conftest
9126 cd conftest
9127 mkdir out
9128 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9129
9130 lt_compiler_flag="-o out/conftest2.$ac_objext"
9131 # Insert the option either (1) after the last *FLAGS variable, or
9132 # (2) before a word containing "conftest.", or (3) at the end.
9133 # Note that $ac_compile itself does not contain backslashes and begins
9134 # with a dollar sign (not a hyphen), so the echo should work correctly.
9135 lt_compile=`echo "$ac_compile" | $SED \
9136 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9137 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9138 -e 's:$: $lt_compiler_flag:'`
9139 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9140 (eval "$lt_compile" 2>out/conftest.err)
9141 ac_status=$?
9142 cat out/conftest.err >&5
9143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9145 then
9146 # The compiler can only warn and ignore the option if not recognized
9147 # So say no if there are warnings
9148 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9149 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9150 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9151 lt_cv_prog_compiler_c_o=yes
9152 fi
9153 fi
9154 chmod u+w . 2>&5
9155 $RM conftest*
9156 # SGI C++ compiler will create directory out/ii_files/ for
9157 # template instantiation
9158 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9159 $RM out/* && rmdir out
9160 cd ..
9161 $RM -r conftest
9162 $RM conftest*
9163
9164 fi
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9166 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9167
9168
9169
9170
9171 hard_links="nottested"
9172 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9173 # do not overwrite the value of need_locks provided by the user
9174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9175 $as_echo_n "checking if we can lock with hard links... " >&6; }
9176 hard_links=yes
9177 $RM conftest*
9178 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9179 touch conftest.a
9180 ln conftest.a conftest.b 2>&5 || hard_links=no
9181 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9183 $as_echo "$hard_links" >&6; }
9184 if test "$hard_links" = no; then
9185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9186 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9187 need_locks=warn
9188 fi
9189 else
9190 need_locks=no
9191 fi
9192
9193
9194
9195
9196
9197
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9199 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9200
9201 runpath_var=
9202 allow_undefined_flag=
9203 always_export_symbols=no
9204 archive_cmds=
9205 archive_expsym_cmds=
9206 compiler_needs_object=no
9207 enable_shared_with_static_runtimes=no
9208 export_dynamic_flag_spec=
9209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9210 hardcode_automatic=no
9211 hardcode_direct=no
9212 hardcode_direct_absolute=no
9213 hardcode_libdir_flag_spec=
9214 hardcode_libdir_separator=
9215 hardcode_minus_L=no
9216 hardcode_shlibpath_var=unsupported
9217 inherit_rpath=no
9218 link_all_deplibs=unknown
9219 module_cmds=
9220 module_expsym_cmds=
9221 old_archive_from_new_cmds=
9222 old_archive_from_expsyms_cmds=
9223 thread_safe_flag_spec=
9224 whole_archive_flag_spec=
9225 # include_expsyms should be a list of space-separated symbols to be *always*
9226 # included in the symbol list
9227 include_expsyms=
9228 # exclude_expsyms can be an extended regexp of symbols to exclude
9229 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9230 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9231 # as well as any symbol that contains `d'.
9232 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9233 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9234 # platforms (ab)use it in PIC code, but their linkers get confused if
9235 # the symbol is explicitly referenced. Since portable code cannot
9236 # rely on this symbol name, it's probably fine to never include it in
9237 # preloaded symbol tables.
9238 # Exclude shared library initialization/finalization symbols.
9239 extract_expsyms_cmds=
9240
9241 case $host_os in
9242 cygwin* | mingw* | pw32* | cegcc*)
9243 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9244 # When not using gcc, we currently assume that we are using
9245 # Microsoft Visual C++.
9246 if test "$GCC" != yes; then
9247 with_gnu_ld=no
9248 fi
9249 ;;
9250 interix*)
9251 # we just hope/assume this is gcc and not c89 (= MSVC++)
9252 with_gnu_ld=yes
9253 ;;
9254 openbsd*)
9255 with_gnu_ld=no
9256 ;;
9257 esac
9258
9259 ld_shlibs=yes
9260
9261 # On some targets, GNU ld is compatible enough with the native linker
9262 # that we're better off using the native interface for both.
9263 lt_use_gnu_ld_interface=no
9264 if test "$with_gnu_ld" = yes; then
9265 case $host_os in
9266 aix*)
9267 # The AIX port of GNU ld has always aspired to compatibility
9268 # with the native linker. However, as the warning in the GNU ld
9269 # block says, versions before 2.19.5* couldn't really create working
9270 # shared libraries, regardless of the interface used.
9271 case `$LD -v 2>&1` in
9272 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9273 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9274 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9275 *)
9276 lt_use_gnu_ld_interface=yes
9277 ;;
9278 esac
9279 ;;
9280 *)
9281 lt_use_gnu_ld_interface=yes
9282 ;;
9283 esac
9284 fi
9285
9286 if test "$lt_use_gnu_ld_interface" = yes; then
9287 # If archive_cmds runs LD, not CC, wlarc should be empty
9288 wlarc='${wl}'
9289
9290 # Set some defaults for GNU ld with shared library support. These
9291 # are reset later if shared libraries are not supported. Putting them
9292 # here allows them to be overridden if necessary.
9293 runpath_var=LD_RUN_PATH
9294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295 export_dynamic_flag_spec='${wl}--export-dynamic'
9296 # ancient GNU ld didn't support --whole-archive et. al.
9297 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9298 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9299 else
9300 whole_archive_flag_spec=
9301 fi
9302 supports_anon_versioning=no
9303 case `$LD -v 2>&1` in
9304 *GNU\ gold*) supports_anon_versioning=yes ;;
9305 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9306 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9307 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9308 *\ 2.11.*) ;; # other 2.11 versions
9309 *) supports_anon_versioning=yes ;;
9310 esac
9311
9312 # See if GNU ld supports shared libraries.
9313 case $host_os in
9314 aix[3-9]*)
9315 # On AIX/PPC, the GNU linker is very broken
9316 if test "$host_cpu" != ia64; then
9317 ld_shlibs=no
9318 cat <<_LT_EOF 1>&2
9319
9320 *** Warning: the GNU linker, at least up to release 2.19, is reported
9321 *** to be unable to reliably create shared libraries on AIX.
9322 *** Therefore, libtool is disabling shared libraries support. If you
9323 *** really care for shared libraries, you may want to install binutils
9324 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9325 *** You will then need to restart the configuration process.
9326
9327 _LT_EOF
9328 fi
9329 ;;
9330
9331 amigaos*)
9332 case $host_cpu in
9333 powerpc)
9334 # see comment about AmigaOS4 .so support
9335 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9336 archive_expsym_cmds=''
9337 ;;
9338 m68k)
9339 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)'
9340 hardcode_libdir_flag_spec='-L$libdir'
9341 hardcode_minus_L=yes
9342 ;;
9343 esac
9344 ;;
9345
9346 beos*)
9347 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9348 allow_undefined_flag=unsupported
9349 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9350 # support --undefined. This deserves some investigation. FIXME
9351 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9352 else
9353 ld_shlibs=no
9354 fi
9355 ;;
9356
9357 cygwin* | mingw* | pw32* | cegcc*)
9358 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9359 # as there is no search path for DLLs.
9360 hardcode_libdir_flag_spec='-L$libdir'
9361 export_dynamic_flag_spec='${wl}--export-all-symbols'
9362 allow_undefined_flag=unsupported
9363 always_export_symbols=no
9364 enable_shared_with_static_runtimes=yes
9365 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'
9366 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9367
9368 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9369 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9370 # If the export-symbols file already is a .def file (1st line
9371 # is EXPORTS), use it as is; otherwise, prepend...
9372 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9373 cp $export_symbols $output_objdir/$soname.def;
9374 else
9375 echo EXPORTS > $output_objdir/$soname.def;
9376 cat $export_symbols >> $output_objdir/$soname.def;
9377 fi~
9378 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9379 else
9380 ld_shlibs=no
9381 fi
9382 ;;
9383
9384 haiku*)
9385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9386 link_all_deplibs=yes
9387 ;;
9388
9389 interix[3-9]*)
9390 hardcode_direct=no
9391 hardcode_shlibpath_var=no
9392 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9393 export_dynamic_flag_spec='${wl}-E'
9394 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9395 # Instead, shared libraries are loaded at an image base (0x10000000 by
9396 # default) and relocated if they conflict, which is a slow very memory
9397 # consuming and fragmenting process. To avoid this, we pick a random,
9398 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9399 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9400 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9401 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'
9402 ;;
9403
9404 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9405 tmp_diet=no
9406 if test "$host_os" = linux-dietlibc; then
9407 case $cc_basename in
9408 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9409 esac
9410 fi
9411 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9412 && test "$tmp_diet" = no
9413 then
9414 tmp_addflag=' $pic_flag'
9415 tmp_sharedflag='-shared'
9416 case $cc_basename,$host_cpu in
9417 pgcc*) # Portland Group C compiler
9418 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'
9419 tmp_addflag=' $pic_flag'
9420 ;;
9421 pgf77* | pgf90* | pgf95* | pgfortran*)
9422 # Portland Group f77 and f90 compilers
9423 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'
9424 tmp_addflag=' $pic_flag -Mnomain' ;;
9425 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9426 tmp_addflag=' -i_dynamic' ;;
9427 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9428 tmp_addflag=' -i_dynamic -nofor_main' ;;
9429 ifc* | ifort*) # Intel Fortran compiler
9430 tmp_addflag=' -nofor_main' ;;
9431 lf95*) # Lahey Fortran 8.1
9432 whole_archive_flag_spec=
9433 tmp_sharedflag='--shared' ;;
9434 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9435 tmp_sharedflag='-qmkshrobj'
9436 tmp_addflag= ;;
9437 nvcc*) # Cuda Compiler Driver 2.2
9438 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'
9439 compiler_needs_object=yes
9440 ;;
9441 esac
9442 case `$CC -V 2>&1 | sed 5q` in
9443 *Sun\ C*) # Sun C 5.9
9444 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'
9445 compiler_needs_object=yes
9446 tmp_sharedflag='-G' ;;
9447 *Sun\ F*) # Sun Fortran 8.3
9448 tmp_sharedflag='-G' ;;
9449 esac
9450 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9451
9452 if test "x$supports_anon_versioning" = xyes; then
9453 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9454 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9455 echo "local: *; };" >> $output_objdir/$libname.ver~
9456 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9457 fi
9458
9459 case $cc_basename in
9460 xlf* | bgf* | bgxlf* | mpixlf*)
9461 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9462 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9463 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9464 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9465 if test "x$supports_anon_versioning" = xyes; then
9466 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9467 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9468 echo "local: *; };" >> $output_objdir/$libname.ver~
9469 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9470 fi
9471 ;;
9472 esac
9473 else
9474 ld_shlibs=no
9475 fi
9476 ;;
9477
9478 netbsd*)
9479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9480 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9481 wlarc=
9482 else
9483 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9484 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9485 fi
9486 ;;
9487
9488 solaris*)
9489 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9490 ld_shlibs=no
9491 cat <<_LT_EOF 1>&2
9492
9493 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9494 *** create shared libraries on Solaris systems. Therefore, libtool
9495 *** is disabling shared libraries support. We urge you to upgrade GNU
9496 *** binutils to release 2.9.1 or newer. Another option is to modify
9497 *** your PATH or compiler configuration so that the native linker is
9498 *** used, and then restart.
9499
9500 _LT_EOF
9501 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9502 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9503 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9504 else
9505 ld_shlibs=no
9506 fi
9507 ;;
9508
9509 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9510 case `$LD -v 2>&1` in
9511 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9512 ld_shlibs=no
9513 cat <<_LT_EOF 1>&2
9514
9515 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9516 *** reliably create shared libraries on SCO systems. Therefore, libtool
9517 *** is disabling shared libraries support. We urge you to upgrade GNU
9518 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9519 *** your PATH or compiler configuration so that the native linker is
9520 *** used, and then restart.
9521
9522 _LT_EOF
9523 ;;
9524 *)
9525 # For security reasons, it is highly recommended that you always
9526 # use absolute paths for naming shared libraries, and exclude the
9527 # DT_RUNPATH tag from executables and libraries. But doing so
9528 # requires that you compile everything twice, which is a pain.
9529 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9530 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9533 else
9534 ld_shlibs=no
9535 fi
9536 ;;
9537 esac
9538 ;;
9539
9540 sunos4*)
9541 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9542 wlarc=
9543 hardcode_direct=yes
9544 hardcode_shlibpath_var=no
9545 ;;
9546
9547 *)
9548 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9549 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9550 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9551 else
9552 ld_shlibs=no
9553 fi
9554 ;;
9555 esac
9556
9557 if test "$ld_shlibs" = no; then
9558 runpath_var=
9559 hardcode_libdir_flag_spec=
9560 export_dynamic_flag_spec=
9561 whole_archive_flag_spec=
9562 fi
9563 else
9564 # PORTME fill in a description of your system's linker (not GNU ld)
9565 case $host_os in
9566 aix3*)
9567 allow_undefined_flag=unsupported
9568 always_export_symbols=yes
9569 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'
9570 # Note: this linker hardcodes the directories in LIBPATH if there
9571 # are no directories specified by -L.
9572 hardcode_minus_L=yes
9573 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9574 # Neither direct hardcoding nor static linking is supported with a
9575 # broken collect2.
9576 hardcode_direct=unsupported
9577 fi
9578 ;;
9579
9580 aix[4-9]*)
9581 if test "$host_cpu" = ia64; then
9582 # On IA64, the linker does run time linking by default, so we don't
9583 # have to do anything special.
9584 aix_use_runtimelinking=no
9585 exp_sym_flag='-Bexport'
9586 no_entry_flag=""
9587 else
9588 # If we're using GNU nm, then we don't want the "-C" option.
9589 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9590 # Also, AIX nm treats weak defined symbols like other global
9591 # defined symbols, whereas GNU nm marks them as "W".
9592 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9593 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'
9594 else
9595 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'
9596 fi
9597 aix_use_runtimelinking=no
9598
9599 # Test if we are trying to use run time linking or normal
9600 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9601 # need to do runtime linking.
9602 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9603 for ld_flag in $LDFLAGS; do
9604 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9605 aix_use_runtimelinking=yes
9606 break
9607 fi
9608 done
9609 ;;
9610 esac
9611
9612 exp_sym_flag='-bexport'
9613 no_entry_flag='-bnoentry'
9614 fi
9615
9616 # When large executables or shared objects are built, AIX ld can
9617 # have problems creating the table of contents. If linking a library
9618 # or program results in "error TOC overflow" add -mminimal-toc to
9619 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9620 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9621
9622 archive_cmds=''
9623 hardcode_direct=yes
9624 hardcode_direct_absolute=yes
9625 hardcode_libdir_separator=':'
9626 link_all_deplibs=yes
9627 file_list_spec='${wl}-f,'
9628
9629 if test "$GCC" = yes; then
9630 case $host_os in aix4.[012]|aix4.[012].*)
9631 # We only want to do this on AIX 4.2 and lower, the check
9632 # below for broken collect2 doesn't work under 4.3+
9633 collect2name=`${CC} -print-prog-name=collect2`
9634 if test -f "$collect2name" &&
9635 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9636 then
9637 # We have reworked collect2
9638 :
9639 else
9640 # We have old collect2
9641 hardcode_direct=unsupported
9642 # It fails to find uninstalled libraries when the uninstalled
9643 # path is not listed in the libpath. Setting hardcode_minus_L
9644 # to unsupported forces relinking
9645 hardcode_minus_L=yes
9646 hardcode_libdir_flag_spec='-L$libdir'
9647 hardcode_libdir_separator=
9648 fi
9649 ;;
9650 esac
9651 shared_flag='-shared'
9652 if test "$aix_use_runtimelinking" = yes; then
9653 shared_flag="$shared_flag "'${wl}-G'
9654 fi
9655 else
9656 # not using gcc
9657 if test "$host_cpu" = ia64; then
9658 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9659 # chokes on -Wl,-G. The following line is correct:
9660 shared_flag='-G'
9661 else
9662 if test "$aix_use_runtimelinking" = yes; then
9663 shared_flag='${wl}-G'
9664 else
9665 shared_flag='${wl}-bM:SRE'
9666 fi
9667 fi
9668 fi
9669
9670 export_dynamic_flag_spec='${wl}-bexpall'
9671 # It seems that -bexpall does not export symbols beginning with
9672 # underscore (_), so it is better to generate a list of symbols to export.
9673 always_export_symbols=yes
9674 if test "$aix_use_runtimelinking" = yes; then
9675 # Warning - without using the other runtime loading flags (-brtl),
9676 # -berok will link without error, but may produce a broken library.
9677 allow_undefined_flag='-berok'
9678 # Determine the default libpath from the value encoded in an
9679 # empty executable.
9680 if test "${lt_cv_aix_libpath+set}" = set; then
9681 aix_libpath=$lt_cv_aix_libpath
9682 else
9683 if ${lt_cv_aix_libpath_+:} false; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9688
9689 int
9690 main ()
9691 {
9692
9693 ;
9694 return 0;
9695 }
9696 _ACEOF
9697 if ac_fn_c_try_link "$LINENO"; then :
9698
9699 lt_aix_libpath_sed='
9700 /Import File Strings/,/^$/ {
9701 /^0/ {
9702 s/^0 *\([^ ]*\) *$/\1/
9703 p
9704 }
9705 }'
9706 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9707 # Check for a 64-bit object if we didn't find anything.
9708 if test -z "$lt_cv_aix_libpath_"; then
9709 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9710 fi
9711 fi
9712 rm -f core conftest.err conftest.$ac_objext \
9713 conftest$ac_exeext conftest.$ac_ext
9714 if test -z "$lt_cv_aix_libpath_"; then
9715 lt_cv_aix_libpath_="/usr/lib:/lib"
9716 fi
9717
9718 fi
9719
9720 aix_libpath=$lt_cv_aix_libpath_
9721 fi
9722
9723 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9724 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"
9725 else
9726 if test "$host_cpu" = ia64; then
9727 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9728 allow_undefined_flag="-z nodefs"
9729 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"
9730 else
9731 # Determine the default libpath from the value encoded in an
9732 # empty executable.
9733 if test "${lt_cv_aix_libpath+set}" = set; then
9734 aix_libpath=$lt_cv_aix_libpath
9735 else
9736 if ${lt_cv_aix_libpath_+:} false; then :
9737 $as_echo_n "(cached) " >&6
9738 else
9739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9741
9742 int
9743 main ()
9744 {
9745
9746 ;
9747 return 0;
9748 }
9749 _ACEOF
9750 if ac_fn_c_try_link "$LINENO"; then :
9751
9752 lt_aix_libpath_sed='
9753 /Import File Strings/,/^$/ {
9754 /^0/ {
9755 s/^0 *\([^ ]*\) *$/\1/
9756 p
9757 }
9758 }'
9759 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9760 # Check for a 64-bit object if we didn't find anything.
9761 if test -z "$lt_cv_aix_libpath_"; then
9762 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9763 fi
9764 fi
9765 rm -f core conftest.err conftest.$ac_objext \
9766 conftest$ac_exeext conftest.$ac_ext
9767 if test -z "$lt_cv_aix_libpath_"; then
9768 lt_cv_aix_libpath_="/usr/lib:/lib"
9769 fi
9770
9771 fi
9772
9773 aix_libpath=$lt_cv_aix_libpath_
9774 fi
9775
9776 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9777 # Warning - without using the other run time loading flags,
9778 # -berok will link without error, but may produce a broken library.
9779 no_undefined_flag=' ${wl}-bernotok'
9780 allow_undefined_flag=' ${wl}-berok'
9781 if test "$with_gnu_ld" = yes; then
9782 # We only use this code for GNU lds that support --whole-archive.
9783 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9784 else
9785 # Exported symbols can be pulled into shared objects from archives
9786 whole_archive_flag_spec='$convenience'
9787 fi
9788 archive_cmds_need_lc=yes
9789 # This is similar to how AIX traditionally builds its shared libraries.
9790 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'
9791 fi
9792 fi
9793 ;;
9794
9795 amigaos*)
9796 case $host_cpu in
9797 powerpc)
9798 # see comment about AmigaOS4 .so support
9799 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9800 archive_expsym_cmds=''
9801 ;;
9802 m68k)
9803 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)'
9804 hardcode_libdir_flag_spec='-L$libdir'
9805 hardcode_minus_L=yes
9806 ;;
9807 esac
9808 ;;
9809
9810 bsdi[45]*)
9811 export_dynamic_flag_spec=-rdynamic
9812 ;;
9813
9814 cygwin* | mingw* | pw32* | cegcc*)
9815 # When not using gcc, we currently assume that we are using
9816 # Microsoft Visual C++.
9817 # hardcode_libdir_flag_spec is actually meaningless, as there is
9818 # no search path for DLLs.
9819 case $cc_basename in
9820 cl*)
9821 # Native MSVC
9822 hardcode_libdir_flag_spec=' '
9823 allow_undefined_flag=unsupported
9824 always_export_symbols=yes
9825 file_list_spec='@'
9826 # Tell ltmain to make .lib files, not .a files.
9827 libext=lib
9828 # Tell ltmain to make .dll files, not .so files.
9829 shrext_cmds=".dll"
9830 # FIXME: Setting linknames here is a bad hack.
9831 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9832 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9833 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9834 else
9835 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9836 fi~
9837 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9838 linknames='
9839 # The linker will not automatically build a static lib if we build a DLL.
9840 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9841 enable_shared_with_static_runtimes=yes
9842 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9843 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9844 # Don't use ranlib
9845 old_postinstall_cmds='chmod 644 $oldlib'
9846 postlink_cmds='lt_outputfile="@OUTPUT@"~
9847 lt_tool_outputfile="@TOOL_OUTPUT@"~
9848 case $lt_outputfile in
9849 *.exe|*.EXE) ;;
9850 *)
9851 lt_outputfile="$lt_outputfile.exe"
9852 lt_tool_outputfile="$lt_tool_outputfile.exe"
9853 ;;
9854 esac~
9855 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9856 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9857 $RM "$lt_outputfile.manifest";
9858 fi'
9859 ;;
9860 *)
9861 # Assume MSVC wrapper
9862 hardcode_libdir_flag_spec=' '
9863 allow_undefined_flag=unsupported
9864 # Tell ltmain to make .lib files, not .a files.
9865 libext=lib
9866 # Tell ltmain to make .dll files, not .so files.
9867 shrext_cmds=".dll"
9868 # FIXME: Setting linknames here is a bad hack.
9869 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9870 # The linker will automatically build a .lib file if we build a DLL.
9871 old_archive_from_new_cmds='true'
9872 # FIXME: Should let the user specify the lib program.
9873 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9874 enable_shared_with_static_runtimes=yes
9875 ;;
9876 esac
9877 ;;
9878
9879 darwin* | rhapsody*)
9880
9881
9882 archive_cmds_need_lc=no
9883 hardcode_direct=no
9884 hardcode_automatic=yes
9885 hardcode_shlibpath_var=unsupported
9886 if test "$lt_cv_ld_force_load" = "yes"; then
9887 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\"`'
9888
9889 else
9890 whole_archive_flag_spec=''
9891 fi
9892 link_all_deplibs=yes
9893 allow_undefined_flag="$_lt_dar_allow_undefined"
9894 case $cc_basename in
9895 ifort*) _lt_dar_can_shared=yes ;;
9896 *) _lt_dar_can_shared=$GCC ;;
9897 esac
9898 if test "$_lt_dar_can_shared" = "yes"; then
9899 output_verbose_link_cmd=func_echo_all
9900 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9901 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9902 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}"
9903 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}"
9904
9905 else
9906 ld_shlibs=no
9907 fi
9908
9909 ;;
9910
9911 dgux*)
9912 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9913 hardcode_libdir_flag_spec='-L$libdir'
9914 hardcode_shlibpath_var=no
9915 ;;
9916
9917 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9918 # support. Future versions do this automatically, but an explicit c++rt0.o
9919 # does not break anything, and helps significantly (at the cost of a little
9920 # extra space).
9921 freebsd2.2*)
9922 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9923 hardcode_libdir_flag_spec='-R$libdir'
9924 hardcode_direct=yes
9925 hardcode_shlibpath_var=no
9926 ;;
9927
9928 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9929 freebsd2.*)
9930 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9931 hardcode_direct=yes
9932 hardcode_minus_L=yes
9933 hardcode_shlibpath_var=no
9934 ;;
9935
9936 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9937 freebsd* | dragonfly*)
9938 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9939 hardcode_libdir_flag_spec='-R$libdir'
9940 hardcode_direct=yes
9941 hardcode_shlibpath_var=no
9942 ;;
9943
9944 hpux9*)
9945 if test "$GCC" = yes; then
9946 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'
9947 else
9948 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'
9949 fi
9950 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9951 hardcode_libdir_separator=:
9952 hardcode_direct=yes
9953
9954 # hardcode_minus_L: Not really in the search PATH,
9955 # but as the default location of the library.
9956 hardcode_minus_L=yes
9957 export_dynamic_flag_spec='${wl}-E'
9958 ;;
9959
9960 hpux10*)
9961 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9962 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9963 else
9964 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9965 fi
9966 if test "$with_gnu_ld" = no; then
9967 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9968 hardcode_libdir_separator=:
9969 hardcode_direct=yes
9970 hardcode_direct_absolute=yes
9971 export_dynamic_flag_spec='${wl}-E'
9972 # hardcode_minus_L: Not really in the search PATH,
9973 # but as the default location of the library.
9974 hardcode_minus_L=yes
9975 fi
9976 ;;
9977
9978 hpux11*)
9979 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9980 case $host_cpu in
9981 hppa*64*)
9982 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9983 ;;
9984 ia64*)
9985 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9986 ;;
9987 *)
9988 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9989 ;;
9990 esac
9991 else
9992 case $host_cpu in
9993 hppa*64*)
9994 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9995 ;;
9996 ia64*)
9997 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9998 ;;
9999 *)
10000
10001 # Older versions of the 11.00 compiler do not understand -b yet
10002 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10004 $as_echo_n "checking if $CC understands -b... " >&6; }
10005 if ${lt_cv_prog_compiler__b+:} false; then :
10006 $as_echo_n "(cached) " >&6
10007 else
10008 lt_cv_prog_compiler__b=no
10009 save_LDFLAGS="$LDFLAGS"
10010 LDFLAGS="$LDFLAGS -b"
10011 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10012 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10013 # The linker can only warn and ignore the option if not recognized
10014 # So say no if there are warnings
10015 if test -s conftest.err; then
10016 # Append any errors to the config.log.
10017 cat conftest.err 1>&5
10018 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10019 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10020 if diff conftest.exp conftest.er2 >/dev/null; then
10021 lt_cv_prog_compiler__b=yes
10022 fi
10023 else
10024 lt_cv_prog_compiler__b=yes
10025 fi
10026 fi
10027 $RM -r conftest*
10028 LDFLAGS="$save_LDFLAGS"
10029
10030 fi
10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10032 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10033
10034 if test x"$lt_cv_prog_compiler__b" = xyes; then
10035 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10036 else
10037 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10038 fi
10039
10040 ;;
10041 esac
10042 fi
10043 if test "$with_gnu_ld" = no; then
10044 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10045 hardcode_libdir_separator=:
10046
10047 case $host_cpu in
10048 hppa*64*|ia64*)
10049 hardcode_direct=no
10050 hardcode_shlibpath_var=no
10051 ;;
10052 *)
10053 hardcode_direct=yes
10054 hardcode_direct_absolute=yes
10055 export_dynamic_flag_spec='${wl}-E'
10056
10057 # hardcode_minus_L: Not really in the search PATH,
10058 # but as the default location of the library.
10059 hardcode_minus_L=yes
10060 ;;
10061 esac
10062 fi
10063 ;;
10064
10065 irix5* | irix6* | nonstopux*)
10066 if test "$GCC" = yes; then
10067 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'
10068 # Try to use the -exported_symbol ld option, if it does not
10069 # work, assume that -exports_file does not work either and
10070 # implicitly export all symbols.
10071 # This should be the same for all languages, so no per-tag cache variable.
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10073 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10074 if ${lt_cv_irix_exported_symbol+:} false; then :
10075 $as_echo_n "(cached) " >&6
10076 else
10077 save_LDFLAGS="$LDFLAGS"
10078 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10080 /* end confdefs.h. */
10081 int foo (void) { return 0; }
10082 _ACEOF
10083 if ac_fn_c_try_link "$LINENO"; then :
10084 lt_cv_irix_exported_symbol=yes
10085 else
10086 lt_cv_irix_exported_symbol=no
10087 fi
10088 rm -f core conftest.err conftest.$ac_objext \
10089 conftest$ac_exeext conftest.$ac_ext
10090 LDFLAGS="$save_LDFLAGS"
10091 fi
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10093 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10094 if test "$lt_cv_irix_exported_symbol" = yes; then
10095 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'
10096 fi
10097 else
10098 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'
10099 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'
10100 fi
10101 archive_cmds_need_lc='no'
10102 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10103 hardcode_libdir_separator=:
10104 inherit_rpath=yes
10105 link_all_deplibs=yes
10106 ;;
10107
10108 netbsd*)
10109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10111 else
10112 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10113 fi
10114 hardcode_libdir_flag_spec='-R$libdir'
10115 hardcode_direct=yes
10116 hardcode_shlibpath_var=no
10117 ;;
10118
10119 newsos6)
10120 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10121 hardcode_direct=yes
10122 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10123 hardcode_libdir_separator=:
10124 hardcode_shlibpath_var=no
10125 ;;
10126
10127 *nto* | *qnx*)
10128 ;;
10129
10130 openbsd*)
10131 if test -f /usr/libexec/ld.so; then
10132 hardcode_direct=yes
10133 hardcode_shlibpath_var=no
10134 hardcode_direct_absolute=yes
10135 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10136 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10137 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10138 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10139 export_dynamic_flag_spec='${wl}-E'
10140 else
10141 case $host_os in
10142 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10143 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10144 hardcode_libdir_flag_spec='-R$libdir'
10145 ;;
10146 *)
10147 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10148 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10149 ;;
10150 esac
10151 fi
10152 else
10153 ld_shlibs=no
10154 fi
10155 ;;
10156
10157 os2*)
10158 hardcode_libdir_flag_spec='-L$libdir'
10159 hardcode_minus_L=yes
10160 allow_undefined_flag=unsupported
10161 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'
10162 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10163 ;;
10164
10165 osf3*)
10166 if test "$GCC" = yes; then
10167 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10168 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'
10169 else
10170 allow_undefined_flag=' -expect_unresolved \*'
10171 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'
10172 fi
10173 archive_cmds_need_lc='no'
10174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10175 hardcode_libdir_separator=:
10176 ;;
10177
10178 osf4* | osf5*) # as osf3* with the addition of -msym flag
10179 if test "$GCC" = yes; then
10180 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10181 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'
10182 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10183 else
10184 allow_undefined_flag=' -expect_unresolved \*'
10185 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'
10186 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~
10187 $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'
10188
10189 # Both c and cxx compiler support -rpath directly
10190 hardcode_libdir_flag_spec='-rpath $libdir'
10191 fi
10192 archive_cmds_need_lc='no'
10193 hardcode_libdir_separator=:
10194 ;;
10195
10196 solaris*)
10197 no_undefined_flag=' -z defs'
10198 if test "$GCC" = yes; then
10199 wlarc='${wl}'
10200 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10201 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10202 $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'
10203 else
10204 case `$CC -V 2>&1` in
10205 *"Compilers 5.0"*)
10206 wlarc=''
10207 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10208 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10209 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10210 ;;
10211 *)
10212 wlarc='${wl}'
10213 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10214 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10215 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10216 ;;
10217 esac
10218 fi
10219 hardcode_libdir_flag_spec='-R$libdir'
10220 hardcode_shlibpath_var=no
10221 case $host_os in
10222 solaris2.[0-5] | solaris2.[0-5].*) ;;
10223 *)
10224 # The compiler driver will combine and reorder linker options,
10225 # but understands `-z linker_flag'. GCC discards it without `$wl',
10226 # but is careful enough not to reorder.
10227 # Supported since Solaris 2.6 (maybe 2.5.1?)
10228 if test "$GCC" = yes; then
10229 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10230 else
10231 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10232 fi
10233 ;;
10234 esac
10235 link_all_deplibs=yes
10236 ;;
10237
10238 sunos4*)
10239 if test "x$host_vendor" = xsequent; then
10240 # Use $CC to link under sequent, because it throws in some extra .o
10241 # files that make .init and .fini sections work.
10242 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10243 else
10244 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10245 fi
10246 hardcode_libdir_flag_spec='-L$libdir'
10247 hardcode_direct=yes
10248 hardcode_minus_L=yes
10249 hardcode_shlibpath_var=no
10250 ;;
10251
10252 sysv4)
10253 case $host_vendor in
10254 sni)
10255 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10256 hardcode_direct=yes # is this really true???
10257 ;;
10258 siemens)
10259 ## LD is ld it makes a PLAMLIB
10260 ## CC just makes a GrossModule.
10261 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10262 reload_cmds='$CC -r -o $output$reload_objs'
10263 hardcode_direct=no
10264 ;;
10265 motorola)
10266 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10267 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10268 ;;
10269 esac
10270 runpath_var='LD_RUN_PATH'
10271 hardcode_shlibpath_var=no
10272 ;;
10273
10274 sysv4.3*)
10275 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10276 hardcode_shlibpath_var=no
10277 export_dynamic_flag_spec='-Bexport'
10278 ;;
10279
10280 sysv4*MP*)
10281 if test -d /usr/nec; then
10282 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10283 hardcode_shlibpath_var=no
10284 runpath_var=LD_RUN_PATH
10285 hardcode_runpath_var=yes
10286 ld_shlibs=yes
10287 fi
10288 ;;
10289
10290 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10291 no_undefined_flag='${wl}-z,text'
10292 archive_cmds_need_lc=no
10293 hardcode_shlibpath_var=no
10294 runpath_var='LD_RUN_PATH'
10295
10296 if test "$GCC" = yes; then
10297 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10298 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10299 else
10300 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10301 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10302 fi
10303 ;;
10304
10305 sysv5* | sco3.2v5* | sco5v6*)
10306 # Note: We can NOT use -z defs as we might desire, because we do not
10307 # link with -lc, and that would cause any symbols used from libc to
10308 # always be unresolved, which means just about no library would
10309 # ever link correctly. If we're not using GNU ld we use -z text
10310 # though, which does catch some bad symbols but isn't as heavy-handed
10311 # as -z defs.
10312 no_undefined_flag='${wl}-z,text'
10313 allow_undefined_flag='${wl}-z,nodefs'
10314 archive_cmds_need_lc=no
10315 hardcode_shlibpath_var=no
10316 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10317 hardcode_libdir_separator=':'
10318 link_all_deplibs=yes
10319 export_dynamic_flag_spec='${wl}-Bexport'
10320 runpath_var='LD_RUN_PATH'
10321
10322 if test "$GCC" = yes; then
10323 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10324 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325 else
10326 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10327 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10328 fi
10329 ;;
10330
10331 uts4*)
10332 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10333 hardcode_libdir_flag_spec='-L$libdir'
10334 hardcode_shlibpath_var=no
10335 ;;
10336
10337 *)
10338 ld_shlibs=no
10339 ;;
10340 esac
10341
10342 if test x$host_vendor = xsni; then
10343 case $host in
10344 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10345 export_dynamic_flag_spec='${wl}-Blargedynsym'
10346 ;;
10347 esac
10348 fi
10349 fi
10350
10351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10352 $as_echo "$ld_shlibs" >&6; }
10353 test "$ld_shlibs" = no && can_build_shared=no
10354
10355 with_gnu_ld=$with_gnu_ld
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371 #
10372 # Do we need to explicitly link libc?
10373 #
10374 case "x$archive_cmds_need_lc" in
10375 x|xyes)
10376 # Assume -lc should be added
10377 archive_cmds_need_lc=yes
10378
10379 if test "$enable_shared" = yes && test "$GCC" = yes; then
10380 case $archive_cmds in
10381 *'~'*)
10382 # FIXME: we may have to deal with multi-command sequences.
10383 ;;
10384 '$CC '*)
10385 # Test whether the compiler implicitly links with -lc since on some
10386 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10387 # to ld, don't add -lc before -lgcc.
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10389 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10390 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10391 $as_echo_n "(cached) " >&6
10392 else
10393 $RM conftest*
10394 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10395
10396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10397 (eval $ac_compile) 2>&5
10398 ac_status=$?
10399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10400 test $ac_status = 0; } 2>conftest.err; then
10401 soname=conftest
10402 lib=conftest
10403 libobjs=conftest.$ac_objext
10404 deplibs=
10405 wl=$lt_prog_compiler_wl
10406 pic_flag=$lt_prog_compiler_pic
10407 compiler_flags=-v
10408 linker_flags=-v
10409 verstring=
10410 output_objdir=.
10411 libname=conftest
10412 lt_save_allow_undefined_flag=$allow_undefined_flag
10413 allow_undefined_flag=
10414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10415 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10416 ac_status=$?
10417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10418 test $ac_status = 0; }
10419 then
10420 lt_cv_archive_cmds_need_lc=no
10421 else
10422 lt_cv_archive_cmds_need_lc=yes
10423 fi
10424 allow_undefined_flag=$lt_save_allow_undefined_flag
10425 else
10426 cat conftest.err 1>&5
10427 fi
10428 $RM conftest*
10429
10430 fi
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10432 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10433 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10434 ;;
10435 esac
10436 fi
10437 ;;
10438 esac
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
10488
10489
10490
10491
10492
10493
10494
10495
10496
10497
10498
10499
10500
10501
10502
10503
10504
10505
10506
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10592 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10593
10594 if test "$GCC" = yes; then
10595 case $host_os in
10596 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10597 *) lt_awk_arg="/^libraries:/" ;;
10598 esac
10599 case $host_os in
10600 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10601 *) lt_sed_strip_eq="s,=/,/,g" ;;
10602 esac
10603 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10604 case $lt_search_path_spec in
10605 *\;*)
10606 # if the path contains ";" then we assume it to be the separator
10607 # otherwise default to the standard path separator (i.e. ":") - it is
10608 # assumed that no part of a normal pathname contains ";" but that should
10609 # okay in the real world where ";" in dirpaths is itself problematic.
10610 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10611 ;;
10612 *)
10613 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10614 ;;
10615 esac
10616 # Ok, now we have the path, separated by spaces, we can step through it
10617 # and add multilib dir if necessary.
10618 lt_tmp_lt_search_path_spec=
10619 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10620 for lt_sys_path in $lt_search_path_spec; do
10621 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10622 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10623 else
10624 test -d "$lt_sys_path" && \
10625 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10626 fi
10627 done
10628 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10629 BEGIN {RS=" "; FS="/|\n";} {
10630 lt_foo="";
10631 lt_count=0;
10632 for (lt_i = NF; lt_i > 0; lt_i--) {
10633 if ($lt_i != "" && $lt_i != ".") {
10634 if ($lt_i == "..") {
10635 lt_count++;
10636 } else {
10637 if (lt_count == 0) {
10638 lt_foo="/" $lt_i lt_foo;
10639 } else {
10640 lt_count--;
10641 }
10642 }
10643 }
10644 }
10645 if (lt_foo != "") { lt_freq[lt_foo]++; }
10646 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10647 }'`
10648 # AWK program above erroneously prepends '/' to C:/dos/paths
10649 # for these hosts.
10650 case $host_os in
10651 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10652 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10653 esac
10654 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10655 else
10656 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10657 fi
10658 library_names_spec=
10659 libname_spec='lib$name'
10660 soname_spec=
10661 shrext_cmds=".so"
10662 postinstall_cmds=
10663 postuninstall_cmds=
10664 finish_cmds=
10665 finish_eval=
10666 shlibpath_var=
10667 shlibpath_overrides_runpath=unknown
10668 version_type=none
10669 dynamic_linker="$host_os ld.so"
10670 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10671 need_lib_prefix=unknown
10672 hardcode_into_libs=no
10673
10674 # when you set need_version to no, make sure it does not cause -set_version
10675 # flags to be left without arguments
10676 need_version=unknown
10677
10678 case $host_os in
10679 aix3*)
10680 version_type=linux # correct to gnu/linux during the next big refactor
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10682 shlibpath_var=LIBPATH
10683
10684 # AIX 3 has no versioning support, so we append a major version to the name.
10685 soname_spec='${libname}${release}${shared_ext}$major'
10686 ;;
10687
10688 aix[4-9]*)
10689 version_type=linux # correct to gnu/linux during the next big refactor
10690 need_lib_prefix=no
10691 need_version=no
10692 hardcode_into_libs=yes
10693 if test "$host_cpu" = ia64; then
10694 # AIX 5 supports IA64
10695 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10696 shlibpath_var=LD_LIBRARY_PATH
10697 else
10698 # With GCC up to 2.95.x, collect2 would create an import file
10699 # for dependence libraries. The import file would start with
10700 # the line `#! .'. This would cause the generated library to
10701 # depend on `.', always an invalid library. This was fixed in
10702 # development snapshots of GCC prior to 3.0.
10703 case $host_os in
10704 aix4 | aix4.[01] | aix4.[01].*)
10705 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10706 echo ' yes '
10707 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10708 :
10709 else
10710 can_build_shared=no
10711 fi
10712 ;;
10713 esac
10714 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10715 # soname into executable. Probably we can add versioning support to
10716 # collect2, so additional links can be useful in future.
10717 if test "$aix_use_runtimelinking" = yes; then
10718 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10719 # instead of lib<name>.a to let people know that these are not
10720 # typical AIX shared libraries.
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 else
10723 # We preserve .a as extension for shared libraries through AIX4.2
10724 # and later when we are not doing run time linking.
10725 library_names_spec='${libname}${release}.a $libname.a'
10726 soname_spec='${libname}${release}${shared_ext}$major'
10727 fi
10728 shlibpath_var=LIBPATH
10729 fi
10730 ;;
10731
10732 amigaos*)
10733 case $host_cpu in
10734 powerpc)
10735 # Since July 2007 AmigaOS4 officially supports .so libraries.
10736 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10738 ;;
10739 m68k)
10740 library_names_spec='$libname.ixlibrary $libname.a'
10741 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10742 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'
10743 ;;
10744 esac
10745 ;;
10746
10747 beos*)
10748 library_names_spec='${libname}${shared_ext}'
10749 dynamic_linker="$host_os ld.so"
10750 shlibpath_var=LIBRARY_PATH
10751 ;;
10752
10753 bsdi[45]*)
10754 version_type=linux # correct to gnu/linux during the next big refactor
10755 need_version=no
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10757 soname_spec='${libname}${release}${shared_ext}$major'
10758 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10759 shlibpath_var=LD_LIBRARY_PATH
10760 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10761 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10762 # the default ld.so.conf also contains /usr/contrib/lib and
10763 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10764 # libtool to hard-code these into programs
10765 ;;
10766
10767 cygwin* | mingw* | pw32* | cegcc*)
10768 version_type=windows
10769 shrext_cmds=".dll"
10770 need_version=no
10771 need_lib_prefix=no
10772
10773 case $GCC,$cc_basename in
10774 yes,*)
10775 # gcc
10776 library_names_spec='$libname.dll.a'
10777 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10778 postinstall_cmds='base_file=`basename \${file}`~
10779 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10780 dldir=$destdir/`dirname \$dlpath`~
10781 test -d \$dldir || mkdir -p \$dldir~
10782 $install_prog $dir/$dlname \$dldir/$dlname~
10783 chmod a+x \$dldir/$dlname~
10784 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10785 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10786 fi'
10787 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10788 dlpath=$dir/\$dldll~
10789 $RM \$dlpath'
10790 shlibpath_overrides_runpath=yes
10791
10792 case $host_os in
10793 cygwin*)
10794 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10795 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10796
10797 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10798 ;;
10799 mingw* | cegcc*)
10800 # MinGW DLLs use traditional 'lib' prefix
10801 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10802 ;;
10803 pw32*)
10804 # pw32 DLLs use 'pw' prefix rather than 'lib'
10805 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10806 ;;
10807 esac
10808 dynamic_linker='Win32 ld.exe'
10809 ;;
10810
10811 *,cl*)
10812 # Native MSVC
10813 libname_spec='$name'
10814 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10815 library_names_spec='${libname}.dll.lib'
10816
10817 case $build_os in
10818 mingw*)
10819 sys_lib_search_path_spec=
10820 lt_save_ifs=$IFS
10821 IFS=';'
10822 for lt_path in $LIB
10823 do
10824 IFS=$lt_save_ifs
10825 # Let DOS variable expansion print the short 8.3 style file name.
10826 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10827 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10828 done
10829 IFS=$lt_save_ifs
10830 # Convert to MSYS style.
10831 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10832 ;;
10833 cygwin*)
10834 # Convert to unix form, then to dos form, then back to unix form
10835 # but this time dos style (no spaces!) so that the unix form looks
10836 # like /cygdrive/c/PROGRA~1:/cygdr...
10837 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10838 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10839 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10840 ;;
10841 *)
10842 sys_lib_search_path_spec="$LIB"
10843 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10844 # It is most probably a Windows format PATH.
10845 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10846 else
10847 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10848 fi
10849 # FIXME: find the short name or the path components, as spaces are
10850 # common. (e.g. "Program Files" -> "PROGRA~1")
10851 ;;
10852 esac
10853
10854 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10855 postinstall_cmds='base_file=`basename \${file}`~
10856 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10857 dldir=$destdir/`dirname \$dlpath`~
10858 test -d \$dldir || mkdir -p \$dldir~
10859 $install_prog $dir/$dlname \$dldir/$dlname'
10860 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10861 dlpath=$dir/\$dldll~
10862 $RM \$dlpath'
10863 shlibpath_overrides_runpath=yes
10864 dynamic_linker='Win32 link.exe'
10865 ;;
10866
10867 *)
10868 # Assume MSVC wrapper
10869 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10870 dynamic_linker='Win32 ld.exe'
10871 ;;
10872 esac
10873 # FIXME: first we should search . and the directory the executable is in
10874 shlibpath_var=PATH
10875 ;;
10876
10877 darwin* | rhapsody*)
10878 dynamic_linker="$host_os dyld"
10879 version_type=darwin
10880 need_lib_prefix=no
10881 need_version=no
10882 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10883 soname_spec='${libname}${release}${major}$shared_ext'
10884 shlibpath_overrides_runpath=yes
10885 shlibpath_var=DYLD_LIBRARY_PATH
10886 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10887
10888 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10889 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10890 ;;
10891
10892 dgux*)
10893 version_type=linux # correct to gnu/linux during the next big refactor
10894 need_lib_prefix=no
10895 need_version=no
10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10897 soname_spec='${libname}${release}${shared_ext}$major'
10898 shlibpath_var=LD_LIBRARY_PATH
10899 ;;
10900
10901 freebsd* | dragonfly*)
10902 # DragonFly does not have aout. When/if they implement a new
10903 # versioning mechanism, adjust this.
10904 if test -x /usr/bin/objformat; then
10905 objformat=`/usr/bin/objformat`
10906 else
10907 case $host_os in
10908 freebsd[23].*) objformat=aout ;;
10909 *) objformat=elf ;;
10910 esac
10911 fi
10912 version_type=freebsd-$objformat
10913 case $version_type in
10914 freebsd-elf*)
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10916 need_version=no
10917 need_lib_prefix=no
10918 ;;
10919 freebsd-*)
10920 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10921 need_version=yes
10922 ;;
10923 esac
10924 shlibpath_var=LD_LIBRARY_PATH
10925 case $host_os in
10926 freebsd2.*)
10927 shlibpath_overrides_runpath=yes
10928 ;;
10929 freebsd3.[01]* | freebsdelf3.[01]*)
10930 shlibpath_overrides_runpath=yes
10931 hardcode_into_libs=yes
10932 ;;
10933 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10934 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10935 shlibpath_overrides_runpath=no
10936 hardcode_into_libs=yes
10937 ;;
10938 *) # from 4.6 on, and DragonFly
10939 shlibpath_overrides_runpath=yes
10940 hardcode_into_libs=yes
10941 ;;
10942 esac
10943 ;;
10944
10945 gnu*)
10946 version_type=linux # correct to gnu/linux during the next big refactor
10947 need_lib_prefix=no
10948 need_version=no
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=no
10953 hardcode_into_libs=yes
10954 ;;
10955
10956 haiku*)
10957 version_type=linux # correct to gnu/linux during the next big refactor
10958 need_lib_prefix=no
10959 need_version=no
10960 dynamic_linker="$host_os runtime_loader"
10961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 shlibpath_var=LIBRARY_PATH
10964 shlibpath_overrides_runpath=yes
10965 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10966 hardcode_into_libs=yes
10967 ;;
10968
10969 hpux9* | hpux10* | hpux11*)
10970 # Give a soname corresponding to the major version so that dld.sl refuses to
10971 # link against other versions.
10972 version_type=sunos
10973 need_lib_prefix=no
10974 need_version=no
10975 case $host_cpu in
10976 ia64*)
10977 shrext_cmds='.so'
10978 hardcode_into_libs=yes
10979 dynamic_linker="$host_os dld.so"
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10982 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10983 soname_spec='${libname}${release}${shared_ext}$major'
10984 if test "X$HPUX_IA64_MODE" = X32; then
10985 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10986 else
10987 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10988 fi
10989 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10990 ;;
10991 hppa*64*)
10992 shrext_cmds='.sl'
10993 hardcode_into_libs=yes
10994 dynamic_linker="$host_os dld.sl"
10995 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10996 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10998 soname_spec='${libname}${release}${shared_ext}$major'
10999 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11000 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11001 ;;
11002 *)
11003 shrext_cmds='.sl'
11004 dynamic_linker="$host_os dld.sl"
11005 shlibpath_var=SHLIB_PATH
11006 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 ;;
11010 esac
11011 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11012 postinstall_cmds='chmod 555 $lib'
11013 # or fails outright, so override atomically:
11014 install_override_mode=555
11015 ;;
11016
11017 interix[3-9]*)
11018 version_type=linux # correct to gnu/linux during the next big refactor
11019 need_lib_prefix=no
11020 need_version=no
11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11022 soname_spec='${libname}${release}${shared_ext}$major'
11023 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11024 shlibpath_var=LD_LIBRARY_PATH
11025 shlibpath_overrides_runpath=no
11026 hardcode_into_libs=yes
11027 ;;
11028
11029 irix5* | irix6* | nonstopux*)
11030 case $host_os in
11031 nonstopux*) version_type=nonstopux ;;
11032 *)
11033 if test "$lt_cv_prog_gnu_ld" = yes; then
11034 version_type=linux # correct to gnu/linux during the next big refactor
11035 else
11036 version_type=irix
11037 fi ;;
11038 esac
11039 need_lib_prefix=no
11040 need_version=no
11041 soname_spec='${libname}${release}${shared_ext}$major'
11042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11043 case $host_os in
11044 irix5* | nonstopux*)
11045 libsuff= shlibsuff=
11046 ;;
11047 *)
11048 case $LD in # libtool.m4 will add one of these switches to LD
11049 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11050 libsuff= shlibsuff= libmagic=32-bit;;
11051 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11052 libsuff=32 shlibsuff=N32 libmagic=N32;;
11053 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11054 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11055 *) libsuff= shlibsuff= libmagic=never-match;;
11056 esac
11057 ;;
11058 esac
11059 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11060 shlibpath_overrides_runpath=no
11061 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11062 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11063 hardcode_into_libs=yes
11064 ;;
11065
11066 # No shared lib support for Linux oldld, aout, or coff.
11067 linux*oldld* | linux*aout* | linux*coff*)
11068 dynamic_linker=no
11069 ;;
11070
11071 # This must be glibc/ELF.
11072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11073 version_type=linux # correct to gnu/linux during the next big refactor
11074 need_lib_prefix=no
11075 need_version=no
11076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11077 soname_spec='${libname}${release}${shared_ext}$major'
11078 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11079 shlibpath_var=LD_LIBRARY_PATH
11080 shlibpath_overrides_runpath=no
11081
11082 # Some binutils ld are patched to set DT_RUNPATH
11083 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11084 $as_echo_n "(cached) " >&6
11085 else
11086 lt_cv_shlibpath_overrides_runpath=no
11087 save_LDFLAGS=$LDFLAGS
11088 save_libdir=$libdir
11089 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11090 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093
11094 int
11095 main ()
11096 {
11097
11098 ;
11099 return 0;
11100 }
11101 _ACEOF
11102 if ac_fn_c_try_link "$LINENO"; then :
11103 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11104 lt_cv_shlibpath_overrides_runpath=yes
11105 fi
11106 fi
11107 rm -f core conftest.err conftest.$ac_objext \
11108 conftest$ac_exeext conftest.$ac_ext
11109 LDFLAGS=$save_LDFLAGS
11110 libdir=$save_libdir
11111
11112 fi
11113
11114 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11115
11116 # This implies no fast_install, which is unacceptable.
11117 # Some rework will be needed to allow for fast_install
11118 # before this can be enabled.
11119 hardcode_into_libs=yes
11120
11121 # Append ld.so.conf contents to the search path
11122 if test -f /etc/ld.so.conf; then
11123 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' ' '`
11124 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11125 fi
11126
11127 # We used to test for /lib/ld.so.1 and disable shared libraries on
11128 # powerpc, because MkLinux only supported shared libraries with the
11129 # GNU dynamic linker. Since this was broken with cross compilers,
11130 # most powerpc-linux boxes support dynamic linking these days and
11131 # people can always --disable-shared, the test was removed, and we
11132 # assume the GNU/Linux dynamic linker is in use.
11133 dynamic_linker='GNU/Linux ld.so'
11134 ;;
11135
11136 netbsd*)
11137 version_type=sunos
11138 need_lib_prefix=no
11139 need_version=no
11140 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11142 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11143 dynamic_linker='NetBSD (a.out) ld.so'
11144 else
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11146 soname_spec='${libname}${release}${shared_ext}$major'
11147 dynamic_linker='NetBSD ld.elf_so'
11148 fi
11149 shlibpath_var=LD_LIBRARY_PATH
11150 shlibpath_overrides_runpath=yes
11151 hardcode_into_libs=yes
11152 ;;
11153
11154 newsos6)
11155 version_type=linux # correct to gnu/linux during the next big refactor
11156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11157 shlibpath_var=LD_LIBRARY_PATH
11158 shlibpath_overrides_runpath=yes
11159 ;;
11160
11161 *nto* | *qnx*)
11162 version_type=qnx
11163 need_lib_prefix=no
11164 need_version=no
11165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11166 soname_spec='${libname}${release}${shared_ext}$major'
11167 shlibpath_var=LD_LIBRARY_PATH
11168 shlibpath_overrides_runpath=no
11169 hardcode_into_libs=yes
11170 dynamic_linker='ldqnx.so'
11171 ;;
11172
11173 openbsd*)
11174 version_type=sunos
11175 sys_lib_dlsearch_path_spec="/usr/lib"
11176 need_lib_prefix=no
11177 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11178 case $host_os in
11179 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11180 *) need_version=no ;;
11181 esac
11182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11183 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11184 shlibpath_var=LD_LIBRARY_PATH
11185 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11186 case $host_os in
11187 openbsd2.[89] | openbsd2.[89].*)
11188 shlibpath_overrides_runpath=no
11189 ;;
11190 *)
11191 shlibpath_overrides_runpath=yes
11192 ;;
11193 esac
11194 else
11195 shlibpath_overrides_runpath=yes
11196 fi
11197 ;;
11198
11199 os2*)
11200 libname_spec='$name'
11201 shrext_cmds=".dll"
11202 need_lib_prefix=no
11203 library_names_spec='$libname${shared_ext} $libname.a'
11204 dynamic_linker='OS/2 ld.exe'
11205 shlibpath_var=LIBPATH
11206 ;;
11207
11208 osf3* | osf4* | osf5*)
11209 version_type=osf
11210 need_lib_prefix=no
11211 need_version=no
11212 soname_spec='${libname}${release}${shared_ext}$major'
11213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11214 shlibpath_var=LD_LIBRARY_PATH
11215 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11216 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11217 ;;
11218
11219 rdos*)
11220 dynamic_linker=no
11221 ;;
11222
11223 solaris*)
11224 version_type=linux # correct to gnu/linux during the next big refactor
11225 need_lib_prefix=no
11226 need_version=no
11227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11228 soname_spec='${libname}${release}${shared_ext}$major'
11229 shlibpath_var=LD_LIBRARY_PATH
11230 shlibpath_overrides_runpath=yes
11231 hardcode_into_libs=yes
11232 # ldd complains unless libraries are executable
11233 postinstall_cmds='chmod +x $lib'
11234 ;;
11235
11236 sunos4*)
11237 version_type=sunos
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11239 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11240 shlibpath_var=LD_LIBRARY_PATH
11241 shlibpath_overrides_runpath=yes
11242 if test "$with_gnu_ld" = yes; then
11243 need_lib_prefix=no
11244 fi
11245 need_version=yes
11246 ;;
11247
11248 sysv4 | sysv4.3*)
11249 version_type=linux # correct to gnu/linux during the next big refactor
11250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11251 soname_spec='${libname}${release}${shared_ext}$major'
11252 shlibpath_var=LD_LIBRARY_PATH
11253 case $host_vendor in
11254 sni)
11255 shlibpath_overrides_runpath=no
11256 need_lib_prefix=no
11257 runpath_var=LD_RUN_PATH
11258 ;;
11259 siemens)
11260 need_lib_prefix=no
11261 ;;
11262 motorola)
11263 need_lib_prefix=no
11264 need_version=no
11265 shlibpath_overrides_runpath=no
11266 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11267 ;;
11268 esac
11269 ;;
11270
11271 sysv4*MP*)
11272 if test -d /usr/nec ;then
11273 version_type=linux # correct to gnu/linux during the next big refactor
11274 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11275 soname_spec='$libname${shared_ext}.$major'
11276 shlibpath_var=LD_LIBRARY_PATH
11277 fi
11278 ;;
11279
11280 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11281 version_type=freebsd-elf
11282 need_lib_prefix=no
11283 need_version=no
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 shlibpath_var=LD_LIBRARY_PATH
11287 shlibpath_overrides_runpath=yes
11288 hardcode_into_libs=yes
11289 if test "$with_gnu_ld" = yes; then
11290 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11291 else
11292 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11293 case $host_os in
11294 sco3.2v5*)
11295 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11296 ;;
11297 esac
11298 fi
11299 sys_lib_dlsearch_path_spec='/usr/lib'
11300 ;;
11301
11302 tpf*)
11303 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11304 version_type=linux # correct to gnu/linux during the next big refactor
11305 need_lib_prefix=no
11306 need_version=no
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308 shlibpath_var=LD_LIBRARY_PATH
11309 shlibpath_overrides_runpath=no
11310 hardcode_into_libs=yes
11311 ;;
11312
11313 uts4*)
11314 version_type=linux # correct to gnu/linux during the next big refactor
11315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11316 soname_spec='${libname}${release}${shared_ext}$major'
11317 shlibpath_var=LD_LIBRARY_PATH
11318 ;;
11319
11320 *)
11321 dynamic_linker=no
11322 ;;
11323 esac
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11325 $as_echo "$dynamic_linker" >&6; }
11326 test "$dynamic_linker" = no && can_build_shared=no
11327
11328 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11329 if test "$GCC" = yes; then
11330 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11331 fi
11332
11333 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11334 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11335 fi
11336 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11337 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11338 fi
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11432 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11433 hardcode_action=
11434 if test -n "$hardcode_libdir_flag_spec" ||
11435 test -n "$runpath_var" ||
11436 test "X$hardcode_automatic" = "Xyes" ; then
11437
11438 # We can hardcode non-existent directories.
11439 if test "$hardcode_direct" != no &&
11440 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11441 # have to relink, otherwise we might link with an installed library
11442 # when we should be linking with a yet-to-be-installed one
11443 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11444 test "$hardcode_minus_L" != no; then
11445 # Linking always hardcodes the temporary library directory.
11446 hardcode_action=relink
11447 else
11448 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11449 hardcode_action=immediate
11450 fi
11451 else
11452 # We cannot hardcode anything, or else we can only hardcode existing
11453 # directories.
11454 hardcode_action=unsupported
11455 fi
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11457 $as_echo "$hardcode_action" >&6; }
11458
11459 if test "$hardcode_action" = relink ||
11460 test "$inherit_rpath" = yes; then
11461 # Fast installation is not supported
11462 enable_fast_install=no
11463 elif test "$shlibpath_overrides_runpath" = yes ||
11464 test "$enable_shared" = no; then
11465 # Fast installation is not necessary
11466 enable_fast_install=needless
11467 fi
11468
11469
11470
11471
11472
11473
11474 if test "x$enable_dlopen" != xyes; then
11475 enable_dlopen=unknown
11476 enable_dlopen_self=unknown
11477 enable_dlopen_self_static=unknown
11478 else
11479 lt_cv_dlopen=no
11480 lt_cv_dlopen_libs=
11481
11482 case $host_os in
11483 beos*)
11484 lt_cv_dlopen="load_add_on"
11485 lt_cv_dlopen_libs=
11486 lt_cv_dlopen_self=yes
11487 ;;
11488
11489 mingw* | pw32* | cegcc*)
11490 lt_cv_dlopen="LoadLibrary"
11491 lt_cv_dlopen_libs=
11492 ;;
11493
11494 cygwin*)
11495 lt_cv_dlopen="dlopen"
11496 lt_cv_dlopen_libs=
11497 ;;
11498
11499 darwin*)
11500 # if libdl is installed we need to link against it
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11502 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11503 if ${ac_cv_lib_dl_dlopen+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 ac_check_lib_save_LIBS=$LIBS
11507 LIBS="-ldl $LIBS"
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
11517 char dlopen ();
11518 int
11519 main ()
11520 {
11521 return dlopen ();
11522 ;
11523 return 0;
11524 }
11525 _ACEOF
11526 if ac_fn_c_try_link "$LINENO"; then :
11527 ac_cv_lib_dl_dlopen=yes
11528 else
11529 ac_cv_lib_dl_dlopen=no
11530 fi
11531 rm -f core conftest.err conftest.$ac_objext \
11532 conftest$ac_exeext conftest.$ac_ext
11533 LIBS=$ac_check_lib_save_LIBS
11534 fi
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11536 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11537 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11538 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11539 else
11540
11541 lt_cv_dlopen="dyld"
11542 lt_cv_dlopen_libs=
11543 lt_cv_dlopen_self=yes
11544
11545 fi
11546
11547 ;;
11548
11549 *)
11550 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11551 if test "x$ac_cv_func_shl_load" = xyes; then :
11552 lt_cv_dlopen="shl_load"
11553 else
11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11555 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11556 if ${ac_cv_lib_dld_shl_load+:} false; then :
11557 $as_echo_n "(cached) " >&6
11558 else
11559 ac_check_lib_save_LIBS=$LIBS
11560 LIBS="-ldld $LIBS"
11561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11562 /* end confdefs.h. */
11563
11564 /* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
11567 #ifdef __cplusplus
11568 extern "C"
11569 #endif
11570 char shl_load ();
11571 int
11572 main ()
11573 {
11574 return shl_load ();
11575 ;
11576 return 0;
11577 }
11578 _ACEOF
11579 if ac_fn_c_try_link "$LINENO"; then :
11580 ac_cv_lib_dld_shl_load=yes
11581 else
11582 ac_cv_lib_dld_shl_load=no
11583 fi
11584 rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
11586 LIBS=$ac_check_lib_save_LIBS
11587 fi
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11589 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11590 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11591 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11592 else
11593 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11594 if test "x$ac_cv_func_dlopen" = xyes; then :
11595 lt_cv_dlopen="dlopen"
11596 else
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11598 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11599 if ${ac_cv_lib_dl_dlopen+:} false; then :
11600 $as_echo_n "(cached) " >&6
11601 else
11602 ac_check_lib_save_LIBS=$LIBS
11603 LIBS="-ldl $LIBS"
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11606
11607 /* Override any GCC internal prototype to avoid an error.
11608 Use char because int might match the return type of a GCC
11609 builtin and then its argument prototype would still apply. */
11610 #ifdef __cplusplus
11611 extern "C"
11612 #endif
11613 char dlopen ();
11614 int
11615 main ()
11616 {
11617 return dlopen ();
11618 ;
11619 return 0;
11620 }
11621 _ACEOF
11622 if ac_fn_c_try_link "$LINENO"; then :
11623 ac_cv_lib_dl_dlopen=yes
11624 else
11625 ac_cv_lib_dl_dlopen=no
11626 fi
11627 rm -f core conftest.err conftest.$ac_objext \
11628 conftest$ac_exeext conftest.$ac_ext
11629 LIBS=$ac_check_lib_save_LIBS
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11632 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11633 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11634 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11635 else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11637 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11638 if ${ac_cv_lib_svld_dlopen+:} false; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 ac_check_lib_save_LIBS=$LIBS
11642 LIBS="-lsvld $LIBS"
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11645
11646 /* Override any GCC internal prototype to avoid an error.
11647 Use char because int might match the return type of a GCC
11648 builtin and then its argument prototype would still apply. */
11649 #ifdef __cplusplus
11650 extern "C"
11651 #endif
11652 char dlopen ();
11653 int
11654 main ()
11655 {
11656 return dlopen ();
11657 ;
11658 return 0;
11659 }
11660 _ACEOF
11661 if ac_fn_c_try_link "$LINENO"; then :
11662 ac_cv_lib_svld_dlopen=yes
11663 else
11664 ac_cv_lib_svld_dlopen=no
11665 fi
11666 rm -f core conftest.err conftest.$ac_objext \
11667 conftest$ac_exeext conftest.$ac_ext
11668 LIBS=$ac_check_lib_save_LIBS
11669 fi
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11671 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11672 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11673 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11674 else
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11676 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11677 if ${ac_cv_lib_dld_dld_link+:} false; then :
11678 $as_echo_n "(cached) " >&6
11679 else
11680 ac_check_lib_save_LIBS=$LIBS
11681 LIBS="-ldld $LIBS"
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11683 /* end confdefs.h. */
11684
11685 /* Override any GCC internal prototype to avoid an error.
11686 Use char because int might match the return type of a GCC
11687 builtin and then its argument prototype would still apply. */
11688 #ifdef __cplusplus
11689 extern "C"
11690 #endif
11691 char dld_link ();
11692 int
11693 main ()
11694 {
11695 return dld_link ();
11696 ;
11697 return 0;
11698 }
11699 _ACEOF
11700 if ac_fn_c_try_link "$LINENO"; then :
11701 ac_cv_lib_dld_dld_link=yes
11702 else
11703 ac_cv_lib_dld_dld_link=no
11704 fi
11705 rm -f core conftest.err conftest.$ac_objext \
11706 conftest$ac_exeext conftest.$ac_ext
11707 LIBS=$ac_check_lib_save_LIBS
11708 fi
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11710 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11711 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11712 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11713 fi
11714
11715
11716 fi
11717
11718
11719 fi
11720
11721
11722 fi
11723
11724
11725 fi
11726
11727
11728 fi
11729
11730 ;;
11731 esac
11732
11733 if test "x$lt_cv_dlopen" != xno; then
11734 enable_dlopen=yes
11735 else
11736 enable_dlopen=no
11737 fi
11738
11739 case $lt_cv_dlopen in
11740 dlopen)
11741 save_CPPFLAGS="$CPPFLAGS"
11742 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11743
11744 save_LDFLAGS="$LDFLAGS"
11745 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11746
11747 save_LIBS="$LIBS"
11748 LIBS="$lt_cv_dlopen_libs $LIBS"
11749
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11751 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11752 if ${lt_cv_dlopen_self+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 if test "$cross_compiling" = yes; then :
11756 lt_cv_dlopen_self=cross
11757 else
11758 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11759 lt_status=$lt_dlunknown
11760 cat > conftest.$ac_ext <<_LT_EOF
11761 #line $LINENO "configure"
11762 #include "confdefs.h"
11763
11764 #if HAVE_DLFCN_H
11765 #include <dlfcn.h>
11766 #endif
11767
11768 #include <stdio.h>
11769
11770 #ifdef RTLD_GLOBAL
11771 # define LT_DLGLOBAL RTLD_GLOBAL
11772 #else
11773 # ifdef DL_GLOBAL
11774 # define LT_DLGLOBAL DL_GLOBAL
11775 # else
11776 # define LT_DLGLOBAL 0
11777 # endif
11778 #endif
11779
11780 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11781 find out it does not work in some platform. */
11782 #ifndef LT_DLLAZY_OR_NOW
11783 # ifdef RTLD_LAZY
11784 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11785 # else
11786 # ifdef DL_LAZY
11787 # define LT_DLLAZY_OR_NOW DL_LAZY
11788 # else
11789 # ifdef RTLD_NOW
11790 # define LT_DLLAZY_OR_NOW RTLD_NOW
11791 # else
11792 # ifdef DL_NOW
11793 # define LT_DLLAZY_OR_NOW DL_NOW
11794 # else
11795 # define LT_DLLAZY_OR_NOW 0
11796 # endif
11797 # endif
11798 # endif
11799 # endif
11800 #endif
11801
11802 /* When -fvisbility=hidden is used, assume the code has been annotated
11803 correspondingly for the symbols needed. */
11804 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11805 int fnord () __attribute__((visibility("default")));
11806 #endif
11807
11808 int fnord () { return 42; }
11809 int main ()
11810 {
11811 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11812 int status = $lt_dlunknown;
11813
11814 if (self)
11815 {
11816 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11817 else
11818 {
11819 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11820 else puts (dlerror ());
11821 }
11822 /* dlclose (self); */
11823 }
11824 else
11825 puts (dlerror ());
11826
11827 return status;
11828 }
11829 _LT_EOF
11830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11831 (eval $ac_link) 2>&5
11832 ac_status=$?
11833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11834 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11835 (./conftest; exit; ) >&5 2>/dev/null
11836 lt_status=$?
11837 case x$lt_status in
11838 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11839 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11840 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11841 esac
11842 else :
11843 # compilation failed
11844 lt_cv_dlopen_self=no
11845 fi
11846 fi
11847 rm -fr conftest*
11848
11849
11850 fi
11851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11852 $as_echo "$lt_cv_dlopen_self" >&6; }
11853
11854 if test "x$lt_cv_dlopen_self" = xyes; then
11855 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11857 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11858 if ${lt_cv_dlopen_self_static+:} false; then :
11859 $as_echo_n "(cached) " >&6
11860 else
11861 if test "$cross_compiling" = yes; then :
11862 lt_cv_dlopen_self_static=cross
11863 else
11864 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11865 lt_status=$lt_dlunknown
11866 cat > conftest.$ac_ext <<_LT_EOF
11867 #line $LINENO "configure"
11868 #include "confdefs.h"
11869
11870 #if HAVE_DLFCN_H
11871 #include <dlfcn.h>
11872 #endif
11873
11874 #include <stdio.h>
11875
11876 #ifdef RTLD_GLOBAL
11877 # define LT_DLGLOBAL RTLD_GLOBAL
11878 #else
11879 # ifdef DL_GLOBAL
11880 # define LT_DLGLOBAL DL_GLOBAL
11881 # else
11882 # define LT_DLGLOBAL 0
11883 # endif
11884 #endif
11885
11886 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11887 find out it does not work in some platform. */
11888 #ifndef LT_DLLAZY_OR_NOW
11889 # ifdef RTLD_LAZY
11890 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11891 # else
11892 # ifdef DL_LAZY
11893 # define LT_DLLAZY_OR_NOW DL_LAZY
11894 # else
11895 # ifdef RTLD_NOW
11896 # define LT_DLLAZY_OR_NOW RTLD_NOW
11897 # else
11898 # ifdef DL_NOW
11899 # define LT_DLLAZY_OR_NOW DL_NOW
11900 # else
11901 # define LT_DLLAZY_OR_NOW 0
11902 # endif
11903 # endif
11904 # endif
11905 # endif
11906 #endif
11907
11908 /* When -fvisbility=hidden is used, assume the code has been annotated
11909 correspondingly for the symbols needed. */
11910 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11911 int fnord () __attribute__((visibility("default")));
11912 #endif
11913
11914 int fnord () { return 42; }
11915 int main ()
11916 {
11917 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11918 int status = $lt_dlunknown;
11919
11920 if (self)
11921 {
11922 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11923 else
11924 {
11925 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11926 else puts (dlerror ());
11927 }
11928 /* dlclose (self); */
11929 }
11930 else
11931 puts (dlerror ());
11932
11933 return status;
11934 }
11935 _LT_EOF
11936 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11937 (eval $ac_link) 2>&5
11938 ac_status=$?
11939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11940 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11941 (./conftest; exit; ) >&5 2>/dev/null
11942 lt_status=$?
11943 case x$lt_status in
11944 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11945 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11946 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11947 esac
11948 else :
11949 # compilation failed
11950 lt_cv_dlopen_self_static=no
11951 fi
11952 fi
11953 rm -fr conftest*
11954
11955
11956 fi
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11958 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11959 fi
11960
11961 CPPFLAGS="$save_CPPFLAGS"
11962 LDFLAGS="$save_LDFLAGS"
11963 LIBS="$save_LIBS"
11964 ;;
11965 esac
11966
11967 case $lt_cv_dlopen_self in
11968 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11969 *) enable_dlopen_self=unknown ;;
11970 esac
11971
11972 case $lt_cv_dlopen_self_static in
11973 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11974 *) enable_dlopen_self_static=unknown ;;
11975 esac
11976 fi
11977
11978
11979
11980
11981
11982
11983
11984
11985
11986
11987
11988
11989
11990
11991
11992
11993
11994 striplib=
11995 old_striplib=
11996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11997 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11998 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11999 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12000 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12002 $as_echo "yes" >&6; }
12003 else
12004 # FIXME - insert some real tests, host_os isn't really good enough
12005 case $host_os in
12006 darwin*)
12007 if test -n "$STRIP" ; then
12008 striplib="$STRIP -x"
12009 old_striplib="$STRIP -S"
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12011 $as_echo "yes" >&6; }
12012 else
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12014 $as_echo "no" >&6; }
12015 fi
12016 ;;
12017 *)
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12019 $as_echo "no" >&6; }
12020 ;;
12021 esac
12022 fi
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035 # Report which library types will actually be built
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12037 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12039 $as_echo "$can_build_shared" >&6; }
12040
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12042 $as_echo_n "checking whether to build shared libraries... " >&6; }
12043 test "$can_build_shared" = "no" && enable_shared=no
12044
12045 # On AIX, shared libraries and static libraries use the same namespace, and
12046 # are all built from PIC.
12047 case $host_os in
12048 aix3*)
12049 test "$enable_shared" = yes && enable_static=no
12050 if test -n "$RANLIB"; then
12051 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12052 postinstall_cmds='$RANLIB $lib'
12053 fi
12054 ;;
12055
12056 aix[4-9]*)
12057 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12058 test "$enable_shared" = yes && enable_static=no
12059 fi
12060 ;;
12061 esac
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12063 $as_echo "$enable_shared" >&6; }
12064
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12066 $as_echo_n "checking whether to build static libraries... " >&6; }
12067 # Make sure either enable_shared or enable_static is yes.
12068 test "$enable_shared" = yes || enable_static=yes
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12070 $as_echo "$enable_static" >&6; }
12071
12072
12073
12074
12075 fi
12076 ac_ext=c
12077 ac_cpp='$CPP $CPPFLAGS'
12078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12081
12082 CC="$lt_save_CC"
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098 ac_config_commands="$ac_config_commands libtool"
12099
12100
12101
12102
12103 # Only expand once:
12104
12105
12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
12107 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
12108 if ${libltdl_cv_shlibext+:} false; then :
12109 $as_echo_n "(cached) " >&6
12110 else
12111
12112 module=yes
12113 eval libltdl_cv_shlibext=$shrext_cmds
12114 module=no
12115 eval libltdl_cv_shrext=$shrext_cmds
12116
12117 fi
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
12119 $as_echo "$libltdl_cv_shlibext" >&6; }
12120 if test -n "$libltdl_cv_shlibext"; then
12121
12122 cat >>confdefs.h <<_ACEOF
12123 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
12124 _ACEOF
12125
12126 fi
12127 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
12128
12129 cat >>confdefs.h <<_ACEOF
12130 #define LT_SHARED_EXT "$libltdl_cv_shrext"
12131 _ACEOF
12132
12133 fi
12134
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
12136 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
12137 if ${lt_cv_module_path_var+:} false; then :
12138 $as_echo_n "(cached) " >&6
12139 else
12140 lt_cv_module_path_var="$shlibpath_var"
12141 fi
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
12143 $as_echo "$lt_cv_module_path_var" >&6; }
12144 if test -n "$lt_cv_module_path_var"; then
12145
12146 cat >>confdefs.h <<_ACEOF
12147 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
12148 _ACEOF
12149
12150 fi
12151
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12153 $as_echo_n "checking for the default library search path... " >&6; }
12154 if ${lt_cv_sys_dlsearch_path+:} false; then :
12155 $as_echo_n "(cached) " >&6
12156 else
12157 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12158 fi
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12160 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12161 if test -n "$lt_cv_sys_dlsearch_path"; then
12162 sys_dlsearch_path=
12163 for dir in $lt_cv_sys_dlsearch_path; do
12164 if test -z "$sys_dlsearch_path"; then
12165 sys_dlsearch_path="$dir"
12166 else
12167 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12168 fi
12169 done
12170
12171 cat >>confdefs.h <<_ACEOF
12172 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12173 _ACEOF
12174
12175 fi
12176
12177
12178 LT_DLLOADERS=
12179
12180
12181 ac_ext=c
12182 ac_cpp='$CPP $CPPFLAGS'
12183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12186
12187
12188 LIBADD_DLOPEN=
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12190 $as_echo_n "checking for library containing dlopen... " >&6; }
12191 if ${ac_cv_search_dlopen+:} false; then :
12192 $as_echo_n "(cached) " >&6
12193 else
12194 ac_func_search_save_LIBS=$LIBS
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12197
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 char dlopen ();
12205 int
12206 main ()
12207 {
12208 return dlopen ();
12209 ;
12210 return 0;
12211 }
12212 _ACEOF
12213 for ac_lib in '' dl; do
12214 if test -z "$ac_lib"; then
12215 ac_res="none required"
12216 else
12217 ac_res=-l$ac_lib
12218 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12219 fi
12220 if ac_fn_c_try_link "$LINENO"; then :
12221 ac_cv_search_dlopen=$ac_res
12222 fi
12223 rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext
12225 if ${ac_cv_search_dlopen+:} false; then :
12226 break
12227 fi
12228 done
12229 if ${ac_cv_search_dlopen+:} false; then :
12230
12231 else
12232 ac_cv_search_dlopen=no
12233 fi
12234 rm conftest.$ac_ext
12235 LIBS=$ac_func_search_save_LIBS
12236 fi
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12238 $as_echo "$ac_cv_search_dlopen" >&6; }
12239 ac_res=$ac_cv_search_dlopen
12240 if test "$ac_res" != no; then :
12241 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12242
12243 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12244
12245 if test "$ac_cv_search_dlopen" != "none required" ; then
12246 LIBADD_DLOPEN="-ldl"
12247 fi
12248 libltdl_cv_lib_dl_dlopen="yes"
12249 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12250 else
12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12252 /* end confdefs.h. */
12253 #if HAVE_DLFCN_H
12254 # include <dlfcn.h>
12255 #endif
12256
12257 int
12258 main ()
12259 {
12260 dlopen(0, 0);
12261 ;
12262 return 0;
12263 }
12264 _ACEOF
12265 if ac_fn_c_try_link "$LINENO"; then :
12266
12267 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12268
12269 libltdl_cv_func_dlopen="yes"
12270 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12271 else
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12273 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12274 if ${ac_cv_lib_svld_dlopen+:} false; then :
12275 $as_echo_n "(cached) " >&6
12276 else
12277 ac_check_lib_save_LIBS=$LIBS
12278 LIBS="-lsvld $LIBS"
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12281
12282 /* Override any GCC internal prototype to avoid an error.
12283 Use char because int might match the return type of a GCC
12284 builtin and then its argument prototype would still apply. */
12285 #ifdef __cplusplus
12286 extern "C"
12287 #endif
12288 char dlopen ();
12289 int
12290 main ()
12291 {
12292 return dlopen ();
12293 ;
12294 return 0;
12295 }
12296 _ACEOF
12297 if ac_fn_c_try_link "$LINENO"; then :
12298 ac_cv_lib_svld_dlopen=yes
12299 else
12300 ac_cv_lib_svld_dlopen=no
12301 fi
12302 rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12305 fi
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12307 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12308 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12309
12310 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12311
12312 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12313 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12314 fi
12315
12316 fi
12317 rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12319 fi
12320
12321 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12322 then
12323 lt_save_LIBS="$LIBS"
12324 LIBS="$LIBS $LIBADD_DLOPEN"
12325 for ac_func in dlerror
12326 do :
12327 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12328 if test "x$ac_cv_func_dlerror" = xyes; then :
12329 cat >>confdefs.h <<_ACEOF
12330 #define HAVE_DLERROR 1
12331 _ACEOF
12332
12333 fi
12334 done
12335
12336 LIBS="$lt_save_LIBS"
12337 fi
12338
12339
12340 LIBADD_SHL_LOAD=
12341 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12342 if test "x$ac_cv_func_shl_load" = xyes; then :
12343
12344 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12345
12346 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12347 else
12348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12349 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12350 if ${ac_cv_lib_dld_shl_load+:} false; then :
12351 $as_echo_n "(cached) " >&6
12352 else
12353 ac_check_lib_save_LIBS=$LIBS
12354 LIBS="-ldld $LIBS"
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12357
12358 /* Override any GCC internal prototype to avoid an error.
12359 Use char because int might match the return type of a GCC
12360 builtin and then its argument prototype would still apply. */
12361 #ifdef __cplusplus
12362 extern "C"
12363 #endif
12364 char shl_load ();
12365 int
12366 main ()
12367 {
12368 return shl_load ();
12369 ;
12370 return 0;
12371 }
12372 _ACEOF
12373 if ac_fn_c_try_link "$LINENO"; then :
12374 ac_cv_lib_dld_shl_load=yes
12375 else
12376 ac_cv_lib_dld_shl_load=no
12377 fi
12378 rm -f core conftest.err conftest.$ac_objext \
12379 conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12381 fi
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12383 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12384 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12385
12386 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12387
12388 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12389 LIBADD_SHL_LOAD="-ldld"
12390 fi
12391
12392 fi
12393
12394
12395
12396 case $host_os in
12397 darwin[1567].*)
12398 # We only want this for pre-Mac OS X 10.4.
12399 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12400 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12401
12402 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12403
12404 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12405 fi
12406
12407 ;;
12408 beos*)
12409 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12410 ;;
12411 cygwin* | mingw* | os2* | pw32*)
12412 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12413 "
12414 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12415 ac_have_decl=1
12416 else
12417 ac_have_decl=0
12418 fi
12419
12420 cat >>confdefs.h <<_ACEOF
12421 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12422 _ACEOF
12423
12424 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12425 ;;
12426 esac
12427
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12429 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12430 if ${ac_cv_lib_dld_dld_link+:} false; then :
12431 $as_echo_n "(cached) " >&6
12432 else
12433 ac_check_lib_save_LIBS=$LIBS
12434 LIBS="-ldld $LIBS"
12435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12437
12438 /* Override any GCC internal prototype to avoid an error.
12439 Use char because int might match the return type of a GCC
12440 builtin and then its argument prototype would still apply. */
12441 #ifdef __cplusplus
12442 extern "C"
12443 #endif
12444 char dld_link ();
12445 int
12446 main ()
12447 {
12448 return dld_link ();
12449 ;
12450 return 0;
12451 }
12452 _ACEOF
12453 if ac_fn_c_try_link "$LINENO"; then :
12454 ac_cv_lib_dld_dld_link=yes
12455 else
12456 ac_cv_lib_dld_dld_link=no
12457 fi
12458 rm -f core conftest.err conftest.$ac_objext \
12459 conftest$ac_exeext conftest.$ac_ext
12460 LIBS=$ac_check_lib_save_LIBS
12461 fi
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12463 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12464 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12465
12466 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12467
12468 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12469 fi
12470
12471
12472
12473
12474 LT_DLPREOPEN=
12475 if test -n "$LT_DLLOADERS"
12476 then
12477 for lt_loader in $LT_DLLOADERS; do
12478 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12479 done
12480
12481 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12482
12483 fi
12484
12485
12486 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12487
12488
12489 ac_ext=c
12490 ac_cpp='$CPP $CPPFLAGS'
12491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12494
12495
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12497 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12498 if ${lt_cv_sys_symbol_underscore+:} false; then :
12499 $as_echo_n "(cached) " >&6
12500 else
12501 lt_cv_sys_symbol_underscore=no
12502 cat > conftest.$ac_ext <<_LT_EOF
12503 void nm_test_func(){}
12504 int main(){nm_test_func;return 0;}
12505 _LT_EOF
12506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12507 (eval $ac_compile) 2>&5
12508 ac_status=$?
12509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12510 test $ac_status = 0; }; then
12511 # Now try to grab the symbols.
12512 ac_nlist=conftest.nm
12513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12514 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12515 ac_status=$?
12516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12517 test $ac_status = 0; } && test -s "$ac_nlist"; then
12518 # See whether the symbols have a leading underscore.
12519 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12520 lt_cv_sys_symbol_underscore=yes
12521 else
12522 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12523 :
12524 else
12525 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12526 fi
12527 fi
12528 else
12529 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12530 fi
12531 else
12532 echo "configure: failed program was:" >&5
12533 cat conftest.c >&5
12534 fi
12535 rm -rf conftest*
12536
12537 fi
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12539 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12540 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12541
12542
12543 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12544 if test x"$libltdl_cv_func_dlopen" = xyes ||
12545 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12547 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12548 if ${libltdl_cv_need_uscore+:} false; then :
12549 $as_echo_n "(cached) " >&6
12550 else
12551 libltdl_cv_need_uscore=unknown
12552 save_LIBS="$LIBS"
12553 LIBS="$LIBS $LIBADD_DLOPEN"
12554 if test "$cross_compiling" = yes; then :
12555 libltdl_cv_need_uscore=cross
12556 else
12557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12558 lt_status=$lt_dlunknown
12559 cat > conftest.$ac_ext <<_LT_EOF
12560 #line $LINENO "configure"
12561 #include "confdefs.h"
12562
12563 #if HAVE_DLFCN_H
12564 #include <dlfcn.h>
12565 #endif
12566
12567 #include <stdio.h>
12568
12569 #ifdef RTLD_GLOBAL
12570 # define LT_DLGLOBAL RTLD_GLOBAL
12571 #else
12572 # ifdef DL_GLOBAL
12573 # define LT_DLGLOBAL DL_GLOBAL
12574 # else
12575 # define LT_DLGLOBAL 0
12576 # endif
12577 #endif
12578
12579 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12580 find out it does not work in some platform. */
12581 #ifndef LT_DLLAZY_OR_NOW
12582 # ifdef RTLD_LAZY
12583 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12584 # else
12585 # ifdef DL_LAZY
12586 # define LT_DLLAZY_OR_NOW DL_LAZY
12587 # else
12588 # ifdef RTLD_NOW
12589 # define LT_DLLAZY_OR_NOW RTLD_NOW
12590 # else
12591 # ifdef DL_NOW
12592 # define LT_DLLAZY_OR_NOW DL_NOW
12593 # else
12594 # define LT_DLLAZY_OR_NOW 0
12595 # endif
12596 # endif
12597 # endif
12598 # endif
12599 #endif
12600
12601 /* When -fvisbility=hidden is used, assume the code has been annotated
12602 correspondingly for the symbols needed. */
12603 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12604 int fnord () __attribute__((visibility("default")));
12605 #endif
12606
12607 int fnord () { return 42; }
12608 int main ()
12609 {
12610 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12611 int status = $lt_dlunknown;
12612
12613 if (self)
12614 {
12615 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12616 else
12617 {
12618 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12619 else puts (dlerror ());
12620 }
12621 /* dlclose (self); */
12622 }
12623 else
12624 puts (dlerror ());
12625
12626 return status;
12627 }
12628 _LT_EOF
12629 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12630 (eval $ac_link) 2>&5
12631 ac_status=$?
12632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12633 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12634 (./conftest; exit; ) >&5 2>/dev/null
12635 lt_status=$?
12636 case x$lt_status in
12637 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12638 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12639 x$lt_dlunknown|x*) ;;
12640 esac
12641 else :
12642 # compilation failed
12643
12644 fi
12645 fi
12646 rm -fr conftest*
12647
12648 LIBS="$save_LIBS"
12649
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12652 $as_echo "$libltdl_cv_need_uscore" >&6; }
12653 fi
12654 fi
12655
12656 if test x"$libltdl_cv_need_uscore" = xyes; then
12657
12658 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12659
12660 fi
12661
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12663 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12664 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12665 $as_echo_n "(cached) " >&6
12666 else
12667 # PORTME does your system automatically load deplibs for dlopen?
12668 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12669 # For now, we just catch OSes we know something about -- in the
12670 # future, we'll try test this programmatically.
12671 lt_cv_sys_dlopen_deplibs=unknown
12672 case $host_os in
12673 aix3*|aix4.1.*|aix4.2.*)
12674 # Unknown whether this is true for these versions of AIX, but
12675 # we want this `case' here to explicitly catch those versions.
12676 lt_cv_sys_dlopen_deplibs=unknown
12677 ;;
12678 aix[4-9]*)
12679 lt_cv_sys_dlopen_deplibs=yes
12680 ;;
12681 amigaos*)
12682 case $host_cpu in
12683 powerpc)
12684 lt_cv_sys_dlopen_deplibs=no
12685 ;;
12686 esac
12687 ;;
12688 darwin*)
12689 # Assuming the user has installed a libdl from somewhere, this is true
12690 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12691 lt_cv_sys_dlopen_deplibs=yes
12692 ;;
12693 freebsd* | dragonfly*)
12694 lt_cv_sys_dlopen_deplibs=yes
12695 ;;
12696 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12697 # GNU and its variants, using gnu ld.so (Glibc)
12698 lt_cv_sys_dlopen_deplibs=yes
12699 ;;
12700 hpux10*|hpux11*)
12701 lt_cv_sys_dlopen_deplibs=yes
12702 ;;
12703 interix*)
12704 lt_cv_sys_dlopen_deplibs=yes
12705 ;;
12706 irix[12345]*|irix6.[01]*)
12707 # Catch all versions of IRIX before 6.2, and indicate that we don't
12708 # know how it worked for any of those versions.
12709 lt_cv_sys_dlopen_deplibs=unknown
12710 ;;
12711 irix*)
12712 # The case above catches anything before 6.2, and it's known that
12713 # at 6.2 and later dlopen does load deplibs.
12714 lt_cv_sys_dlopen_deplibs=yes
12715 ;;
12716 netbsd*)
12717 lt_cv_sys_dlopen_deplibs=yes
12718 ;;
12719 openbsd*)
12720 lt_cv_sys_dlopen_deplibs=yes
12721 ;;
12722 osf[1234]*)
12723 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12724 # it did *not* use an RPATH in a shared library to find objects the
12725 # library depends on, so we explicitly say `no'.
12726 lt_cv_sys_dlopen_deplibs=no
12727 ;;
12728 osf5.0|osf5.0a|osf5.1)
12729 # dlopen *does* load deplibs and with the right loader patch applied
12730 # it even uses RPATH in a shared library to search for shared objects
12731 # that the library depends on, but there's no easy way to know if that
12732 # patch is installed. Since this is the case, all we can really
12733 # say is unknown -- it depends on the patch being installed. If
12734 # it is, this changes to `yes'. Without it, it would be `no'.
12735 lt_cv_sys_dlopen_deplibs=unknown
12736 ;;
12737 osf*)
12738 # the two cases above should catch all versions of osf <= 5.1. Read
12739 # the comments above for what we know about them.
12740 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12741 # is used to find them so we can finally say `yes'.
12742 lt_cv_sys_dlopen_deplibs=yes
12743 ;;
12744 qnx*)
12745 lt_cv_sys_dlopen_deplibs=yes
12746 ;;
12747 solaris*)
12748 lt_cv_sys_dlopen_deplibs=yes
12749 ;;
12750 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12751 libltdl_cv_sys_dlopen_deplibs=yes
12752 ;;
12753 esac
12754
12755 fi
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12757 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12758 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12759
12760 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12761
12762 fi
12763
12764 :
12765
12766 for ac_header in argz.h
12767 do :
12768 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12769 "
12770 if test "x$ac_cv_header_argz_h" = xyes; then :
12771 cat >>confdefs.h <<_ACEOF
12772 #define HAVE_ARGZ_H 1
12773 _ACEOF
12774
12775 fi
12776
12777 done
12778
12779
12780 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12781 # include <argz.h>
12782 #endif
12783 "
12784 if test "x$ac_cv_type_error_t" = xyes; then :
12785
12786 cat >>confdefs.h <<_ACEOF
12787 #define HAVE_ERROR_T 1
12788 _ACEOF
12789
12790
12791 else
12792
12793 $as_echo "#define error_t int" >>confdefs.h
12794
12795
12796 $as_echo "#define __error_t_defined 1" >>confdefs.h
12797
12798 fi
12799
12800
12801 ARGZ_H=
12802 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12803 argz_next argz_stringify
12804 do :
12805 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12806 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12807 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12808 cat >>confdefs.h <<_ACEOF
12809 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12810 _ACEOF
12811
12812 else
12813 ARGZ_H=argz.h;
12814
12815 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12816
12817 fi
12818 done
12819
12820
12821 if test -z "$ARGZ_H"; then :
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12823 $as_echo_n "checking if argz actually works... " >&6; }
12824 if ${lt_cv_sys_argz_works+:} false; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 case $host_os in #(
12828 *cygwin*)
12829 lt_cv_sys_argz_works=no
12830 if test "$cross_compiling" != no; then
12831 lt_cv_sys_argz_works="guessing no"
12832 else
12833 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12834 save_IFS=$IFS
12835 IFS=-.
12836 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12837 IFS=$save_IFS
12838 lt_os_major=${2-0}
12839 lt_os_minor=${3-0}
12840 lt_os_micro=${4-0}
12841 if test "$lt_os_major" -gt 1 \
12842 || { test "$lt_os_major" -eq 1 \
12843 && { test "$lt_os_minor" -gt 5 \
12844 || { test "$lt_os_minor" -eq 5 \
12845 && test "$lt_os_micro" -gt 24; }; }; }; then
12846 lt_cv_sys_argz_works=yes
12847 fi
12848 fi
12849 ;; #(
12850 *) lt_cv_sys_argz_works=yes ;;
12851 esac
12852 fi
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12854 $as_echo "$lt_cv_sys_argz_works" >&6; }
12855 if test "$lt_cv_sys_argz_works" = yes; then :
12856
12857 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12858
12859 else
12860 ARGZ_H=argz.h
12861
12862
12863 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12864
12865 fi
12866 fi
12867
12868
12869
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12871 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12872 if ${libltdl_cv_preloaded_symbols+:} false; then :
12873 $as_echo_n "(cached) " >&6
12874 else
12875 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12876 libltdl_cv_preloaded_symbols=yes
12877 else
12878 libltdl_cv_preloaded_symbols=no
12879 fi
12880
12881 fi
12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12883 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12884 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12885
12886 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12887
12888 fi
12889
12890 # Set options
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900
12901
12902 # Check whether --with-included_ltdl was given.
12903 if test "${with_included_ltdl+set}" = set; then :
12904 withval=$with_included_ltdl;
12905 fi
12906
12907
12908 if test "x$with_included_ltdl" != xyes; then
12909 # We are not being forced to use the included libltdl sources, so
12910 # decide whether there is a useful installed version we can use.
12911 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12912
12913 "
12914 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12915 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12916 #include <ltdl.h>
12917 "
12918 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12920 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12921 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12922 $as_echo_n "(cached) " >&6
12923 else
12924 ac_check_lib_save_LIBS=$LIBS
12925 LIBS="-lltdl $LIBS"
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12928
12929 /* Override any GCC internal prototype to avoid an error.
12930 Use char because int might match the return type of a GCC
12931 builtin and then its argument prototype would still apply. */
12932 #ifdef __cplusplus
12933 extern "C"
12934 #endif
12935 char lt_dladvise_preload ();
12936 int
12937 main ()
12938 {
12939 return lt_dladvise_preload ();
12940 ;
12941 return 0;
12942 }
12943 _ACEOF
12944 if ac_fn_c_try_link "$LINENO"; then :
12945 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12946 else
12947 ac_cv_lib_ltdl_lt_dladvise_preload=no
12948 fi
12949 rm -f core conftest.err conftest.$ac_objext \
12950 conftest$ac_exeext conftest.$ac_ext
12951 LIBS=$ac_check_lib_save_LIBS
12952 fi
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12954 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12955 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12956 with_included_ltdl=no
12957 else
12958 with_included_ltdl=yes
12959 fi
12960
12961 else
12962 with_included_ltdl=yes
12963 fi
12964
12965 else
12966 with_included_ltdl=yes
12967 fi
12968
12969
12970 fi
12971
12972
12973
12974
12975 # Check whether --with-ltdl_include was given.
12976 if test "${with_ltdl_include+set}" = set; then :
12977 withval=$with_ltdl_include;
12978 fi
12979
12980
12981 if test -n "$with_ltdl_include"; then
12982 if test -f "$with_ltdl_include/ltdl.h"; then :
12983 else
12984 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12985 fi
12986 else
12987 with_ltdl_include=no
12988 fi
12989
12990
12991 # Check whether --with-ltdl_lib was given.
12992 if test "${with_ltdl_lib+set}" = set; then :
12993 withval=$with_ltdl_lib;
12994 fi
12995
12996
12997 if test -n "$with_ltdl_lib"; then
12998 if test -f "$with_ltdl_lib/libltdl.la"; then :
12999 else
13000 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
13001 fi
13002 else
13003 with_ltdl_lib=no
13004 fi
13005
13006 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
13007 ,yes,no,no,)
13008 case $enable_ltdl_convenience in
13009 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
13010 "") enable_ltdl_convenience=yes
13011 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
13012 esac
13013 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
13014 LTDLDEPS=$LIBLTDL
13015 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
13016
13017
13018
13019
13020
13021 # For backwards non-gettext consistent compatibility...
13022 INCLTDL="$LTDLINCL"
13023
13024
13025 ;;
13026 ,no,no,no,)
13027 # If the included ltdl is not to be used, then use the
13028 # preinstalled libltdl we found.
13029
13030 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
13031
13032 LIBLTDL=-lltdl
13033 LTDLDEPS=
13034 LTDLINCL=
13035 ;;
13036 ,no*,no,*)
13037 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
13038 ;;
13039 *) with_included_ltdl=no
13040 LIBLTDL="-L$with_ltdl_lib -lltdl"
13041 LTDLDEPS=
13042 LTDLINCL="-I$with_ltdl_include"
13043 ;;
13044 esac
13045 INCLTDL="$LTDLINCL"
13046
13047 # Report our decision...
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
13049 $as_echo_n "checking where to find libltdl headers... " >&6; }
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
13051 $as_echo "$LTDLINCL" >&6; }
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
13053 $as_echo_n "checking where to find libltdl library... " >&6; }
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
13055 $as_echo "$LIBLTDL" >&6; }
13056
13057
13058
13059 # Check whether --enable-ltdl-install was given.
13060 if test "${enable_ltdl_install+set}" = set; then :
13061 enableval=$enable_ltdl_install;
13062 fi
13063
13064
13065 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
13066 *yes*) ;;
13067 *) enable_ltdl_convenience=yes ;;
13068 esac
13069
13070 if test x"${enable_ltdl_install-no}" != xno; then
13071 INSTALL_LTDL_TRUE=
13072 INSTALL_LTDL_FALSE='#'
13073 else
13074 INSTALL_LTDL_TRUE='#'
13075 INSTALL_LTDL_FALSE=
13076 fi
13077
13078 if test x"${enable_ltdl_convenience-no}" != xno; then
13079 CONVENIENCE_LTDL_TRUE=
13080 CONVENIENCE_LTDL_FALSE='#'
13081 else
13082 CONVENIENCE_LTDL_TRUE='#'
13083 CONVENIENCE_LTDL_FALSE=
13084 fi
13085
13086
13087
13088
13089
13090
13091 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
13092 # the user used. This is so that ltdl.h can pick up the parent projects
13093 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
13094 # definitions required by ltdl.c.
13095 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
13096
13097
13098
13099 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
13100 do :
13101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13102 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13103 "
13104 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13105 cat >>confdefs.h <<_ACEOF
13106 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13107 _ACEOF
13108
13109 fi
13110
13111 done
13112
13113
13114 for ac_func in closedir opendir readdir
13115 do :
13116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13117 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13118 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13119 cat >>confdefs.h <<_ACEOF
13120 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13121 _ACEOF
13122
13123 else
13124
13125
13126 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
13127
13128 fi
13129 done
13130
13131 for ac_func in strlcat strlcpy
13132 do :
13133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13134 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13135 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13136 cat >>confdefs.h <<_ACEOF
13137 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13138 _ACEOF
13139
13140 else
13141
13142
13143 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
13144
13145 fi
13146 done
13147
13148
13149
13150 cat >>confdefs.h <<_ACEOF
13151 #define LT_LIBEXT "$libext"
13152 _ACEOF
13153
13154
13155 name=
13156 eval "lt_libprefix=\"$libname_spec\""
13157
13158 cat >>confdefs.h <<_ACEOF
13159 #define LT_LIBPREFIX "$lt_libprefix"
13160 _ACEOF
13161
13162
13163 name=ltdl
13164 eval "LTDLOPEN=\"$libname_spec\""
13165
13166
13167
13168
13169
13170
13171
13172
13173 # Only expand once:
13174
13175
13176 LIBTOOL="$LIBTOOL --silent"
13177
13178 # Checks for libraries.
13179
13180
13181 if test "X$CC" != "X"; then
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${CC} accepts -fstack-protector" >&5
13183 $as_echo_n "checking whether ${CC} accepts -fstack-protector... " >&6; }
13184 if ${ssp_cv_cc+:} false; then :
13185 $as_echo_n "(cached) " >&6
13186 else
13187 ssp_old_cflags="$CFLAGS"
13188 CFLAGS="$CFLAGS -fstack-protector"
13189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13190 /* end confdefs.h. */
13191
13192 int
13193 main ()
13194 {
13195
13196 ;
13197 return 0;
13198 }
13199 _ACEOF
13200 if ac_fn_c_try_compile "$LINENO"; then :
13201 ssp_cv_cc=yes
13202 else
13203 ssp_cv_cc=no
13204 fi
13205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206 CFLAGS="$ssp_old_cflags"
13207
13208 fi
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_cv_cc" >&5
13210 $as_echo "$ssp_cv_cc" >&6; }
13211 if test $ssp_cv_cc = yes; then
13212 CFLAGS="$CFLAGS -fstack-protector"
13213
13214 $as_echo "#define ENABLE_SSP_CC 1" >>confdefs.h
13215
13216 fi
13217 fi
13218
13219
13220
13221 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
13222 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
13223
13224 else
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
13226 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
13227 if ${ac_cv_search_getaddrinfo+:} false; then :
13228 $as_echo_n "(cached) " >&6
13229 else
13230 ac_func_search_save_LIBS=$LIBS
13231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13232 /* end confdefs.h. */
13233
13234 /* Override any GCC internal prototype to avoid an error.
13235 Use char because int might match the return type of a GCC
13236 builtin and then its argument prototype would still apply. */
13237 #ifdef __cplusplus
13238 extern "C"
13239 #endif
13240 char getaddrinfo ();
13241 int
13242 main ()
13243 {
13244 return getaddrinfo ();
13245 ;
13246 return 0;
13247 }
13248 _ACEOF
13249 for ac_lib in '' nsl; do
13250 if test -z "$ac_lib"; then
13251 ac_res="none required"
13252 else
13253 ac_res=-l$ac_lib
13254 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13255 fi
13256 if ac_fn_c_try_link "$LINENO"; then :
13257 ac_cv_search_getaddrinfo=$ac_res
13258 fi
13259 rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext
13261 if ${ac_cv_search_getaddrinfo+:} false; then :
13262 break
13263 fi
13264 done
13265 if ${ac_cv_search_getaddrinfo+:} false; then :
13266
13267 else
13268 ac_cv_search_getaddrinfo=no
13269 fi
13270 rm conftest.$ac_ext
13271 LIBS=$ac_func_search_save_LIBS
13272 fi
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
13274 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
13275 ac_res=$ac_cv_search_getaddrinfo
13276 if test "$ac_res" != no; then :
13277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13278
13279 fi
13280
13281 fi
13282
13283 ac_fn_c_check_func "$LINENO" "getnameinfo" "ac_cv_func_getnameinfo"
13284 if test "x$ac_cv_func_getnameinfo" = xyes; then :
13285
13286 else
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getnameinfo" >&5
13288 $as_echo_n "checking for library containing getnameinfo... " >&6; }
13289 if ${ac_cv_search_getnameinfo+:} false; then :
13290 $as_echo_n "(cached) " >&6
13291 else
13292 ac_func_search_save_LIBS=$LIBS
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295
13296 /* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13299 #ifdef __cplusplus
13300 extern "C"
13301 #endif
13302 char getnameinfo ();
13303 int
13304 main ()
13305 {
13306 return getnameinfo ();
13307 ;
13308 return 0;
13309 }
13310 _ACEOF
13311 for ac_lib in '' nsl; do
13312 if test -z "$ac_lib"; then
13313 ac_res="none required"
13314 else
13315 ac_res=-l$ac_lib
13316 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13317 fi
13318 if ac_fn_c_try_link "$LINENO"; then :
13319 ac_cv_search_getnameinfo=$ac_res
13320 fi
13321 rm -f core conftest.err conftest.$ac_objext \
13322 conftest$ac_exeext
13323 if ${ac_cv_search_getnameinfo+:} false; then :
13324 break
13325 fi
13326 done
13327 if ${ac_cv_search_getnameinfo+:} false; then :
13328
13329 else
13330 ac_cv_search_getnameinfo=no
13331 fi
13332 rm conftest.$ac_ext
13333 LIBS=$ac_func_search_save_LIBS
13334 fi
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getnameinfo" >&5
13336 $as_echo "$ac_cv_search_getnameinfo" >&6; }
13337 ac_res=$ac_cv_search_getnameinfo
13338 if test "$ac_res" != no; then :
13339 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13340
13341 fi
13342
13343 fi
13344
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13346 $as_echo_n "checking for library containing socket... " >&6; }
13347 if ${ac_cv_search_socket+:} false; then :
13348 $as_echo_n "(cached) " >&6
13349 else
13350 ac_func_search_save_LIBS=$LIBS
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353
13354 /* Override any GCC internal prototype to avoid an error.
13355 Use char because int might match the return type of a GCC
13356 builtin and then its argument prototype would still apply. */
13357 #ifdef __cplusplus
13358 extern "C"
13359 #endif
13360 char socket ();
13361 int
13362 main ()
13363 {
13364 return socket ();
13365 ;
13366 return 0;
13367 }
13368 _ACEOF
13369 for ac_lib in '' socket; do
13370 if test -z "$ac_lib"; then
13371 ac_res="none required"
13372 else
13373 ac_res=-l$ac_lib
13374 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13375 fi
13376 if ac_fn_c_try_link "$LINENO"; then :
13377 ac_cv_search_socket=$ac_res
13378 fi
13379 rm -f core conftest.err conftest.$ac_objext \
13380 conftest$ac_exeext
13381 if ${ac_cv_search_socket+:} false; then :
13382 break
13383 fi
13384 done
13385 if ${ac_cv_search_socket+:} false; then :
13386
13387 else
13388 ac_cv_search_socket=no
13389 fi
13390 rm conftest.$ac_ext
13391 LIBS=$ac_func_search_save_LIBS
13392 fi
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13394 $as_echo "$ac_cv_search_socket" >&6; }
13395 ac_res=$ac_cv_search_socket
13396 if test "$ac_res" != no; then :
13397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13398
13399 else
13400 as_fn_error $? "socket library not found" "$LINENO" 5
13401 fi
13402
13403 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13404 #include <sys/socket.h>
13405 #include <netdb.h>
13406
13407 "
13408 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13409
13410 cat >>confdefs.h <<_ACEOF
13411 #define HAVE_STRUCT_SOCKADDR_IN 1
13412 _ACEOF
13413
13414
13415 fi
13416 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13417 #include <sys/socket.h>
13418 #include <netdb.h>
13419
13420 "
13421 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13422
13423 cat >>confdefs.h <<_ACEOF
13424 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13425 _ACEOF
13426
13427
13428 fi
13429 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13430 #include <sys/socket.h>
13431 #include <netdb.h>
13432
13433 "
13434 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13435
13436 cat >>confdefs.h <<_ACEOF
13437 #define HAVE_STRUCT_ADDRINFO 1
13438 _ACEOF
13439
13440
13441 fi
13442
13443 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13444 <sys/socket.h>
13445 "
13446 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13447
13448 cat >>confdefs.h <<_ACEOF
13449 #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13450 _ACEOF
13451
13452
13453 fi
13454
13455
13456
13457 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13458 "
13459 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13460
13461 $as_echo "#define IPV6 1" >>confdefs.h
13462
13463 fi
13464
13465
13466
13467 # Checks for typedefs, structures, and compiler characteristics.
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13469 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13470 if ${ac_cv_c_bigendian+:} false; then :
13471 $as_echo_n "(cached) " >&6
13472 else
13473 ac_cv_c_bigendian=unknown
13474 # See if we're dealing with a universal compiler.
13475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13476 /* end confdefs.h. */
13477 #ifndef __APPLE_CC__
13478 not a universal capable compiler
13479 #endif
13480 typedef int dummy;
13481
13482 _ACEOF
13483 if ac_fn_c_try_compile "$LINENO"; then :
13484
13485 # Check for potential -arch flags. It is not universal unless
13486 # there are at least two -arch flags with different values.
13487 ac_arch=
13488 ac_prev=
13489 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13490 if test -n "$ac_prev"; then
13491 case $ac_word in
13492 i?86 | x86_64 | ppc | ppc64)
13493 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13494 ac_arch=$ac_word
13495 else
13496 ac_cv_c_bigendian=universal
13497 break
13498 fi
13499 ;;
13500 esac
13501 ac_prev=
13502 elif test "x$ac_word" = "x-arch"; then
13503 ac_prev=arch
13504 fi
13505 done
13506 fi
13507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13508 if test $ac_cv_c_bigendian = unknown; then
13509 # See if sys/param.h defines the BYTE_ORDER macro.
13510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13512 #include <sys/types.h>
13513 #include <sys/param.h>
13514
13515 int
13516 main ()
13517 {
13518 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13519 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13520 && LITTLE_ENDIAN)
13521 bogus endian macros
13522 #endif
13523
13524 ;
13525 return 0;
13526 }
13527 _ACEOF
13528 if ac_fn_c_try_compile "$LINENO"; then :
13529 # It does; now see whether it defined to BIG_ENDIAN or not.
13530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13531 /* end confdefs.h. */
13532 #include <sys/types.h>
13533 #include <sys/param.h>
13534
13535 int
13536 main ()
13537 {
13538 #if BYTE_ORDER != BIG_ENDIAN
13539 not big endian
13540 #endif
13541
13542 ;
13543 return 0;
13544 }
13545 _ACEOF
13546 if ac_fn_c_try_compile "$LINENO"; then :
13547 ac_cv_c_bigendian=yes
13548 else
13549 ac_cv_c_bigendian=no
13550 fi
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552 fi
13553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13554 fi
13555 if test $ac_cv_c_bigendian = unknown; then
13556 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13558 /* end confdefs.h. */
13559 #include <limits.h>
13560
13561 int
13562 main ()
13563 {
13564 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13565 bogus endian macros
13566 #endif
13567
13568 ;
13569 return 0;
13570 }
13571 _ACEOF
13572 if ac_fn_c_try_compile "$LINENO"; then :
13573 # It does; now see whether it defined to _BIG_ENDIAN or not.
13574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13575 /* end confdefs.h. */
13576 #include <limits.h>
13577
13578 int
13579 main ()
13580 {
13581 #ifndef _BIG_ENDIAN
13582 not big endian
13583 #endif
13584
13585 ;
13586 return 0;
13587 }
13588 _ACEOF
13589 if ac_fn_c_try_compile "$LINENO"; then :
13590 ac_cv_c_bigendian=yes
13591 else
13592 ac_cv_c_bigendian=no
13593 fi
13594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13595 fi
13596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13597 fi
13598 if test $ac_cv_c_bigendian = unknown; then
13599 # Compile a test program.
13600 if test "$cross_compiling" = yes; then :
13601 # Try to guess by grepping values from an object file.
13602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13603 /* end confdefs.h. */
13604 short int ascii_mm[] =
13605 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13606 short int ascii_ii[] =
13607 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13608 int use_ascii (int i) {
13609 return ascii_mm[i] + ascii_ii[i];
13610 }
13611 short int ebcdic_ii[] =
13612 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13613 short int ebcdic_mm[] =
13614 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13615 int use_ebcdic (int i) {
13616 return ebcdic_mm[i] + ebcdic_ii[i];
13617 }
13618 extern int foo;
13619
13620 int
13621 main ()
13622 {
13623 return use_ascii (foo) == use_ebcdic (foo);
13624 ;
13625 return 0;
13626 }
13627 _ACEOF
13628 if ac_fn_c_try_compile "$LINENO"; then :
13629 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13630 ac_cv_c_bigendian=yes
13631 fi
13632 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13633 if test "$ac_cv_c_bigendian" = unknown; then
13634 ac_cv_c_bigendian=no
13635 else
13636 # finding both strings is unlikely to happen, but who knows?
13637 ac_cv_c_bigendian=unknown
13638 fi
13639 fi
13640 fi
13641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13642 else
13643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13644 /* end confdefs.h. */
13645 $ac_includes_default
13646 int
13647 main ()
13648 {
13649
13650 /* Are we little or big endian? From Harbison&Steele. */
13651 union
13652 {
13653 long int l;
13654 char c[sizeof (long int)];
13655 } u;
13656 u.l = 1;
13657 return u.c[sizeof (long int) - 1] == 1;
13658
13659 ;
13660 return 0;
13661 }
13662 _ACEOF
13663 if ac_fn_c_try_run "$LINENO"; then :
13664 ac_cv_c_bigendian=no
13665 else
13666 ac_cv_c_bigendian=yes
13667 fi
13668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13669 conftest.$ac_objext conftest.beam conftest.$ac_ext
13670 fi
13671
13672 fi
13673 fi
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13675 $as_echo "$ac_cv_c_bigendian" >&6; }
13676 case $ac_cv_c_bigendian in #(
13677 yes)
13678 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13679 ;; #(
13680 no)
13681 ;; #(
13682 universal)
13683
13684 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13685
13686 ;; #(
13687 *)
13688 as_fn_error $? "unknown endianness
13689 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13690 esac
13691
13692
13693 # Checks for library functions.
13694
13695
13696
13697 for ac_func in $ac_func_list
13698 do :
13699 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13700 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13701 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13702 cat >>confdefs.h <<_ACEOF
13703 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13704 _ACEOF
13705
13706 fi
13707 done
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719 # Checks for header files.
13720
13721
13722
13723 for ac_header in $ac_header_list
13724 do :
13725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13726 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13727 "
13728 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13729 cat >>confdefs.h <<_ACEOF
13730 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13731 _ACEOF
13732
13733 fi
13734
13735 done
13736
13737
13738
13739
13740
13741
13742
13743
13744
13745
13746
13747
13748
13749
13750
13751
13752
13753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13754 $as_echo_n "checking for library containing crypt... " >&6; }
13755 if ${ac_cv_search_crypt+:} false; then :
13756 $as_echo_n "(cached) " >&6
13757 else
13758 ac_func_search_save_LIBS=$LIBS
13759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13760 /* end confdefs.h. */
13761
13762 /* Override any GCC internal prototype to avoid an error.
13763 Use char because int might match the return type of a GCC
13764 builtin and then its argument prototype would still apply. */
13765 #ifdef __cplusplus
13766 extern "C"
13767 #endif
13768 char crypt ();
13769 int
13770 main ()
13771 {
13772 return crypt ();
13773 ;
13774 return 0;
13775 }
13776 _ACEOF
13777 for ac_lib in '' crypt; do
13778 if test -z "$ac_lib"; then
13779 ac_res="none required"
13780 else
13781 ac_res=-l$ac_lib
13782 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13783 fi
13784 if ac_fn_c_try_link "$LINENO"; then :
13785 ac_cv_search_crypt=$ac_res
13786 fi
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext
13789 if ${ac_cv_search_crypt+:} false; then :
13790 break
13791 fi
13792 done
13793 if ${ac_cv_search_crypt+:} false; then :
13794
13795 else
13796 ac_cv_search_crypt=no
13797 fi
13798 rm conftest.$ac_ext
13799 LIBS=$ac_func_search_save_LIBS
13800 fi
13801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13802 $as_echo "$ac_cv_search_crypt" >&6; }
13803 ac_res=$ac_cv_search_crypt
13804 if test "$ac_res" != no; then :
13805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13806
13807 fi
13808
13809
13810 # Check whether --enable-libgeoip was given.
13811 if test "${enable_libgeoip+set}" = set; then :
13812 enableval=$enable_libgeoip;
13813 else
13814 ac_fn_c_check_header_mongrel "$LINENO" "GeoIP.h" "ac_cv_header_GeoIP_h" "$ac_includes_default"
13815 if test "x$ac_cv_header_GeoIP_h" = xyes; then :
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing GeoIP_id_by_ipnum_v6_gl" >&5
13817 $as_echo_n "checking for library containing GeoIP_id_by_ipnum_v6_gl... " >&6; }
13818 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13819 $as_echo_n "(cached) " >&6
13820 else
13821 ac_func_search_save_LIBS=$LIBS
13822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13823 /* end confdefs.h. */
13824
13825 /* Override any GCC internal prototype to avoid an error.
13826 Use char because int might match the return type of a GCC
13827 builtin and then its argument prototype would still apply. */
13828 #ifdef __cplusplus
13829 extern "C"
13830 #endif
13831 char GeoIP_id_by_ipnum_v6_gl ();
13832 int
13833 main ()
13834 {
13835 return GeoIP_id_by_ipnum_v6_gl ();
13836 ;
13837 return 0;
13838 }
13839 _ACEOF
13840 for ac_lib in '' GeoIP; do
13841 if test -z "$ac_lib"; then
13842 ac_res="none required"
13843 else
13844 ac_res=-l$ac_lib
13845 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13846 fi
13847 if ac_fn_c_try_link "$LINENO"; then :
13848 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=$ac_res
13849 fi
13850 rm -f core conftest.err conftest.$ac_objext \
13851 conftest$ac_exeext
13852 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13853 break
13854 fi
13855 done
13856 if ${ac_cv_search_GeoIP_id_by_ipnum_v6_gl+:} false; then :
13857
13858 else
13859 ac_cv_search_GeoIP_id_by_ipnum_v6_gl=no
13860 fi
13861 rm conftest.$ac_ext
13862 LIBS=$ac_func_search_save_LIBS
13863 fi
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&5
13865 $as_echo "$ac_cv_search_GeoIP_id_by_ipnum_v6_gl" >&6; }
13866 ac_res=$ac_cv_search_GeoIP_id_by_ipnum_v6_gl
13867 if test "$ac_res" != no; then :
13868 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13869
13870 $as_echo "#define HAVE_LIBGEOIP 1" >>confdefs.h
13871
13872 fi
13873
13874 fi
13875
13876
13877 fi
13878
13879
13880
13881 # Check whether --enable-openssl was given.
13882 if test "${enable_openssl+set}" = set; then :
13883 enableval=$enable_openssl; cf_enable_openssl=$enableval
13884 else
13885 cf_enable_openssl="auto"
13886 fi
13887
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13889 $as_echo_n "checking for OpenSSL... " >&6; }
13890 if test "$cf_enable_openssl" != "no"; then
13891 cf_openssl_basedir=""
13892 if test "$cf_enable_openssl" != "auto" &&
13893 test "$cf_enable_openssl" != "yes"; then
13894 cf_openssl_basedir="${cf_enable_openssl}"
13895 else
13896 for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13897 /opt /opt/openssl /usr/local/openssl; do
13898 if test -f "${dirs}/include/openssl/opensslv.h"; then
13899 cf_openssl_basedir="${dirs}"
13900 break
13901 fi
13902 done
13903 unset dirs
13904 fi
13905
13906 if test ! -z "$cf_openssl_basedir"; then
13907 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13908 CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13909 LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13910 else
13911 cf_openssl_basedir=""
13912 fi
13913 else
13914 if test -f "/usr/include/openssl/opensslv.h"; then
13915 cf_openssl_basedir="/usr"
13916 fi
13917 fi
13918
13919 if test ! -z "$cf_openssl_basedir"; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13921 $as_echo "$cf_openssl_basedir" >&6; }
13922 cf_enable_openssl="yes"
13923 else
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13925 $as_echo "not found. Please check your path." >&6; }
13926 cf_enable_openssl="no"
13927 fi
13928 unset cf_openssl_basedir
13929 else
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13931 $as_echo "disabled" >&6; }
13932 fi
13933
13934 if test "$cf_enable_openssl" != "no"; then :
13935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
13936 $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
13937 if test "$cross_compiling" = yes; then :
13938 cf_openssl_version_ok=no
13939 else
13940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13941 /* end confdefs.h. */
13942
13943
13944 #include <openssl/opensslv.h>
13945 #include <stdlib.h>
13946 int
13947 main ()
13948 {
13949 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
13950 ;
13951 return 0;
13952 }
13953 _ACEOF
13954 if ac_fn_c_try_run "$LINENO"; then :
13955 cf_openssl_version_ok=yes
13956 else
13957 cf_openssl_version_ok=no
13958 fi
13959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13960 conftest.$ac_objext conftest.beam conftest.$ac_ext
13961 fi
13962
13963
13964 if test "$cf_openssl_version_ok" = "yes"; then :
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13966 $as_echo "found" >&6; }
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13969 $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13970 if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13971 $as_echo_n "(cached) " >&6
13972 else
13973 ac_check_lib_save_LIBS=$LIBS
13974 LIBS="-lcrypto $LIBS"
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977
13978 /* Override any GCC internal prototype to avoid an error.
13979 Use char because int might match the return type of a GCC
13980 builtin and then its argument prototype would still apply. */
13981 #ifdef __cplusplus
13982 extern "C"
13983 #endif
13984 char RSA_free ();
13985 int
13986 main ()
13987 {
13988 return RSA_free ();
13989 ;
13990 return 0;
13991 }
13992 _ACEOF
13993 if ac_fn_c_try_link "$LINENO"; then :
13994 ac_cv_lib_crypto_RSA_free=yes
13995 else
13996 ac_cv_lib_crypto_RSA_free=no
13997 fi
13998 rm -f core conftest.err conftest.$ac_objext \
13999 conftest$ac_exeext conftest.$ac_ext
14000 LIBS=$ac_check_lib_save_LIBS
14001 fi
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
14003 $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
14004 if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
14005 cat >>confdefs.h <<_ACEOF
14006 #define HAVE_LIBCRYPTO 1
14007 _ACEOF
14008
14009 LIBS="-lcrypto $LIBS"
14010
14011 fi
14012
14013 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
14015 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
14016 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
14017 $as_echo_n "(cached) " >&6
14018 else
14019 ac_check_lib_save_LIBS=$LIBS
14020 LIBS="-lssl $LIBS"
14021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14022 /* end confdefs.h. */
14023
14024 /* Override any GCC internal prototype to avoid an error.
14025 Use char because int might match the return type of a GCC
14026 builtin and then its argument prototype would still apply. */
14027 #ifdef __cplusplus
14028 extern "C"
14029 #endif
14030 char SSL_connect ();
14031 int
14032 main ()
14033 {
14034 return SSL_connect ();
14035 ;
14036 return 0;
14037 }
14038 _ACEOF
14039 if ac_fn_c_try_link "$LINENO"; then :
14040 ac_cv_lib_ssl_SSL_connect=yes
14041 else
14042 ac_cv_lib_ssl_SSL_connect=no
14043 fi
14044 rm -f core conftest.err conftest.$ac_objext \
14045 conftest$ac_exeext conftest.$ac_ext
14046 LIBS=$ac_check_lib_save_LIBS
14047 fi
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
14049 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
14050 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
14051 cat >>confdefs.h <<_ACEOF
14052 #define HAVE_LIBSSL 1
14053 _ACEOF
14054
14055 LIBS="-lssl $LIBS"
14056
14057 fi
14058
14059 fi
14060
14061 else
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14063 $as_echo "no - OpenSSL support disabled" >&6; }
14064 cf_enable_openssl="no"
14065 fi
14066 fi
14067
14068 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
14069 ENABLE_SSL_TRUE=
14070 ENABLE_SSL_FALSE='#'
14071 else
14072 ENABLE_SSL_TRUE='#'
14073 ENABLE_SSL_FALSE=
14074 fi
14075
14076
14077
14078 # Check whether --enable-assert was given.
14079 if test "${enable_assert+set}" = set; then :
14080 enableval=$enable_assert; assert=$enableval
14081 else
14082 assert=no
14083 fi
14084
14085
14086 if test "$assert" = "no"; then :
14087
14088 $as_echo "#define NDEBUG 1" >>confdefs.h
14089
14090 fi
14091
14092
14093 $as_echo "#define NICKNAMEHISTORYLENGTH 32768" >>confdefs.h
14094
14095
14096 $as_echo "#define MP_CHUNK_SIZE_CHANNEL 1024*1024" >>confdefs.h
14097
14098
14099 $as_echo "#define MP_CHUNK_SIZE_MEMBER 2048*1024" >>confdefs.h
14100
14101
14102 $as_echo "#define MP_CHUNK_SIZE_BAN 1024*1024" >>confdefs.h
14103
14104
14105 $as_echo "#define MP_CHUNK_SIZE_CLIENT 1024*1024" >>confdefs.h
14106
14107
14108 $as_echo "#define MP_CHUNK_SIZE_LCLIENT 512*1024" >>confdefs.h
14109
14110
14111 $as_echo "#define MP_CHUNK_SIZE_DNODE 32*1024" >>confdefs.h
14112
14113
14114 $as_echo "#define MP_CHUNK_SIZE_DBUF 512*1024" >>confdefs.h
14115
14116
14117 $as_echo "#define MP_CHUNK_SIZE_AUTH 128*1024" >>confdefs.h
14118
14119
14120 $as_echo "#define MP_CHUNK_SIZE_DNS 64*1024" >>confdefs.h
14121
14122
14123 $as_echo "#define MP_CHUNK_SIZE_WATCH 8*1024" >>confdefs.h
14124
14125
14126 $as_echo "#define MP_CHUNK_SIZE_NAMEHOST 64*1024" >>confdefs.h
14127
14128
14129 $as_echo "#define MP_CHUNK_SIZE_USERHOST 128*1024" >>confdefs.h
14130
14131
14132 $as_echo "#define MP_CHUNK_SIZE_IP_ENTRY 128*1024" >>confdefs.h
14133
14134
14135 # Argument processing.
14136
14137 desired_iopoll_mechanism="none"
14138 # Check whether --enable-kqueue was given.
14139 if test "${enable_kqueue+set}" = set; then :
14140 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
14141 fi
14142
14143 # Check whether --enable-epoll was given.
14144 if test "${enable_epoll+set}" = set; then :
14145 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
14146 fi
14147
14148 # Check whether --enable-devpoll was given.
14149 if test "${enable_devpoll+set}" = set; then :
14150 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
14151 fi
14152
14153 # Check whether --enable-poll was given.
14154 if test "${enable_poll+set}" = set; then :
14155 enableval=$enable_poll; desired_iopoll_mechanism="poll"
14156 fi
14157
14158 # Check whether --enable-select was given.
14159 if test "${enable_select+set}" = set; then :
14160 enableval=$enable_select; desired_iopoll_mechanism="select"
14161 fi
14162
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
14164 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
14165 iopoll_mechanism_none=0
14166
14167 cat >>confdefs.h <<_ACEOF
14168 #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
14169 _ACEOF
14170
14171 iopoll_mechanism_kqueue=1
14172
14173 cat >>confdefs.h <<_ACEOF
14174 #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
14175 _ACEOF
14176
14177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14178 /* end confdefs.h. */
14179 /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
14180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14181 #define kevent innocuous_kevent
14182
14183 /* System header to define __stub macros and hopefully few prototypes,
14184 which can conflict with char kevent (); below.
14185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14186 <limits.h> exists even on freestanding compilers. */
14187
14188 #ifdef __STDC__
14189 # include <limits.h>
14190 #else
14191 # include <assert.h>
14192 #endif
14193
14194 #undef kevent
14195
14196 /* Override any GCC internal prototype to avoid an error.
14197 Use char because int might match the return type of a GCC
14198 builtin and then its argument prototype would still apply. */
14199 #ifdef __cplusplus
14200 extern "C"
14201 #endif
14202 char kevent ();
14203 /* The GNU C library defines this for functions which it implements
14204 to always fail with ENOSYS. Some functions are actually named
14205 something starting with __ and the normal name is an alias. */
14206 #if defined __stub_kevent || defined __stub___kevent
14207 choke me
14208 #endif
14209
14210 int
14211 main ()
14212 {
14213 return kevent ();
14214 ;
14215 return 0;
14216 }
14217 _ACEOF
14218 if ac_fn_c_try_link "$LINENO"; then :
14219 is_kqueue_mechanism_available="yes"
14220 else
14221 is_kqueue_mechanism_available="no"
14222 fi
14223 rm -f core conftest.err conftest.$ac_objext \
14224 conftest$ac_exeext conftest.$ac_ext
14225 iopoll_mechanism_epoll=2
14226
14227 cat >>confdefs.h <<_ACEOF
14228 #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14229 _ACEOF
14230
14231 if test "$cross_compiling" = yes; then :
14232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14234 as_fn_error $? "cannot run test program while cross compiling
14235 See \`config.log' for more details" "$LINENO" 5; }
14236 else
14237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14238 /* end confdefs.h. */
14239
14240 #include <sys/epoll.h>
14241 #include <sys/syscall.h>
14242 #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14243 #if !defined(__NR_epoll_create)
14244 #if defined(__ia64__)
14245 #define __NR_epoll_create 1243
14246 #elif defined(__x86_64__)
14247 #define __NR_epoll_create 214
14248 #elif defined(__sparc64__) || defined(__sparc__)
14249 #define __NR_epoll_create 193
14250 #elif defined(__s390__) || defined(__m68k__)
14251 #define __NR_epoll_create 249
14252 #elif defined(__ppc64__) || defined(__ppc__)
14253 #define __NR_epoll_create 236
14254 #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14255 #define __NR_epoll_create 224
14256 #elif defined(__alpha__)
14257 #define __NR_epoll_create 407
14258 #elif defined(__sh64__)
14259 #define __NR_epoll_create 282
14260 #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14261 #define __NR_epoll_create 254
14262 #else
14263 #error No system call numbers defined for epoll family.
14264 #endif
14265 #endif
14266 _syscall1(int, epoll_create, int, size)
14267 #endif
14268
14269 int
14270 main ()
14271 {
14272 return epoll_create(256) == -1 ? 1 : 0
14273 ;
14274 return 0;
14275 }
14276 _ACEOF
14277 if ac_fn_c_try_run "$LINENO"; then :
14278 is_epoll_mechanism_available="yes"
14279 else
14280 is_epoll_mechanism_available="no"
14281 fi
14282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14283 conftest.$ac_objext conftest.beam conftest.$ac_ext
14284 fi
14285
14286 iopoll_mechanism_devpoll=3
14287
14288 cat >>confdefs.h <<_ACEOF
14289 #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14290 _ACEOF
14291
14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14294 #include <devpoll.h>
14295 int
14296 main ()
14297 {
14298
14299 ;
14300 return 0;
14301 }
14302 _ACEOF
14303 if ac_fn_c_try_compile "$LINENO"; then :
14304 is_devpoll_mechanism_available="yes"
14305 else
14306 is_devpoll_mechanism_available="no"
14307 fi
14308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14309 if test "$is_devpoll_mechanism_available" = "yes" ; then
14310
14311 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14312
14313 fi
14314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14315 /* end confdefs.h. */
14316 #include <sys/devpoll.h>
14317 int
14318 main ()
14319 {
14320
14321 ;
14322 return 0;
14323 }
14324 _ACEOF
14325 if ac_fn_c_try_compile "$LINENO"; then :
14326 is_devpoll_mechanism_available="yes"
14327 else
14328 is_devpoll_mechanism_available="no"
14329 fi
14330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14331 if test "$is_devpoll_mechanism_available" = "yes" ; then
14332
14333 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14334
14335 fi
14336 iopoll_mechanism_poll=4
14337
14338 cat >>confdefs.h <<_ACEOF
14339 #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14340 _ACEOF
14341
14342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14343 /* end confdefs.h. */
14344 /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14346 #define poll innocuous_poll
14347
14348 /* System header to define __stub macros and hopefully few prototypes,
14349 which can conflict with char poll (); below.
14350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14351 <limits.h> exists even on freestanding compilers. */
14352
14353 #ifdef __STDC__
14354 # include <limits.h>
14355 #else
14356 # include <assert.h>
14357 #endif
14358
14359 #undef poll
14360
14361 /* Override any GCC internal prototype to avoid an error.
14362 Use char because int might match the return type of a GCC
14363 builtin and then its argument prototype would still apply. */
14364 #ifdef __cplusplus
14365 extern "C"
14366 #endif
14367 char poll ();
14368 /* The GNU C library defines this for functions which it implements
14369 to always fail with ENOSYS. Some functions are actually named
14370 something starting with __ and the normal name is an alias. */
14371 #if defined __stub_poll || defined __stub___poll
14372 choke me
14373 #endif
14374
14375 int
14376 main ()
14377 {
14378 return poll ();
14379 ;
14380 return 0;
14381 }
14382 _ACEOF
14383 if ac_fn_c_try_link "$LINENO"; then :
14384 is_poll_mechanism_available="yes"
14385 else
14386 is_poll_mechanism_available="no"
14387 fi
14388 rm -f core conftest.err conftest.$ac_objext \
14389 conftest$ac_exeext conftest.$ac_ext
14390 iopoll_mechanism_select=5
14391
14392 cat >>confdefs.h <<_ACEOF
14393 #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14394 _ACEOF
14395
14396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14397 /* end confdefs.h. */
14398 /* Define select to an innocuous variant, in case <limits.h> declares select.
14399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14400 #define select innocuous_select
14401
14402 /* System header to define __stub macros and hopefully few prototypes,
14403 which can conflict with char select (); below.
14404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14405 <limits.h> exists even on freestanding compilers. */
14406
14407 #ifdef __STDC__
14408 # include <limits.h>
14409 #else
14410 # include <assert.h>
14411 #endif
14412
14413 #undef select
14414
14415 /* Override any GCC internal prototype to avoid an error.
14416 Use char because int might match the return type of a GCC
14417 builtin and then its argument prototype would still apply. */
14418 #ifdef __cplusplus
14419 extern "C"
14420 #endif
14421 char select ();
14422 /* The GNU C library defines this for functions which it implements
14423 to always fail with ENOSYS. Some functions are actually named
14424 something starting with __ and the normal name is an alias. */
14425 #if defined __stub_select || defined __stub___select
14426 choke me
14427 #endif
14428
14429 int
14430 main ()
14431 {
14432 return select ();
14433 ;
14434 return 0;
14435 }
14436 _ACEOF
14437 if ac_fn_c_try_link "$LINENO"; then :
14438 is_select_mechanism_available="yes"
14439 else
14440 is_select_mechanism_available="no"
14441 fi
14442 rm -f core conftest.err conftest.$ac_objext \
14443 conftest$ac_exeext conftest.$ac_ext
14444 optimal_iopoll_mechanism="none"
14445 for mechanism in "kqueue" "epoll" "devpoll" "poll" "select" ; do # order is important
14446 eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14447 if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14448 optimal_iopoll_mechanism="$mechanism"
14449 break
14450 fi
14451 done
14452 if test "$desired_iopoll_mechanism" = "none" ; then
14453 if test "$optimal_iopoll_mechanism" = "none" ; then
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14455 $as_echo "none" >&6; }
14456 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14457 else
14458 selected_iopoll_mechanism=$optimal_iopoll_mechanism
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14460 $as_echo "$selected_iopoll_mechanism" >&6; }
14461 fi
14462 else
14463 eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14464 if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14465 selected_iopoll_mechanism=$desired_iopoll_mechanism
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14467 $as_echo "$selected_iopoll_mechanism" >&6; }
14468 else
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14470 $as_echo "none" >&6; }
14471 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14472 fi
14473 fi
14474 eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14475
14476 cat >>confdefs.h <<_ACEOF
14477 #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14478 _ACEOF
14479
14480
14481
14482 # Check whether --enable-halfops was given.
14483 if test "${enable_halfops+set}" = set; then :
14484 enableval=$enable_halfops; halfops="$enableval"
14485 else
14486 halfops="no"
14487 fi
14488
14489 if test "$halfops" = "yes" ; then
14490
14491 $as_echo "#define HALFOPS 1" >>confdefs.h
14492
14493 fi
14494
14495
14496 # Check whether --enable-debugging was given.
14497 if test "${enable_debugging+set}" = set; then :
14498 enableval=$enable_debugging; debugging="$enableval"
14499 else
14500 debugging="no"
14501 fi
14502
14503 if test "$debugging" = "yes" ; then
14504 CFLAGS="-Wall -g -O0"
14505 fi
14506
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts " >&5
14508 $as_echo_n "checking whether C compiler accepts ... " >&6; }
14509 if ${ax_cv_check_cflags__+:} false; then :
14510 $as_echo_n "(cached) " >&6
14511 else
14512
14513 ax_check_save_flags=$CFLAGS
14514 CFLAGS="$CFLAGS "
14515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517
14518 int
14519 main ()
14520 {
14521
14522 ;
14523 return 0;
14524 }
14525 _ACEOF
14526 if ac_fn_c_try_compile "$LINENO"; then :
14527 ax_cv_check_cflags__=yes
14528 else
14529 ax_cv_check_cflags__=no
14530 fi
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 CFLAGS=$ax_check_save_flags
14533 fi
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cflags__" >&5
14535 $as_echo "$ax_cv_check_cflags__" >&6; }
14536 if test x"$ax_cv_check_cflags__" = xyes; then :
14537 :
14538 else
14539 :
14540 fi
14541
14542 if ${CFLAGS+:} false; then :
14543 case " $CFLAGS " in
14544 *" "*)
14545 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains "; } >&5
14546 (: CFLAGS already contains ) 2>&5
14547 ac_status=$?
14548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14549 test $ac_status = 0; }
14550 ;;
14551 *)
14552 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \""; } >&5
14553 (: CFLAGS="$CFLAGS ") 2>&5
14554 ac_status=$?
14555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14556 test $ac_status = 0; }
14557 CFLAGS="$CFLAGS "
14558 ;;
14559 esac
14560 else
14561 CFLAGS=""
14562 fi
14563
14564
14565 # Check whether --enable-warnings was given.
14566 if test "${enable_warnings+set}" = set; then :
14567 enableval=$enable_warnings; warnings="$enableval"
14568 else
14569 warnings="no"
14570 fi
14571
14572 if test "$warnings" = "yes" ; then
14573
14574
14575 for flag in -Wall; do
14576 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14578 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14579 if eval \${$as_CACHEVAR+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582
14583 ax_check_save_flags=$CFLAGS
14584 CFLAGS="$CFLAGS $flag"
14585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h. */
14587
14588 int
14589 main ()
14590 {
14591
14592 ;
14593 return 0;
14594 }
14595 _ACEOF
14596 if ac_fn_c_try_compile "$LINENO"; then :
14597 eval "$as_CACHEVAR=yes"
14598 else
14599 eval "$as_CACHEVAR=no"
14600 fi
14601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14602 CFLAGS=$ax_check_save_flags
14603 fi
14604 eval ac_res=\$$as_CACHEVAR
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14606 $as_echo "$ac_res" >&6; }
14607 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14608 if ${CFLAGS+:} false; then :
14609 case " $CFLAGS " in
14610 *" $flag "*)
14611 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14612 (: CFLAGS already contains $flag) 2>&5
14613 ac_status=$?
14614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14615 test $ac_status = 0; }
14616 ;;
14617 *)
14618 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14619 (: CFLAGS="$CFLAGS $flag") 2>&5
14620 ac_status=$?
14621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14622 test $ac_status = 0; }
14623 CFLAGS="$CFLAGS $flag"
14624 ;;
14625 esac
14626 else
14627 CFLAGS="$flag"
14628 fi
14629
14630 else
14631 :
14632 fi
14633
14634 done
14635
14636
14637
14638 for flag in -Wextra; do
14639 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14641 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14642 if eval \${$as_CACHEVAR+:} false; then :
14643 $as_echo_n "(cached) " >&6
14644 else
14645
14646 ax_check_save_flags=$CFLAGS
14647 CFLAGS="$CFLAGS $flag"
14648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14649 /* end confdefs.h. */
14650
14651 int
14652 main ()
14653 {
14654
14655 ;
14656 return 0;
14657 }
14658 _ACEOF
14659 if ac_fn_c_try_compile "$LINENO"; then :
14660 eval "$as_CACHEVAR=yes"
14661 else
14662 eval "$as_CACHEVAR=no"
14663 fi
14664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665 CFLAGS=$ax_check_save_flags
14666 fi
14667 eval ac_res=\$$as_CACHEVAR
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14669 $as_echo "$ac_res" >&6; }
14670 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14671 if ${CFLAGS+:} false; then :
14672 case " $CFLAGS " in
14673 *" $flag "*)
14674 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14675 (: CFLAGS already contains $flag) 2>&5
14676 ac_status=$?
14677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14678 test $ac_status = 0; }
14679 ;;
14680 *)
14681 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14682 (: CFLAGS="$CFLAGS $flag") 2>&5
14683 ac_status=$?
14684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14685 test $ac_status = 0; }
14686 CFLAGS="$CFLAGS $flag"
14687 ;;
14688 esac
14689 else
14690 CFLAGS="$flag"
14691 fi
14692
14693 else
14694 :
14695 fi
14696
14697 done
14698
14699
14700
14701 for flag in -Wno-unused; do
14702 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14704 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14705 if eval \${$as_CACHEVAR+:} false; then :
14706 $as_echo_n "(cached) " >&6
14707 else
14708
14709 ax_check_save_flags=$CFLAGS
14710 CFLAGS="$CFLAGS $flag"
14711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14712 /* end confdefs.h. */
14713
14714 int
14715 main ()
14716 {
14717
14718 ;
14719 return 0;
14720 }
14721 _ACEOF
14722 if ac_fn_c_try_compile "$LINENO"; then :
14723 eval "$as_CACHEVAR=yes"
14724 else
14725 eval "$as_CACHEVAR=no"
14726 fi
14727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14728 CFLAGS=$ax_check_save_flags
14729 fi
14730 eval ac_res=\$$as_CACHEVAR
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14732 $as_echo "$ac_res" >&6; }
14733 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14734 if ${CFLAGS+:} false; then :
14735 case " $CFLAGS " in
14736 *" $flag "*)
14737 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14738 (: CFLAGS already contains $flag) 2>&5
14739 ac_status=$?
14740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14741 test $ac_status = 0; }
14742 ;;
14743 *)
14744 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14745 (: CFLAGS="$CFLAGS $flag") 2>&5
14746 ac_status=$?
14747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14748 test $ac_status = 0; }
14749 CFLAGS="$CFLAGS $flag"
14750 ;;
14751 esac
14752 else
14753 CFLAGS="$flag"
14754 fi
14755
14756 else
14757 :
14758 fi
14759
14760 done
14761
14762
14763
14764 for flag in -Wcast-qual; do
14765 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14767 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14768 if eval \${$as_CACHEVAR+:} false; then :
14769 $as_echo_n "(cached) " >&6
14770 else
14771
14772 ax_check_save_flags=$CFLAGS
14773 CFLAGS="$CFLAGS $flag"
14774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h. */
14776
14777 int
14778 main ()
14779 {
14780
14781 ;
14782 return 0;
14783 }
14784 _ACEOF
14785 if ac_fn_c_try_compile "$LINENO"; then :
14786 eval "$as_CACHEVAR=yes"
14787 else
14788 eval "$as_CACHEVAR=no"
14789 fi
14790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14791 CFLAGS=$ax_check_save_flags
14792 fi
14793 eval ac_res=\$$as_CACHEVAR
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14795 $as_echo "$ac_res" >&6; }
14796 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14797 if ${CFLAGS+:} false; then :
14798 case " $CFLAGS " in
14799 *" $flag "*)
14800 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14801 (: CFLAGS already contains $flag) 2>&5
14802 ac_status=$?
14803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14804 test $ac_status = 0; }
14805 ;;
14806 *)
14807 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14808 (: CFLAGS="$CFLAGS $flag") 2>&5
14809 ac_status=$?
14810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14811 test $ac_status = 0; }
14812 CFLAGS="$CFLAGS $flag"
14813 ;;
14814 esac
14815 else
14816 CFLAGS="$flag"
14817 fi
14818
14819 else
14820 :
14821 fi
14822
14823 done
14824
14825
14826
14827 for flag in -Wcast-align; do
14828 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14830 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14831 if eval \${$as_CACHEVAR+:} false; then :
14832 $as_echo_n "(cached) " >&6
14833 else
14834
14835 ax_check_save_flags=$CFLAGS
14836 CFLAGS="$CFLAGS $flag"
14837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14838 /* end confdefs.h. */
14839
14840 int
14841 main ()
14842 {
14843
14844 ;
14845 return 0;
14846 }
14847 _ACEOF
14848 if ac_fn_c_try_compile "$LINENO"; then :
14849 eval "$as_CACHEVAR=yes"
14850 else
14851 eval "$as_CACHEVAR=no"
14852 fi
14853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14854 CFLAGS=$ax_check_save_flags
14855 fi
14856 eval ac_res=\$$as_CACHEVAR
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14858 $as_echo "$ac_res" >&6; }
14859 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14860 if ${CFLAGS+:} false; then :
14861 case " $CFLAGS " in
14862 *" $flag "*)
14863 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14864 (: CFLAGS already contains $flag) 2>&5
14865 ac_status=$?
14866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14867 test $ac_status = 0; }
14868 ;;
14869 *)
14870 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14871 (: CFLAGS="$CFLAGS $flag") 2>&5
14872 ac_status=$?
14873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14874 test $ac_status = 0; }
14875 CFLAGS="$CFLAGS $flag"
14876 ;;
14877 esac
14878 else
14879 CFLAGS="$flag"
14880 fi
14881
14882 else
14883 :
14884 fi
14885
14886 done
14887
14888
14889
14890 for flag in -Wbad-function-cast; do
14891 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14893 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14894 if eval \${$as_CACHEVAR+:} false; then :
14895 $as_echo_n "(cached) " >&6
14896 else
14897
14898 ax_check_save_flags=$CFLAGS
14899 CFLAGS="$CFLAGS $flag"
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902
14903 int
14904 main ()
14905 {
14906
14907 ;
14908 return 0;
14909 }
14910 _ACEOF
14911 if ac_fn_c_try_compile "$LINENO"; then :
14912 eval "$as_CACHEVAR=yes"
14913 else
14914 eval "$as_CACHEVAR=no"
14915 fi
14916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14917 CFLAGS=$ax_check_save_flags
14918 fi
14919 eval ac_res=\$$as_CACHEVAR
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14921 $as_echo "$ac_res" >&6; }
14922 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14923 if ${CFLAGS+:} false; then :
14924 case " $CFLAGS " in
14925 *" $flag "*)
14926 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14927 (: CFLAGS already contains $flag) 2>&5
14928 ac_status=$?
14929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14930 test $ac_status = 0; }
14931 ;;
14932 *)
14933 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14934 (: CFLAGS="$CFLAGS $flag") 2>&5
14935 ac_status=$?
14936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14937 test $ac_status = 0; }
14938 CFLAGS="$CFLAGS $flag"
14939 ;;
14940 esac
14941 else
14942 CFLAGS="$flag"
14943 fi
14944
14945 else
14946 :
14947 fi
14948
14949 done
14950
14951
14952
14953 for flag in -Wmissing-declarations; do
14954 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
14956 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
14957 if eval \${$as_CACHEVAR+:} false; then :
14958 $as_echo_n "(cached) " >&6
14959 else
14960
14961 ax_check_save_flags=$CFLAGS
14962 CFLAGS="$CFLAGS $flag"
14963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14964 /* end confdefs.h. */
14965
14966 int
14967 main ()
14968 {
14969
14970 ;
14971 return 0;
14972 }
14973 _ACEOF
14974 if ac_fn_c_try_compile "$LINENO"; then :
14975 eval "$as_CACHEVAR=yes"
14976 else
14977 eval "$as_CACHEVAR=no"
14978 fi
14979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14980 CFLAGS=$ax_check_save_flags
14981 fi
14982 eval ac_res=\$$as_CACHEVAR
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
14984 $as_echo "$ac_res" >&6; }
14985 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
14986 if ${CFLAGS+:} false; then :
14987 case " $CFLAGS " in
14988 *" $flag "*)
14989 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
14990 (: CFLAGS already contains $flag) 2>&5
14991 ac_status=$?
14992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14993 test $ac_status = 0; }
14994 ;;
14995 *)
14996 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
14997 (: CFLAGS="$CFLAGS $flag") 2>&5
14998 ac_status=$?
14999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15000 test $ac_status = 0; }
15001 CFLAGS="$CFLAGS $flag"
15002 ;;
15003 esac
15004 else
15005 CFLAGS="$flag"
15006 fi
15007
15008 else
15009 :
15010 fi
15011
15012 done
15013
15014
15015
15016 for flag in -Wmissing-prototypes; do
15017 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15019 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15020 if eval \${$as_CACHEVAR+:} false; then :
15021 $as_echo_n "(cached) " >&6
15022 else
15023
15024 ax_check_save_flags=$CFLAGS
15025 CFLAGS="$CFLAGS $flag"
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15028
15029 int
15030 main ()
15031 {
15032
15033 ;
15034 return 0;
15035 }
15036 _ACEOF
15037 if ac_fn_c_try_compile "$LINENO"; then :
15038 eval "$as_CACHEVAR=yes"
15039 else
15040 eval "$as_CACHEVAR=no"
15041 fi
15042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15043 CFLAGS=$ax_check_save_flags
15044 fi
15045 eval ac_res=\$$as_CACHEVAR
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15047 $as_echo "$ac_res" >&6; }
15048 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15049 if ${CFLAGS+:} false; then :
15050 case " $CFLAGS " in
15051 *" $flag "*)
15052 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15053 (: CFLAGS already contains $flag) 2>&5
15054 ac_status=$?
15055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15056 test $ac_status = 0; }
15057 ;;
15058 *)
15059 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15060 (: CFLAGS="$CFLAGS $flag") 2>&5
15061 ac_status=$?
15062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15063 test $ac_status = 0; }
15064 CFLAGS="$CFLAGS $flag"
15065 ;;
15066 esac
15067 else
15068 CFLAGS="$flag"
15069 fi
15070
15071 else
15072 :
15073 fi
15074
15075 done
15076
15077
15078
15079 for flag in -Wnested-externs; do
15080 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15082 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15083 if eval \${$as_CACHEVAR+:} false; then :
15084 $as_echo_n "(cached) " >&6
15085 else
15086
15087 ax_check_save_flags=$CFLAGS
15088 CFLAGS="$CFLAGS $flag"
15089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15090 /* end confdefs.h. */
15091
15092 int
15093 main ()
15094 {
15095
15096 ;
15097 return 0;
15098 }
15099 _ACEOF
15100 if ac_fn_c_try_compile "$LINENO"; then :
15101 eval "$as_CACHEVAR=yes"
15102 else
15103 eval "$as_CACHEVAR=no"
15104 fi
15105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15106 CFLAGS=$ax_check_save_flags
15107 fi
15108 eval ac_res=\$$as_CACHEVAR
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15110 $as_echo "$ac_res" >&6; }
15111 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15112 if ${CFLAGS+:} false; then :
15113 case " $CFLAGS " in
15114 *" $flag "*)
15115 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15116 (: CFLAGS already contains $flag) 2>&5
15117 ac_status=$?
15118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15119 test $ac_status = 0; }
15120 ;;
15121 *)
15122 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15123 (: CFLAGS="$CFLAGS $flag") 2>&5
15124 ac_status=$?
15125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15126 test $ac_status = 0; }
15127 CFLAGS="$CFLAGS $flag"
15128 ;;
15129 esac
15130 else
15131 CFLAGS="$flag"
15132 fi
15133
15134 else
15135 :
15136 fi
15137
15138 done
15139
15140
15141
15142 for flag in -Wredundant-decls; do
15143 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15145 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15146 if eval \${$as_CACHEVAR+:} false; then :
15147 $as_echo_n "(cached) " >&6
15148 else
15149
15150 ax_check_save_flags=$CFLAGS
15151 CFLAGS="$CFLAGS $flag"
15152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15153 /* end confdefs.h. */
15154
15155 int
15156 main ()
15157 {
15158
15159 ;
15160 return 0;
15161 }
15162 _ACEOF
15163 if ac_fn_c_try_compile "$LINENO"; then :
15164 eval "$as_CACHEVAR=yes"
15165 else
15166 eval "$as_CACHEVAR=no"
15167 fi
15168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15169 CFLAGS=$ax_check_save_flags
15170 fi
15171 eval ac_res=\$$as_CACHEVAR
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15173 $as_echo "$ac_res" >&6; }
15174 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15175 if ${CFLAGS+:} false; then :
15176 case " $CFLAGS " in
15177 *" $flag "*)
15178 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15179 (: CFLAGS already contains $flag) 2>&5
15180 ac_status=$?
15181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15182 test $ac_status = 0; }
15183 ;;
15184 *)
15185 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15186 (: CFLAGS="$CFLAGS $flag") 2>&5
15187 ac_status=$?
15188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15189 test $ac_status = 0; }
15190 CFLAGS="$CFLAGS $flag"
15191 ;;
15192 esac
15193 else
15194 CFLAGS="$flag"
15195 fi
15196
15197 else
15198 :
15199 fi
15200
15201 done
15202
15203
15204
15205 for flag in -Wshadow; do
15206 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15208 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15209 if eval \${$as_CACHEVAR+:} false; then :
15210 $as_echo_n "(cached) " >&6
15211 else
15212
15213 ax_check_save_flags=$CFLAGS
15214 CFLAGS="$CFLAGS $flag"
15215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15216 /* end confdefs.h. */
15217
15218 int
15219 main ()
15220 {
15221
15222 ;
15223 return 0;
15224 }
15225 _ACEOF
15226 if ac_fn_c_try_compile "$LINENO"; then :
15227 eval "$as_CACHEVAR=yes"
15228 else
15229 eval "$as_CACHEVAR=no"
15230 fi
15231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15232 CFLAGS=$ax_check_save_flags
15233 fi
15234 eval ac_res=\$$as_CACHEVAR
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15236 $as_echo "$ac_res" >&6; }
15237 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15238 if ${CFLAGS+:} false; then :
15239 case " $CFLAGS " in
15240 *" $flag "*)
15241 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15242 (: CFLAGS already contains $flag) 2>&5
15243 ac_status=$?
15244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15245 test $ac_status = 0; }
15246 ;;
15247 *)
15248 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15249 (: CFLAGS="$CFLAGS $flag") 2>&5
15250 ac_status=$?
15251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15252 test $ac_status = 0; }
15253 CFLAGS="$CFLAGS $flag"
15254 ;;
15255 esac
15256 else
15257 CFLAGS="$flag"
15258 fi
15259
15260 else
15261 :
15262 fi
15263
15264 done
15265
15266
15267
15268 for flag in -Wwrite-strings; do
15269 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15271 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15272 if eval \${$as_CACHEVAR+:} false; then :
15273 $as_echo_n "(cached) " >&6
15274 else
15275
15276 ax_check_save_flags=$CFLAGS
15277 CFLAGS="$CFLAGS $flag"
15278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15279 /* end confdefs.h. */
15280
15281 int
15282 main ()
15283 {
15284
15285 ;
15286 return 0;
15287 }
15288 _ACEOF
15289 if ac_fn_c_try_compile "$LINENO"; then :
15290 eval "$as_CACHEVAR=yes"
15291 else
15292 eval "$as_CACHEVAR=no"
15293 fi
15294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15295 CFLAGS=$ax_check_save_flags
15296 fi
15297 eval ac_res=\$$as_CACHEVAR
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15299 $as_echo "$ac_res" >&6; }
15300 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15301 if ${CFLAGS+:} false; then :
15302 case " $CFLAGS " in
15303 *" $flag "*)
15304 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15305 (: CFLAGS already contains $flag) 2>&5
15306 ac_status=$?
15307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15308 test $ac_status = 0; }
15309 ;;
15310 *)
15311 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15312 (: CFLAGS="$CFLAGS $flag") 2>&5
15313 ac_status=$?
15314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15315 test $ac_status = 0; }
15316 CFLAGS="$CFLAGS $flag"
15317 ;;
15318 esac
15319 else
15320 CFLAGS="$flag"
15321 fi
15322
15323 else
15324 :
15325 fi
15326
15327 done
15328
15329
15330
15331 for flag in -Wundef; do
15332 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
15334 $as_echo_n "checking whether C compiler accepts $flag... " >&6; }
15335 if eval \${$as_CACHEVAR+:} false; then :
15336 $as_echo_n "(cached) " >&6
15337 else
15338
15339 ax_check_save_flags=$CFLAGS
15340 CFLAGS="$CFLAGS $flag"
15341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15342 /* end confdefs.h. */
15343
15344 int
15345 main ()
15346 {
15347
15348 ;
15349 return 0;
15350 }
15351 _ACEOF
15352 if ac_fn_c_try_compile "$LINENO"; then :
15353 eval "$as_CACHEVAR=yes"
15354 else
15355 eval "$as_CACHEVAR=no"
15356 fi
15357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358 CFLAGS=$ax_check_save_flags
15359 fi
15360 eval ac_res=\$$as_CACHEVAR
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15362 $as_echo "$ac_res" >&6; }
15363 if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
15364 if ${CFLAGS+:} false; then :
15365 case " $CFLAGS " in
15366 *" $flag "*)
15367 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS already contains \$flag"; } >&5
15368 (: CFLAGS already contains $flag) 2>&5
15369 ac_status=$?
15370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15371 test $ac_status = 0; }
15372 ;;
15373 *)
15374 { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$flag\""; } >&5
15375 (: CFLAGS="$CFLAGS $flag") 2>&5
15376 ac_status=$?
15377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15378 test $ac_status = 0; }
15379 CFLAGS="$CFLAGS $flag"
15380 ;;
15381 esac
15382 else
15383 CFLAGS="$flag"
15384 fi
15385
15386 else
15387 :
15388 fi
15389
15390 done
15391
15392 fi
15393
15394
15395
15396 prefix_NONE=
15397 exec_prefix_NONE=
15398 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15399 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15400 eval ac_define_dir="\"$prefix\""
15401 eval ac_define_dir="\"$ac_define_dir\""
15402 PREFIX="$ac_define_dir"
15403
15404
15405 cat >>confdefs.h <<_ACEOF
15406 #define PREFIX "$ac_define_dir"
15407 _ACEOF
15408
15409 test "$prefix_NONE" && prefix=NONE
15410 test "$exec_prefix_NONE" && exec_prefix=NONE
15411
15412
15413 prefix_NONE=
15414 exec_prefix_NONE=
15415 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15416 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15417 eval ac_define_dir="\"$sysconfdir\""
15418 eval ac_define_dir="\"$ac_define_dir\""
15419 SYSCONFDIR="$ac_define_dir"
15420
15421
15422 cat >>confdefs.h <<_ACEOF
15423 #define SYSCONFDIR "$ac_define_dir"
15424 _ACEOF
15425
15426 test "$prefix_NONE" && prefix=NONE
15427 test "$exec_prefix_NONE" && exec_prefix=NONE
15428
15429
15430 prefix_NONE=
15431 exec_prefix_NONE=
15432 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15433 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15434 eval ac_define_dir="\"$libdir\""
15435 eval ac_define_dir="\"$ac_define_dir\""
15436 LIBDIR="$ac_define_dir"
15437
15438
15439 cat >>confdefs.h <<_ACEOF
15440 #define LIBDIR "$ac_define_dir"
15441 _ACEOF
15442
15443 test "$prefix_NONE" && prefix=NONE
15444 test "$exec_prefix_NONE" && exec_prefix=NONE
15445
15446
15447 prefix_NONE=
15448 exec_prefix_NONE=
15449 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15450 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15451 eval ac_define_dir="\"$datadir\""
15452 eval ac_define_dir="\"$ac_define_dir\""
15453 DATADIR="$ac_define_dir"
15454
15455
15456 cat >>confdefs.h <<_ACEOF
15457 #define DATADIR "$ac_define_dir"
15458 _ACEOF
15459
15460 test "$prefix_NONE" && prefix=NONE
15461 test "$exec_prefix_NONE" && exec_prefix=NONE
15462
15463
15464 prefix_NONE=
15465 exec_prefix_NONE=
15466 test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
15467 test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
15468 eval ac_define_dir="\"$localstatedir\""
15469 eval ac_define_dir="\"$ac_define_dir\""
15470 LOCALSTATEDIR="$ac_define_dir"
15471
15472
15473 cat >>confdefs.h <<_ACEOF
15474 #define LOCALSTATEDIR "$ac_define_dir"
15475 _ACEOF
15476
15477 test "$prefix_NONE" && prefix=NONE
15478 test "$exec_prefix_NONE" && exec_prefix=NONE
15479
15480
15481 ac_config_files="$ac_config_files Makefile src/Makefile libltdl/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile tools/Makefile"
15482
15483
15484 cat >confcache <<\_ACEOF
15485 # This file is a shell script that caches the results of configure
15486 # tests run on this system so they can be shared between configure
15487 # scripts and configure runs, see configure's option --config-cache.
15488 # It is not useful on other systems. If it contains results you don't
15489 # want to keep, you may remove or edit it.
15490 #
15491 # config.status only pays attention to the cache file if you give it
15492 # the --recheck option to rerun configure.
15493 #
15494 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15495 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15496 # following values.
15497
15498 _ACEOF
15499
15500 # The following way of writing the cache mishandles newlines in values,
15501 # but we know of no workaround that is simple, portable, and efficient.
15502 # So, we kill variables containing newlines.
15503 # Ultrix sh set writes to stderr and can't be redirected directly,
15504 # and sets the high bit in the cache file unless we assign to the vars.
15505 (
15506 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15507 eval ac_val=\$$ac_var
15508 case $ac_val in #(
15509 *${as_nl}*)
15510 case $ac_var in #(
15511 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15512 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15513 esac
15514 case $ac_var in #(
15515 _ | IFS | as_nl) ;; #(
15516 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15517 *) { eval $ac_var=; unset $ac_var;} ;;
15518 esac ;;
15519 esac
15520 done
15521
15522 (set) 2>&1 |
15523 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15524 *${as_nl}ac_space=\ *)
15525 # `set' does not quote correctly, so add quotes: double-quote
15526 # substitution turns \\\\ into \\, and sed turns \\ into \.
15527 sed -n \
15528 "s/'/'\\\\''/g;
15529 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15530 ;; #(
15531 *)
15532 # `set' quotes correctly as required by POSIX, so do not add quotes.
15533 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15534 ;;
15535 esac |
15536 sort
15537 ) |
15538 sed '
15539 /^ac_cv_env_/b end
15540 t clear
15541 :clear
15542 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15543 t end
15544 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15545 :end' >>confcache
15546 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15547 if test -w "$cache_file"; then
15548 if test "x$cache_file" != "x/dev/null"; then
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15550 $as_echo "$as_me: updating cache $cache_file" >&6;}
15551 if test ! -f "$cache_file" || test -h "$cache_file"; then
15552 cat confcache >"$cache_file"
15553 else
15554 case $cache_file in #(
15555 */* | ?:*)
15556 mv -f confcache "$cache_file"$$ &&
15557 mv -f "$cache_file"$$ "$cache_file" ;; #(
15558 *)
15559 mv -f confcache "$cache_file" ;;
15560 esac
15561 fi
15562 fi
15563 else
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15565 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15566 fi
15567 fi
15568 rm -f confcache
15569
15570 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15571 # Let make expand exec_prefix.
15572 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15573
15574 DEFS=-DHAVE_CONFIG_H
15575
15576 ac_libobjs=
15577 ac_ltlibobjs=
15578 U=
15579 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15580 # 1. Remove the extension, and $U if already installed.
15581 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15582 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15583 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15584 # will be set to the directory where LIBOBJS objects are built.
15585 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15586 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15587 done
15588 LIBOBJS=$ac_libobjs
15589
15590 LTLIBOBJS=$ac_ltlibobjs
15591
15592
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15594 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15595 if test -n "$am_sleep_pid"; then
15596 # Hide warnings about reused PIDs.
15597 wait $am_sleep_pid 2>/dev/null
15598 fi
15599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15600 $as_echo "done" >&6; }
15601 if test -n "$EXEEXT"; then
15602 am__EXEEXT_TRUE=
15603 am__EXEEXT_FALSE='#'
15604 else
15605 am__EXEEXT_TRUE='#'
15606 am__EXEEXT_FALSE=
15607 fi
15608
15609 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15610 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
15611 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15612 fi
15613 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15614 as_fn_error $? "conditional \"AMDEP\" was never defined.
15615 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15616 fi
15617 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15618 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15620 fi
15621 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
15622 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
15623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15624 fi
15625 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
15626 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
15627 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15628 fi
15629 LT_CONFIG_H=config.h
15630
15631 _ltdl_libobjs=
15632 _ltdl_ltlibobjs=
15633 if test -n "$_LT_LIBOBJS"; then
15634 # Remove the extension.
15635 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
15636 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
15637 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
15638 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
15639 done
15640 fi
15641 ltdl_LIBOBJS=$_ltdl_libobjs
15642
15643 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
15644
15645
15646
15647 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
15648 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
15649 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15650 fi
15651
15652 : "${CONFIG_STATUS=./config.status}"
15653 ac_write_fail=0
15654 ac_clean_files_save=$ac_clean_files
15655 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15657 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15658 as_write_fail=0
15659 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15660 #! $SHELL
15661 # Generated by $as_me.
15662 # Run this file to recreate the current configuration.
15663 # Compiler output produced by configure, useful for debugging
15664 # configure, is in config.log if it exists.
15665
15666 debug=false
15667 ac_cs_recheck=false
15668 ac_cs_silent=false
15669
15670 SHELL=\${CONFIG_SHELL-$SHELL}
15671 export SHELL
15672 _ASEOF
15673 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15674 ## -------------------- ##
15675 ## M4sh Initialization. ##
15676 ## -------------------- ##
15677
15678 # Be more Bourne compatible
15679 DUALCASE=1; export DUALCASE # for MKS sh
15680 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15681 emulate sh
15682 NULLCMD=:
15683 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15684 # is contrary to our usage. Disable this feature.
15685 alias -g '${1+"$@"}'='"$@"'
15686 setopt NO_GLOB_SUBST
15687 else
15688 case `(set -o) 2>/dev/null` in #(
15689 *posix*) :
15690 set -o posix ;; #(
15691 *) :
15692 ;;
15693 esac
15694 fi
15695
15696
15697 as_nl='
15698 '
15699 export as_nl
15700 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15701 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15702 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15703 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15704 # Prefer a ksh shell builtin over an external printf program on Solaris,
15705 # but without wasting forks for bash or zsh.
15706 if test -z "$BASH_VERSION$ZSH_VERSION" \
15707 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15708 as_echo='print -r --'
15709 as_echo_n='print -rn --'
15710 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15711 as_echo='printf %s\n'
15712 as_echo_n='printf %s'
15713 else
15714 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15715 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15716 as_echo_n='/usr/ucb/echo -n'
15717 else
15718 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15719 as_echo_n_body='eval
15720 arg=$1;
15721 case $arg in #(
15722 *"$as_nl"*)
15723 expr "X$arg" : "X\\(.*\\)$as_nl";
15724 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15725 esac;
15726 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15727 '
15728 export as_echo_n_body
15729 as_echo_n='sh -c $as_echo_n_body as_echo'
15730 fi
15731 export as_echo_body
15732 as_echo='sh -c $as_echo_body as_echo'
15733 fi
15734
15735 # The user is always right.
15736 if test "${PATH_SEPARATOR+set}" != set; then
15737 PATH_SEPARATOR=:
15738 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15739 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15740 PATH_SEPARATOR=';'
15741 }
15742 fi
15743
15744
15745 # IFS
15746 # We need space, tab and new line, in precisely that order. Quoting is
15747 # there to prevent editors from complaining about space-tab.
15748 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15749 # splitting by setting IFS to empty value.)
15750 IFS=" "" $as_nl"
15751
15752 # Find who we are. Look in the path if we contain no directory separator.
15753 as_myself=
15754 case $0 in #((
15755 *[\\/]* ) as_myself=$0 ;;
15756 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15757 for as_dir in $PATH
15758 do
15759 IFS=$as_save_IFS
15760 test -z "$as_dir" && as_dir=.
15761 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15762 done
15763 IFS=$as_save_IFS
15764
15765 ;;
15766 esac
15767 # We did not find ourselves, most probably we were run as `sh COMMAND'
15768 # in which case we are not to be found in the path.
15769 if test "x$as_myself" = x; then
15770 as_myself=$0
15771 fi
15772 if test ! -f "$as_myself"; then
15773 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15774 exit 1
15775 fi
15776
15777 # Unset variables that we do not need and which cause bugs (e.g. in
15778 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15779 # suppresses any "Segmentation fault" message there. '((' could
15780 # trigger a bug in pdksh 5.2.14.
15781 for as_var in BASH_ENV ENV MAIL MAILPATH
15782 do eval test x\${$as_var+set} = xset \
15783 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15784 done
15785 PS1='$ '
15786 PS2='> '
15787 PS4='+ '
15788
15789 # NLS nuisances.
15790 LC_ALL=C
15791 export LC_ALL
15792 LANGUAGE=C
15793 export LANGUAGE
15794
15795 # CDPATH.
15796 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15797
15798
15799 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15800 # ----------------------------------------
15801 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15802 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15803 # script with STATUS, using 1 if that was 0.
15804 as_fn_error ()
15805 {
15806 as_status=$1; test $as_status -eq 0 && as_status=1
15807 if test "$4"; then
15808 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15809 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15810 fi
15811 $as_echo "$as_me: error: $2" >&2
15812 as_fn_exit $as_status
15813 } # as_fn_error
15814
15815
15816 # as_fn_set_status STATUS
15817 # -----------------------
15818 # Set $? to STATUS, without forking.
15819 as_fn_set_status ()
15820 {
15821 return $1
15822 } # as_fn_set_status
15823
15824 # as_fn_exit STATUS
15825 # -----------------
15826 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15827 as_fn_exit ()
15828 {
15829 set +e
15830 as_fn_set_status $1
15831 exit $1
15832 } # as_fn_exit
15833
15834 # as_fn_unset VAR
15835 # ---------------
15836 # Portably unset VAR.
15837 as_fn_unset ()
15838 {
15839 { eval $1=; unset $1;}
15840 }
15841 as_unset=as_fn_unset
15842 # as_fn_append VAR VALUE
15843 # ----------------------
15844 # Append the text in VALUE to the end of the definition contained in VAR. Take
15845 # advantage of any shell optimizations that allow amortized linear growth over
15846 # repeated appends, instead of the typical quadratic growth present in naive
15847 # implementations.
15848 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15849 eval 'as_fn_append ()
15850 {
15851 eval $1+=\$2
15852 }'
15853 else
15854 as_fn_append ()
15855 {
15856 eval $1=\$$1\$2
15857 }
15858 fi # as_fn_append
15859
15860 # as_fn_arith ARG...
15861 # ------------------
15862 # Perform arithmetic evaluation on the ARGs, and store the result in the
15863 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15864 # must be portable across $(()) and expr.
15865 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15866 eval 'as_fn_arith ()
15867 {
15868 as_val=$(( $* ))
15869 }'
15870 else
15871 as_fn_arith ()
15872 {
15873 as_val=`expr "$@" || test $? -eq 1`
15874 }
15875 fi # as_fn_arith
15876
15877
15878 if expr a : '\(a\)' >/dev/null 2>&1 &&
15879 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15880 as_expr=expr
15881 else
15882 as_expr=false
15883 fi
15884
15885 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15886 as_basename=basename
15887 else
15888 as_basename=false
15889 fi
15890
15891 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15892 as_dirname=dirname
15893 else
15894 as_dirname=false
15895 fi
15896
15897 as_me=`$as_basename -- "$0" ||
15898 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15899 X"$0" : 'X\(//\)$' \| \
15900 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15901 $as_echo X/"$0" |
15902 sed '/^.*\/\([^/][^/]*\)\/*$/{
15903 s//\1/
15904 q
15905 }
15906 /^X\/\(\/\/\)$/{
15907 s//\1/
15908 q
15909 }
15910 /^X\/\(\/\).*/{
15911 s//\1/
15912 q
15913 }
15914 s/.*/./; q'`
15915
15916 # Avoid depending upon Character Ranges.
15917 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15918 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15919 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15920 as_cr_digits='0123456789'
15921 as_cr_alnum=$as_cr_Letters$as_cr_digits
15922
15923 ECHO_C= ECHO_N= ECHO_T=
15924 case `echo -n x` in #(((((
15925 -n*)
15926 case `echo 'xy\c'` in
15927 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15928 xy) ECHO_C='\c';;
15929 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15930 ECHO_T=' ';;
15931 esac;;
15932 *)
15933 ECHO_N='-n';;
15934 esac
15935
15936 rm -f conf$$ conf$$.exe conf$$.file
15937 if test -d conf$$.dir; then
15938 rm -f conf$$.dir/conf$$.file
15939 else
15940 rm -f conf$$.dir
15941 mkdir conf$$.dir 2>/dev/null
15942 fi
15943 if (echo >conf$$.file) 2>/dev/null; then
15944 if ln -s conf$$.file conf$$ 2>/dev/null; then
15945 as_ln_s='ln -s'
15946 # ... but there are two gotchas:
15947 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15948 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15949 # In both cases, we have to default to `cp -pR'.
15950 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15951 as_ln_s='cp -pR'
15952 elif ln conf$$.file conf$$ 2>/dev/null; then
15953 as_ln_s=ln
15954 else
15955 as_ln_s='cp -pR'
15956 fi
15957 else
15958 as_ln_s='cp -pR'
15959 fi
15960 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15961 rmdir conf$$.dir 2>/dev/null
15962
15963
15964 # as_fn_mkdir_p
15965 # -------------
15966 # Create "$as_dir" as a directory, including parents if necessary.
15967 as_fn_mkdir_p ()
15968 {
15969
15970 case $as_dir in #(
15971 -*) as_dir=./$as_dir;;
15972 esac
15973 test -d "$as_dir" || eval $as_mkdir_p || {
15974 as_dirs=
15975 while :; do
15976 case $as_dir in #(
15977 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15978 *) as_qdir=$as_dir;;
15979 esac
15980 as_dirs="'$as_qdir' $as_dirs"
15981 as_dir=`$as_dirname -- "$as_dir" ||
15982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15983 X"$as_dir" : 'X\(//\)[^/]' \| \
15984 X"$as_dir" : 'X\(//\)$' \| \
15985 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15986 $as_echo X"$as_dir" |
15987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15988 s//\1/
15989 q
15990 }
15991 /^X\(\/\/\)[^/].*/{
15992 s//\1/
15993 q
15994 }
15995 /^X\(\/\/\)$/{
15996 s//\1/
15997 q
15998 }
15999 /^X\(\/\).*/{
16000 s//\1/
16001 q
16002 }
16003 s/.*/./; q'`
16004 test -d "$as_dir" && break
16005 done
16006 test -z "$as_dirs" || eval "mkdir $as_dirs"
16007 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16008
16009
16010 } # as_fn_mkdir_p
16011 if mkdir -p . 2>/dev/null; then
16012 as_mkdir_p='mkdir -p "$as_dir"'
16013 else
16014 test -d ./-p && rmdir ./-p
16015 as_mkdir_p=false
16016 fi
16017
16018
16019 # as_fn_executable_p FILE
16020 # -----------------------
16021 # Test if FILE is an executable regular file.
16022 as_fn_executable_p ()
16023 {
16024 test -f "$1" && test -x "$1"
16025 } # as_fn_executable_p
16026 as_test_x='test -x'
16027 as_executable_p=as_fn_executable_p
16028
16029 # Sed expression to map a string onto a valid CPP name.
16030 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16031
16032 # Sed expression to map a string onto a valid variable name.
16033 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16034
16035
16036 exec 6>&1
16037 ## ----------------------------------- ##
16038 ## Main body of $CONFIG_STATUS script. ##
16039 ## ----------------------------------- ##
16040 _ASEOF
16041 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16042
16043 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16044 # Save the log message, to keep $0 and so on meaningful, and to
16045 # report actual input values of CONFIG_FILES etc. instead of their
16046 # values after options handling.
16047 ac_log="
16048 This file was extended by ircd-hybrid $as_me TRUNK, which was
16049 generated by GNU Autoconf 2.69. Invocation command line was
16050
16051 CONFIG_FILES = $CONFIG_FILES
16052 CONFIG_HEADERS = $CONFIG_HEADERS
16053 CONFIG_LINKS = $CONFIG_LINKS
16054 CONFIG_COMMANDS = $CONFIG_COMMANDS
16055 $ $0 $@
16056
16057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16058 "
16059
16060 _ACEOF
16061
16062 case $ac_config_files in *"
16063 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16064 esac
16065
16066 case $ac_config_headers in *"
16067 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16068 esac
16069
16070
16071 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16072 # Files that config.status was made for.
16073 config_files="$ac_config_files"
16074 config_headers="$ac_config_headers"
16075 config_commands="$ac_config_commands"
16076
16077 _ACEOF
16078
16079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16080 ac_cs_usage="\
16081 \`$as_me' instantiates files and other configuration actions
16082 from templates according to the current configuration. Unless the files
16083 and actions are specified as TAGs, all are instantiated by default.
16084
16085 Usage: $0 [OPTION]... [TAG]...
16086
16087 -h, --help print this help, then exit
16088 -V, --version print version number and configuration settings, then exit
16089 --config print configuration, then exit
16090 -q, --quiet, --silent
16091 do not print progress messages
16092 -d, --debug don't remove temporary files
16093 --recheck update $as_me by reconfiguring in the same conditions
16094 --file=FILE[:TEMPLATE]
16095 instantiate the configuration file FILE
16096 --header=FILE[:TEMPLATE]
16097 instantiate the configuration header FILE
16098
16099 Configuration files:
16100 $config_files
16101
16102 Configuration headers:
16103 $config_headers
16104
16105 Configuration commands:
16106 $config_commands
16107
16108 Report bugs to <bugs@ircd-hybrid.org>."
16109
16110 _ACEOF
16111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16112 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16113 ac_cs_version="\\
16114 ircd-hybrid config.status TRUNK
16115 configured by $0, generated by GNU Autoconf 2.69,
16116 with options \\"\$ac_cs_config\\"
16117
16118 Copyright (C) 2012 Free Software Foundation, Inc.
16119 This config.status script is free software; the Free Software Foundation
16120 gives unlimited permission to copy, distribute and modify it."
16121
16122 ac_pwd='$ac_pwd'
16123 srcdir='$srcdir'
16124 INSTALL='$INSTALL'
16125 MKDIR_P='$MKDIR_P'
16126 AWK='$AWK'
16127 test -n "\$AWK" || AWK=awk
16128 _ACEOF
16129
16130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16131 # The default lists apply if the user does not specify any file.
16132 ac_need_defaults=:
16133 while test $# != 0
16134 do
16135 case $1 in
16136 --*=?*)
16137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16138 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16139 ac_shift=:
16140 ;;
16141 --*=)
16142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16143 ac_optarg=
16144 ac_shift=:
16145 ;;
16146 *)
16147 ac_option=$1
16148 ac_optarg=$2
16149 ac_shift=shift
16150 ;;
16151 esac
16152
16153 case $ac_option in
16154 # Handling of the options.
16155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16156 ac_cs_recheck=: ;;
16157 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16158 $as_echo "$ac_cs_version"; exit ;;
16159 --config | --confi | --conf | --con | --co | --c )
16160 $as_echo "$ac_cs_config"; exit ;;
16161 --debug | --debu | --deb | --de | --d | -d )
16162 debug=: ;;
16163 --file | --fil | --fi | --f )
16164 $ac_shift
16165 case $ac_optarg in
16166 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16167 '') as_fn_error $? "missing file argument" ;;
16168 esac
16169 as_fn_append CONFIG_FILES " '$ac_optarg'"
16170 ac_need_defaults=false;;
16171 --header | --heade | --head | --hea )
16172 $ac_shift
16173 case $ac_optarg in
16174 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16175 esac
16176 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16177 ac_need_defaults=false;;
16178 --he | --h)
16179 # Conflict between --help and --header
16180 as_fn_error $? "ambiguous option: \`$1'
16181 Try \`$0 --help' for more information.";;
16182 --help | --hel | -h )
16183 $as_echo "$ac_cs_usage"; exit ;;
16184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16186 ac_cs_silent=: ;;
16187
16188 # This is an error.
16189 -*) as_fn_error $? "unrecognized option: \`$1'
16190 Try \`$0 --help' for more information." ;;
16191
16192 *) as_fn_append ac_config_targets " $1"
16193 ac_need_defaults=false ;;
16194
16195 esac
16196 shift
16197 done
16198
16199 ac_configure_extra_args=
16200
16201 if $ac_cs_silent; then
16202 exec 6>/dev/null
16203 ac_configure_extra_args="$ac_configure_extra_args --silent"
16204 fi
16205
16206 _ACEOF
16207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16208 if \$ac_cs_recheck; then
16209 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16210 shift
16211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16212 CONFIG_SHELL='$SHELL'
16213 export CONFIG_SHELL
16214 exec "\$@"
16215 fi
16216
16217 _ACEOF
16218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16219 exec 5>>config.log
16220 {
16221 echo
16222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16223 ## Running $as_me. ##
16224 _ASBOX
16225 $as_echo "$ac_log"
16226 } >&5
16227
16228 _ACEOF
16229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16230 #
16231 # INIT-COMMANDS
16232 #
16233 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16234
16235
16236 # The HP-UX ksh and POSIX shell print the target directory to stdout
16237 # if CDPATH is set.
16238 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16239
16240 sed_quote_subst='$sed_quote_subst'
16241 double_quote_subst='$double_quote_subst'
16242 delay_variable_subst='$delay_variable_subst'
16243 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16244 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16245 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16246 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16247 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16248 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16249 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16250 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16251 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16252 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16253 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16254 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16255 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16256 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16257 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16258 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16259 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16260 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16261 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16262 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16263 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16264 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16265 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16266 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16267 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16268 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16269 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16270 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16271 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16272 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16273 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16274 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16275 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16276 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16277 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16278 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16279 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16280 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16281 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16282 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16283 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16284 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16285 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16286 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16287 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16288 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16289 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16290 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16291 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16292 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16293 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16294 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16295 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16296 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16297 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16298 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16299 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"`'
16300 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16301 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16302 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16303 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16304 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16305 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16306 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16307 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16308 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16309 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16310 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16311 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16312 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16313 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16314 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16315 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16316 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16317 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16318 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16319 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16320 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16321 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16322 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16323 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16324 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16325 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16326 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16327 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16328 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16329 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16330 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16331 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16332 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16333 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16334 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16335 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16336 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16337 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16338 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16339 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16340 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16341 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16342 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16343 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16344 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16345 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16346 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16347 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16348 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16349 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16350 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16351 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16352 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16353 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16354 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16355 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16356 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16357 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16358 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16359 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16360 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16361 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16362 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16363 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16364 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16365 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16366 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16367 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16368 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16369 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16370 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16371 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16372 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16373
16374 LTCC='$LTCC'
16375 LTCFLAGS='$LTCFLAGS'
16376 compiler='$compiler_DEFAULT'
16377
16378 # A function that is used when there is no print builtin or printf.
16379 func_fallback_echo ()
16380 {
16381 eval 'cat <<_LTECHO_EOF
16382 \$1
16383 _LTECHO_EOF'
16384 }
16385
16386 # Quote evaled strings.
16387 for var in SHELL \
16388 ECHO \
16389 PATH_SEPARATOR \
16390 SED \
16391 GREP \
16392 EGREP \
16393 FGREP \
16394 LD \
16395 NM \
16396 LN_S \
16397 lt_SP2NL \
16398 lt_NL2SP \
16399 reload_flag \
16400 OBJDUMP \
16401 deplibs_check_method \
16402 file_magic_cmd \
16403 file_magic_glob \
16404 want_nocaseglob \
16405 DLLTOOL \
16406 sharedlib_from_linklib_cmd \
16407 AR \
16408 AR_FLAGS \
16409 archiver_list_spec \
16410 STRIP \
16411 RANLIB \
16412 CC \
16413 CFLAGS \
16414 compiler \
16415 lt_cv_sys_global_symbol_pipe \
16416 lt_cv_sys_global_symbol_to_cdecl \
16417 lt_cv_sys_global_symbol_to_c_name_address \
16418 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16419 nm_file_list_spec \
16420 lt_prog_compiler_no_builtin_flag \
16421 lt_prog_compiler_pic \
16422 lt_prog_compiler_wl \
16423 lt_prog_compiler_static \
16424 lt_cv_prog_compiler_c_o \
16425 need_locks \
16426 MANIFEST_TOOL \
16427 DSYMUTIL \
16428 NMEDIT \
16429 LIPO \
16430 OTOOL \
16431 OTOOL64 \
16432 shrext_cmds \
16433 export_dynamic_flag_spec \
16434 whole_archive_flag_spec \
16435 compiler_needs_object \
16436 with_gnu_ld \
16437 allow_undefined_flag \
16438 no_undefined_flag \
16439 hardcode_libdir_flag_spec \
16440 hardcode_libdir_separator \
16441 exclude_expsyms \
16442 include_expsyms \
16443 file_list_spec \
16444 variables_saved_for_relink \
16445 libname_spec \
16446 library_names_spec \
16447 soname_spec \
16448 install_override_mode \
16449 finish_eval \
16450 old_striplib \
16451 striplib; do
16452 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16453 *[\\\\\\\`\\"\\\$]*)
16454 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16455 ;;
16456 *)
16457 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16458 ;;
16459 esac
16460 done
16461
16462 # Double-quote double-evaled strings.
16463 for var in reload_cmds \
16464 old_postinstall_cmds \
16465 old_postuninstall_cmds \
16466 old_archive_cmds \
16467 extract_expsyms_cmds \
16468 old_archive_from_new_cmds \
16469 old_archive_from_expsyms_cmds \
16470 archive_cmds \
16471 archive_expsym_cmds \
16472 module_cmds \
16473 module_expsym_cmds \
16474 export_symbols_cmds \
16475 prelink_cmds \
16476 postlink_cmds \
16477 postinstall_cmds \
16478 postuninstall_cmds \
16479 finish_cmds \
16480 sys_lib_search_path_spec \
16481 sys_lib_dlsearch_path_spec; do
16482 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16483 *[\\\\\\\`\\"\\\$]*)
16484 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16485 ;;
16486 *)
16487 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16488 ;;
16489 esac
16490 done
16491
16492 ac_aux_dir='$ac_aux_dir'
16493 xsi_shell='$xsi_shell'
16494 lt_shell_append='$lt_shell_append'
16495
16496 # See if we are running on zsh, and set the options which allow our
16497 # commands through without removal of \ escapes INIT.
16498 if test -n "\${ZSH_VERSION+set}" ; then
16499 setopt NO_GLOB_SUBST
16500 fi
16501
16502
16503 PACKAGE='$PACKAGE'
16504 VERSION='$VERSION'
16505 TIMESTAMP='$TIMESTAMP'
16506 RM='$RM'
16507 ofile='$ofile'
16508
16509
16510
16511
16512 _ACEOF
16513
16514 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16515
16516 # Handling of arguments.
16517 for ac_config_target in $ac_config_targets
16518 do
16519 case $ac_config_target in
16520 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16521 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16522 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16523 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16524 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16525 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
16526 "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
16527 "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
16528 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16529 "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
16530 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
16531
16532 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16533 esac
16534 done
16535
16536
16537 # If the user did not use the arguments to specify the items to instantiate,
16538 # then the envvar interface is used. Set only those that are not.
16539 # We use the long form for the default assignment because of an extremely
16540 # bizarre bug on SunOS 4.1.3.
16541 if $ac_need_defaults; then
16542 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16543 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16544 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16545 fi
16546
16547 # Have a temporary directory for convenience. Make it in the build tree
16548 # simply because there is no reason against having it here, and in addition,
16549 # creating and moving files from /tmp can sometimes cause problems.
16550 # Hook for its removal unless debugging.
16551 # Note that there is a small window in which the directory will not be cleaned:
16552 # after its creation but before its name has been assigned to `$tmp'.
16553 $debug ||
16554 {
16555 tmp= ac_tmp=
16556 trap 'exit_status=$?
16557 : "${ac_tmp:=$tmp}"
16558 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16559 ' 0
16560 trap 'as_fn_exit 1' 1 2 13 15
16561 }
16562 # Create a (secure) tmp directory for tmp files.
16563
16564 {
16565 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16566 test -d "$tmp"
16567 } ||
16568 {
16569 tmp=./conf$$-$RANDOM
16570 (umask 077 && mkdir "$tmp")
16571 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16572 ac_tmp=$tmp
16573
16574 # Set up the scripts for CONFIG_FILES section.
16575 # No need to generate them if there are no CONFIG_FILES.
16576 # This happens for instance with `./config.status config.h'.
16577 if test -n "$CONFIG_FILES"; then
16578
16579
16580 ac_cr=`echo X | tr X '\015'`
16581 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16582 # But we know of no other shell where ac_cr would be empty at this
16583 # point, so we can use a bashism as a fallback.
16584 if test "x$ac_cr" = x; then
16585 eval ac_cr=\$\'\\r\'
16586 fi
16587 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16588 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16589 ac_cs_awk_cr='\\r'
16590 else
16591 ac_cs_awk_cr=$ac_cr
16592 fi
16593
16594 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16595 _ACEOF
16596
16597
16598 {
16599 echo "cat >conf$$subs.awk <<_ACEOF" &&
16600 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16601 echo "_ACEOF"
16602 } >conf$$subs.sh ||
16603 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16604 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16605 ac_delim='%!_!# '
16606 for ac_last_try in false false false false false :; do
16607 . ./conf$$subs.sh ||
16608 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16609
16610 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16611 if test $ac_delim_n = $ac_delim_num; then
16612 break
16613 elif $ac_last_try; then
16614 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16615 else
16616 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16617 fi
16618 done
16619 rm -f conf$$subs.sh
16620
16621 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16622 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16623 _ACEOF
16624 sed -n '
16625 h
16626 s/^/S["/; s/!.*/"]=/
16627 p
16628 g
16629 s/^[^!]*!//
16630 :repl
16631 t repl
16632 s/'"$ac_delim"'$//
16633 t delim
16634 :nl
16635 h
16636 s/\(.\{148\}\)..*/\1/
16637 t more1
16638 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16639 p
16640 n
16641 b repl
16642 :more1
16643 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16644 p
16645 g
16646 s/.\{148\}//
16647 t nl
16648 :delim
16649 h
16650 s/\(.\{148\}\)..*/\1/
16651 t more2
16652 s/["\\]/\\&/g; s/^/"/; s/$/"/
16653 p
16654 b
16655 :more2
16656 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16657 p
16658 g
16659 s/.\{148\}//
16660 t delim
16661 ' <conf$$subs.awk | sed '
16662 /^[^""]/{
16663 N
16664 s/\n//
16665 }
16666 ' >>$CONFIG_STATUS || ac_write_fail=1
16667 rm -f conf$$subs.awk
16668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16669 _ACAWK
16670 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16671 for (key in S) S_is_set[key] = 1
16672 FS = ""
16673
16674 }
16675 {
16676 line = $ 0
16677 nfields = split(line, field, "@")
16678 substed = 0
16679 len = length(field[1])
16680 for (i = 2; i < nfields; i++) {
16681 key = field[i]
16682 keylen = length(key)
16683 if (S_is_set[key]) {
16684 value = S[key]
16685 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16686 len += length(value) + length(field[++i])
16687 substed = 1
16688 } else
16689 len += 1 + keylen
16690 }
16691
16692 print line
16693 }
16694
16695 _ACAWK
16696 _ACEOF
16697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16698 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16699 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16700 else
16701 cat
16702 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16703 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16704 _ACEOF
16705
16706 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16707 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16708 # trailing colons and then remove the whole line if VPATH becomes empty
16709 # (actually we leave an empty line to preserve line numbers).
16710 if test "x$srcdir" = x.; then
16711 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16712 h
16713 s///
16714 s/^/:/
16715 s/[ ]*$/:/
16716 s/:\$(srcdir):/:/g
16717 s/:\${srcdir}:/:/g
16718 s/:@srcdir@:/:/g
16719 s/^:*//
16720 s/:*$//
16721 x
16722 s/\(=[ ]*\).*/\1/
16723 G
16724 s/\n//
16725 s/^[^=]*=[ ]*$//
16726 }'
16727 fi
16728
16729 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16730 fi # test -n "$CONFIG_FILES"
16731
16732 # Set up the scripts for CONFIG_HEADERS section.
16733 # No need to generate them if there are no CONFIG_HEADERS.
16734 # This happens for instance with `./config.status Makefile'.
16735 if test -n "$CONFIG_HEADERS"; then
16736 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16737 BEGIN {
16738 _ACEOF
16739
16740 # Transform confdefs.h into an awk script `defines.awk', embedded as
16741 # here-document in config.status, that substitutes the proper values into
16742 # config.h.in to produce config.h.
16743
16744 # Create a delimiter string that does not exist in confdefs.h, to ease
16745 # handling of long lines.
16746 ac_delim='%!_!# '
16747 for ac_last_try in false false :; do
16748 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16749 if test -z "$ac_tt"; then
16750 break
16751 elif $ac_last_try; then
16752 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16753 else
16754 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16755 fi
16756 done
16757
16758 # For the awk script, D is an array of macro values keyed by name,
16759 # likewise P contains macro parameters if any. Preserve backslash
16760 # newline sequences.
16761
16762 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16763 sed -n '
16764 s/.\{148\}/&'"$ac_delim"'/g
16765 t rset
16766 :rset
16767 s/^[ ]*#[ ]*define[ ][ ]*/ /
16768 t def
16769 d
16770 :def
16771 s/\\$//
16772 t bsnl
16773 s/["\\]/\\&/g
16774 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16775 D["\1"]=" \3"/p
16776 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16777 d
16778 :bsnl
16779 s/["\\]/\\&/g
16780 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16781 D["\1"]=" \3\\\\\\n"\\/p
16782 t cont
16783 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16784 t cont
16785 d
16786 :cont
16787 n
16788 s/.\{148\}/&'"$ac_delim"'/g
16789 t clear
16790 :clear
16791 s/\\$//
16792 t bsnlc
16793 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16794 d
16795 :bsnlc
16796 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16797 b cont
16798 ' <confdefs.h | sed '
16799 s/'"$ac_delim"'/"\\\
16800 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16801
16802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16803 for (key in D) D_is_set[key] = 1
16804 FS = ""
16805 }
16806 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16807 line = \$ 0
16808 split(line, arg, " ")
16809 if (arg[1] == "#") {
16810 defundef = arg[2]
16811 mac1 = arg[3]
16812 } else {
16813 defundef = substr(arg[1], 2)
16814 mac1 = arg[2]
16815 }
16816 split(mac1, mac2, "(") #)
16817 macro = mac2[1]
16818 prefix = substr(line, 1, index(line, defundef) - 1)
16819 if (D_is_set[macro]) {
16820 # Preserve the white space surrounding the "#".
16821 print prefix "define", macro P[macro] D[macro]
16822 next
16823 } else {
16824 # Replace #undef with comments. This is necessary, for example,
16825 # in the case of _POSIX_SOURCE, which is predefined and required
16826 # on some systems where configure will not decide to define it.
16827 if (defundef == "undef") {
16828 print "/*", prefix defundef, macro, "*/"
16829 next
16830 }
16831 }
16832 }
16833 { print }
16834 _ACAWK
16835 _ACEOF
16836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16837 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16838 fi # test -n "$CONFIG_HEADERS"
16839
16840
16841 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16842 shift
16843 for ac_tag
16844 do
16845 case $ac_tag in
16846 :[FHLC]) ac_mode=$ac_tag; continue;;
16847 esac
16848 case $ac_mode$ac_tag in
16849 :[FHL]*:*);;
16850 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16851 :[FH]-) ac_tag=-:-;;
16852 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16853 esac
16854 ac_save_IFS=$IFS
16855 IFS=:
16856 set x $ac_tag
16857 IFS=$ac_save_IFS
16858 shift
16859 ac_file=$1
16860 shift
16861
16862 case $ac_mode in
16863 :L) ac_source=$1;;
16864 :[FH])
16865 ac_file_inputs=
16866 for ac_f
16867 do
16868 case $ac_f in
16869 -) ac_f="$ac_tmp/stdin";;
16870 *) # Look for the file first in the build tree, then in the source tree
16871 # (if the path is not absolute). The absolute path cannot be DOS-style,
16872 # because $ac_f cannot contain `:'.
16873 test -f "$ac_f" ||
16874 case $ac_f in
16875 [\\/$]*) false;;
16876 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16877 esac ||
16878 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16879 esac
16880 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16881 as_fn_append ac_file_inputs " '$ac_f'"
16882 done
16883
16884 # Let's still pretend it is `configure' which instantiates (i.e., don't
16885 # use $as_me), people would be surprised to read:
16886 # /* config.h. Generated by config.status. */
16887 configure_input='Generated from '`
16888 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16889 `' by configure.'
16890 if test x"$ac_file" != x-; then
16891 configure_input="$ac_file. $configure_input"
16892 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16893 $as_echo "$as_me: creating $ac_file" >&6;}
16894 fi
16895 # Neutralize special characters interpreted by sed in replacement strings.
16896 case $configure_input in #(
16897 *\&* | *\|* | *\\* )
16898 ac_sed_conf_input=`$as_echo "$configure_input" |
16899 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16900 *) ac_sed_conf_input=$configure_input;;
16901 esac
16902
16903 case $ac_tag in
16904 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16906 esac
16907 ;;
16908 esac
16909
16910 ac_dir=`$as_dirname -- "$ac_file" ||
16911 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16912 X"$ac_file" : 'X\(//\)[^/]' \| \
16913 X"$ac_file" : 'X\(//\)$' \| \
16914 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16915 $as_echo X"$ac_file" |
16916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16917 s//\1/
16918 q
16919 }
16920 /^X\(\/\/\)[^/].*/{
16921 s//\1/
16922 q
16923 }
16924 /^X\(\/\/\)$/{
16925 s//\1/
16926 q
16927 }
16928 /^X\(\/\).*/{
16929 s//\1/
16930 q
16931 }
16932 s/.*/./; q'`
16933 as_dir="$ac_dir"; as_fn_mkdir_p
16934 ac_builddir=.
16935
16936 case "$ac_dir" in
16937 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16938 *)
16939 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16940 # A ".." for each directory in $ac_dir_suffix.
16941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16942 case $ac_top_builddir_sub in
16943 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16944 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16945 esac ;;
16946 esac
16947 ac_abs_top_builddir=$ac_pwd
16948 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16949 # for backward compatibility:
16950 ac_top_builddir=$ac_top_build_prefix
16951
16952 case $srcdir in
16953 .) # We are building in place.
16954 ac_srcdir=.
16955 ac_top_srcdir=$ac_top_builddir_sub
16956 ac_abs_top_srcdir=$ac_pwd ;;
16957 [\\/]* | ?:[\\/]* ) # Absolute name.
16958 ac_srcdir=$srcdir$ac_dir_suffix;
16959 ac_top_srcdir=$srcdir
16960 ac_abs_top_srcdir=$srcdir ;;
16961 *) # Relative name.
16962 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16963 ac_top_srcdir=$ac_top_build_prefix$srcdir
16964 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16965 esac
16966 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16967
16968
16969 case $ac_mode in
16970 :F)
16971 #
16972 # CONFIG_FILE
16973 #
16974
16975 case $INSTALL in
16976 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16977 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16978 esac
16979 ac_MKDIR_P=$MKDIR_P
16980 case $MKDIR_P in
16981 [\\/$]* | ?:[\\/]* ) ;;
16982 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16983 esac
16984 _ACEOF
16985
16986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16987 # If the template does not know about datarootdir, expand it.
16988 # FIXME: This hack should be removed a few years after 2.60.
16989 ac_datarootdir_hack=; ac_datarootdir_seen=
16990 ac_sed_dataroot='
16991 /datarootdir/ {
16992 p
16993 q
16994 }
16995 /@datadir@/p
16996 /@docdir@/p
16997 /@infodir@/p
16998 /@localedir@/p
16999 /@mandir@/p'
17000 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17001 *datarootdir*) ac_datarootdir_seen=yes;;
17002 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17004 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17005 _ACEOF
17006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17007 ac_datarootdir_hack='
17008 s&@datadir@&$datadir&g
17009 s&@docdir@&$docdir&g
17010 s&@infodir@&$infodir&g
17011 s&@localedir@&$localedir&g
17012 s&@mandir@&$mandir&g
17013 s&\\\${datarootdir}&$datarootdir&g' ;;
17014 esac
17015 _ACEOF
17016
17017 # Neutralize VPATH when `$srcdir' = `.'.
17018 # Shell code in configure.ac might set extrasub.
17019 # FIXME: do we really want to maintain this feature?
17020 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17021 ac_sed_extra="$ac_vpsub
17022 $extrasub
17023 _ACEOF
17024 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17025 :t
17026 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17027 s|@configure_input@|$ac_sed_conf_input|;t t
17028 s&@top_builddir@&$ac_top_builddir_sub&;t t
17029 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17030 s&@srcdir@&$ac_srcdir&;t t
17031 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17032 s&@top_srcdir@&$ac_top_srcdir&;t t
17033 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17034 s&@builddir@&$ac_builddir&;t t
17035 s&@abs_builddir@&$ac_abs_builddir&;t t
17036 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17037 s&@INSTALL@&$ac_INSTALL&;t t
17038 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17039 $ac_datarootdir_hack
17040 "
17041 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17042 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17043
17044 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17045 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17046 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17047 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17049 which seems to be undefined. Please make sure it is defined" >&5
17050 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17051 which seems to be undefined. Please make sure it is defined" >&2;}
17052
17053 rm -f "$ac_tmp/stdin"
17054 case $ac_file in
17055 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17056 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17057 esac \
17058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17059 ;;
17060 :H)
17061 #
17062 # CONFIG_HEADER
17063 #
17064 if test x"$ac_file" != x-; then
17065 {
17066 $as_echo "/* $configure_input */" \
17067 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17068 } >"$ac_tmp/config.h" \
17069 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17070 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17072 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17073 else
17074 rm -f "$ac_file"
17075 mv "$ac_tmp/config.h" "$ac_file" \
17076 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17077 fi
17078 else
17079 $as_echo "/* $configure_input */" \
17080 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17081 || as_fn_error $? "could not create -" "$LINENO" 5
17082 fi
17083 # Compute "$ac_file"'s index in $config_headers.
17084 _am_arg="$ac_file"
17085 _am_stamp_count=1
17086 for _am_header in $config_headers :; do
17087 case $_am_header in
17088 $_am_arg | $_am_arg:* )
17089 break ;;
17090 * )
17091 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17092 esac
17093 done
17094 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17095 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17096 X"$_am_arg" : 'X\(//\)[^/]' \| \
17097 X"$_am_arg" : 'X\(//\)$' \| \
17098 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17099 $as_echo X"$_am_arg" |
17100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17101 s//\1/
17102 q
17103 }
17104 /^X\(\/\/\)[^/].*/{
17105 s//\1/
17106 q
17107 }
17108 /^X\(\/\/\)$/{
17109 s//\1/
17110 q
17111 }
17112 /^X\(\/\).*/{
17113 s//\1/
17114 q
17115 }
17116 s/.*/./; q'`/stamp-h$_am_stamp_count
17117 ;;
17118
17119 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17120 $as_echo "$as_me: executing $ac_file commands" >&6;}
17121 ;;
17122 esac
17123
17124
17125 case $ac_file$ac_mode in
17126 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17127 # Older Autoconf quotes --file arguments for eval, but not when files
17128 # are listed without --file. Let's play safe and only enable the eval
17129 # if we detect the quoting.
17130 case $CONFIG_FILES in
17131 *\'*) eval set x "$CONFIG_FILES" ;;
17132 *) set x $CONFIG_FILES ;;
17133 esac
17134 shift
17135 for mf
17136 do
17137 # Strip MF so we end up with the name of the file.
17138 mf=`echo "$mf" | sed -e 's/:.*$//'`
17139 # Check whether this is an Automake generated Makefile or not.
17140 # We used to match only the files named 'Makefile.in', but
17141 # some people rename them; so instead we look at the file content.
17142 # Grep'ing the first line is not enough: some people post-process
17143 # each Makefile.in and add a new line on top of each file to say so.
17144 # Grep'ing the whole file is not good either: AIX grep has a line
17145 # limit of 2048, but all sed's we know have understand at least 4000.
17146 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17147 dirpart=`$as_dirname -- "$mf" ||
17148 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17149 X"$mf" : 'X\(//\)[^/]' \| \
17150 X"$mf" : 'X\(//\)$' \| \
17151 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17152 $as_echo X"$mf" |
17153 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17154 s//\1/
17155 q
17156 }
17157 /^X\(\/\/\)[^/].*/{
17158 s//\1/
17159 q
17160 }
17161 /^X\(\/\/\)$/{
17162 s//\1/
17163 q
17164 }
17165 /^X\(\/\).*/{
17166 s//\1/
17167 q
17168 }
17169 s/.*/./; q'`
17170 else
17171 continue
17172 fi
17173 # Extract the definition of DEPDIR, am__include, and am__quote
17174 # from the Makefile without running 'make'.
17175 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17176 test -z "$DEPDIR" && continue
17177 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17178 test -z "$am__include" && continue
17179 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17180 # Find all dependency output files, they are included files with
17181 # $(DEPDIR) in their names. We invoke sed twice because it is the
17182 # simplest approach to changing $(DEPDIR) to its actual value in the
17183 # expansion.
17184 for file in `sed -n "
17185 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17186 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17187 # Make sure the directory exists.
17188 test -f "$dirpart/$file" && continue
17189 fdir=`$as_dirname -- "$file" ||
17190 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17191 X"$file" : 'X\(//\)[^/]' \| \
17192 X"$file" : 'X\(//\)$' \| \
17193 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17194 $as_echo X"$file" |
17195 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17196 s//\1/
17197 q
17198 }
17199 /^X\(\/\/\)[^/].*/{
17200 s//\1/
17201 q
17202 }
17203 /^X\(\/\/\)$/{
17204 s//\1/
17205 q
17206 }
17207 /^X\(\/\).*/{
17208 s//\1/
17209 q
17210 }
17211 s/.*/./; q'`
17212 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17213 # echo "creating $dirpart/$file"
17214 echo '# dummy' > "$dirpart/$file"
17215 done
17216 done
17217 }
17218 ;;
17219 "libtool":C)
17220
17221 # See if we are running on zsh, and set the options which allow our
17222 # commands through without removal of \ escapes.
17223 if test -n "${ZSH_VERSION+set}" ; then
17224 setopt NO_GLOB_SUBST
17225 fi
17226
17227 cfgfile="${ofile}T"
17228 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17229 $RM "$cfgfile"
17230
17231 cat <<_LT_EOF >> "$cfgfile"
17232 #! $SHELL
17233
17234 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17235 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17236 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17237 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17238 #
17239 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17240 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17241 # Foundation, Inc.
17242 # Written by Gordon Matzigkeit, 1996
17243 #
17244 # This file is part of GNU Libtool.
17245 #
17246 # GNU Libtool is free software; you can redistribute it and/or
17247 # modify it under the terms of the GNU General Public License as
17248 # published by the Free Software Foundation; either version 2 of
17249 # the License, or (at your option) any later version.
17250 #
17251 # As a special exception to the GNU General Public License,
17252 # if you distribute this file as part of a program or library that
17253 # is built using GNU Libtool, you may include this file under the
17254 # same distribution terms that you use for the rest of that program.
17255 #
17256 # GNU Libtool is distributed in the hope that it will be useful,
17257 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17258 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17259 # GNU General Public License for more details.
17260 #
17261 # You should have received a copy of the GNU General Public License
17262 # along with GNU Libtool; see the file COPYING. If not, a copy
17263 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17264 # obtained by writing to the Free Software Foundation, Inc.,
17265 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17266
17267
17268 # The names of the tagged configurations supported by this script.
17269 available_tags=""
17270
17271 # ### BEGIN LIBTOOL CONFIG
17272
17273 # Which release of libtool.m4 was used?
17274 macro_version=$macro_version
17275 macro_revision=$macro_revision
17276
17277 # Whether or not to build static libraries.
17278 build_old_libs=$enable_static
17279
17280 # Whether or not to build shared libraries.
17281 build_libtool_libs=$enable_shared
17282
17283 # What type of objects to build.
17284 pic_mode=$pic_mode
17285
17286 # Whether or not to optimize for fast installation.
17287 fast_install=$enable_fast_install
17288
17289 # Shell to use when invoking shell scripts.
17290 SHELL=$lt_SHELL
17291
17292 # An echo program that protects backslashes.
17293 ECHO=$lt_ECHO
17294
17295 # The PATH separator for the build system.
17296 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17297
17298 # The host system.
17299 host_alias=$host_alias
17300 host=$host
17301 host_os=$host_os
17302
17303 # The build system.
17304 build_alias=$build_alias
17305 build=$build
17306 build_os=$build_os
17307
17308 # A sed program that does not truncate output.
17309 SED=$lt_SED
17310
17311 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17312 Xsed="\$SED -e 1s/^X//"
17313
17314 # A grep program that handles long lines.
17315 GREP=$lt_GREP
17316
17317 # An ERE matcher.
17318 EGREP=$lt_EGREP
17319
17320 # A literal string matcher.
17321 FGREP=$lt_FGREP
17322
17323 # A BSD- or MS-compatible name lister.
17324 NM=$lt_NM
17325
17326 # Whether we need soft or hard links.
17327 LN_S=$lt_LN_S
17328
17329 # What is the maximum length of a command?
17330 max_cmd_len=$max_cmd_len
17331
17332 # Object file suffix (normally "o").
17333 objext=$ac_objext
17334
17335 # Executable file suffix (normally "").
17336 exeext=$exeext
17337
17338 # whether the shell understands "unset".
17339 lt_unset=$lt_unset
17340
17341 # turn spaces into newlines.
17342 SP2NL=$lt_lt_SP2NL
17343
17344 # turn newlines into spaces.
17345 NL2SP=$lt_lt_NL2SP
17346
17347 # convert \$build file names to \$host format.
17348 to_host_file_cmd=$lt_cv_to_host_file_cmd
17349
17350 # convert \$build files to toolchain format.
17351 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17352
17353 # An object symbol dumper.
17354 OBJDUMP=$lt_OBJDUMP
17355
17356 # Method to check whether dependent libraries are shared objects.
17357 deplibs_check_method=$lt_deplibs_check_method
17358
17359 # Command to use when deplibs_check_method = "file_magic".
17360 file_magic_cmd=$lt_file_magic_cmd
17361
17362 # How to find potential files when deplibs_check_method = "file_magic".
17363 file_magic_glob=$lt_file_magic_glob
17364
17365 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17366 want_nocaseglob=$lt_want_nocaseglob
17367
17368 # DLL creation program.
17369 DLLTOOL=$lt_DLLTOOL
17370
17371 # Command to associate shared and link libraries.
17372 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17373
17374 # The archiver.
17375 AR=$lt_AR
17376
17377 # Flags to create an archive.
17378 AR_FLAGS=$lt_AR_FLAGS
17379
17380 # How to feed a file listing to the archiver.
17381 archiver_list_spec=$lt_archiver_list_spec
17382
17383 # A symbol stripping program.
17384 STRIP=$lt_STRIP
17385
17386 # Commands used to install an old-style archive.
17387 RANLIB=$lt_RANLIB
17388 old_postinstall_cmds=$lt_old_postinstall_cmds
17389 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17390
17391 # Whether to use a lock for old archive extraction.
17392 lock_old_archive_extraction=$lock_old_archive_extraction
17393
17394 # A C compiler.
17395 LTCC=$lt_CC
17396
17397 # LTCC compiler flags.
17398 LTCFLAGS=$lt_CFLAGS
17399
17400 # Take the output of nm and produce a listing of raw symbols and C names.
17401 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17402
17403 # Transform the output of nm in a proper C declaration.
17404 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17405
17406 # Transform the output of nm in a C name address pair.
17407 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17408
17409 # Transform the output of nm in a C name address pair when lib prefix is needed.
17410 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17411
17412 # Specify filename containing input files for \$NM.
17413 nm_file_list_spec=$lt_nm_file_list_spec
17414
17415 # The root where to search for dependent libraries,and in which our libraries should be installed.
17416 lt_sysroot=$lt_sysroot
17417
17418 # The name of the directory that contains temporary libtool files.
17419 objdir=$objdir
17420
17421 # Used to examine libraries when file_magic_cmd begins with "file".
17422 MAGIC_CMD=$MAGIC_CMD
17423
17424 # Must we lock files when doing compilation?
17425 need_locks=$lt_need_locks
17426
17427 # Manifest tool.
17428 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17429
17430 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17431 DSYMUTIL=$lt_DSYMUTIL
17432
17433 # Tool to change global to local symbols on Mac OS X.
17434 NMEDIT=$lt_NMEDIT
17435
17436 # Tool to manipulate fat objects and archives on Mac OS X.
17437 LIPO=$lt_LIPO
17438
17439 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17440 OTOOL=$lt_OTOOL
17441
17442 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17443 OTOOL64=$lt_OTOOL64
17444
17445 # Old archive suffix (normally "a").
17446 libext=$libext
17447
17448 # Shared library suffix (normally ".so").
17449 shrext_cmds=$lt_shrext_cmds
17450
17451 # The commands to extract the exported symbol list from a shared archive.
17452 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17453
17454 # Variables whose values should be saved in libtool wrapper scripts and
17455 # restored at link time.
17456 variables_saved_for_relink=$lt_variables_saved_for_relink
17457
17458 # Do we need the "lib" prefix for modules?
17459 need_lib_prefix=$need_lib_prefix
17460
17461 # Do we need a version for libraries?
17462 need_version=$need_version
17463
17464 # Library versioning type.
17465 version_type=$version_type
17466
17467 # Shared library runtime path variable.
17468 runpath_var=$runpath_var
17469
17470 # Shared library path variable.
17471 shlibpath_var=$shlibpath_var
17472
17473 # Is shlibpath searched before the hard-coded library search path?
17474 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17475
17476 # Format of library name prefix.
17477 libname_spec=$lt_libname_spec
17478
17479 # List of archive names. First name is the real one, the rest are links.
17480 # The last name is the one that the linker finds with -lNAME
17481 library_names_spec=$lt_library_names_spec
17482
17483 # The coded name of the library, if different from the real name.
17484 soname_spec=$lt_soname_spec
17485
17486 # Permission mode override for installation of shared libraries.
17487 install_override_mode=$lt_install_override_mode
17488
17489 # Command to use after installation of a shared archive.
17490 postinstall_cmds=$lt_postinstall_cmds
17491
17492 # Command to use after uninstallation of a shared archive.
17493 postuninstall_cmds=$lt_postuninstall_cmds
17494
17495 # Commands used to finish a libtool library installation in a directory.
17496 finish_cmds=$lt_finish_cmds
17497
17498 # As "finish_cmds", except a single script fragment to be evaled but
17499 # not shown.
17500 finish_eval=$lt_finish_eval
17501
17502 # Whether we should hardcode library paths into libraries.
17503 hardcode_into_libs=$hardcode_into_libs
17504
17505 # Compile-time system search path for libraries.
17506 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17507
17508 # Run-time system search path for libraries.
17509 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17510
17511 # Whether dlopen is supported.
17512 dlopen_support=$enable_dlopen
17513
17514 # Whether dlopen of programs is supported.
17515 dlopen_self=$enable_dlopen_self
17516
17517 # Whether dlopen of statically linked programs is supported.
17518 dlopen_self_static=$enable_dlopen_self_static
17519
17520 # Commands to strip libraries.
17521 old_striplib=$lt_old_striplib
17522 striplib=$lt_striplib
17523
17524
17525 # The linker used to build libraries.
17526 LD=$lt_LD
17527
17528 # How to create reloadable object files.
17529 reload_flag=$lt_reload_flag
17530 reload_cmds=$lt_reload_cmds
17531
17532 # Commands used to build an old-style archive.
17533 old_archive_cmds=$lt_old_archive_cmds
17534
17535 # A language specific compiler.
17536 CC=$lt_compiler
17537
17538 # Is the compiler the GNU compiler?
17539 with_gcc=$GCC
17540
17541 # Compiler flag to turn off builtin functions.
17542 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17543
17544 # Additional compiler flags for building library objects.
17545 pic_flag=$lt_lt_prog_compiler_pic
17546
17547 # How to pass a linker flag through the compiler.
17548 wl=$lt_lt_prog_compiler_wl
17549
17550 # Compiler flag to prevent dynamic linking.
17551 link_static_flag=$lt_lt_prog_compiler_static
17552
17553 # Does compiler simultaneously support -c and -o options?
17554 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17555
17556 # Whether or not to add -lc for building shared libraries.
17557 build_libtool_need_lc=$archive_cmds_need_lc
17558
17559 # Whether or not to disallow shared libs when runtime libs are static.
17560 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17561
17562 # Compiler flag to allow reflexive dlopens.
17563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17564
17565 # Compiler flag to generate shared objects directly from archives.
17566 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17567
17568 # Whether the compiler copes with passing no objects directly.
17569 compiler_needs_object=$lt_compiler_needs_object
17570
17571 # Create an old-style archive from a shared archive.
17572 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17573
17574 # Create a temporary old-style archive to link instead of a shared archive.
17575 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17576
17577 # Commands used to build a shared archive.
17578 archive_cmds=$lt_archive_cmds
17579 archive_expsym_cmds=$lt_archive_expsym_cmds
17580
17581 # Commands used to build a loadable module if different from building
17582 # a shared archive.
17583 module_cmds=$lt_module_cmds
17584 module_expsym_cmds=$lt_module_expsym_cmds
17585
17586 # Whether we are building with GNU ld or not.
17587 with_gnu_ld=$lt_with_gnu_ld
17588
17589 # Flag that allows shared libraries with undefined symbols to be built.
17590 allow_undefined_flag=$lt_allow_undefined_flag
17591
17592 # Flag that enforces no undefined symbols.
17593 no_undefined_flag=$lt_no_undefined_flag
17594
17595 # Flag to hardcode \$libdir into a binary during linking.
17596 # This must work even if \$libdir does not exist
17597 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17598
17599 # Whether we need a single "-rpath" flag with a separated argument.
17600 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17601
17602 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17603 # DIR into the resulting binary.
17604 hardcode_direct=$hardcode_direct
17605
17606 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17607 # DIR into the resulting binary and the resulting library dependency is
17608 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17609 # library is relocated.
17610 hardcode_direct_absolute=$hardcode_direct_absolute
17611
17612 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17613 # into the resulting binary.
17614 hardcode_minus_L=$hardcode_minus_L
17615
17616 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17617 # into the resulting binary.
17618 hardcode_shlibpath_var=$hardcode_shlibpath_var
17619
17620 # Set to "yes" if building a shared library automatically hardcodes DIR
17621 # into the library and all subsequent libraries and executables linked
17622 # against it.
17623 hardcode_automatic=$hardcode_automatic
17624
17625 # Set to yes if linker adds runtime paths of dependent libraries
17626 # to runtime path list.
17627 inherit_rpath=$inherit_rpath
17628
17629 # Whether libtool must link a program against all its dependency libraries.
17630 link_all_deplibs=$link_all_deplibs
17631
17632 # Set to "yes" if exported symbols are required.
17633 always_export_symbols=$always_export_symbols
17634
17635 # The commands to list exported symbols.
17636 export_symbols_cmds=$lt_export_symbols_cmds
17637
17638 # Symbols that should not be listed in the preloaded symbols.
17639 exclude_expsyms=$lt_exclude_expsyms
17640
17641 # Symbols that must always be exported.
17642 include_expsyms=$lt_include_expsyms
17643
17644 # Commands necessary for linking programs (against libraries) with templates.
17645 prelink_cmds=$lt_prelink_cmds
17646
17647 # Commands necessary for finishing linking programs.
17648 postlink_cmds=$lt_postlink_cmds
17649
17650 # Specify filename containing input files.
17651 file_list_spec=$lt_file_list_spec
17652
17653 # How to hardcode a shared library path into an executable.
17654 hardcode_action=$hardcode_action
17655
17656 # ### END LIBTOOL CONFIG
17657
17658 _LT_EOF
17659
17660 case $host_os in
17661 aix3*)
17662 cat <<\_LT_EOF >> "$cfgfile"
17663 # AIX sometimes has problems with the GCC collect2 program. For some
17664 # reason, if we set the COLLECT_NAMES environment variable, the problems
17665 # vanish in a puff of smoke.
17666 if test "X${COLLECT_NAMES+set}" != Xset; then
17667 COLLECT_NAMES=
17668 export COLLECT_NAMES
17669 fi
17670 _LT_EOF
17671 ;;
17672 esac
17673
17674
17675 ltmain="$ac_aux_dir/ltmain.sh"
17676
17677
17678 # We use sed instead of cat because bash on DJGPP gets confused if
17679 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17680 # text mode, it properly converts lines to CR/LF. This bash problem
17681 # is reportedly fixed, but why not run on old versions too?
17682 sed '$q' "$ltmain" >> "$cfgfile" \
17683 || (rm -f "$cfgfile"; exit 1)
17684
17685 if test x"$xsi_shell" = xyes; then
17686 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17687 func_dirname ()\
17688 {\
17689 \ case ${1} in\
17690 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17691 \ * ) func_dirname_result="${3}" ;;\
17692 \ esac\
17693 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17694 && mv -f "$cfgfile.tmp" "$cfgfile" \
17695 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17696 test 0 -eq $? || _lt_function_replace_fail=:
17697
17698
17699 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17700 func_basename ()\
17701 {\
17702 \ func_basename_result="${1##*/}"\
17703 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17704 && mv -f "$cfgfile.tmp" "$cfgfile" \
17705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17706 test 0 -eq $? || _lt_function_replace_fail=:
17707
17708
17709 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17710 func_dirname_and_basename ()\
17711 {\
17712 \ case ${1} in\
17713 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17714 \ * ) func_dirname_result="${3}" ;;\
17715 \ esac\
17716 \ func_basename_result="${1##*/}"\
17717 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17718 && mv -f "$cfgfile.tmp" "$cfgfile" \
17719 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17720 test 0 -eq $? || _lt_function_replace_fail=:
17721
17722
17723 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17724 func_stripname ()\
17725 {\
17726 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17727 \ # positional parameters, so assign one to ordinary parameter first.\
17728 \ func_stripname_result=${3}\
17729 \ func_stripname_result=${func_stripname_result#"${1}"}\
17730 \ func_stripname_result=${func_stripname_result%"${2}"}\
17731 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17732 && mv -f "$cfgfile.tmp" "$cfgfile" \
17733 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17734 test 0 -eq $? || _lt_function_replace_fail=:
17735
17736
17737 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17738 func_split_long_opt ()\
17739 {\
17740 \ func_split_long_opt_name=${1%%=*}\
17741 \ func_split_long_opt_arg=${1#*=}\
17742 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17743 && mv -f "$cfgfile.tmp" "$cfgfile" \
17744 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17745 test 0 -eq $? || _lt_function_replace_fail=:
17746
17747
17748 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17749 func_split_short_opt ()\
17750 {\
17751 \ func_split_short_opt_arg=${1#??}\
17752 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17753 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17754 && mv -f "$cfgfile.tmp" "$cfgfile" \
17755 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17756 test 0 -eq $? || _lt_function_replace_fail=:
17757
17758
17759 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17760 func_lo2o ()\
17761 {\
17762 \ case ${1} in\
17763 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17764 \ *) func_lo2o_result=${1} ;;\
17765 \ esac\
17766 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17767 && mv -f "$cfgfile.tmp" "$cfgfile" \
17768 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17769 test 0 -eq $? || _lt_function_replace_fail=:
17770
17771
17772 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17773 func_xform ()\
17774 {\
17775 func_xform_result=${1%.*}.lo\
17776 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17777 && mv -f "$cfgfile.tmp" "$cfgfile" \
17778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17779 test 0 -eq $? || _lt_function_replace_fail=:
17780
17781
17782 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17783 func_arith ()\
17784 {\
17785 func_arith_result=$(( $* ))\
17786 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17787 && mv -f "$cfgfile.tmp" "$cfgfile" \
17788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17789 test 0 -eq $? || _lt_function_replace_fail=:
17790
17791
17792 sed -e '/^func_len ()$/,/^} # func_len /c\
17793 func_len ()\
17794 {\
17795 func_len_result=${#1}\
17796 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17797 && mv -f "$cfgfile.tmp" "$cfgfile" \
17798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17799 test 0 -eq $? || _lt_function_replace_fail=:
17800
17801 fi
17802
17803 if test x"$lt_shell_append" = xyes; then
17804 sed -e '/^func_append ()$/,/^} # func_append /c\
17805 func_append ()\
17806 {\
17807 eval "${1}+=\\${2}"\
17808 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17809 && mv -f "$cfgfile.tmp" "$cfgfile" \
17810 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17811 test 0 -eq $? || _lt_function_replace_fail=:
17812
17813
17814 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17815 func_append_quoted ()\
17816 {\
17817 \ func_quote_for_eval "${2}"\
17818 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17819 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17820 && mv -f "$cfgfile.tmp" "$cfgfile" \
17821 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17822 test 0 -eq $? || _lt_function_replace_fail=:
17823
17824
17825 # Save a `func_append' function call where possible by direct use of '+='
17826 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17827 && mv -f "$cfgfile.tmp" "$cfgfile" \
17828 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17829 test 0 -eq $? || _lt_function_replace_fail=:
17830 else
17831 # Save a `func_append' function call even when '+=' is not available
17832 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17833 && mv -f "$cfgfile.tmp" "$cfgfile" \
17834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17835 test 0 -eq $? || _lt_function_replace_fail=:
17836 fi
17837
17838 if test x"$_lt_function_replace_fail" = x":"; then
17839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17840 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17841 fi
17842
17843
17844 mv -f "$cfgfile" "$ofile" ||
17845 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17846 chmod +x "$ofile"
17847
17848 ;;
17849
17850 esac
17851 done # for ac_tag
17852
17853
17854 as_fn_exit 0
17855 _ACEOF
17856 ac_clean_files=$ac_clean_files_save
17857
17858 test $ac_write_fail = 0 ||
17859 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17860
17861
17862 # configure is writing to config.log, and then calls config.status.
17863 # config.status does its own redirection, appending to config.log.
17864 # Unfortunately, on DOS this fails, as config.log is still kept open
17865 # by configure, so config.status won't be able to write to it; its
17866 # output is simply discarded. So we exec the FD to /dev/null,
17867 # effectively closing config.log, so it can be properly (re)opened and
17868 # appended to by config.status. When coming back to configure, we
17869 # need to make the FD available again.
17870 if test "$no_create" != yes; then
17871 ac_cs_success=:
17872 ac_config_status_args=
17873 test "$silent" = yes &&
17874 ac_config_status_args="$ac_config_status_args --quiet"
17875 exec 5>/dev/null
17876 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17877 exec 5>>config.log
17878 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17879 # would make configure fail if this is the last instruction.
17880 $ac_cs_success || as_fn_exit 1
17881 fi
17882 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17884 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17885 fi
17886

Properties

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