ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
Revision: 1535
Committed: Tue Sep 25 18:58:49 2012 UTC (12 years, 11 months ago) by michael
Original Path: ircd-hybrid-8/configure
File size: 489898 byte(s)
Log Message:
- automake 1.12.4

File Contents

# User Rev Content
1 michael 912 #! /bin/sh
2 michael 1535 # From configure.ac Id: configure.ac 1523 2012-09-09 11:11:52Z michael .
3 michael 912 # Guess values for system-dependent variables and create Makefiles.
4 michael 1521 # Generated by GNU Autoconf 2.69 for ircd-hybrid 8.0.0rc1.
5 michael 912 #
6 michael 1039 # Report bugs to <bugs@ircd-hybrid.org>.
7 michael 1033 #
8 michael 1039 #
9 michael 1373 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
10 michael 967 #
11 michael 1033 #
12 michael 912 # This configure script is free software; the Free Software Foundation
13     # gives unlimited permission to copy, distribute and modify it.
14 michael 967 ## -------------------- ##
15     ## M4sh Initialization. ##
16     ## -------------------- ##
17 michael 912
18     # Be more Bourne compatible
19     DUALCASE=1; export DUALCASE # for MKS sh
20 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21 michael 912 emulate sh
22     NULLCMD=:
23 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24 michael 912 # is contrary to our usage. Disable this feature.
25     alias -g '${1+"$@"}'='"$@"'
26     setopt NO_GLOB_SUBST
27     else
28 michael 967 case `(set -o) 2>/dev/null` in #(
29     *posix*) :
30     set -o posix ;; #(
31     *) :
32     ;;
33 michael 912 esac
34     fi
35    
36    
37 db 941 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 michael 967 # 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 db 941 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 michael 912 else
58 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
59     as_echo_n_body='eval
60     arg=$1;
61 michael 967 case $arg in #(
62 db 941 *"$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 michael 912 fi
71 db 941 export as_echo_body
72     as_echo='sh -c $as_echo_body as_echo'
73 michael 912 fi
74    
75 db 941 # 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 michael 912
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 michael 1106 as_myself=
94 michael 967 case $0 in #((
95 michael 912 *[\\/]* ) 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 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102     done
103 michael 912 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 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 michael 967 exit 1
115 michael 912 fi
116    
117 michael 967 # 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 michael 912 done
125     PS1='$ '
126     PS2='> '
127     PS4='+ '
128    
129     # NLS nuisances.
130 db 941 LC_ALL=C
131     export LC_ALL
132     LANGUAGE=C
133     export LANGUAGE
134 michael 912
135     # CDPATH.
136 michael 967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 michael 912
138 michael 1373 # 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 michael 912 if test "x$CONFIG_SHELL" = x; then
164 michael 967 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 michael 912 else
172 michael 967 case \`(set -o) 2>/dev/null\` in #(
173     *posix*) :
174     set -o posix ;; #(
175     *) :
176     ;;
177     esac
178 michael 912 fi
179 michael 967 "
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 michael 912
186     exitcode=0
187 michael 967 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 michael 912
193     else
194 michael 967 exitcode=1; echo positional parameters were not saved.
195 michael 912 fi
196 michael 1373 test x\$exitcode = x0 || exit 1
197     test -x / || exit 1"
198 michael 967 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 michael 1094
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 michael 967 test \$(( 1 + 1 )) = 2 || exit 1"
211     if (eval "$as_required") 2>/dev/null; then :
212     as_have_required=yes
213 michael 912 else
214 michael 967 as_have_required=no
215 michael 912 fi
216 michael 967 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
217 michael 912
218     else
219 michael 967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220     as_found=false
221 michael 912 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 michael 967 as_found=:
226     case $as_dir in #(
227 michael 912 /*)
228     for as_base in sh bash ksh sh5; do
229 michael 967 # 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 michael 912 done;;
239     esac
240 michael 967 as_found=false
241 michael 912 done
242 michael 967 $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 michael 912 IFS=$as_save_IFS
247    
248    
249 michael 967 if test "x$CONFIG_SHELL" != x; then :
250 michael 1373 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 michael 912 fi
270    
271 michael 967 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 michael 1039 $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 michael 967 fi
284     exit 1
285 michael 912 fi
286     fi
287     fi
288 michael 967 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 michael 912
294 michael 967 ## --------------------- ##
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 michael 912
306 michael 967 # 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 michael 912
314 michael 967 # 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 michael 912
324 michael 967 # as_fn_mkdir_p
325     # -------------
326     # Create "$as_dir" as a directory, including parents if necessary.
327     as_fn_mkdir_p ()
328     {
329 michael 912
330 michael 967 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 michael 1095 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368 michael 912
369    
370 michael 967 } # as_fn_mkdir_p
371 michael 1373
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 michael 967 # 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 michael 912
397 michael 967 # 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 michael 912
414    
415 michael 1095 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416     # ----------------------------------------
417 michael 967 # 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 michael 1095 # script with STATUS, using 1 if that was 0.
420 michael 967 as_fn_error ()
421     {
422 michael 1095 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 michael 967 fi
427 michael 1095 $as_echo "$as_me: error: $2" >&2
428 michael 967 as_fn_exit $as_status
429     } # as_fn_error
430 michael 912
431 michael 967 if expr a : '\(a\)' >/dev/null 2>&1 &&
432     test "X`expr 00001 : '.*\(...\)'`" = X001; then
433     as_expr=expr
434 michael 912 else
435 michael 967 as_expr=false
436 michael 912 fi
437    
438 michael 967 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439     as_basename=basename
440 michael 912 else
441 michael 967 as_basename=false
442 michael 912 fi
443    
444 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445     as_dirname=dirname
446 michael 912 else
447 michael 967 as_dirname=false
448 michael 912 fi
449    
450 michael 967 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 michael 912
469 michael 967 # 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 michael 912
476    
477 michael 967 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 michael 912 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 michael 967 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499 michael 912
500 michael 1373 # 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 michael 912 # 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 michael 967 case `echo -n x` in #(((((
514 michael 912 -n*)
515 michael 967 case `echo 'xy\c'` in
516 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 michael 967 xy) ECHO_C='\c';;
518     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519     ECHO_T=' ';;
520 michael 912 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 db 941 mkdir conf$$.dir 2>/dev/null
531 michael 912 fi
532 db 941 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 michael 1373 # In both cases, we have to default to `cp -pR'.
539 db 941 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 michael 1373 as_ln_s='cp -pR'
541 db 941 elif ln conf$$.file conf$$ 2>/dev/null; then
542     as_ln_s=ln
543     else
544 michael 1373 as_ln_s='cp -pR'
545 db 941 fi
546 michael 912 else
547 michael 1373 as_ln_s='cp -pR'
548 michael 912 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 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
554 michael 912 else
555     test -d ./-p && rmdir ./-p
556     as_mkdir_p=false
557     fi
558    
559 michael 1373 as_test_x='test -x'
560     as_executable_p=as_fn_executable_p
561 michael 912
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 michael 1084 lt_ltdl_dir='libltdl'
569 michael 912
570     SHELL=${CONFIG_SHELL-/bin/sh}
571    
572    
573 michael 1033 test -n "$DJDIR" || exec 7<&0 </dev/null
574     exec 6>&1
575 michael 912
576     # Name of the host.
577 michael 1095 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
578 michael 912 # 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 michael 1521 PACKAGE_VERSION='8.0.0rc1'
597     PACKAGE_STRING='ircd-hybrid 8.0.0rc1'
598 michael 1039 PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
599 michael 967 PACKAGE_URL=''
600 michael 912
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 michael 945 ac_subst_vars='ltdl_LTLIBOBJS
641     ltdl_LIBOBJS
642     am__EXEEXT_FALSE
643     am__EXEEXT_TRUE
644     LTLIBOBJS
645 michael 942 LIBOBJS
646     LOCALSTATEDIR
647     DATADIR
648     LIBDIR
649     SYSCONFDIR
650     PREFIX
651     ENABLE_SSL_FALSE
652     ENABLE_SSL_TRUE
653 michael 945 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 michael 942 CPP
672 michael 945 OTOOL64
673     OTOOL
674     LIPO
675 michael 942 NMEDIT
676     DSYMUTIL
677 michael 1106 MANIFEST_TOOL
678 michael 942 RANLIB
679 michael 1106 ac_ct_AR
680 michael 942 AR
681 michael 1106 DLLTOOL
682 michael 945 OBJDUMP
683 michael 942 LN_S
684 michael 945 NM
685     ac_ct_DUMPBIN
686     DUMPBIN
687     LD
688     FGREP
689 michael 942 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 michael 945 LIBTOOL
701 michael 942 LEXLIB
702     LEX_OUTPUT_ROOT
703     LEX
704     YFLAGS
705     YACC
706     am__fastdepCC_FALSE
707     am__fastdepCC_TRUE
708     CCDEPMODE
709 michael 1257 am__nodep
710 michael 942 AMDEPBACKSLASH
711     AMDEP_FALSE
712     AMDEP_TRUE
713     am__quote
714     am__include
715     DEPDIR
716     OBJEXT
717     EXEEXT
718     ac_ct_CC
719     CPPFLAGS
720     LDFLAGS
721     CFLAGS
722     CC
723     MAINT
724     MAINTAINER_MODE_FALSE
725     MAINTAINER_MODE_TRUE
726     am__untar
727     am__tar
728     AMTAR
729     am__leading_dot
730     SET_MAKE
731     AWK
732 michael 1462 mkdir_p
733 michael 942 MKDIR_P
734     INSTALL_STRIP_PROGRAM
735     STRIP
736     install_sh
737     MAKEINFO
738     AUTOHEADER
739     AUTOMAKE
740     AUTOCONF
741     ACLOCAL
742     VERSION
743     PACKAGE
744     CYGPATH_W
745     am__isrc
746     INSTALL_DATA
747     INSTALL_SCRIPT
748     INSTALL_PROGRAM
749     target_alias
750     host_alias
751     build_alias
752     LIBS
753     ECHO_T
754     ECHO_N
755     ECHO_C
756     DEFS
757     mandir
758     localedir
759     libdir
760     psdir
761     pdfdir
762     dvidir
763     htmldir
764     infodir
765     docdir
766     oldincludedir
767     includedir
768     localstatedir
769     sharedstatedir
770     sysconfdir
771     datadir
772     datarootdir
773     libexecdir
774     sbindir
775     bindir
776     program_transform_name
777     prefix
778     exec_prefix
779 michael 967 PACKAGE_URL
780 michael 942 PACKAGE_BUGREPORT
781     PACKAGE_STRING
782     PACKAGE_VERSION
783     PACKAGE_TARNAME
784     PACKAGE_NAME
785 michael 912 PATH_SEPARATOR
786 michael 942 SHELL'
787 michael 912 ac_subst_files=''
788 db 941 ac_user_opts='
789     enable_option_checking
790     enable_maintainer_mode
791 michael 945 enable_dependency_tracking
792 michael 977 enable_static
793 michael 945 enable_shared
794     with_pic
795 db 941 enable_fast_install
796     with_gnu_ld
797 michael 1106 with_sysroot
798 db 941 enable_libtool_lock
799 michael 945 with_included_ltdl
800     with_ltdl_include
801     with_ltdl_lib
802     enable_ltdl_install
803 michael 1009 enable_libpcre
804 db 941 enable_openssl
805     enable_assert
806     enable_kqueue
807     enable_epoll
808     enable_devpoll
809     enable_rtsigio
810     enable_poll
811     enable_select
812     with_nicklen
813     with_topiclen
814     enable_halfops
815     enable_debugging
816     enable_warnings
817     '
818 michael 912 ac_precious_vars='build_alias
819     host_alias
820     target_alias
821     CC
822     CFLAGS
823     LDFLAGS
824     LIBS
825     CPPFLAGS
826     YACC
827     YFLAGS
828 michael 945 CPP'
829 michael 912
830 michael 1092
831 michael 912 # Initialize some variables set by options.
832     ac_init_help=
833     ac_init_version=false
834 db 941 ac_unrecognized_opts=
835     ac_unrecognized_sep=
836 michael 912 # The variables have the same names as the options, with
837     # dashes changed to underlines.
838     cache_file=/dev/null
839     exec_prefix=NONE
840     no_create=
841     no_recursion=
842     prefix=NONE
843     program_prefix=NONE
844     program_suffix=NONE
845     program_transform_name=s,x,x,
846     silent=
847     site=
848     srcdir=
849     verbose=
850     x_includes=NONE
851     x_libraries=NONE
852    
853     # Installation directory options.
854     # These are left unexpanded so users can "make install exec_prefix=/foo"
855     # and all the variables that are supposed to be based on exec_prefix
856     # by default will actually change.
857     # Use braces instead of parens because sh, perl, etc. also accept them.
858     # (The list follows the same order as the GNU Coding Standards.)
859     bindir='${exec_prefix}/bin'
860     sbindir='${exec_prefix}/sbin'
861     libexecdir='${exec_prefix}/libexec'
862     datarootdir='${prefix}/share'
863     datadir='${datarootdir}'
864     sysconfdir='${prefix}/etc'
865     sharedstatedir='${prefix}/com'
866     localstatedir='${prefix}/var'
867     includedir='${prefix}/include'
868     oldincludedir='/usr/include'
869     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
870     infodir='${datarootdir}/info'
871     htmldir='${docdir}'
872     dvidir='${docdir}'
873     pdfdir='${docdir}'
874     psdir='${docdir}'
875     libdir='${exec_prefix}/lib'
876     localedir='${datarootdir}/locale'
877     mandir='${datarootdir}/man'
878    
879     ac_prev=
880     ac_dashdash=
881     for ac_option
882     do
883     # If the previous option needs an argument, assign it.
884     if test -n "$ac_prev"; then
885     eval $ac_prev=\$ac_option
886     ac_prev=
887     continue
888     fi
889    
890     case $ac_option in
891 michael 1095 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
892     *=) ac_optarg= ;;
893     *) ac_optarg=yes ;;
894 michael 912 esac
895    
896     # Accept the important Cygnus configure options, so we can diagnose typos.
897    
898     case $ac_dashdash$ac_option in
899     --)
900     ac_dashdash=yes ;;
901    
902     -bindir | --bindir | --bindi | --bind | --bin | --bi)
903     ac_prev=bindir ;;
904     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
905     bindir=$ac_optarg ;;
906    
907     -build | --build | --buil | --bui | --bu)
908     ac_prev=build_alias ;;
909     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
910     build_alias=$ac_optarg ;;
911    
912     -cache-file | --cache-file | --cache-fil | --cache-fi \
913     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
914     ac_prev=cache_file ;;
915     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
916     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
917     cache_file=$ac_optarg ;;
918    
919     --config-cache | -C)
920     cache_file=config.cache ;;
921    
922     -datadir | --datadir | --datadi | --datad)
923     ac_prev=datadir ;;
924     -datadir=* | --datadir=* | --datadi=* | --datad=*)
925     datadir=$ac_optarg ;;
926    
927     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
928     | --dataroo | --dataro | --datar)
929     ac_prev=datarootdir ;;
930     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
931     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
932     datarootdir=$ac_optarg ;;
933    
934     -disable-* | --disable-*)
935 db 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
936 michael 912 # Reject names that are not valid shell variable names.
937 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 michael 1095 as_fn_error $? "invalid feature name: $ac_useropt"
939 db 941 ac_useropt_orig=$ac_useropt
940     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941     case $ac_user_opts in
942     *"
943     "enable_$ac_useropt"
944     "*) ;;
945     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
946     ac_unrecognized_sep=', ';;
947     esac
948     eval enable_$ac_useropt=no ;;
949 michael 912
950     -docdir | --docdir | --docdi | --doc | --do)
951     ac_prev=docdir ;;
952     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
953     docdir=$ac_optarg ;;
954    
955     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
956     ac_prev=dvidir ;;
957     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
958     dvidir=$ac_optarg ;;
959    
960     -enable-* | --enable-*)
961 db 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
962 michael 912 # Reject names that are not valid shell variable names.
963 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
964 michael 1095 as_fn_error $? "invalid feature name: $ac_useropt"
965 db 941 ac_useropt_orig=$ac_useropt
966     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
967     case $ac_user_opts in
968     *"
969     "enable_$ac_useropt"
970     "*) ;;
971     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
972     ac_unrecognized_sep=', ';;
973     esac
974     eval enable_$ac_useropt=\$ac_optarg ;;
975 michael 912
976     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
977     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
978     | --exec | --exe | --ex)
979     ac_prev=exec_prefix ;;
980     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
981     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
982     | --exec=* | --exe=* | --ex=*)
983     exec_prefix=$ac_optarg ;;
984    
985     -gas | --gas | --ga | --g)
986     # Obsolete; use --with-gas.
987     with_gas=yes ;;
988    
989     -help | --help | --hel | --he | -h)
990     ac_init_help=long ;;
991     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
992     ac_init_help=recursive ;;
993     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
994     ac_init_help=short ;;
995    
996     -host | --host | --hos | --ho)
997     ac_prev=host_alias ;;
998     -host=* | --host=* | --hos=* | --ho=*)
999     host_alias=$ac_optarg ;;
1000    
1001     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1002     ac_prev=htmldir ;;
1003     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1004     | --ht=*)
1005     htmldir=$ac_optarg ;;
1006    
1007     -includedir | --includedir | --includedi | --included | --include \
1008     | --includ | --inclu | --incl | --inc)
1009     ac_prev=includedir ;;
1010     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1011     | --includ=* | --inclu=* | --incl=* | --inc=*)
1012     includedir=$ac_optarg ;;
1013    
1014     -infodir | --infodir | --infodi | --infod | --info | --inf)
1015     ac_prev=infodir ;;
1016     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1017     infodir=$ac_optarg ;;
1018    
1019     -libdir | --libdir | --libdi | --libd)
1020     ac_prev=libdir ;;
1021     -libdir=* | --libdir=* | --libdi=* | --libd=*)
1022     libdir=$ac_optarg ;;
1023    
1024     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1025     | --libexe | --libex | --libe)
1026     ac_prev=libexecdir ;;
1027     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1028     | --libexe=* | --libex=* | --libe=*)
1029     libexecdir=$ac_optarg ;;
1030    
1031     -localedir | --localedir | --localedi | --localed | --locale)
1032     ac_prev=localedir ;;
1033     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1034     localedir=$ac_optarg ;;
1035    
1036     -localstatedir | --localstatedir | --localstatedi | --localstated \
1037     | --localstate | --localstat | --localsta | --localst | --locals)
1038     ac_prev=localstatedir ;;
1039     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1040     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1041     localstatedir=$ac_optarg ;;
1042    
1043     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1044     ac_prev=mandir ;;
1045     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1046     mandir=$ac_optarg ;;
1047    
1048     -nfp | --nfp | --nf)
1049     # Obsolete; use --without-fp.
1050     with_fp=no ;;
1051    
1052     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1053     | --no-cr | --no-c | -n)
1054     no_create=yes ;;
1055    
1056     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1057     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1058     no_recursion=yes ;;
1059    
1060     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1061     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1062     | --oldin | --oldi | --old | --ol | --o)
1063     ac_prev=oldincludedir ;;
1064     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1065     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1066     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1067     oldincludedir=$ac_optarg ;;
1068    
1069     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1070     ac_prev=prefix ;;
1071     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1072     prefix=$ac_optarg ;;
1073    
1074     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1075     | --program-pre | --program-pr | --program-p)
1076     ac_prev=program_prefix ;;
1077     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1078     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1079     program_prefix=$ac_optarg ;;
1080    
1081     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1082     | --program-suf | --program-su | --program-s)
1083     ac_prev=program_suffix ;;
1084     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1085     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1086     program_suffix=$ac_optarg ;;
1087    
1088     -program-transform-name | --program-transform-name \
1089     | --program-transform-nam | --program-transform-na \
1090     | --program-transform-n | --program-transform- \
1091     | --program-transform | --program-transfor \
1092     | --program-transfo | --program-transf \
1093     | --program-trans | --program-tran \
1094     | --progr-tra | --program-tr | --program-t)
1095     ac_prev=program_transform_name ;;
1096     -program-transform-name=* | --program-transform-name=* \
1097     | --program-transform-nam=* | --program-transform-na=* \
1098     | --program-transform-n=* | --program-transform-=* \
1099     | --program-transform=* | --program-transfor=* \
1100     | --program-transfo=* | --program-transf=* \
1101     | --program-trans=* | --program-tran=* \
1102     | --progr-tra=* | --program-tr=* | --program-t=*)
1103     program_transform_name=$ac_optarg ;;
1104    
1105     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1106     ac_prev=pdfdir ;;
1107     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1108     pdfdir=$ac_optarg ;;
1109    
1110     -psdir | --psdir | --psdi | --psd | --ps)
1111     ac_prev=psdir ;;
1112     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1113     psdir=$ac_optarg ;;
1114    
1115     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1116     | -silent | --silent | --silen | --sile | --sil)
1117     silent=yes ;;
1118    
1119     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1120     ac_prev=sbindir ;;
1121     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1122     | --sbi=* | --sb=*)
1123     sbindir=$ac_optarg ;;
1124    
1125     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1126     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1127     | --sharedst | --shareds | --shared | --share | --shar \
1128     | --sha | --sh)
1129     ac_prev=sharedstatedir ;;
1130     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1131     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1132     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1133     | --sha=* | --sh=*)
1134     sharedstatedir=$ac_optarg ;;
1135    
1136     -site | --site | --sit)
1137     ac_prev=site ;;
1138     -site=* | --site=* | --sit=*)
1139     site=$ac_optarg ;;
1140    
1141     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1142     ac_prev=srcdir ;;
1143     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1144     srcdir=$ac_optarg ;;
1145    
1146     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1147     | --syscon | --sysco | --sysc | --sys | --sy)
1148     ac_prev=sysconfdir ;;
1149     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1150     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1151     sysconfdir=$ac_optarg ;;
1152    
1153     -target | --target | --targe | --targ | --tar | --ta | --t)
1154     ac_prev=target_alias ;;
1155     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1156     target_alias=$ac_optarg ;;
1157    
1158     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1159     verbose=yes ;;
1160    
1161     -version | --version | --versio | --versi | --vers | -V)
1162     ac_init_version=: ;;
1163    
1164     -with-* | --with-*)
1165 db 941 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1166 michael 912 # Reject names that are not valid shell variable names.
1167 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1168 michael 1095 as_fn_error $? "invalid package name: $ac_useropt"
1169 db 941 ac_useropt_orig=$ac_useropt
1170     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1171     case $ac_user_opts in
1172     *"
1173     "with_$ac_useropt"
1174     "*) ;;
1175     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1176     ac_unrecognized_sep=', ';;
1177     esac
1178     eval with_$ac_useropt=\$ac_optarg ;;
1179 michael 912
1180     -without-* | --without-*)
1181 db 941 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1182 michael 912 # Reject names that are not valid shell variable names.
1183 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1184 michael 1095 as_fn_error $? "invalid package name: $ac_useropt"
1185 db 941 ac_useropt_orig=$ac_useropt
1186     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1187     case $ac_user_opts in
1188     *"
1189     "with_$ac_useropt"
1190     "*) ;;
1191     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1192     ac_unrecognized_sep=', ';;
1193     esac
1194     eval with_$ac_useropt=no ;;
1195 michael 912
1196     --x)
1197     # Obsolete; use --with-x.
1198     with_x=yes ;;
1199    
1200     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1201     | --x-incl | --x-inc | --x-in | --x-i)
1202     ac_prev=x_includes ;;
1203     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1204     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1205     x_includes=$ac_optarg ;;
1206    
1207     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1208     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1209     ac_prev=x_libraries ;;
1210     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1211     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1212     x_libraries=$ac_optarg ;;
1213    
1214 michael 1095 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1215     Try \`$0 --help' for more information"
1216 michael 912 ;;
1217    
1218     *=*)
1219     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1220     # Reject names that are not valid shell variable names.
1221 michael 967 case $ac_envvar in #(
1222     '' | [0-9]* | *[!_$as_cr_alnum]* )
1223 michael 1095 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1224 michael 967 esac
1225 michael 912 eval $ac_envvar=\$ac_optarg
1226     export $ac_envvar ;;
1227    
1228     *)
1229     # FIXME: should be removed in autoconf 3.0.
1230 db 941 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1231 michael 912 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1232 db 941 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1233 michael 1106 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1234 michael 912 ;;
1235    
1236     esac
1237     done
1238    
1239     if test -n "$ac_prev"; then
1240     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1241 michael 1095 as_fn_error $? "missing argument to $ac_option"
1242 michael 912 fi
1243    
1244 db 941 if test -n "$ac_unrecognized_opts"; then
1245     case $enable_option_checking in
1246     no) ;;
1247 michael 1095 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1248 michael 942 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1249 db 941 esac
1250     fi
1251    
1252     # Check all directory arguments for consistency.
1253 michael 912 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1254     datadir sysconfdir sharedstatedir localstatedir includedir \
1255     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1256     libdir localedir mandir
1257     do
1258     eval ac_val=\$$ac_var
1259 db 941 # Remove trailing slashes.
1260 michael 912 case $ac_val in
1261 db 941 */ )
1262     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1263     eval $ac_var=\$ac_val;;
1264     esac
1265     # Be sure to have absolute directory names.
1266     case $ac_val in
1267 michael 912 [\\/$]* | ?:[\\/]* ) continue;;
1268     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1269     esac
1270 michael 1095 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1271 michael 912 done
1272    
1273     # There might be people who depend on the old broken behavior: `$host'
1274     # used to hold the argument of --host etc.
1275     # FIXME: To remove some day.
1276     build=$build_alias
1277     host=$host_alias
1278     target=$target_alias
1279    
1280     # FIXME: To remove some day.
1281     if test "x$host_alias" != x; then
1282     if test "x$build_alias" = x; then
1283     cross_compiling=maybe
1284     elif test "x$build_alias" != "x$host_alias"; then
1285     cross_compiling=yes
1286     fi
1287     fi
1288    
1289     ac_tool_prefix=
1290     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1291    
1292     test "$silent" = yes && exec 6>/dev/null
1293    
1294    
1295     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296     ac_ls_di=`ls -di .` &&
1297     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 michael 1095 as_fn_error $? "working directory cannot be determined"
1299 michael 912 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 michael 1095 as_fn_error $? "pwd does not report name of working directory"
1301 michael 912
1302    
1303     # Find the source files, if location was not specified.
1304     if test -z "$srcdir"; then
1305     ac_srcdir_defaulted=yes
1306     # Try the directory containing this script, then the parent directory.
1307 db 941 ac_confdir=`$as_dirname -- "$as_myself" ||
1308     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1309     X"$as_myself" : 'X\(//\)[^/]' \| \
1310     X"$as_myself" : 'X\(//\)$' \| \
1311     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1312     $as_echo X"$as_myself" |
1313 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1314     s//\1/
1315     q
1316     }
1317     /^X\(\/\/\)[^/].*/{
1318     s//\1/
1319     q
1320     }
1321     /^X\(\/\/\)$/{
1322     s//\1/
1323     q
1324     }
1325     /^X\(\/\).*/{
1326     s//\1/
1327     q
1328     }
1329     s/.*/./; q'`
1330     srcdir=$ac_confdir
1331     if test ! -r "$srcdir/$ac_unique_file"; then
1332     srcdir=..
1333     fi
1334     else
1335     ac_srcdir_defaulted=no
1336     fi
1337     if test ! -r "$srcdir/$ac_unique_file"; then
1338     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 michael 1095 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1340 michael 912 fi
1341     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342     ac_abs_confdir=`(
1343 michael 1095 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1344 michael 912 pwd)`
1345     # When building in place, set srcdir=.
1346     if test "$ac_abs_confdir" = "$ac_pwd"; then
1347     srcdir=.
1348     fi
1349     # Remove unnecessary trailing slashes from srcdir.
1350     # Double slashes in file names in object file debugging info
1351     # mess up M-x gdb in Emacs.
1352     case $srcdir in
1353     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1354     esac
1355     for ac_var in $ac_precious_vars; do
1356     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1357     eval ac_env_${ac_var}_value=\$${ac_var}
1358     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1359     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1360     done
1361    
1362     #
1363     # Report the --help message.
1364     #
1365     if test "$ac_init_help" = "long"; then
1366     # Omit some internal or obsolete options to make the list less imposing.
1367     # This message is too long to be a string in the A/UX 3.1 sh.
1368     cat <<_ACEOF
1369 michael 1521 \`configure' configures ircd-hybrid 8.0.0rc1 to adapt to many kinds of systems.
1370 michael 912
1371     Usage: $0 [OPTION]... [VAR=VALUE]...
1372    
1373     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1374     VAR=VALUE. See below for descriptions of some of the useful variables.
1375    
1376     Defaults for the options are specified in brackets.
1377    
1378     Configuration:
1379     -h, --help display this help and exit
1380     --help=short display options specific to this package
1381     --help=recursive display the short help of all the included packages
1382     -V, --version display version information and exit
1383 michael 1095 -q, --quiet, --silent do not print \`checking ...' messages
1384 michael 912 --cache-file=FILE cache test results in FILE [disabled]
1385     -C, --config-cache alias for \`--cache-file=config.cache'
1386     -n, --no-create do not create output files
1387     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1388    
1389     Installation directories:
1390     --prefix=PREFIX install architecture-independent files in PREFIX
1391 db 941 [$ac_default_prefix]
1392 michael 912 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1393 db 941 [PREFIX]
1394 michael 912
1395     By default, \`make install' will install all the files in
1396     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1397     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1398     for instance \`--prefix=\$HOME'.
1399    
1400     For better control, use the options below.
1401    
1402     Fine tuning of the installation directories:
1403 db 941 --bindir=DIR user executables [EPREFIX/bin]
1404     --sbindir=DIR system admin executables [EPREFIX/sbin]
1405     --libexecdir=DIR program executables [EPREFIX/libexec]
1406     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1407     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1408     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1409     --libdir=DIR object code libraries [EPREFIX/lib]
1410     --includedir=DIR C header files [PREFIX/include]
1411     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1412     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1413     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1414     --infodir=DIR info documentation [DATAROOTDIR/info]
1415     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1416     --mandir=DIR man documentation [DATAROOTDIR/man]
1417     --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1418     --htmldir=DIR html documentation [DOCDIR]
1419     --dvidir=DIR dvi documentation [DOCDIR]
1420     --pdfdir=DIR pdf documentation [DOCDIR]
1421     --psdir=DIR ps documentation [DOCDIR]
1422 michael 912 _ACEOF
1423    
1424     cat <<\_ACEOF
1425    
1426     Program names:
1427     --program-prefix=PREFIX prepend PREFIX to installed program names
1428     --program-suffix=SUFFIX append SUFFIX to installed program names
1429     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1430    
1431     System types:
1432     --build=BUILD configure for building on BUILD [guessed]
1433     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1434     _ACEOF
1435     fi
1436    
1437     if test -n "$ac_init_help"; then
1438     case $ac_init_help in
1439 michael 1521 short | recursive ) echo "Configuration of ircd-hybrid 8.0.0rc1:";;
1440 michael 912 esac
1441     cat <<\_ACEOF
1442    
1443     Optional Features:
1444 db 941 --disable-option-checking ignore unrecognized --enable/--with options
1445 michael 912 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1446     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1447 michael 1373 --enable-maintainer-mode
1448     enable make rules and dependencies not useful (and
1449     sometimes confusing) to the casual installer
1450     --enable-dependency-tracking
1451     do not reject slow dependency extractors
1452     --disable-dependency-tracking
1453     speeds up one-time build
1454 michael 977 --enable-static[=PKGS] build static libraries [default=no]
1455 michael 945 --enable-shared[=PKGS] build shared libraries [default=yes]
1456 michael 912 --enable-fast-install[=PKGS]
1457     optimize for fast installation [default=yes]
1458     --disable-libtool-lock avoid locking (might break parallel builds)
1459 michael 945 --enable-ltdl-install install libltdl
1460 michael 1009 --disable-libpcre Disable PCRE support
1461 michael 912 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1462     --disable-openssl Disable OpenSSL support.
1463 michael 924 --enable-assert Enable assert() statements
1464 michael 912 --enable-kqueue Force kqueue usage.
1465     --enable-epoll Force epoll usage.
1466     --enable-devpoll Force devpoll usage.
1467     --enable-rtsigio Force rtsigio usage.
1468     --enable-poll Force poll usage.
1469     --enable-select Force select usage.
1470     --enable-halfops Enable halfops support.
1471     --enable-debugging Enable debugging.
1472     --enable-warnings Enable compiler warnings.
1473    
1474     Optional Packages:
1475     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1476     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1477 michael 1257 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1478 michael 912 both]
1479 michael 945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1480 michael 1106 --with-sysroot=DIR Search for dependent libraries within DIR
1481     (or the compiler's sysroot if not specified).
1482 michael 945 --with-included-ltdl use the GNU ltdl sources included here
1483     --with-ltdl-include=DIR use the ltdl headers installed in DIR
1484     --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1485 michael 912 --with-nicklen=<value> Set nickname length (default 9).
1486     --with-topiclen=<value> Set topic length (default 160).
1487    
1488     Some influential environment variables:
1489     CC C compiler command
1490     CFLAGS C compiler flags
1491     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1492     nonstandard directory <lib dir>
1493     LIBS libraries to pass to the linker, e.g. -l<library>
1494 michael 1033 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1495 michael 912 you have headers in a nonstandard directory <include dir>
1496 michael 1106 YACC The `Yet Another Compiler Compiler' implementation to use.
1497     Defaults to the first program found out of: `bison -y', `byacc',
1498     `yacc'.
1499 michael 912 YFLAGS The list of arguments that will be passed by default to $YACC.
1500     This script will default YFLAGS to the empty string to avoid a
1501     default value of `-d' given by some make applications.
1502     CPP C preprocessor
1503    
1504     Use these variables to override the choices made by `configure' or to help
1505     it to find libraries and programs with nonstandard names/locations.
1506    
1507 michael 1039 Report bugs to <bugs@ircd-hybrid.org>.
1508 michael 912 _ACEOF
1509     ac_status=$?
1510     fi
1511    
1512     if test "$ac_init_help" = "recursive"; then
1513     # If there are subdirs, report their specific --help.
1514     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1515 db 941 test -d "$ac_dir" ||
1516     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1517     continue
1518 michael 912 ac_builddir=.
1519    
1520     case "$ac_dir" in
1521     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522     *)
1523 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1524 michael 912 # A ".." for each directory in $ac_dir_suffix.
1525 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1526 michael 912 case $ac_top_builddir_sub in
1527     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529     esac ;;
1530     esac
1531     ac_abs_top_builddir=$ac_pwd
1532     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533     # for backward compatibility:
1534     ac_top_builddir=$ac_top_build_prefix
1535    
1536     case $srcdir in
1537     .) # We are building in place.
1538     ac_srcdir=.
1539     ac_top_srcdir=$ac_top_builddir_sub
1540     ac_abs_top_srcdir=$ac_pwd ;;
1541     [\\/]* | ?:[\\/]* ) # Absolute name.
1542     ac_srcdir=$srcdir$ac_dir_suffix;
1543     ac_top_srcdir=$srcdir
1544     ac_abs_top_srcdir=$srcdir ;;
1545     *) # Relative name.
1546     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547     ac_top_srcdir=$ac_top_build_prefix$srcdir
1548     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549     esac
1550     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551    
1552     cd "$ac_dir" || { ac_status=$?; continue; }
1553     # Check for guested configure.
1554     if test -f "$ac_srcdir/configure.gnu"; then
1555     echo &&
1556     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557     elif test -f "$ac_srcdir/configure"; then
1558     echo &&
1559     $SHELL "$ac_srcdir/configure" --help=recursive
1560     else
1561 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 michael 912 fi || ac_status=$?
1563     cd "$ac_pwd" || { ac_status=$?; break; }
1564     done
1565     fi
1566    
1567     test -n "$ac_init_help" && exit $ac_status
1568     if $ac_init_version; then
1569     cat <<\_ACEOF
1570 michael 1521 ircd-hybrid configure 8.0.0rc1
1571 michael 1373 generated by GNU Autoconf 2.69
1572 michael 912
1573 michael 1373 Copyright (C) 2012 Free Software Foundation, Inc.
1574 michael 912 This configure script is free software; the Free Software Foundation
1575     gives unlimited permission to copy, distribute and modify it.
1576     _ACEOF
1577     exit
1578     fi
1579 michael 967
1580     ## ------------------------ ##
1581     ## Autoconf initialization. ##
1582     ## ------------------------ ##
1583    
1584     # ac_fn_c_try_compile LINENO
1585     # --------------------------
1586     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1587     ac_fn_c_try_compile ()
1588     {
1589     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1590     rm -f conftest.$ac_objext
1591     if { { ac_try="$ac_compile"
1592     case "(($ac_try" in
1593     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1594     *) ac_try_echo=$ac_try;;
1595     esac
1596     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1597     $as_echo "$ac_try_echo"; } >&5
1598     (eval "$ac_compile") 2>conftest.err
1599     ac_status=$?
1600     if test -s conftest.err; then
1601     grep -v '^ *+' conftest.err >conftest.er1
1602     cat conftest.er1 >&5
1603     mv -f conftest.er1 conftest.err
1604     fi
1605     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1606     test $ac_status = 0; } && {
1607     test -z "$ac_c_werror_flag" ||
1608     test ! -s conftest.err
1609     } && test -s conftest.$ac_objext; then :
1610     ac_retval=0
1611     else
1612     $as_echo "$as_me: failed program was:" >&5
1613     sed 's/^/| /' conftest.$ac_ext >&5
1614    
1615     ac_retval=1
1616     fi
1617 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1618 michael 1033 as_fn_set_status $ac_retval
1619 michael 967
1620     } # ac_fn_c_try_compile
1621    
1622     # ac_fn_c_try_link LINENO
1623     # -----------------------
1624     # Try to link conftest.$ac_ext, and return whether this succeeded.
1625     ac_fn_c_try_link ()
1626     {
1627     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628     rm -f conftest.$ac_objext conftest$ac_exeext
1629     if { { ac_try="$ac_link"
1630     case "(($ac_try" in
1631     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632     *) ac_try_echo=$ac_try;;
1633     esac
1634     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635     $as_echo "$ac_try_echo"; } >&5
1636     (eval "$ac_link") 2>conftest.err
1637     ac_status=$?
1638     if test -s conftest.err; then
1639     grep -v '^ *+' conftest.err >conftest.er1
1640     cat conftest.er1 >&5
1641     mv -f conftest.er1 conftest.err
1642     fi
1643     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644     test $ac_status = 0; } && {
1645     test -z "$ac_c_werror_flag" ||
1646     test ! -s conftest.err
1647     } && test -s conftest$ac_exeext && {
1648     test "$cross_compiling" = yes ||
1649 michael 1373 test -x conftest$ac_exeext
1650 michael 967 }; then :
1651     ac_retval=0
1652     else
1653     $as_echo "$as_me: failed program was:" >&5
1654     sed 's/^/| /' conftest.$ac_ext >&5
1655    
1656     ac_retval=1
1657     fi
1658     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1659     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1660     # interfere with the next link command; also delete a directory that is
1661     # left behind by Apple's compiler. We do this before executing the actions.
1662     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1663 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1664 michael 1033 as_fn_set_status $ac_retval
1665 michael 967
1666     } # ac_fn_c_try_link
1667    
1668     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1669     # -------------------------------------------------------
1670     # Tests whether HEADER exists and can be compiled using the include files in
1671     # INCLUDES, setting the cache variable VAR accordingly.
1672     ac_fn_c_check_header_compile ()
1673     {
1674     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676     $as_echo_n "checking for $2... " >&6; }
1677 michael 1106 if eval \${$3+:} false; then :
1678 michael 967 $as_echo_n "(cached) " >&6
1679     else
1680     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1681     /* end confdefs.h. */
1682     $4
1683     #include <$2>
1684     _ACEOF
1685     if ac_fn_c_try_compile "$LINENO"; then :
1686     eval "$3=yes"
1687     else
1688     eval "$3=no"
1689     fi
1690     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1691     fi
1692     eval ac_res=\$$3
1693     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694     $as_echo "$ac_res" >&6; }
1695 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696 michael 967
1697     } # ac_fn_c_check_header_compile
1698    
1699     # ac_fn_c_try_cpp LINENO
1700     # ----------------------
1701     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1702     ac_fn_c_try_cpp ()
1703     {
1704     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705     if { { ac_try="$ac_cpp conftest.$ac_ext"
1706     case "(($ac_try" in
1707     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708     *) ac_try_echo=$ac_try;;
1709     esac
1710     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711     $as_echo "$ac_try_echo"; } >&5
1712     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1713     ac_status=$?
1714     if test -s conftest.err; then
1715     grep -v '^ *+' conftest.err >conftest.er1
1716     cat conftest.er1 >&5
1717     mv -f conftest.er1 conftest.err
1718     fi
1719     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1720 michael 1095 test $ac_status = 0; } > conftest.i && {
1721 michael 967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1722     test ! -s conftest.err
1723     }; then :
1724     ac_retval=0
1725     else
1726     $as_echo "$as_me: failed program was:" >&5
1727     sed 's/^/| /' conftest.$ac_ext >&5
1728    
1729     ac_retval=1
1730     fi
1731 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 michael 1033 as_fn_set_status $ac_retval
1733 michael 967
1734     } # ac_fn_c_try_cpp
1735    
1736     # ac_fn_c_try_run LINENO
1737     # ----------------------
1738     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1739     # that executables *can* be run.
1740     ac_fn_c_try_run ()
1741     {
1742     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743     if { { ac_try="$ac_link"
1744     case "(($ac_try" in
1745     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746     *) ac_try_echo=$ac_try;;
1747     esac
1748     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749     $as_echo "$ac_try_echo"; } >&5
1750     (eval "$ac_link") 2>&5
1751     ac_status=$?
1752     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1754     { { case "(($ac_try" in
1755     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756     *) ac_try_echo=$ac_try;;
1757     esac
1758     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759     $as_echo "$ac_try_echo"; } >&5
1760     (eval "$ac_try") 2>&5
1761     ac_status=$?
1762     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763     test $ac_status = 0; }; }; then :
1764     ac_retval=0
1765     else
1766     $as_echo "$as_me: program exited with status $ac_status" >&5
1767     $as_echo "$as_me: failed program was:" >&5
1768     sed 's/^/| /' conftest.$ac_ext >&5
1769    
1770     ac_retval=$ac_status
1771     fi
1772     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1773 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1774 michael 1033 as_fn_set_status $ac_retval
1775 michael 967
1776     } # ac_fn_c_try_run
1777    
1778     # ac_fn_c_check_func LINENO FUNC VAR
1779     # ----------------------------------
1780     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1781     ac_fn_c_check_func ()
1782     {
1783     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1784     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1785     $as_echo_n "checking for $2... " >&6; }
1786 michael 1106 if eval \${$3+:} false; then :
1787 michael 967 $as_echo_n "(cached) " >&6
1788     else
1789     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790     /* end confdefs.h. */
1791     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1792     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1793     #define $2 innocuous_$2
1794    
1795     /* System header to define __stub macros and hopefully few prototypes,
1796     which can conflict with char $2 (); below.
1797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1798     <limits.h> exists even on freestanding compilers. */
1799    
1800     #ifdef __STDC__
1801     # include <limits.h>
1802     #else
1803     # include <assert.h>
1804     #endif
1805    
1806     #undef $2
1807    
1808     /* Override any GCC internal prototype to avoid an error.
1809     Use char because int might match the return type of a GCC
1810     builtin and then its argument prototype would still apply. */
1811     #ifdef __cplusplus
1812     extern "C"
1813     #endif
1814     char $2 ();
1815     /* The GNU C library defines this for functions which it implements
1816     to always fail with ENOSYS. Some functions are actually named
1817     something starting with __ and the normal name is an alias. */
1818     #if defined __stub_$2 || defined __stub___$2
1819     choke me
1820     #endif
1821    
1822     int
1823     main ()
1824     {
1825     return $2 ();
1826     ;
1827     return 0;
1828     }
1829     _ACEOF
1830     if ac_fn_c_try_link "$LINENO"; then :
1831     eval "$3=yes"
1832     else
1833     eval "$3=no"
1834     fi
1835     rm -f core conftest.err conftest.$ac_objext \
1836     conftest$ac_exeext conftest.$ac_ext
1837     fi
1838     eval ac_res=\$$3
1839     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840     $as_echo "$ac_res" >&6; }
1841 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 michael 967
1843     } # ac_fn_c_check_func
1844    
1845 michael 1095 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1846     # ---------------------------------------------
1847     # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1848     # accordingly.
1849 michael 967 ac_fn_c_check_decl ()
1850     {
1851     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 michael 1095 as_decl_name=`echo $2|sed 's/ *(.*//'`
1853     as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1855     $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1856 michael 1106 if eval \${$3+:} false; then :
1857 michael 967 $as_echo_n "(cached) " >&6
1858     else
1859     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1860     /* end confdefs.h. */
1861     $4
1862     int
1863     main ()
1864     {
1865 michael 1095 #ifndef $as_decl_name
1866     #ifdef __cplusplus
1867     (void) $as_decl_use;
1868     #else
1869     (void) $as_decl_name;
1870 michael 967 #endif
1871 michael 1095 #endif
1872 michael 967
1873     ;
1874     return 0;
1875     }
1876     _ACEOF
1877     if ac_fn_c_try_compile "$LINENO"; then :
1878     eval "$3=yes"
1879     else
1880     eval "$3=no"
1881     fi
1882     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1883     fi
1884     eval ac_res=\$$3
1885     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886     $as_echo "$ac_res" >&6; }
1887 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 michael 967
1889     } # ac_fn_c_check_decl
1890    
1891     # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1892     # -------------------------------------------
1893     # Tests whether TYPE exists after having included INCLUDES, setting cache
1894     # variable VAR accordingly.
1895     ac_fn_c_check_type ()
1896     {
1897     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899     $as_echo_n "checking for $2... " >&6; }
1900 michael 1106 if eval \${$3+:} false; then :
1901 michael 967 $as_echo_n "(cached) " >&6
1902     else
1903     eval "$3=no"
1904     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1905     /* end confdefs.h. */
1906     $4
1907     int
1908     main ()
1909     {
1910     if (sizeof ($2))
1911     return 0;
1912     ;
1913     return 0;
1914     }
1915     _ACEOF
1916     if ac_fn_c_try_compile "$LINENO"; then :
1917     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918     /* end confdefs.h. */
1919     $4
1920     int
1921     main ()
1922     {
1923     if (sizeof (($2)))
1924     return 0;
1925     ;
1926     return 0;
1927     }
1928     _ACEOF
1929     if ac_fn_c_try_compile "$LINENO"; then :
1930    
1931     else
1932     eval "$3=yes"
1933     fi
1934     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1935     fi
1936     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937     fi
1938     eval ac_res=\$$3
1939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1940     $as_echo "$ac_res" >&6; }
1941 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 michael 967
1943     } # ac_fn_c_check_type
1944    
1945     # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1946     # ----------------------------------------------------
1947     # Tries to find if the field MEMBER exists in type AGGR, after including
1948     # INCLUDES, setting cache variable VAR accordingly.
1949     ac_fn_c_check_member ()
1950     {
1951     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1952     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1953     $as_echo_n "checking for $2.$3... " >&6; }
1954 michael 1106 if eval \${$4+:} false; then :
1955 michael 967 $as_echo_n "(cached) " >&6
1956     else
1957     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1958     /* end confdefs.h. */
1959     $5
1960     int
1961     main ()
1962     {
1963     static $2 ac_aggr;
1964     if (ac_aggr.$3)
1965     return 0;
1966     ;
1967     return 0;
1968     }
1969     _ACEOF
1970     if ac_fn_c_try_compile "$LINENO"; then :
1971     eval "$4=yes"
1972     else
1973     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974     /* end confdefs.h. */
1975     $5
1976     int
1977     main ()
1978     {
1979     static $2 ac_aggr;
1980     if (sizeof ac_aggr.$3)
1981     return 0;
1982     ;
1983     return 0;
1984     }
1985     _ACEOF
1986     if ac_fn_c_try_compile "$LINENO"; then :
1987     eval "$4=yes"
1988     else
1989     eval "$4=no"
1990     fi
1991     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992     fi
1993     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1994     fi
1995     eval ac_res=\$$4
1996     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1997     $as_echo "$ac_res" >&6; }
1998 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 michael 967
2000     } # ac_fn_c_check_member
2001    
2002     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2003     # -------------------------------------------------------
2004     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2005     # the include files in INCLUDES and setting the cache variable VAR
2006     # accordingly.
2007     ac_fn_c_check_header_mongrel ()
2008     {
2009     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 michael 1106 if eval \${$3+:} false; then :
2011 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2012     $as_echo_n "checking for $2... " >&6; }
2013 michael 1106 if eval \${$3+:} false; then :
2014 michael 967 $as_echo_n "(cached) " >&6
2015     fi
2016     eval ac_res=\$$3
2017     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018     $as_echo "$ac_res" >&6; }
2019     else
2020     # Is the header compilable?
2021     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2022     $as_echo_n "checking $2 usability... " >&6; }
2023     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024     /* end confdefs.h. */
2025     $4
2026     #include <$2>
2027     _ACEOF
2028     if ac_fn_c_try_compile "$LINENO"; then :
2029     ac_header_compiler=yes
2030     else
2031     ac_header_compiler=no
2032     fi
2033     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2035     $as_echo "$ac_header_compiler" >&6; }
2036    
2037     # Is the header present?
2038     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2039     $as_echo_n "checking $2 presence... " >&6; }
2040     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2041     /* end confdefs.h. */
2042     #include <$2>
2043     _ACEOF
2044     if ac_fn_c_try_cpp "$LINENO"; then :
2045     ac_header_preproc=yes
2046     else
2047     ac_header_preproc=no
2048     fi
2049 michael 1095 rm -f conftest.err conftest.i conftest.$ac_ext
2050 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2051     $as_echo "$ac_header_preproc" >&6; }
2052    
2053     # So? What about this header?
2054     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2055     yes:no: )
2056     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2057     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2058     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2059     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2060     ;;
2061     no:yes:* )
2062     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2063     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2064     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2065     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2066     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2067     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2068     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2069     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2070     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2071     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2072 michael 1095 ( $as_echo "## ----------------------------------- ##
2073 michael 1039 ## Report this to bugs@ircd-hybrid.org ##
2074 michael 1095 ## ----------------------------------- ##"
2075 michael 1039 ) | sed "s/^/$as_me: WARNING: /" >&2
2076 michael 967 ;;
2077     esac
2078     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079     $as_echo_n "checking for $2... " >&6; }
2080 michael 1106 if eval \${$3+:} false; then :
2081 michael 967 $as_echo_n "(cached) " >&6
2082     else
2083     eval "$3=\$ac_header_compiler"
2084     fi
2085     eval ac_res=\$$3
2086     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087     $as_echo "$ac_res" >&6; }
2088     fi
2089 michael 1106 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 michael 967
2091     } # ac_fn_c_check_header_mongrel
2092 michael 912 cat >config.log <<_ACEOF
2093     This file contains any messages produced by compilers while
2094     running configure, to aid debugging if configure makes a mistake.
2095    
2096 michael 1521 It was created by ircd-hybrid $as_me 8.0.0rc1, which was
2097 michael 1373 generated by GNU Autoconf 2.69. Invocation command line was
2098 michael 912
2099     $ $0 $@
2100    
2101     _ACEOF
2102     exec 5>>config.log
2103     {
2104     cat <<_ASUNAME
2105     ## --------- ##
2106     ## Platform. ##
2107     ## --------- ##
2108    
2109     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2110     uname -m = `(uname -m) 2>/dev/null || echo unknown`
2111     uname -r = `(uname -r) 2>/dev/null || echo unknown`
2112     uname -s = `(uname -s) 2>/dev/null || echo unknown`
2113     uname -v = `(uname -v) 2>/dev/null || echo unknown`
2114    
2115     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2116     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2117    
2118     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2119     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2120     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2121     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2122     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2123     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2124     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2125    
2126     _ASUNAME
2127    
2128     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2129     for as_dir in $PATH
2130     do
2131     IFS=$as_save_IFS
2132     test -z "$as_dir" && as_dir=.
2133 michael 967 $as_echo "PATH: $as_dir"
2134     done
2135 michael 912 IFS=$as_save_IFS
2136    
2137     } >&5
2138    
2139     cat >&5 <<_ACEOF
2140    
2141    
2142     ## ----------- ##
2143     ## Core tests. ##
2144     ## ----------- ##
2145    
2146     _ACEOF
2147    
2148    
2149     # Keep a trace of the command line.
2150     # Strip out --no-create and --no-recursion so they do not pile up.
2151     # Strip out --silent because we don't want to record it for future runs.
2152     # Also quote any args containing shell meta-characters.
2153     # Make two passes to allow for proper duplicate-argument suppression.
2154     ac_configure_args=
2155     ac_configure_args0=
2156     ac_configure_args1=
2157     ac_must_keep_next=false
2158     for ac_pass in 1 2
2159     do
2160     for ac_arg
2161     do
2162     case $ac_arg in
2163     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2164     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2165     | -silent | --silent | --silen | --sile | --sil)
2166     continue ;;
2167     *\'*)
2168 db 941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2169 michael 912 esac
2170     case $ac_pass in
2171 michael 967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2172 michael 912 2)
2173 michael 967 as_fn_append ac_configure_args1 " '$ac_arg'"
2174 michael 912 if test $ac_must_keep_next = true; then
2175     ac_must_keep_next=false # Got value, back to normal.
2176     else
2177     case $ac_arg in
2178     *=* | --config-cache | -C | -disable-* | --disable-* \
2179     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2180     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2181     | -with-* | --with-* | -without-* | --without-* | --x)
2182     case "$ac_configure_args0 " in
2183     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2184     esac
2185     ;;
2186     -* ) ac_must_keep_next=true ;;
2187     esac
2188     fi
2189 michael 967 as_fn_append ac_configure_args " '$ac_arg'"
2190 michael 912 ;;
2191     esac
2192     done
2193     done
2194 michael 967 { ac_configure_args0=; unset ac_configure_args0;}
2195     { ac_configure_args1=; unset ac_configure_args1;}
2196 michael 912
2197     # When interrupted or exit'd, cleanup temporary files, and complete
2198     # config.log. We remove comments because anyway the quotes in there
2199     # would cause problems or look ugly.
2200     # WARNING: Use '\'' to represent an apostrophe within the trap.
2201     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2202     trap 'exit_status=$?
2203     # Save into config.log some information that might help in debugging.
2204     {
2205     echo
2206    
2207 michael 1095 $as_echo "## ---------------- ##
2208 michael 912 ## Cache variables. ##
2209 michael 1095 ## ---------------- ##"
2210 michael 912 echo
2211     # The following way of writing the cache mishandles newlines in values,
2212     (
2213     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2214     eval ac_val=\$$ac_var
2215     case $ac_val in #(
2216     *${as_nl}*)
2217     case $ac_var in #(
2218 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2219 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2220 michael 912 esac
2221     case $ac_var in #(
2222     _ | IFS | as_nl) ;; #(
2223 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2224 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
2225 michael 912 esac ;;
2226     esac
2227     done
2228     (set) 2>&1 |
2229     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2230     *${as_nl}ac_space=\ *)
2231     sed -n \
2232     "s/'\''/'\''\\\\'\'''\''/g;
2233     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2234     ;; #(
2235     *)
2236     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2237     ;;
2238     esac |
2239     sort
2240     )
2241     echo
2242    
2243 michael 1095 $as_echo "## ----------------- ##
2244 michael 912 ## Output variables. ##
2245 michael 1095 ## ----------------- ##"
2246 michael 912 echo
2247     for ac_var in $ac_subst_vars
2248     do
2249     eval ac_val=\$$ac_var
2250     case $ac_val in
2251 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2252 michael 912 esac
2253 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2254 michael 912 done | sort
2255     echo
2256    
2257     if test -n "$ac_subst_files"; then
2258 michael 1095 $as_echo "## ------------------- ##
2259 michael 912 ## File substitutions. ##
2260 michael 1095 ## ------------------- ##"
2261 michael 912 echo
2262     for ac_var in $ac_subst_files
2263     do
2264     eval ac_val=\$$ac_var
2265     case $ac_val in
2266 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2267 michael 912 esac
2268 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2269 michael 912 done | sort
2270     echo
2271     fi
2272    
2273     if test -s confdefs.h; then
2274 michael 1095 $as_echo "## ----------- ##
2275 michael 912 ## confdefs.h. ##
2276 michael 1095 ## ----------- ##"
2277 michael 912 echo
2278     cat confdefs.h
2279     echo
2280     fi
2281     test "$ac_signal" != 0 &&
2282 db 941 $as_echo "$as_me: caught signal $ac_signal"
2283     $as_echo "$as_me: exit $exit_status"
2284 michael 912 } >&5
2285     rm -f core *.core core.conftest.* &&
2286     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2287     exit $exit_status
2288     ' 0
2289     for ac_signal in 1 2 13 15; do
2290 michael 967 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2291 michael 912 done
2292     ac_signal=0
2293    
2294     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2295     rm -f -r conftest* confdefs.h
2296    
2297 michael 967 $as_echo "/* confdefs.h */" > confdefs.h
2298    
2299 michael 912 # Predefined preprocessor variables.
2300    
2301     cat >>confdefs.h <<_ACEOF
2302     #define PACKAGE_NAME "$PACKAGE_NAME"
2303     _ACEOF
2304    
2305     cat >>confdefs.h <<_ACEOF
2306     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2307     _ACEOF
2308    
2309     cat >>confdefs.h <<_ACEOF
2310     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2311     _ACEOF
2312    
2313     cat >>confdefs.h <<_ACEOF
2314     #define PACKAGE_STRING "$PACKAGE_STRING"
2315     _ACEOF
2316    
2317     cat >>confdefs.h <<_ACEOF
2318     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2319     _ACEOF
2320    
2321 michael 967 cat >>confdefs.h <<_ACEOF
2322     #define PACKAGE_URL "$PACKAGE_URL"
2323     _ACEOF
2324 michael 912
2325 michael 967
2326 michael 912 # Let the site file select an alternate cache file if it wants to.
2327 db 941 # Prefer an explicitly selected file to automatically selected ones.
2328     ac_site_file1=NONE
2329     ac_site_file2=NONE
2330 michael 912 if test -n "$CONFIG_SITE"; then
2331 michael 1095 # We do not want a PATH search for config.site.
2332     case $CONFIG_SITE in #((
2333     -*) ac_site_file1=./$CONFIG_SITE;;
2334     */*) ac_site_file1=$CONFIG_SITE;;
2335     *) ac_site_file1=./$CONFIG_SITE;;
2336     esac
2337 michael 912 elif test "x$prefix" != xNONE; then
2338 db 941 ac_site_file1=$prefix/share/config.site
2339     ac_site_file2=$prefix/etc/config.site
2340 michael 912 else
2341 db 941 ac_site_file1=$ac_default_prefix/share/config.site
2342     ac_site_file2=$ac_default_prefix/etc/config.site
2343 michael 912 fi
2344 db 941 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2345 michael 912 do
2346 db 941 test "x$ac_site_file" = xNONE && continue
2347 michael 1033 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2348 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2349 db 941 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2350 michael 912 sed 's/^/| /' "$ac_site_file" >&5
2351 michael 1095 . "$ac_site_file" \
2352     || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2353     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2354     as_fn_error $? "failed to load site script $ac_site_file
2355     See \`config.log' for more details" "$LINENO" 5; }
2356 michael 912 fi
2357     done
2358    
2359     if test -r "$cache_file"; then
2360 michael 1033 # Some versions of bash will fail to source /dev/null (special files
2361     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2362     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2363 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2364 db 941 $as_echo "$as_me: loading cache $cache_file" >&6;}
2365 michael 912 case $cache_file in
2366     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2367     *) . "./$cache_file";;
2368     esac
2369     fi
2370     else
2371 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2372 db 941 $as_echo "$as_me: creating cache $cache_file" >&6;}
2373 michael 912 >$cache_file
2374     fi
2375    
2376 michael 967 as_fn_append ac_func_list " mmap"
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 michael 912 # 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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2399 db 941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2400 michael 912 ac_cache_corrupted=: ;;
2401     ,set)
2402 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2403 db 941 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2404 michael 912 ac_cache_corrupted=: ;;
2405     ,);;
2406     *)
2407     if test "x$ac_old_val" != "x$ac_new_val"; then
2408 db 941 # 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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2413 db 941 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2414     ac_cache_corrupted=:
2415     else
2416 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2417 db 941 $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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2421 db 941 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2422 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2423 db 941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2424 michael 912 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 db 941 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2430 michael 912 *) 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 michael 967 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2435 michael 912 esac
2436     fi
2437     done
2438     if $ac_cache_corrupted; then
2439 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2442 db 941 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2443 michael 1095 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2444 michael 912 fi
2445 michael 967 ## -------------------- ##
2446     ## Main body of script. ##
2447     ## -------------------- ##
2448 michael 912
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 michael 1373 am__api_version='1.12'
2457 michael 912
2458     ac_aux_dir=
2459     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2460 michael 1095 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 michael 912 done
2474     if test -z "$ac_aux_dir"; then
2475 michael 1095 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2476 michael 912 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 db 941 # Reject install programs that cannot install multiple files.
2501 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2502 db 941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2503 michael 912 if test -z "$INSTALL"; then
2504 michael 1106 if ${ac_cv_path_install+:} false; then :
2505 db 941 $as_echo_n "(cached) " >&6
2506 michael 912 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 michael 967 # Account for people who put trailing slashes in PATH elements.
2513     case $as_dir/ in #((
2514     ./ | .// | /[cC]/* | \
2515 michael 912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2516 michael 967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2517 michael 912 /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 michael 1373 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2525 michael 912 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 db 941 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 michael 912 fi
2547     fi
2548     done
2549     done
2550     ;;
2551     esac
2552 db 941
2553 michael 967 done
2554 michael 912 IFS=$as_save_IFS
2555    
2556 db 941 rm -rf conftest.one conftest.two conftest.dir
2557 michael 912
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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2570 db 941 $as_echo "$INSTALL" >&6; }
2571 michael 912
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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2581 db 941 $as_echo_n "checking whether build environment is sane... " >&6; }
2582 michael 945 # 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 michael 1095 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2589 michael 945 esac
2590     case $srcdir in
2591     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2592 michael 1373 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2593 michael 945 esac
2594    
2595 michael 1373 # Do 'set' in a subshell so we don't clobber the current shell's
2596 michael 912 # 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 michael 1373 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 michael 912
2612 michael 1373 # 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 michael 912 test "$2" = conftest.file
2627     )
2628     then
2629     # Ok.
2630     :
2631     else
2632 michael 1095 as_fn_error $? "newly created file is older than distributed files!
2633 michael 967 Check your system clock" "$LINENO" 5
2634 michael 912 fi
2635 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2636 db 941 $as_echo "yes" >&6; }
2637 michael 1373 # 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 michael 912 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 db 941 # Double any \ or $.
2653 michael 912 # By default was `s,x,x', remove it if useless.
2654 db 941 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2655     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2656 michael 912
2657     # expand $ac_aux_dir to an absolute path
2658     am_aux_dir=`cd $ac_aux_dir && pwd`
2659    
2660 michael 945 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 michael 912 # Use eval to expand $SHELL
2669     if eval "$MISSING --run true"; then
2670     am_missing_run="$MISSING --run "
2671     else
2672     am_missing_run=
2673 michael 1373 { $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 michael 912 fi
2676    
2677 michael 945 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 michael 1373 # Installed binaries are usually stripped using 'strip' when the user
2687     # run "make install-strip". However 'strip' might not be the right
2688 michael 945 # tool to use in cross-compilation environments, therefore Automake
2689 michael 1373 # will honor the 'STRIP' environment variable to overrule this program.
2690 michael 945 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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2695 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2696 michael 1106 if ${ac_cv_prog_STRIP+:} false; then :
2697 michael 945 $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 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2708 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2709 michael 945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2710 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2711 michael 945 break 2
2712     fi
2713     done
2714 michael 967 done
2715 michael 945 IFS=$as_save_IFS
2716    
2717     fi
2718     fi
2719     STRIP=$ac_cv_prog_STRIP
2720     if test -n "$STRIP"; then
2721 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2722 michael 945 $as_echo "$STRIP" >&6; }
2723     else
2724 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2725 michael 945 $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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2736 michael 1106 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2737 michael 945 $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 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2748 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 michael 945 ac_cv_prog_ac_ct_STRIP="strip"
2750 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 michael 945 break 2
2752     fi
2753     done
2754 michael 967 done
2755 michael 945 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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2762 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
2763     else
2764 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 michael 945 $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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2774 michael 945 $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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2787 db 941 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2788 michael 912 if test -z "$MKDIR_P"; then
2789 michael 1106 if ${ac_cv_path_mkdir+:} false; then :
2790 db 941 $as_echo_n "(cached) " >&6
2791 michael 912 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 michael 967 for ac_prog in mkdir gmkdir; do
2798 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
2799 michael 1373 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2800 michael 912 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 michael 967 done
2810 michael 912 IFS=$as_save_IFS
2811    
2812     fi
2813    
2814 michael 1033 test -d ./--version && rmdir ./--version
2815 michael 912 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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2826 db 941 $as_echo "$MKDIR_P" >&6; }
2827 michael 912
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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2833 db 941 $as_echo_n "checking for $ac_word... " >&6; }
2834 michael 1106 if ${ac_cv_prog_AWK+:} false; then :
2835 db 941 $as_echo_n "(cached) " >&6
2836 michael 912 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 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2846 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2847 michael 912 ac_cv_prog_AWK="$ac_prog"
2848 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2849 michael 912 break 2
2850     fi
2851     done
2852 michael 967 done
2853 michael 912 IFS=$as_save_IFS
2854    
2855     fi
2856     fi
2857     AWK=$ac_cv_prog_AWK
2858     if test -n "$AWK"; then
2859 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2860 db 941 $as_echo "$AWK" >&6; }
2861 michael 912 else
2862 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2863 db 941 $as_echo "no" >&6; }
2864 michael 912 fi
2865    
2866    
2867     test -n "$AWK" && break
2868     done
2869    
2870 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2871 db 941 $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 michael 1106 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2875 db 941 $as_echo_n "(cached) " >&6
2876 michael 912 else
2877     cat >conftest.make <<\_ACEOF
2878     SHELL = /bin/sh
2879     all:
2880     @echo '@@@%%%=$(MAKE)=@@@%%%'
2881     _ACEOF
2882 michael 1095 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2883 michael 912 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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2893 db 941 $as_echo "yes" >&6; }
2894 michael 912 SET_MAKE=
2895     else
2896 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2897 db 941 $as_echo "no" >&6; }
2898 michael 912 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     if test "`cd $srcdir && pwd`" != "`pwd`"; then
2911     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2912     # is not polluted with repeated "-I."
2913     am__isrc=' -I$(srcdir)'
2914     # test to see if srcdir already configured
2915     if test -f $srcdir/config.status; then
2916 michael 1095 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2917 michael 912 fi
2918     fi
2919    
2920     # test whether we have cygpath
2921     if test -z "$CYGPATH_W"; then
2922     if (cygpath --version) >/dev/null 2>/dev/null; then
2923     CYGPATH_W='cygpath -w'
2924     else
2925     CYGPATH_W=echo
2926     fi
2927     fi
2928    
2929    
2930     # Define the identity of the package.
2931     PACKAGE='ircd-hybrid'
2932 michael 1521 VERSION='8.0.0rc1'
2933 michael 912
2934    
2935     cat >>confdefs.h <<_ACEOF
2936     #define PACKAGE "$PACKAGE"
2937     _ACEOF
2938    
2939    
2940     cat >>confdefs.h <<_ACEOF
2941     #define VERSION "$VERSION"
2942     _ACEOF
2943    
2944     # Some tools Automake needs.
2945    
2946     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2947    
2948    
2949     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2950    
2951    
2952     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2953    
2954    
2955     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2956    
2957    
2958     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2959    
2960 michael 1462 # For better backward compatibility. To be removed once Automake 1.9.x
2961     # dies out for good. For more background, see:
2962     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2963     # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2964     mkdir_p='$(MKDIR_P)'
2965    
2966 michael 912 # We need awk for the "check" target. The system "awk" is bad on
2967     # some platforms.
2968 michael 1292 # Always define AMTAR for backward compatibility. Yes, it's still used
2969     # in the wild :-( We should find a proper way to deprecate it ...
2970     AMTAR='$${TAR-tar}'
2971 michael 912
2972 michael 1292 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2973 michael 912
2974    
2975    
2976    
2977    
2978    
2979 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2980 db 941 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2981 michael 912 # Check whether --enable-maintainer-mode was given.
2982 michael 967 if test "${enable_maintainer_mode+set}" = set; then :
2983 michael 912 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2984     else
2985     USE_MAINTAINER_MODE=no
2986     fi
2987    
2988 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2989 db 941 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2990 michael 912 if test $USE_MAINTAINER_MODE = yes; then
2991     MAINTAINER_MODE_TRUE=
2992     MAINTAINER_MODE_FALSE='#'
2993     else
2994     MAINTAINER_MODE_TRUE='#'
2995     MAINTAINER_MODE_FALSE=
2996     fi
2997    
2998     MAINT=$MAINTAINER_MODE_TRUE
2999    
3000    
3001     ac_config_headers="$ac_config_headers config.h"
3002    
3003    
3004    
3005 michael 1010 # Checks for programs.
3006     DEPDIR="${am__leading_dot}deps"
3007 michael 923
3008 michael 1010 ac_config_commands="$ac_config_commands depfiles"
3009    
3010    
3011     am_make=${MAKE-make}
3012     cat > confinc << 'END'
3013     am__doit:
3014     @echo this is the am__doit target
3015     .PHONY: am__doit
3016     END
3017     # If we don't find an include directive, just comment out the code.
3018     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3019     $as_echo_n "checking for style of include used by $am_make... " >&6; }
3020     am__include="#"
3021     am__quote=
3022     _am_result=none
3023     # First try GNU make style include.
3024     echo "include confinc" > confmf
3025 michael 1373 # Ignore all kinds of additional output from 'make'.
3026 michael 1010 case `$am_make -s -f confmf 2> /dev/null` in #(
3027     *the\ am__doit\ target*)
3028     am__include=include
3029     am__quote=
3030     _am_result=GNU
3031     ;;
3032     esac
3033     # Now try BSD make style include.
3034     if test "$am__include" = "#"; then
3035     echo '.include "confinc"' > confmf
3036     case `$am_make -s -f confmf 2> /dev/null` in #(
3037     *the\ am__doit\ target*)
3038     am__include=.include
3039     am__quote="\""
3040     _am_result=BSD
3041     ;;
3042     esac
3043     fi
3044    
3045    
3046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3047     $as_echo "$_am_result" >&6; }
3048     rm -f confinc confmf
3049    
3050     # Check whether --enable-dependency-tracking was given.
3051     if test "${enable_dependency_tracking+set}" = set; then :
3052     enableval=$enable_dependency_tracking;
3053     fi
3054    
3055     if test "x$enable_dependency_tracking" != xno; then
3056     am_depcomp="$ac_aux_dir/depcomp"
3057     AMDEPBACKSLASH='\'
3058 michael 1257 am__nodep='_no'
3059 michael 1010 fi
3060     if test "x$enable_dependency_tracking" != xno; then
3061     AMDEP_TRUE=
3062     AMDEP_FALSE='#'
3063     else
3064     AMDEP_TRUE='#'
3065     AMDEP_FALSE=
3066     fi
3067    
3068    
3069 michael 912 ac_ext=c
3070     ac_cpp='$CPP $CPPFLAGS'
3071     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3072     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3073     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3074     if test -n "$ac_tool_prefix"; then
3075     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3076     set dummy ${ac_tool_prefix}gcc; ac_word=$2
3077 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3078 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3079 michael 1106 if ${ac_cv_prog_CC+:} false; then :
3080 db 941 $as_echo_n "(cached) " >&6
3081 michael 912 else
3082     if test -n "$CC"; then
3083     ac_cv_prog_CC="$CC" # Let the user override the test.
3084     else
3085     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3086     for as_dir in $PATH
3087     do
3088     IFS=$as_save_IFS
3089     test -z "$as_dir" && as_dir=.
3090 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3091 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3092 michael 912 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3093 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3094 michael 912 break 2
3095     fi
3096     done
3097 michael 967 done
3098 michael 912 IFS=$as_save_IFS
3099    
3100     fi
3101     fi
3102     CC=$ac_cv_prog_CC
3103     if test -n "$CC"; then
3104 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3105 db 941 $as_echo "$CC" >&6; }
3106 michael 912 else
3107 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3108 db 941 $as_echo "no" >&6; }
3109 michael 912 fi
3110    
3111    
3112     fi
3113     if test -z "$ac_cv_prog_CC"; then
3114     ac_ct_CC=$CC
3115     # Extract the first word of "gcc", so it can be a program name with args.
3116     set dummy gcc; ac_word=$2
3117 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3118 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3119 michael 1106 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3120 db 941 $as_echo_n "(cached) " >&6
3121 michael 912 else
3122     if test -n "$ac_ct_CC"; then
3123     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3124     else
3125     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126     for as_dir in $PATH
3127     do
3128     IFS=$as_save_IFS
3129     test -z "$as_dir" && as_dir=.
3130 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3131 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 michael 912 ac_cv_prog_ac_ct_CC="gcc"
3133 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3134 michael 912 break 2
3135     fi
3136     done
3137 michael 967 done
3138 michael 912 IFS=$as_save_IFS
3139    
3140     fi
3141     fi
3142     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3143     if test -n "$ac_ct_CC"; then
3144 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3145 db 941 $as_echo "$ac_ct_CC" >&6; }
3146 michael 912 else
3147 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3148 db 941 $as_echo "no" >&6; }
3149 michael 912 fi
3150    
3151     if test "x$ac_ct_CC" = x; then
3152     CC=""
3153     else
3154     case $cross_compiling:$ac_tool_warned in
3155     yes:)
3156 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 michael 912 ac_tool_warned=yes ;;
3159     esac
3160     CC=$ac_ct_CC
3161     fi
3162     else
3163     CC="$ac_cv_prog_CC"
3164     fi
3165    
3166     if test -z "$CC"; then
3167     if test -n "$ac_tool_prefix"; then
3168     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3169     set dummy ${ac_tool_prefix}cc; ac_word=$2
3170 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3171 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3172 michael 1106 if ${ac_cv_prog_CC+:} false; then :
3173 db 941 $as_echo_n "(cached) " >&6
3174 michael 912 else
3175     if test -n "$CC"; then
3176     ac_cv_prog_CC="$CC" # Let the user override the test.
3177     else
3178     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3179     for as_dir in $PATH
3180     do
3181     IFS=$as_save_IFS
3182     test -z "$as_dir" && as_dir=.
3183 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3184 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3185 michael 912 ac_cv_prog_CC="${ac_tool_prefix}cc"
3186 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3187 michael 912 break 2
3188     fi
3189     done
3190 michael 967 done
3191 michael 912 IFS=$as_save_IFS
3192    
3193     fi
3194     fi
3195     CC=$ac_cv_prog_CC
3196     if test -n "$CC"; then
3197 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3198 db 941 $as_echo "$CC" >&6; }
3199 michael 912 else
3200 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3201 db 941 $as_echo "no" >&6; }
3202 michael 912 fi
3203    
3204    
3205     fi
3206     fi
3207     if test -z "$CC"; then
3208     # Extract the first word of "cc", so it can be a program name with args.
3209     set dummy cc; ac_word=$2
3210 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3211 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3212 michael 1106 if ${ac_cv_prog_CC+:} false; then :
3213 db 941 $as_echo_n "(cached) " >&6
3214 michael 912 else
3215     if test -n "$CC"; then
3216     ac_cv_prog_CC="$CC" # Let the user override the test.
3217     else
3218     ac_prog_rejected=no
3219     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220     for as_dir in $PATH
3221     do
3222     IFS=$as_save_IFS
3223     test -z "$as_dir" && as_dir=.
3224 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3225 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 michael 912 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3227     ac_prog_rejected=yes
3228     continue
3229     fi
3230     ac_cv_prog_CC="cc"
3231 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3232 michael 912 break 2
3233     fi
3234     done
3235 michael 967 done
3236 michael 912 IFS=$as_save_IFS
3237    
3238     if test $ac_prog_rejected = yes; then
3239     # We found a bogon in the path, so make sure we never use it.
3240     set dummy $ac_cv_prog_CC
3241     shift
3242     if test $# != 0; then
3243     # We chose a different compiler from the bogus one.
3244     # However, it has the same basename, so the bogon will be chosen
3245     # first if we set CC to just the basename; use the full file name.
3246     shift
3247     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3248     fi
3249     fi
3250     fi
3251     fi
3252     CC=$ac_cv_prog_CC
3253     if test -n "$CC"; then
3254 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255 db 941 $as_echo "$CC" >&6; }
3256 michael 912 else
3257 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 db 941 $as_echo "no" >&6; }
3259 michael 912 fi
3260    
3261    
3262     fi
3263     if test -z "$CC"; then
3264     if test -n "$ac_tool_prefix"; then
3265     for ac_prog in cl.exe
3266     do
3267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3268     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3269 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3270 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3271 michael 1106 if ${ac_cv_prog_CC+:} false; then :
3272 db 941 $as_echo_n "(cached) " >&6
3273 michael 912 else
3274     if test -n "$CC"; then
3275     ac_cv_prog_CC="$CC" # Let the user override the test.
3276     else
3277     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3278     for as_dir in $PATH
3279     do
3280     IFS=$as_save_IFS
3281     test -z "$as_dir" && as_dir=.
3282 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3283 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3284 michael 912 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3285 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3286 michael 912 break 2
3287     fi
3288     done
3289 michael 967 done
3290 michael 912 IFS=$as_save_IFS
3291    
3292     fi
3293     fi
3294     CC=$ac_cv_prog_CC
3295     if test -n "$CC"; then
3296 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3297 db 941 $as_echo "$CC" >&6; }
3298 michael 912 else
3299 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 db 941 $as_echo "no" >&6; }
3301 michael 912 fi
3302    
3303    
3304     test -n "$CC" && break
3305     done
3306     fi
3307     if test -z "$CC"; then
3308     ac_ct_CC=$CC
3309     for ac_prog in cl.exe
3310     do
3311     # Extract the first word of "$ac_prog", so it can be a program name with args.
3312     set dummy $ac_prog; ac_word=$2
3313 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3314 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3315 michael 1106 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3316 db 941 $as_echo_n "(cached) " >&6
3317 michael 912 else
3318     if test -n "$ac_ct_CC"; then
3319     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320     else
3321     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322     for as_dir in $PATH
3323     do
3324     IFS=$as_save_IFS
3325     test -z "$as_dir" && as_dir=.
3326 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3327 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3328 michael 912 ac_cv_prog_ac_ct_CC="$ac_prog"
3329 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 michael 912 break 2
3331     fi
3332     done
3333 michael 967 done
3334 michael 912 IFS=$as_save_IFS
3335    
3336     fi
3337     fi
3338     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339     if test -n "$ac_ct_CC"; then
3340 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3341 db 941 $as_echo "$ac_ct_CC" >&6; }
3342 michael 912 else
3343 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 db 941 $as_echo "no" >&6; }
3345 michael 912 fi
3346    
3347    
3348     test -n "$ac_ct_CC" && break
3349     done
3350    
3351     if test "x$ac_ct_CC" = x; then
3352     CC=""
3353     else
3354     case $cross_compiling:$ac_tool_warned in
3355     yes:)
3356 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3357 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3358 michael 912 ac_tool_warned=yes ;;
3359     esac
3360     CC=$ac_ct_CC
3361     fi
3362     fi
3363    
3364     fi
3365    
3366    
3367 michael 967 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 michael 1095 as_fn_error $? "no acceptable C compiler found in \$PATH
3370     See \`config.log' for more details" "$LINENO" 5; }
3371 michael 912
3372     # Provide some information about the compiler.
3373 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3374 db 941 set X $ac_compile
3375     ac_compiler=$2
3376 michael 967 for ac_option in --version -v -V -qversion; do
3377     { { ac_try="$ac_compiler $ac_option >&5"
3378 michael 912 case "(($ac_try" in
3379     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380     *) ac_try_echo=$ac_try;;
3381     esac
3382 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383     $as_echo "$ac_try_echo"; } >&5
3384     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3385 michael 912 ac_status=$?
3386 michael 967 if test -s conftest.err; then
3387     sed '10a\
3388     ... rest of stderr output deleted ...
3389     10q' conftest.err >conftest.er1
3390     cat conftest.er1 >&5
3391     fi
3392 michael 1033 rm -f conftest.er1 conftest.err
3393 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3394     test $ac_status = 0; }
3395     done
3396 michael 912
3397 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 michael 912 /* end confdefs.h. */
3399 michael 1033
3400 michael 912 int
3401     main ()
3402     {
3403    
3404     ;
3405     return 0;
3406     }
3407     _ACEOF
3408     ac_clean_files_save=$ac_clean_files
3409 michael 1033 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3410 michael 912 # Try to create an executable without -o first, disregard a.out.
3411     # It will help us diagnose broken compilers, and finding out an intuition
3412     # of exeext.
3413 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3414     $as_echo_n "checking whether the C compiler works... " >&6; }
3415 db 941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3416    
3417     # The possible output files:
3418     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3419    
3420 michael 912 ac_rmfiles=
3421     for ac_file in $ac_files
3422     do
3423     case $ac_file in
3424 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3425 michael 912 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3426     esac
3427     done
3428     rm -f $ac_rmfiles
3429    
3430 michael 967 if { { ac_try="$ac_link_default"
3431 michael 912 case "(($ac_try" in
3432     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433     *) ac_try_echo=$ac_try;;
3434     esac
3435 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3436     $as_echo "$ac_try_echo"; } >&5
3437 michael 912 (eval "$ac_link_default") 2>&5
3438     ac_status=$?
3439 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3440     test $ac_status = 0; }; then :
3441 michael 912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3442     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3443     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3444     # so that the user can short-circuit this test for compilers unknown to
3445     # Autoconf.
3446     for ac_file in $ac_files ''
3447     do
3448     test -f "$ac_file" || continue
3449     case $ac_file in
3450 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3451 michael 912 ;;
3452     [ab].out )
3453     # We found the default executable, but exeext='' is most
3454     # certainly right.
3455     break;;
3456     *.* )
3457 michael 967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3458 michael 912 then :; else
3459     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460     fi
3461     # We set ac_cv_exeext here because the later test for it is not
3462     # safe: cross compilers may not add the suffix if given an `-o'
3463     # argument, so we may need to know it at that point already.
3464     # Even if this section looks crufty: it has the advantage of
3465     # actually working.
3466     break;;
3467     * )
3468     break;;
3469     esac
3470     done
3471     test "$ac_cv_exeext" = no && ac_cv_exeext=
3472    
3473     else
3474     ac_file=''
3475     fi
3476 michael 967 if test -z "$ac_file"; then :
3477 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3478     $as_echo "no" >&6; }
3479     $as_echo "$as_me: failed program was:" >&5
3480 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3481    
3482 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3483 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3484 michael 1095 as_fn_error 77 "C compiler cannot create executables
3485     See \`config.log' for more details" "$LINENO" 5; }
3486 michael 1033 else
3487     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3488     $as_echo "yes" >&6; }
3489 michael 912 fi
3490 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3491     $as_echo_n "checking for C compiler default output file name... " >&6; }
3492     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3493     $as_echo "$ac_file" >&6; }
3494 michael 912 ac_exeext=$ac_cv_exeext
3495    
3496 michael 1033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3497 michael 912 ac_clean_files=$ac_clean_files_save
3498 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3499 db 941 $as_echo_n "checking for suffix of executables... " >&6; }
3500 michael 967 if { { ac_try="$ac_link"
3501 michael 912 case "(($ac_try" in
3502     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3503     *) ac_try_echo=$ac_try;;
3504     esac
3505 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3506     $as_echo "$ac_try_echo"; } >&5
3507 michael 912 (eval "$ac_link") 2>&5
3508     ac_status=$?
3509 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3510     test $ac_status = 0; }; then :
3511 michael 912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3512     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3513     # work properly (i.e., refer to `conftest.exe'), while it won't with
3514     # `rm'.
3515     for ac_file in conftest.exe conftest conftest.*; do
3516     test -f "$ac_file" || continue
3517     case $ac_file in
3518 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519 michael 912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3520     break;;
3521     * ) break;;
3522     esac
3523     done
3524     else
3525 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3526 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3527 michael 1095 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3528     See \`config.log' for more details" "$LINENO" 5; }
3529 michael 912 fi
3530 michael 1033 rm -f conftest conftest$ac_cv_exeext
3531 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3532 db 941 $as_echo "$ac_cv_exeext" >&6; }
3533 michael 912
3534     rm -f conftest.$ac_ext
3535     EXEEXT=$ac_cv_exeext
3536     ac_exeext=$EXEEXT
3537 michael 1033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538     /* end confdefs.h. */
3539     #include <stdio.h>
3540     int
3541     main ()
3542     {
3543     FILE *f = fopen ("conftest.out", "w");
3544     return ferror (f) || fclose (f) != 0;
3545    
3546     ;
3547     return 0;
3548     }
3549     _ACEOF
3550     ac_clean_files="$ac_clean_files conftest.out"
3551     # Check that the compiler produces executables we can run. If not, either
3552     # the compiler is broken, or we cross compile.
3553     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3554     $as_echo_n "checking whether we are cross compiling... " >&6; }
3555     if test "$cross_compiling" != yes; then
3556     { { ac_try="$ac_link"
3557     case "(($ac_try" in
3558     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3559     *) ac_try_echo=$ac_try;;
3560     esac
3561     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3562     $as_echo "$ac_try_echo"; } >&5
3563     (eval "$ac_link") 2>&5
3564     ac_status=$?
3565     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3566     test $ac_status = 0; }
3567     if { ac_try='./conftest$ac_cv_exeext'
3568     { { case "(($ac_try" in
3569     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570     *) ac_try_echo=$ac_try;;
3571     esac
3572     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3573     $as_echo "$ac_try_echo"; } >&5
3574     (eval "$ac_try") 2>&5
3575     ac_status=$?
3576     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3577     test $ac_status = 0; }; }; then
3578     cross_compiling=no
3579     else
3580     if test "$cross_compiling" = maybe; then
3581     cross_compiling=yes
3582     else
3583     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3584     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3585 michael 1095 as_fn_error $? "cannot run C compiled programs.
3586 michael 1033 If you meant to cross compile, use \`--host'.
3587 michael 1095 See \`config.log' for more details" "$LINENO" 5; }
3588 michael 1033 fi
3589     fi
3590     fi
3591     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3592     $as_echo "$cross_compiling" >&6; }
3593    
3594     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3595     ac_clean_files=$ac_clean_files_save
3596 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3597 db 941 $as_echo_n "checking for suffix of object files... " >&6; }
3598 michael 1106 if ${ac_cv_objext+:} false; then :
3599 db 941 $as_echo_n "(cached) " >&6
3600 michael 912 else
3601 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 michael 912 /* end confdefs.h. */
3603    
3604     int
3605     main ()
3606     {
3607    
3608     ;
3609     return 0;
3610     }
3611     _ACEOF
3612     rm -f conftest.o conftest.obj
3613 michael 967 if { { ac_try="$ac_compile"
3614 michael 912 case "(($ac_try" in
3615     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3616     *) ac_try_echo=$ac_try;;
3617     esac
3618 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3619     $as_echo "$ac_try_echo"; } >&5
3620 michael 912 (eval "$ac_compile") 2>&5
3621     ac_status=$?
3622 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3623     test $ac_status = 0; }; then :
3624 michael 912 for ac_file in conftest.o conftest.obj conftest.*; do
3625     test -f "$ac_file" || continue;
3626     case $ac_file in
3627 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3628 michael 912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3629     break;;
3630     esac
3631     done
3632     else
3633 db 941 $as_echo "$as_me: failed program was:" >&5
3634 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3635    
3636 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 michael 1095 as_fn_error $? "cannot compute suffix of object files: cannot compile
3639     See \`config.log' for more details" "$LINENO" 5; }
3640 michael 912 fi
3641     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3642     fi
3643 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3644 db 941 $as_echo "$ac_cv_objext" >&6; }
3645 michael 912 OBJEXT=$ac_cv_objext
3646     ac_objext=$OBJEXT
3647 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3648 db 941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3649 michael 1106 if ${ac_cv_c_compiler_gnu+:} false; then :
3650 db 941 $as_echo_n "(cached) " >&6
3651 michael 912 else
3652 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3653 michael 912 /* end confdefs.h. */
3654    
3655     int
3656     main ()
3657     {
3658     #ifndef __GNUC__
3659     choke me
3660     #endif
3661    
3662     ;
3663     return 0;
3664     }
3665     _ACEOF
3666 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3667 michael 912 ac_compiler_gnu=yes
3668     else
3669 michael 967 ac_compiler_gnu=no
3670 michael 912 fi
3671     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3673    
3674     fi
3675 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3676 db 941 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3677     if test $ac_compiler_gnu = yes; then
3678     GCC=yes
3679     else
3680     GCC=
3681     fi
3682 michael 912 ac_test_CFLAGS=${CFLAGS+set}
3683     ac_save_CFLAGS=$CFLAGS
3684 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3685 db 941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3686 michael 1106 if ${ac_cv_prog_cc_g+:} false; then :
3687 db 941 $as_echo_n "(cached) " >&6
3688 michael 912 else
3689     ac_save_c_werror_flag=$ac_c_werror_flag
3690     ac_c_werror_flag=yes
3691     ac_cv_prog_cc_g=no
3692     CFLAGS="-g"
3693 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 michael 912 /* end confdefs.h. */
3695    
3696     int
3697     main ()
3698     {
3699    
3700     ;
3701     return 0;
3702     }
3703     _ACEOF
3704 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3705 michael 912 ac_cv_prog_cc_g=yes
3706     else
3707 michael 967 CFLAGS=""
3708     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3709 michael 912 /* end confdefs.h. */
3710    
3711     int
3712     main ()
3713     {
3714    
3715     ;
3716     return 0;
3717     }
3718     _ACEOF
3719 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3720    
3721 michael 912 else
3722 michael 967 ac_c_werror_flag=$ac_save_c_werror_flag
3723 michael 912 CFLAGS="-g"
3724 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 michael 912 /* end confdefs.h. */
3726    
3727     int
3728     main ()
3729     {
3730    
3731     ;
3732     return 0;
3733     }
3734     _ACEOF
3735 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3736 michael 912 ac_cv_prog_cc_g=yes
3737     fi
3738     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739     fi
3740     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741     fi
3742     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3743     ac_c_werror_flag=$ac_save_c_werror_flag
3744     fi
3745 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3746 db 941 $as_echo "$ac_cv_prog_cc_g" >&6; }
3747 michael 912 if test "$ac_test_CFLAGS" = set; then
3748     CFLAGS=$ac_save_CFLAGS
3749     elif test $ac_cv_prog_cc_g = yes; then
3750     if test "$GCC" = yes; then
3751     CFLAGS="-g -O2"
3752     else
3753     CFLAGS="-g"
3754     fi
3755     else
3756     if test "$GCC" = yes; then
3757     CFLAGS="-O2"
3758     else
3759     CFLAGS=
3760     fi
3761     fi
3762 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3763 db 941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3764 michael 1106 if ${ac_cv_prog_cc_c89+:} false; then :
3765 db 941 $as_echo_n "(cached) " >&6
3766 michael 912 else
3767     ac_cv_prog_cc_c89=no
3768     ac_save_CC=$CC
3769 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3770 michael 912 /* end confdefs.h. */
3771     #include <stdarg.h>
3772     #include <stdio.h>
3773 michael 1373 struct stat;
3774 michael 912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3775     struct buf { int x; };
3776     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3777     static char *e (p, i)
3778     char **p;
3779     int i;
3780     {
3781     return p[i];
3782     }
3783     static char *f (char * (*g) (char **, int), char **p, ...)
3784     {
3785     char *s;
3786     va_list v;
3787     va_start (v,p);
3788     s = g (p, va_arg (v,int));
3789     va_end (v);
3790     return s;
3791     }
3792    
3793     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3794     function prototypes and stuff, but not '\xHH' hex character constants.
3795     These don't provoke an error unfortunately, instead are silently treated
3796     as 'x'. The following induces an error, until -std is added to get
3797     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3798     array size at least. It's necessary to write '\x00'==0 to get something
3799     that's true only with -std. */
3800     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3801    
3802     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3803     inside strings and character constants. */
3804     #define FOO(x) 'x'
3805     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3806    
3807     int test (int i, double x);
3808     struct s1 {int (*f) (int a);};
3809     struct s2 {int (*f) (double a);};
3810     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3811     int argc;
3812     char **argv;
3813     int
3814     main ()
3815     {
3816     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3817     ;
3818     return 0;
3819     }
3820     _ACEOF
3821     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3822     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3823     do
3824     CC="$ac_save_CC $ac_arg"
3825 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3826 michael 912 ac_cv_prog_cc_c89=$ac_arg
3827     fi
3828     rm -f core conftest.err conftest.$ac_objext
3829     test "x$ac_cv_prog_cc_c89" != "xno" && break
3830     done
3831     rm -f conftest.$ac_ext
3832     CC=$ac_save_CC
3833    
3834     fi
3835     # AC_CACHE_VAL
3836     case "x$ac_cv_prog_cc_c89" in
3837     x)
3838 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3839 db 941 $as_echo "none needed" >&6; } ;;
3840 michael 912 xno)
3841 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3842 db 941 $as_echo "unsupported" >&6; } ;;
3843 michael 912 *)
3844     CC="$CC $ac_cv_prog_cc_c89"
3845 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3846 db 941 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3847 michael 912 esac
3848 michael 967 if test "x$ac_cv_prog_cc_c89" != xno; then :
3849 michael 912
3850 michael 967 fi
3851 michael 912
3852     ac_ext=c
3853     ac_cpp='$CPP $CPPFLAGS'
3854     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3855     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3856     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857    
3858     depcc="$CC" am_compiler_list=
3859    
3860 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3861 db 941 $as_echo_n "checking dependency style of $depcc... " >&6; }
3862 michael 1106 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3863 db 941 $as_echo_n "(cached) " >&6
3864 michael 912 else
3865     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3866     # We make a subdir and do the tests there. Otherwise we can end up
3867     # making bogus files that we don't know about and never remove. For
3868     # instance it was reported that on HP-UX the gcc test will end up
3869 michael 1373 # making a dummy file named 'D' -- because '-MD' means "put the output
3870     # in D".
3871 michael 1257 rm -rf conftest.dir
3872 michael 912 mkdir conftest.dir
3873     # Copy depcomp to subdir because otherwise we won't find it if we're
3874     # using a relative directory.
3875     cp "$am_depcomp" conftest.dir
3876     cd conftest.dir
3877     # We will build objects and dependencies in a subdirectory because
3878     # it helps to detect inapplicable dependency modes. For instance
3879     # both Tru64's cc and ICC support -MD to output dependencies as a
3880     # side effect of compilation, but ICC will put the dependencies in
3881     # the current directory while Tru64 will put them in the object
3882     # directory.
3883     mkdir sub
3884    
3885     am_cv_CC_dependencies_compiler_type=none
3886     if test "$am_compiler_list" = ""; then
3887     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3888     fi
3889 michael 945 am__universal=false
3890     case " $depcc " in #(
3891     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3892     esac
3893    
3894 michael 912 for depmode in $am_compiler_list; do
3895     # Setup a source with many dependencies, because some compilers
3896     # like to wrap large dependency lists on column 80 (with \), and
3897     # we should not choose a depcomp mode which is confused by this.
3898     #
3899     # We need to recreate these files for each test, as the compiler may
3900     # overwrite some of them when testing with obscure command lines.
3901     # This happens at least with the AIX C compiler.
3902     : > sub/conftest.c
3903     for i in 1 2 3 4 5 6; do
3904     echo '#include "conftst'$i'.h"' >> sub/conftest.c
3905 michael 1373 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3906     # Solaris 10 /bin/sh.
3907     echo '/* dummy */' > sub/conftst$i.h
3908 michael 912 done
3909     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3910    
3911 michael 1373 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3912 michael 945 # mode. It turns out that the SunPro C++ compiler does not properly
3913 michael 1373 # handle '-M -o', and we need to detect this. Also, some Intel
3914     # versions had trouble with output in subdirs.
3915 michael 945 am__obj=sub/conftest.${OBJEXT-o}
3916     am__minus_obj="-o $am__obj"
3917 michael 912 case $depmode in
3918 michael 945 gcc)
3919     # This depmode causes a compiler race in universal mode.
3920     test "$am__universal" = false || continue
3921     ;;
3922 michael 912 nosideeffect)
3923 michael 1373 # After this tag, mechanisms are not by side-effect, so they'll
3924     # only be used when explicitly requested.
3925 michael 912 if test "x$enable_dependency_tracking" = xyes; then
3926     continue
3927     else
3928     break
3929     fi
3930     ;;
3931 michael 1257 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3932 michael 1373 # This compiler won't grok '-c -o', but also, the minuso test has
3933 michael 945 # not run yet. These depmodes are late enough in the game, and
3934     # so weak that their functioning should not be impacted.
3935     am__obj=conftest.${OBJEXT-o}
3936     am__minus_obj=
3937     ;;
3938 michael 912 none) break ;;
3939     esac
3940     if depmode=$depmode \
3941 michael 945 source=sub/conftest.c object=$am__obj \
3942 michael 912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3943 michael 945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3944 michael 912 >/dev/null 2>conftest.err &&
3945     grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3946     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3947 michael 945 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3948 michael 912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3949     # icc doesn't choke on unknown options, it will just issue warnings
3950     # or remarks (even with -Werror). So we grep stderr for any message
3951     # that says an option was ignored or not supported.
3952     # When given -MP, icc 7.0 and 7.1 complain thusly:
3953     # icc: Command line warning: ignoring option '-M'; no argument required
3954     # The diagnosis changed in icc 8.0:
3955     # icc: Command line remark: option '-MP' not supported
3956     if (grep 'ignoring option' conftest.err ||
3957     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3958     am_cv_CC_dependencies_compiler_type=$depmode
3959     break
3960     fi
3961     fi
3962     done
3963    
3964     cd ..
3965     rm -rf conftest.dir
3966     else
3967     am_cv_CC_dependencies_compiler_type=none
3968     fi
3969    
3970     fi
3971 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3972 db 941 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3973 michael 912 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3974    
3975     if
3976     test "x$enable_dependency_tracking" != xno \
3977     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3978     am__fastdepCC_TRUE=
3979     am__fastdepCC_FALSE='#'
3980     else
3981     am__fastdepCC_TRUE='#'
3982     am__fastdepCC_FALSE=
3983     fi
3984    
3985    
3986 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
3987     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
3988 michael 1106 if ${ac_cv_prog_cc_c99+:} false; then :
3989 michael 1010 $as_echo_n "(cached) " >&6
3990     else
3991     ac_cv_prog_cc_c99=no
3992     ac_save_CC=$CC
3993     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994     /* end confdefs.h. */
3995     #include <stdarg.h>
3996     #include <stdbool.h>
3997     #include <stdlib.h>
3998     #include <wchar.h>
3999     #include <stdio.h>
4000    
4001     // Check varargs macros. These examples are taken from C99 6.10.3.5.
4002     #define debug(...) fprintf (stderr, __VA_ARGS__)
4003     #define showlist(...) puts (#__VA_ARGS__)
4004     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4005     static void
4006     test_varargs_macros (void)
4007     {
4008     int x = 1234;
4009     int y = 5678;
4010     debug ("Flag");
4011     debug ("X = %d\n", x);
4012     showlist (The first, second, and third items.);
4013     report (x>y, "x is %d but y is %d", x, y);
4014     }
4015    
4016     // Check long long types.
4017     #define BIG64 18446744073709551615ull
4018     #define BIG32 4294967295ul
4019     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4020     #if !BIG_OK
4021     your preprocessor is broken;
4022     #endif
4023     #if BIG_OK
4024     #else
4025     your preprocessor is broken;
4026     #endif
4027     static long long int bignum = -9223372036854775807LL;
4028     static unsigned long long int ubignum = BIG64;
4029    
4030     struct incomplete_array
4031     {
4032     int datasize;
4033     double data[];
4034     };
4035    
4036     struct named_init {
4037     int number;
4038     const wchar_t *name;
4039     double average;
4040     };
4041    
4042     typedef const char *ccp;
4043    
4044     static inline int
4045     test_restrict (ccp restrict text)
4046     {
4047     // See if C++-style comments work.
4048     // Iterate through items via the restricted pointer.
4049     // Also check for declarations in for loops.
4050     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4051     continue;
4052     return 0;
4053     }
4054    
4055     // Check varargs and va_copy.
4056     static void
4057     test_varargs (const char *format, ...)
4058     {
4059     va_list args;
4060     va_start (args, format);
4061     va_list args_copy;
4062     va_copy (args_copy, args);
4063    
4064     const char *str;
4065     int number;
4066     float fnumber;
4067    
4068     while (*format)
4069     {
4070     switch (*format++)
4071     {
4072     case 's': // string
4073     str = va_arg (args_copy, const char *);
4074     break;
4075     case 'd': // int
4076     number = va_arg (args_copy, int);
4077     break;
4078     case 'f': // float
4079     fnumber = va_arg (args_copy, double);
4080     break;
4081     default:
4082     break;
4083     }
4084     }
4085     va_end (args_copy);
4086     va_end (args);
4087     }
4088    
4089     int
4090     main ()
4091     {
4092    
4093     // Check bool.
4094     _Bool success = false;
4095    
4096     // Check restrict.
4097     if (test_restrict ("String literal") == 0)
4098     success = true;
4099     char *restrict newvar = "Another string";
4100    
4101     // Check varargs.
4102     test_varargs ("s, d' f .", "string", 65, 34.234);
4103     test_varargs_macros ();
4104    
4105     // Check flexible array members.
4106     struct incomplete_array *ia =
4107     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4108     ia->datasize = 10;
4109     for (int i = 0; i < ia->datasize; ++i)
4110     ia->data[i] = i * 1.234;
4111    
4112     // Check named initializers.
4113     struct named_init ni = {
4114     .number = 34,
4115     .name = L"Test wide string",
4116     .average = 543.34343,
4117     };
4118    
4119     ni.number = 58;
4120    
4121     int dynamic_array[ni.number];
4122     dynamic_array[ni.number - 1] = 543;
4123    
4124     // work around unused variable warnings
4125     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4126     || dynamic_array[ni.number - 1] != 543);
4127    
4128     ;
4129     return 0;
4130     }
4131     _ACEOF
4132 michael 1373 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4133 michael 1010 do
4134     CC="$ac_save_CC $ac_arg"
4135     if ac_fn_c_try_compile "$LINENO"; then :
4136     ac_cv_prog_cc_c99=$ac_arg
4137     fi
4138     rm -f core conftest.err conftest.$ac_objext
4139     test "x$ac_cv_prog_cc_c99" != "xno" && break
4140     done
4141     rm -f conftest.$ac_ext
4142     CC=$ac_save_CC
4143    
4144     fi
4145     # AC_CACHE_VAL
4146     case "x$ac_cv_prog_cc_c99" in
4147     x)
4148     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4149     $as_echo "none needed" >&6; } ;;
4150     xno)
4151     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4152     $as_echo "unsupported" >&6; } ;;
4153     *)
4154     CC="$CC $ac_cv_prog_cc_c99"
4155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4156     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4157     esac
4158     if test "x$ac_cv_prog_cc_c99" != xno; then :
4159    
4160     fi
4161    
4162    
4163     if test "$ac_cv_prog_cc_c99" = "no"; then :
4164 michael 1348 as_fn_error $? "no suitable C99 compiler found. Aborting." "$LINENO" 5
4165 michael 1010 fi
4166 michael 912 for ac_prog in 'bison -y' byacc
4167     do
4168     # Extract the first word of "$ac_prog", so it can be a program name with args.
4169     set dummy $ac_prog; ac_word=$2
4170 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4171 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4172 michael 1106 if ${ac_cv_prog_YACC+:} false; then :
4173 db 941 $as_echo_n "(cached) " >&6
4174 michael 912 else
4175     if test -n "$YACC"; then
4176     ac_cv_prog_YACC="$YACC" # Let the user override the test.
4177     else
4178     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4179     for as_dir in $PATH
4180     do
4181     IFS=$as_save_IFS
4182     test -z "$as_dir" && as_dir=.
4183 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4184 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4185 michael 912 ac_cv_prog_YACC="$ac_prog"
4186 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4187 michael 912 break 2
4188     fi
4189     done
4190 michael 967 done
4191 michael 912 IFS=$as_save_IFS
4192    
4193     fi
4194     fi
4195     YACC=$ac_cv_prog_YACC
4196     if test -n "$YACC"; then
4197 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4198 db 941 $as_echo "$YACC" >&6; }
4199 michael 912 else
4200 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4201 db 941 $as_echo "no" >&6; }
4202 michael 912 fi
4203    
4204    
4205     test -n "$YACC" && break
4206     done
4207     test -n "$YACC" || YACC="yacc"
4208    
4209    
4210     for ac_prog in flex lex
4211     do
4212     # Extract the first word of "$ac_prog", so it can be a program name with args.
4213     set dummy $ac_prog; ac_word=$2
4214 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4215 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4216 michael 1106 if ${ac_cv_prog_LEX+:} false; then :
4217 db 941 $as_echo_n "(cached) " >&6
4218 michael 912 else
4219     if test -n "$LEX"; then
4220     ac_cv_prog_LEX="$LEX" # Let the user override the test.
4221     else
4222     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4223     for as_dir in $PATH
4224     do
4225     IFS=$as_save_IFS
4226     test -z "$as_dir" && as_dir=.
4227 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4228 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4229 michael 912 ac_cv_prog_LEX="$ac_prog"
4230 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4231 michael 912 break 2
4232     fi
4233     done
4234 michael 967 done
4235 michael 912 IFS=$as_save_IFS
4236    
4237     fi
4238     fi
4239     LEX=$ac_cv_prog_LEX
4240     if test -n "$LEX"; then
4241 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4242 db 941 $as_echo "$LEX" >&6; }
4243 michael 912 else
4244 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4245 db 941 $as_echo "no" >&6; }
4246 michael 912 fi
4247    
4248    
4249     test -n "$LEX" && break
4250     done
4251     test -n "$LEX" || LEX=":"
4252    
4253     if test "x$LEX" != "x:"; then
4254     cat >conftest.l <<_ACEOF
4255     %%
4256     a { ECHO; }
4257     b { REJECT; }
4258     c { yymore (); }
4259     d { yyless (1); }
4260 michael 1373 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4261     yyless ((input () != 0)); }
4262 michael 912 f { unput (yytext[0]); }
4263     . { BEGIN INITIAL; }
4264     %%
4265     #ifdef YYTEXT_POINTER
4266     extern char *yytext;
4267     #endif
4268     int
4269     main (void)
4270     {
4271     return ! yylex () + ! yywrap ();
4272     }
4273     _ACEOF
4274 michael 967 { { ac_try="$LEX conftest.l"
4275 michael 912 case "(($ac_try" in
4276     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277     *) ac_try_echo=$ac_try;;
4278     esac
4279 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4280     $as_echo "$ac_try_echo"; } >&5
4281 michael 912 (eval "$LEX conftest.l") 2>&5
4282     ac_status=$?
4283 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4284     test $ac_status = 0; }
4285     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4286 db 941 $as_echo_n "checking lex output file root... " >&6; }
4287 michael 1106 if ${ac_cv_prog_lex_root+:} false; then :
4288 db 941 $as_echo_n "(cached) " >&6
4289 michael 912 else
4290    
4291     if test -f lex.yy.c; then
4292     ac_cv_prog_lex_root=lex.yy
4293     elif test -f lexyy.c; then
4294     ac_cv_prog_lex_root=lexyy
4295     else
4296 michael 1095 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4297 michael 912 fi
4298     fi
4299 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4300 db 941 $as_echo "$ac_cv_prog_lex_root" >&6; }
4301 michael 912 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4302    
4303     if test -z "${LEXLIB+set}"; then
4304 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4305 db 941 $as_echo_n "checking lex library... " >&6; }
4306 michael 1106 if ${ac_cv_lib_lex+:} false; then :
4307 db 941 $as_echo_n "(cached) " >&6
4308 michael 912 else
4309    
4310     ac_save_LIBS=$LIBS
4311     ac_cv_lib_lex='none needed'
4312     for ac_lib in '' -lfl -ll; do
4313     LIBS="$ac_lib $ac_save_LIBS"
4314 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315     /* end confdefs.h. */
4316 michael 912 `cat $LEX_OUTPUT_ROOT.c`
4317     _ACEOF
4318 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4319 michael 912 ac_cv_lib_lex=$ac_lib
4320     fi
4321 michael 967 rm -f core conftest.err conftest.$ac_objext \
4322     conftest$ac_exeext conftest.$ac_ext
4323 michael 912 test "$ac_cv_lib_lex" != 'none needed' && break
4324     done
4325     LIBS=$ac_save_LIBS
4326    
4327     fi
4328 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4329 db 941 $as_echo "$ac_cv_lib_lex" >&6; }
4330 michael 912 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4331     fi
4332    
4333    
4334 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4335 db 941 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4336 michael 1106 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4337 db 941 $as_echo_n "(cached) " >&6
4338 michael 912 else
4339     # POSIX says lex can declare yytext either as a pointer or an array; the
4340     # default is implementation-dependent. Figure out which it is, since
4341     # not all implementations provide the %pointer and %array declarations.
4342     ac_cv_prog_lex_yytext_pointer=no
4343     ac_save_LIBS=$LIBS
4344     LIBS="$LEXLIB $ac_save_LIBS"
4345 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346     /* end confdefs.h. */
4347 michael 1106
4348     #define YYTEXT_POINTER 1
4349 michael 912 `cat $LEX_OUTPUT_ROOT.c`
4350     _ACEOF
4351 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4352 michael 912 ac_cv_prog_lex_yytext_pointer=yes
4353     fi
4354 michael 967 rm -f core conftest.err conftest.$ac_objext \
4355     conftest$ac_exeext conftest.$ac_ext
4356 michael 912 LIBS=$ac_save_LIBS
4357    
4358     fi
4359 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4360 db 941 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4361 michael 912 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4362    
4363 michael 967 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4364 michael 912
4365     fi
4366     rm -f conftest.l $LEX_OUTPUT_ROOT.c
4367    
4368     fi
4369     if test "$LEX" = :; then
4370     LEX=${am_missing_run}flex
4371     fi
4372 db 941
4373 michael 912
4374 michael 1015 # Initializing libtool.
4375 michael 1084
4376    
4377    
4378    
4379    
4380    
4381    
4382 michael 945 case `pwd` in
4383     *\ * | *\ *)
4384 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4385 michael 945 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4386     esac
4387    
4388    
4389    
4390 michael 1257 macro_version='2.4.2'
4391     macro_revision='1.3337'
4392 michael 945
4393    
4394    
4395    
4396    
4397    
4398    
4399    
4400    
4401    
4402    
4403    
4404    
4405     ltmain="$ac_aux_dir/ltmain.sh"
4406    
4407 michael 912 # Make sure we can run config.sub.
4408     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4409 michael 1095 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4410 michael 912
4411 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4412 db 941 $as_echo_n "checking build system type... " >&6; }
4413 michael 1106 if ${ac_cv_build+:} false; then :
4414 db 941 $as_echo_n "(cached) " >&6
4415 michael 912 else
4416     ac_build_alias=$build_alias
4417     test "x$ac_build_alias" = x &&
4418     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4419     test "x$ac_build_alias" = x &&
4420 michael 1095 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4421 michael 912 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4422 michael 1095 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4423 michael 912
4424     fi
4425 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4426 db 941 $as_echo "$ac_cv_build" >&6; }
4427 michael 912 case $ac_cv_build in
4428     *-*-*) ;;
4429 michael 1095 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4430 michael 912 esac
4431     build=$ac_cv_build
4432     ac_save_IFS=$IFS; IFS='-'
4433     set x $ac_cv_build
4434     shift
4435     build_cpu=$1
4436     build_vendor=$2
4437     shift; shift
4438     # Remember, the first character of IFS is used to create $*,
4439     # except with old shells:
4440     build_os=$*
4441     IFS=$ac_save_IFS
4442     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4443    
4444    
4445 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4446 db 941 $as_echo_n "checking host system type... " >&6; }
4447 michael 1106 if ${ac_cv_host+:} false; then :
4448 db 941 $as_echo_n "(cached) " >&6
4449 michael 912 else
4450     if test "x$host_alias" = x; then
4451     ac_cv_host=$ac_cv_build
4452     else
4453     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4454 michael 1095 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4455 michael 912 fi
4456    
4457     fi
4458 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4459 db 941 $as_echo "$ac_cv_host" >&6; }
4460 michael 912 case $ac_cv_host in
4461     *-*-*) ;;
4462 michael 1095 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4463 michael 912 esac
4464     host=$ac_cv_host
4465     ac_save_IFS=$IFS; IFS='-'
4466     set x $ac_cv_host
4467     shift
4468     host_cpu=$1
4469     host_vendor=$2
4470     shift; shift
4471     # Remember, the first character of IFS is used to create $*,
4472     # except with old shells:
4473     host_os=$*
4474     IFS=$ac_save_IFS
4475     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4476    
4477    
4478 michael 1094 # Backslashify metacharacters that are still active within
4479     # double-quoted strings.
4480     sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4481    
4482     # Same as above, but do not quote variable references.
4483     double_quote_subst='s/\(["`\\]\)/\\\1/g'
4484    
4485     # Sed substitution to delay expansion of an escaped shell variable in a
4486     # double_quote_subst'ed string.
4487     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4488    
4489     # Sed substitution to delay expansion of an escaped single quote.
4490     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4491    
4492     # Sed substitution to avoid accidental globbing in evaled expressions
4493     no_glob_subst='s/\*/\\\*/g'
4494    
4495     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4496     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4497     ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4498    
4499     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4500     $as_echo_n "checking how to print strings... " >&6; }
4501     # Test print first, because it will be a builtin if present.
4502 michael 1106 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4503 michael 1094 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4504     ECHO='print -r --'
4505     elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4506     ECHO='printf %s\n'
4507     else
4508     # Use this function as a fallback that always works.
4509     func_fallback_echo ()
4510     {
4511     eval 'cat <<_LTECHO_EOF
4512     $1
4513     _LTECHO_EOF'
4514     }
4515     ECHO='func_fallback_echo'
4516     fi
4517    
4518     # func_echo_all arg...
4519     # Invoke $ECHO with all args, space-separated.
4520     func_echo_all ()
4521     {
4522     $ECHO ""
4523     }
4524    
4525     case "$ECHO" in
4526     printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4527     $as_echo "printf" >&6; } ;;
4528     print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4529     $as_echo "print -r" >&6; } ;;
4530     *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4531     $as_echo "cat" >&6; } ;;
4532     esac
4533    
4534    
4535    
4536    
4537    
4538    
4539    
4540    
4541    
4542    
4543    
4544    
4545    
4546    
4547 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4548 db 941 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4549 michael 1106 if ${ac_cv_path_SED+:} false; then :
4550 db 941 $as_echo_n "(cached) " >&6
4551 michael 912 else
4552 michael 945 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4553     for ac_i in 1 2 3 4 5 6 7; do
4554     ac_script="$ac_script$as_nl$ac_script"
4555     done
4556     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4557 michael 967 { ac_script=; unset ac_script;}
4558 michael 945 if test -z "$SED"; then
4559     ac_path_SED_found=false
4560     # Loop through the user's path and test for each of PROGNAME-LIST
4561     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 michael 912 for as_dir in $PATH
4563     do
4564     IFS=$as_save_IFS
4565     test -z "$as_dir" && as_dir=.
4566 michael 967 for ac_prog in sed gsed; do
4567 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
4568 michael 945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4569 michael 1373 as_fn_executable_p "$ac_path_SED" || continue
4570 michael 945 # Check for GNU ac_path_SED and select it if it is found.
4571     # Check for GNU $ac_path_SED
4572     case `"$ac_path_SED" --version 2>&1` in
4573     *GNU*)
4574     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4575     *)
4576     ac_count=0
4577     $as_echo_n 0123456789 >"conftest.in"
4578     while :
4579     do
4580     cat "conftest.in" "conftest.in" >"conftest.tmp"
4581     mv "conftest.tmp" "conftest.in"
4582     cp "conftest.in" "conftest.nl"
4583     $as_echo '' >> "conftest.nl"
4584     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4585     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4586 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4587 michael 945 if test $ac_count -gt ${ac_path_SED_max-0}; then
4588     # Best one so far, save it but keep looking for a better one
4589     ac_cv_path_SED="$ac_path_SED"
4590     ac_path_SED_max=$ac_count
4591     fi
4592     # 10*(2^10) chars as input seems more than enough
4593     test $ac_count -gt 10 && break
4594     done
4595     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4596     esac
4597    
4598     $ac_path_SED_found && break 3
4599 michael 912 done
4600     done
4601 michael 967 done
4602 michael 912 IFS=$as_save_IFS
4603 michael 945 if test -z "$ac_cv_path_SED"; then
4604 michael 1095 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4605 michael 912 fi
4606 michael 945 else
4607     ac_cv_path_SED=$SED
4608     fi
4609 michael 912
4610     fi
4611 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4612 michael 945 $as_echo "$ac_cv_path_SED" >&6; }
4613     SED="$ac_cv_path_SED"
4614     rm -f conftest.sed
4615 michael 912
4616 michael 945 test -z "$SED" && SED=sed
4617     Xsed="$SED -e 1s/^X//"
4618 michael 912
4619    
4620 michael 945
4621    
4622    
4623    
4624    
4625    
4626    
4627    
4628    
4629 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4630 db 941 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4631 michael 1106 if ${ac_cv_path_GREP+:} false; then :
4632 db 941 $as_echo_n "(cached) " >&6
4633 michael 912 else
4634 db 941 if test -z "$GREP"; then
4635 michael 912 ac_path_GREP_found=false
4636 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4637     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4638 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4639     do
4640     IFS=$as_save_IFS
4641     test -z "$as_dir" && as_dir=.
4642 michael 967 for ac_prog in grep ggrep; do
4643 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4644     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4645 michael 1373 as_fn_executable_p "$ac_path_GREP" || continue
4646 db 941 # Check for GNU ac_path_GREP and select it if it is found.
4647 michael 912 # Check for GNU $ac_path_GREP
4648     case `"$ac_path_GREP" --version 2>&1` in
4649     *GNU*)
4650     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4651     *)
4652     ac_count=0
4653 db 941 $as_echo_n 0123456789 >"conftest.in"
4654 michael 912 while :
4655     do
4656     cat "conftest.in" "conftest.in" >"conftest.tmp"
4657     mv "conftest.tmp" "conftest.in"
4658     cp "conftest.in" "conftest.nl"
4659 db 941 $as_echo 'GREP' >> "conftest.nl"
4660 michael 912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4661     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4662 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4663 michael 912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4664     # Best one so far, save it but keep looking for a better one
4665     ac_cv_path_GREP="$ac_path_GREP"
4666     ac_path_GREP_max=$ac_count
4667     fi
4668     # 10*(2^10) chars as input seems more than enough
4669     test $ac_count -gt 10 && break
4670     done
4671     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4672     esac
4673    
4674 db 941 $ac_path_GREP_found && break 3
4675     done
4676 michael 912 done
4677 michael 967 done
4678 michael 912 IFS=$as_save_IFS
4679 db 941 if test -z "$ac_cv_path_GREP"; then
4680 michael 1095 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4681 db 941 fi
4682 michael 912 else
4683     ac_cv_path_GREP=$GREP
4684     fi
4685    
4686     fi
4687 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4688 db 941 $as_echo "$ac_cv_path_GREP" >&6; }
4689 michael 912 GREP="$ac_cv_path_GREP"
4690    
4691    
4692 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4693 db 941 $as_echo_n "checking for egrep... " >&6; }
4694 michael 1106 if ${ac_cv_path_EGREP+:} false; then :
4695 db 941 $as_echo_n "(cached) " >&6
4696 michael 912 else
4697     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4698     then ac_cv_path_EGREP="$GREP -E"
4699     else
4700 db 941 if test -z "$EGREP"; then
4701 michael 912 ac_path_EGREP_found=false
4702 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4703     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4705     do
4706     IFS=$as_save_IFS
4707     test -z "$as_dir" && as_dir=.
4708 michael 967 for ac_prog in egrep; do
4709 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4710     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4711 michael 1373 as_fn_executable_p "$ac_path_EGREP" || continue
4712 db 941 # Check for GNU ac_path_EGREP and select it if it is found.
4713 michael 912 # Check for GNU $ac_path_EGREP
4714     case `"$ac_path_EGREP" --version 2>&1` in
4715     *GNU*)
4716     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4717     *)
4718     ac_count=0
4719 db 941 $as_echo_n 0123456789 >"conftest.in"
4720 michael 912 while :
4721     do
4722     cat "conftest.in" "conftest.in" >"conftest.tmp"
4723     mv "conftest.tmp" "conftest.in"
4724     cp "conftest.in" "conftest.nl"
4725 db 941 $as_echo 'EGREP' >> "conftest.nl"
4726 michael 912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4729 michael 912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4730     # Best one so far, save it but keep looking for a better one
4731     ac_cv_path_EGREP="$ac_path_EGREP"
4732     ac_path_EGREP_max=$ac_count
4733     fi
4734     # 10*(2^10) chars as input seems more than enough
4735     test $ac_count -gt 10 && break
4736     done
4737     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4738     esac
4739    
4740 db 941 $ac_path_EGREP_found && break 3
4741     done
4742 michael 912 done
4743 michael 967 done
4744 michael 912 IFS=$as_save_IFS
4745 db 941 if test -z "$ac_cv_path_EGREP"; then
4746 michael 1095 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4747 db 941 fi
4748 michael 912 else
4749     ac_cv_path_EGREP=$EGREP
4750     fi
4751    
4752     fi
4753     fi
4754 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4755 db 941 $as_echo "$ac_cv_path_EGREP" >&6; }
4756 michael 912 EGREP="$ac_cv_path_EGREP"
4757    
4758    
4759 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4760 michael 945 $as_echo_n "checking for fgrep... " >&6; }
4761 michael 1106 if ${ac_cv_path_FGREP+:} false; then :
4762 michael 945 $as_echo_n "(cached) " >&6
4763     else
4764     if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4765     then ac_cv_path_FGREP="$GREP -F"
4766     else
4767     if test -z "$FGREP"; then
4768     ac_path_FGREP_found=false
4769     # Loop through the user's path and test for each of PROGNAME-LIST
4770     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4771     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4772     do
4773     IFS=$as_save_IFS
4774     test -z "$as_dir" && as_dir=.
4775 michael 967 for ac_prog in fgrep; do
4776 michael 945 for ac_exec_ext in '' $ac_executable_extensions; do
4777     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4778 michael 1373 as_fn_executable_p "$ac_path_FGREP" || continue
4779 michael 945 # Check for GNU ac_path_FGREP and select it if it is found.
4780     # Check for GNU $ac_path_FGREP
4781     case `"$ac_path_FGREP" --version 2>&1` in
4782     *GNU*)
4783     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4784     *)
4785     ac_count=0
4786     $as_echo_n 0123456789 >"conftest.in"
4787     while :
4788     do
4789     cat "conftest.in" "conftest.in" >"conftest.tmp"
4790     mv "conftest.tmp" "conftest.in"
4791     cp "conftest.in" "conftest.nl"
4792     $as_echo 'FGREP' >> "conftest.nl"
4793     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4794     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4795 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4796 michael 945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4797     # Best one so far, save it but keep looking for a better one
4798     ac_cv_path_FGREP="$ac_path_FGREP"
4799     ac_path_FGREP_max=$ac_count
4800     fi
4801     # 10*(2^10) chars as input seems more than enough
4802     test $ac_count -gt 10 && break
4803     done
4804     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4805     esac
4806 michael 912
4807 michael 945 $ac_path_FGREP_found && break 3
4808     done
4809     done
4810 michael 967 done
4811 michael 945 IFS=$as_save_IFS
4812     if test -z "$ac_cv_path_FGREP"; then
4813 michael 1095 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4814 michael 945 fi
4815     else
4816     ac_cv_path_FGREP=$FGREP
4817     fi
4818    
4819     fi
4820     fi
4821 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4822 michael 945 $as_echo "$ac_cv_path_FGREP" >&6; }
4823     FGREP="$ac_cv_path_FGREP"
4824    
4825    
4826     test -z "$GREP" && GREP=grep
4827    
4828    
4829    
4830    
4831    
4832    
4833    
4834    
4835    
4836    
4837    
4838    
4839    
4840    
4841    
4842    
4843    
4844    
4845    
4846 michael 912 # Check whether --with-gnu-ld was given.
4847 michael 967 if test "${with_gnu_ld+set}" = set; then :
4848 michael 912 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4849     else
4850     with_gnu_ld=no
4851     fi
4852    
4853     ac_prog=ld
4854     if test "$GCC" = yes; then
4855     # Check if gcc -print-prog-name=ld gives a path.
4856 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4857 db 941 $as_echo_n "checking for ld used by $CC... " >&6; }
4858 michael 912 case $host in
4859     *-*-mingw*)
4860     # gcc leaves a trailing carriage return which upsets mingw
4861     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4862     *)
4863     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4864     esac
4865     case $ac_prog in
4866     # Accept absolute paths.
4867     [\\/]* | ?:[\\/]*)
4868     re_direlt='/[^/][^/]*/\.\./'
4869     # Canonicalize the pathname of ld
4870 michael 945 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4871     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4872     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4873 michael 912 done
4874     test -z "$LD" && LD="$ac_prog"
4875     ;;
4876     "")
4877     # If it fails, then pretend we aren't using GCC.
4878     ac_prog=ld
4879     ;;
4880     *)
4881     # If it is relative, then search for the first ld in PATH.
4882     with_gnu_ld=unknown
4883     ;;
4884     esac
4885     elif test "$with_gnu_ld" = yes; then
4886 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4887 db 941 $as_echo_n "checking for GNU ld... " >&6; }
4888 michael 912 else
4889 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4890 db 941 $as_echo_n "checking for non-GNU ld... " >&6; }
4891 michael 912 fi
4892 michael 1106 if ${lt_cv_path_LD+:} false; then :
4893 db 941 $as_echo_n "(cached) " >&6
4894 michael 912 else
4895     if test -z "$LD"; then
4896     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4897     for ac_dir in $PATH; do
4898     IFS="$lt_save_ifs"
4899     test -z "$ac_dir" && ac_dir=.
4900     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4901     lt_cv_path_LD="$ac_dir/$ac_prog"
4902     # Check to see if the program is GNU ld. I'd rather use --version,
4903     # but apparently some variants of GNU ld only accept -v.
4904     # Break only if it was the GNU/non-GNU ld that we prefer.
4905     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4906     *GNU* | *'with BFD'*)
4907     test "$with_gnu_ld" != no && break
4908     ;;
4909     *)
4910     test "$with_gnu_ld" != yes && break
4911     ;;
4912     esac
4913     fi
4914     done
4915     IFS="$lt_save_ifs"
4916     else
4917     lt_cv_path_LD="$LD" # Let the user override the test with a path.
4918     fi
4919     fi
4920    
4921     LD="$lt_cv_path_LD"
4922     if test -n "$LD"; then
4923 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4924 db 941 $as_echo "$LD" >&6; }
4925 michael 912 else
4926 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4927 db 941 $as_echo "no" >&6; }
4928 michael 912 fi
4929 michael 1095 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4930 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4931 db 941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4932 michael 1106 if ${lt_cv_prog_gnu_ld+:} false; then :
4933 db 941 $as_echo_n "(cached) " >&6
4934 michael 912 else
4935     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4936     case `$LD -v 2>&1 </dev/null` in
4937     *GNU* | *'with BFD'*)
4938     lt_cv_prog_gnu_ld=yes
4939     ;;
4940     *)
4941     lt_cv_prog_gnu_ld=no
4942     ;;
4943     esac
4944     fi
4945 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4946 db 941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4947 michael 912 with_gnu_ld=$lt_cv_prog_gnu_ld
4948    
4949    
4950    
4951 michael 945
4952    
4953    
4954    
4955    
4956    
4957 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4958 michael 945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4959 michael 1106 if ${lt_cv_path_NM+:} false; then :
4960 db 941 $as_echo_n "(cached) " >&6
4961 michael 912 else
4962     if test -n "$NM"; then
4963     # Let the user override the test.
4964     lt_cv_path_NM="$NM"
4965     else
4966     lt_nm_to_check="${ac_tool_prefix}nm"
4967     if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4968     lt_nm_to_check="$lt_nm_to_check nm"
4969     fi
4970     for lt_tmp_nm in $lt_nm_to_check; do
4971     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4972     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4973     IFS="$lt_save_ifs"
4974     test -z "$ac_dir" && ac_dir=.
4975     tmp_nm="$ac_dir/$lt_tmp_nm"
4976     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4977     # Check to see if the nm accepts a BSD-compat flag.
4978     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4979     # nm: unknown option "B" ignored
4980     # Tru64's nm complains that /dev/null is an invalid object file
4981     case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4982     */dev/null* | *'Invalid file or object type'*)
4983     lt_cv_path_NM="$tmp_nm -B"
4984     break
4985     ;;
4986     *)
4987     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4988     */dev/null*)
4989     lt_cv_path_NM="$tmp_nm -p"
4990     break
4991     ;;
4992     *)
4993     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4994     continue # so that we can try to find one that supports BSD flags
4995     ;;
4996     esac
4997     ;;
4998     esac
4999     fi
5000     done
5001     IFS="$lt_save_ifs"
5002     done
5003 michael 945 : ${lt_cv_path_NM=no}
5004 michael 912 fi
5005     fi
5006 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5007 db 941 $as_echo "$lt_cv_path_NM" >&6; }
5008 michael 945 if test "$lt_cv_path_NM" != "no"; then
5009     NM="$lt_cv_path_NM"
5010     else
5011     # Didn't find any BSD compatible name lister, look for dumpbin.
5012 michael 1094 if test -n "$DUMPBIN"; then :
5013     # Let the user override the test.
5014     else
5015     if test -n "$ac_tool_prefix"; then
5016     for ac_prog in dumpbin "link -dump"
5017 michael 945 do
5018     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5019     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5020 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5022 michael 1106 if ${ac_cv_prog_DUMPBIN+:} false; then :
5023 michael 945 $as_echo_n "(cached) " >&6
5024     else
5025     if test -n "$DUMPBIN"; then
5026     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5027     else
5028     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029     for as_dir in $PATH
5030     do
5031     IFS=$as_save_IFS
5032     test -z "$as_dir" && as_dir=.
5033 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5034 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5035 michael 945 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5036 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5037 michael 945 break 2
5038     fi
5039     done
5040 michael 967 done
5041 michael 945 IFS=$as_save_IFS
5042 michael 912
5043 michael 945 fi
5044     fi
5045     DUMPBIN=$ac_cv_prog_DUMPBIN
5046     if test -n "$DUMPBIN"; then
5047 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5048 michael 945 $as_echo "$DUMPBIN" >&6; }
5049     else
5050 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 michael 945 $as_echo "no" >&6; }
5052     fi
5053    
5054    
5055     test -n "$DUMPBIN" && break
5056     done
5057     fi
5058     if test -z "$DUMPBIN"; then
5059     ac_ct_DUMPBIN=$DUMPBIN
5060 michael 1094 for ac_prog in dumpbin "link -dump"
5061 michael 945 do
5062     # Extract the first word of "$ac_prog", so it can be a program name with args.
5063     set dummy $ac_prog; ac_word=$2
5064 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5066 michael 1106 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5067 michael 945 $as_echo_n "(cached) " >&6
5068     else
5069     if test -n "$ac_ct_DUMPBIN"; then
5070     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5071     else
5072     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073     for as_dir in $PATH
5074     do
5075     IFS=$as_save_IFS
5076     test -z "$as_dir" && as_dir=.
5077 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5078 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5079 michael 945 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5080 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5081 michael 945 break 2
5082     fi
5083     done
5084 michael 967 done
5085 michael 945 IFS=$as_save_IFS
5086    
5087     fi
5088     fi
5089     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5090     if test -n "$ac_ct_DUMPBIN"; then
5091 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5092 michael 945 $as_echo "$ac_ct_DUMPBIN" >&6; }
5093     else
5094 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5095 michael 945 $as_echo "no" >&6; }
5096     fi
5097    
5098    
5099     test -n "$ac_ct_DUMPBIN" && break
5100     done
5101    
5102     if test "x$ac_ct_DUMPBIN" = x; then
5103     DUMPBIN=":"
5104     else
5105     case $cross_compiling:$ac_tool_warned in
5106     yes:)
5107 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5108 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5109     ac_tool_warned=yes ;;
5110     esac
5111     DUMPBIN=$ac_ct_DUMPBIN
5112     fi
5113     fi
5114    
5115 michael 1094 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5116     *COFF*)
5117     DUMPBIN="$DUMPBIN -symbols"
5118     ;;
5119     *)
5120     DUMPBIN=:
5121     ;;
5122     esac
5123     fi
5124 michael 945
5125     if test "$DUMPBIN" != ":"; then
5126     NM="$DUMPBIN"
5127     fi
5128     fi
5129     test -z "$NM" && NM=nm
5130    
5131    
5132    
5133    
5134    
5135    
5136 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5137 michael 945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5138 michael 1106 if ${lt_cv_nm_interface+:} false; then :
5139 michael 945 $as_echo_n "(cached) " >&6
5140     else
5141     lt_cv_nm_interface="BSD nm"
5142     echo "int some_variable = 0;" > conftest.$ac_ext
5143 michael 1094 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5144 michael 945 (eval "$ac_compile" 2>conftest.err)
5145     cat conftest.err >&5
5146 michael 1094 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5147 michael 945 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5148     cat conftest.err >&5
5149 michael 1094 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5150 michael 945 cat conftest.out >&5
5151     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5152     lt_cv_nm_interface="MS dumpbin"
5153     fi
5154     rm -f conftest*
5155     fi
5156 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5157 michael 945 $as_echo "$lt_cv_nm_interface" >&6; }
5158    
5159 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5160 db 941 $as_echo_n "checking whether ln -s works... " >&6; }
5161 michael 912 LN_S=$as_ln_s
5162     if test "$LN_S" = "ln -s"; then
5163 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5164 db 941 $as_echo "yes" >&6; }
5165 michael 912 else
5166 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5167 db 941 $as_echo "no, using $LN_S" >&6; }
5168 michael 912 fi
5169    
5170 michael 945 # find the maximum length of command line arguments
5171 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5172 michael 945 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5173 michael 1106 if ${lt_cv_sys_max_cmd_len+:} false; then :
5174 michael 945 $as_echo_n "(cached) " >&6
5175     else
5176     i=0
5177     teststring="ABCD"
5178    
5179     case $build_os in
5180     msdosdjgpp*)
5181     # On DJGPP, this test can blow up pretty badly due to problems in libc
5182     # (any single argument exceeding 2000 bytes causes a buffer overrun
5183     # during glob expansion). Even if it were fixed, the result of this
5184     # check would be larger than it should be.
5185     lt_cv_sys_max_cmd_len=12288; # 12K is about right
5186     ;;
5187    
5188     gnu*)
5189     # Under GNU Hurd, this test is not required because there is
5190     # no limit to the length of command line arguments.
5191     # Libtool will interpret -1 as no limit whatsoever
5192     lt_cv_sys_max_cmd_len=-1;
5193     ;;
5194    
5195     cygwin* | mingw* | cegcc*)
5196     # On Win9x/ME, this test blows up -- it succeeds, but takes
5197     # about 5 minutes as the teststring grows exponentially.
5198     # Worse, since 9x/ME are not pre-emptively multitasking,
5199     # you end up with a "frozen" computer, even though with patience
5200     # the test eventually succeeds (with a max line length of 256k).
5201     # Instead, let's just punt: use the minimum linelength reported by
5202     # all of the supported platforms: 8192 (on NT/2K/XP).
5203     lt_cv_sys_max_cmd_len=8192;
5204     ;;
5205    
5206 michael 1094 mint*)
5207     # On MiNT this can take a long time and run out of memory.
5208     lt_cv_sys_max_cmd_len=8192;
5209     ;;
5210    
5211 michael 945 amigaos*)
5212     # On AmigaOS with pdksh, this test takes hours, literally.
5213     # So we just punt and use a minimum line length of 8192.
5214     lt_cv_sys_max_cmd_len=8192;
5215     ;;
5216    
5217     netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5218     # This has been around since 386BSD, at least. Likely further.
5219     if test -x /sbin/sysctl; then
5220     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5221     elif test -x /usr/sbin/sysctl; then
5222     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5223     else
5224     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5225     fi
5226     # And add a safety zone
5227     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5228     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5229     ;;
5230    
5231     interix*)
5232     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5233     lt_cv_sys_max_cmd_len=196608
5234     ;;
5235    
5236 michael 1257 os2*)
5237     # The test takes a long time on OS/2.
5238     lt_cv_sys_max_cmd_len=8192
5239     ;;
5240    
5241 michael 945 osf*)
5242     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5243     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5244     # nice to cause kernel panics so lets avoid the loop below.
5245     # First set a reasonable default.
5246     lt_cv_sys_max_cmd_len=16384
5247     #
5248     if test -x /sbin/sysconfig; then
5249     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5250     *1*) lt_cv_sys_max_cmd_len=-1 ;;
5251     esac
5252     fi
5253     ;;
5254     sco3.2v5*)
5255     lt_cv_sys_max_cmd_len=102400
5256     ;;
5257     sysv5* | sco5v6* | sysv4.2uw2*)
5258     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5259     if test -n "$kargmax"; then
5260     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5261     else
5262     lt_cv_sys_max_cmd_len=32768
5263     fi
5264     ;;
5265     *)
5266     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5267     if test -n "$lt_cv_sys_max_cmd_len"; then
5268     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5269     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5270     else
5271     # Make teststring a little bigger before we do anything with it.
5272     # a 1K string should be a reasonable start.
5273     for i in 1 2 3 4 5 6 7 8 ; do
5274     teststring=$teststring$teststring
5275     done
5276     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5277     # If test is not a shell built-in, we'll probably end up computing a
5278     # maximum length that is only half of the actual maximum length, but
5279     # we can't tell.
5280 michael 1257 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5281 michael 1094 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5282 michael 945 test $i != 17 # 1/2 MB should be enough
5283     do
5284     i=`expr $i + 1`
5285     teststring=$teststring$teststring
5286     done
5287     # Only check the string length outside the loop.
5288     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5289     teststring=
5290     # Add a significant safety factor because C++ compilers can tack on
5291     # massive amounts of additional arguments before passing them to the
5292     # linker. It appears as though 1/2 is a usable value.
5293     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5294     fi
5295     ;;
5296     esac
5297    
5298     fi
5299    
5300     if test -n $lt_cv_sys_max_cmd_len ; then
5301 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5302 michael 945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5303     else
5304 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5305 michael 945 $as_echo "none" >&6; }
5306     fi
5307     max_cmd_len=$lt_cv_sys_max_cmd_len
5308    
5309    
5310    
5311    
5312    
5313    
5314     : ${CP="cp -f"}
5315     : ${MV="mv -f"}
5316     : ${RM="rm -f"}
5317    
5318 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5319 michael 945 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5320     # Try some XSI features
5321     xsi_shell=no
5322     ( _lt_dummy="a/b/c"
5323 michael 1106 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5324     = c,a/b,b/c, \
5325 michael 945 && eval 'test $(( 1 + 1 )) -eq 2 \
5326     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5327     && xsi_shell=yes
5328 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5329 michael 945 $as_echo "$xsi_shell" >&6; }
5330    
5331    
5332 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5333 michael 945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5334     lt_shell_append=no
5335     ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5336     >/dev/null 2>&1 \
5337     && lt_shell_append=yes
5338 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5339 michael 945 $as_echo "$lt_shell_append" >&6; }
5340    
5341    
5342     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5343     lt_unset=unset
5344     else
5345     lt_unset=false
5346     fi
5347    
5348    
5349    
5350    
5351    
5352     # test EBCDIC or ASCII
5353     case `echo X|tr X '\101'` in
5354     A) # ASCII based system
5355     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5356     lt_SP2NL='tr \040 \012'
5357     lt_NL2SP='tr \015\012 \040\040'
5358     ;;
5359     *) # EBCDIC based system
5360     lt_SP2NL='tr \100 \n'
5361     lt_NL2SP='tr \r\n \100\100'
5362     ;;
5363     esac
5364    
5365    
5366    
5367    
5368    
5369    
5370    
5371    
5372    
5373 michael 1106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5374     $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5375     if ${lt_cv_to_host_file_cmd+:} false; then :
5376     $as_echo_n "(cached) " >&6
5377     else
5378     case $host in
5379     *-*-mingw* )
5380     case $build in
5381     *-*-mingw* ) # actually msys
5382     lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5383     ;;
5384     *-*-cygwin* )
5385     lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5386     ;;
5387     * ) # otherwise, assume *nix
5388     lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5389     ;;
5390     esac
5391     ;;
5392     *-*-cygwin* )
5393     case $build in
5394     *-*-mingw* ) # actually msys
5395     lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5396     ;;
5397     *-*-cygwin* )
5398     lt_cv_to_host_file_cmd=func_convert_file_noop
5399     ;;
5400     * ) # otherwise, assume *nix
5401     lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5402     ;;
5403     esac
5404     ;;
5405     * ) # unhandled hosts (and "normal" native builds)
5406     lt_cv_to_host_file_cmd=func_convert_file_noop
5407     ;;
5408     esac
5409    
5410     fi
5411    
5412     to_host_file_cmd=$lt_cv_to_host_file_cmd
5413     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5414     $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5415    
5416    
5417    
5418    
5419    
5420     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5421     $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5422     if ${lt_cv_to_tool_file_cmd+:} false; then :
5423     $as_echo_n "(cached) " >&6
5424     else
5425     #assume ordinary cross tools, or native build.
5426     lt_cv_to_tool_file_cmd=func_convert_file_noop
5427     case $host in
5428     *-*-mingw* )
5429     case $build in
5430     *-*-mingw* ) # actually msys
5431     lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5432     ;;
5433     esac
5434     ;;
5435     esac
5436    
5437     fi
5438    
5439     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5440     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5441     $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5442    
5443    
5444    
5445    
5446    
5447 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5448 michael 945 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5449 michael 1106 if ${lt_cv_ld_reload_flag+:} false; then :
5450 michael 945 $as_echo_n "(cached) " >&6
5451     else
5452     lt_cv_ld_reload_flag='-r'
5453     fi
5454 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5455 michael 945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5456     reload_flag=$lt_cv_ld_reload_flag
5457     case $reload_flag in
5458     "" | " "*) ;;
5459     *) reload_flag=" $reload_flag" ;;
5460     esac
5461     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5462     case $host_os in
5463 michael 1106 cygwin* | mingw* | pw32* | cegcc*)
5464     if test "$GCC" != yes; then
5465     reload_cmds=false
5466     fi
5467     ;;
5468 michael 945 darwin*)
5469     if test "$GCC" = yes; then
5470     reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5471     else
5472     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5473     fi
5474     ;;
5475     esac
5476    
5477    
5478    
5479    
5480    
5481    
5482    
5483    
5484    
5485     if test -n "$ac_tool_prefix"; then
5486     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5487     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5488 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5490 michael 1106 if ${ac_cv_prog_OBJDUMP+:} false; then :
5491 michael 945 $as_echo_n "(cached) " >&6
5492     else
5493     if test -n "$OBJDUMP"; then
5494     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5495     else
5496     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497     for as_dir in $PATH
5498     do
5499     IFS=$as_save_IFS
5500     test -z "$as_dir" && as_dir=.
5501 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5502 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5503 michael 945 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5504 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 michael 945 break 2
5506     fi
5507     done
5508 michael 967 done
5509 michael 945 IFS=$as_save_IFS
5510    
5511     fi
5512     fi
5513     OBJDUMP=$ac_cv_prog_OBJDUMP
5514     if test -n "$OBJDUMP"; then
5515 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5516 michael 945 $as_echo "$OBJDUMP" >&6; }
5517     else
5518 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 michael 945 $as_echo "no" >&6; }
5520     fi
5521    
5522    
5523     fi
5524     if test -z "$ac_cv_prog_OBJDUMP"; then
5525     ac_ct_OBJDUMP=$OBJDUMP
5526     # Extract the first word of "objdump", so it can be a program name with args.
5527     set dummy objdump; ac_word=$2
5528 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5530 michael 1106 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5531 michael 945 $as_echo_n "(cached) " >&6
5532     else
5533     if test -n "$ac_ct_OBJDUMP"; then
5534     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5535     else
5536     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537     for as_dir in $PATH
5538     do
5539     IFS=$as_save_IFS
5540     test -z "$as_dir" && as_dir=.
5541 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5542 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543 michael 945 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5544 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 michael 945 break 2
5546     fi
5547     done
5548 michael 967 done
5549 michael 945 IFS=$as_save_IFS
5550    
5551     fi
5552     fi
5553     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5554     if test -n "$ac_ct_OBJDUMP"; then
5555 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5556 michael 945 $as_echo "$ac_ct_OBJDUMP" >&6; }
5557     else
5558 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 michael 945 $as_echo "no" >&6; }
5560     fi
5561    
5562     if test "x$ac_ct_OBJDUMP" = x; then
5563     OBJDUMP="false"
5564     else
5565     case $cross_compiling:$ac_tool_warned in
5566     yes:)
5567 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5568 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5569     ac_tool_warned=yes ;;
5570     esac
5571     OBJDUMP=$ac_ct_OBJDUMP
5572     fi
5573     else
5574     OBJDUMP="$ac_cv_prog_OBJDUMP"
5575     fi
5576    
5577     test -z "$OBJDUMP" && OBJDUMP=objdump
5578    
5579    
5580    
5581    
5582    
5583    
5584    
5585    
5586    
5587 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5588 db 941 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5589 michael 1106 if ${lt_cv_deplibs_check_method+:} false; then :
5590 db 941 $as_echo_n "(cached) " >&6
5591 michael 912 else
5592     lt_cv_file_magic_cmd='$MAGIC_CMD'
5593     lt_cv_file_magic_test_file=
5594     lt_cv_deplibs_check_method='unknown'
5595     # Need to set the preceding variable on all platforms that support
5596     # interlibrary dependencies.
5597     # 'none' -- dependencies not supported.
5598     # `unknown' -- same as none, but documents that we really don't know.
5599     # 'pass_all' -- all dependencies passed with no checks.
5600     # 'test_compile' -- check by making test program.
5601     # 'file_magic [[regex]]' -- check by looking for files in library path
5602     # which responds to the $file_magic_cmd with a given extended regex.
5603     # If you have `file' or equivalent on your system and you're not sure
5604     # whether `pass_all' will *always* work, you probably want this one.
5605    
5606     case $host_os in
5607 db 941 aix[4-9]*)
5608 michael 912 lt_cv_deplibs_check_method=pass_all
5609     ;;
5610    
5611     beos*)
5612     lt_cv_deplibs_check_method=pass_all
5613     ;;
5614    
5615     bsdi[45]*)
5616     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5617     lt_cv_file_magic_cmd='/usr/bin/file -L'
5618     lt_cv_file_magic_test_file=/shlib/libc.so
5619     ;;
5620    
5621     cygwin*)
5622     # func_win32_libid is a shell function defined in ltmain.sh
5623     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5624     lt_cv_file_magic_cmd='func_win32_libid'
5625     ;;
5626    
5627     mingw* | pw32*)
5628     # Base MSYS/MinGW do not provide the 'file' command needed by
5629     # func_win32_libid shell function, so use a weaker test based on 'objdump',
5630     # unless we find 'file', for example because we are cross-compiling.
5631 michael 1094 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5632     if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5633 michael 912 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5634     lt_cv_file_magic_cmd='func_win32_libid'
5635     else
5636 michael 1094 # Keep this pattern in sync with the one in func_win32_libid.
5637     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5638 michael 912 lt_cv_file_magic_cmd='$OBJDUMP -f'
5639     fi
5640     ;;
5641    
5642 michael 1094 cegcc*)
5643 michael 945 # use the weaker test based on 'objdump'. See mingw*.
5644     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5645     lt_cv_file_magic_cmd='$OBJDUMP -f'
5646     ;;
5647    
5648 michael 912 darwin* | rhapsody*)
5649     lt_cv_deplibs_check_method=pass_all
5650     ;;
5651    
5652     freebsd* | dragonfly*)
5653 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5654 michael 912 case $host_cpu in
5655     i*86 )
5656     # Not sure whether the presence of OpenBSD here was a mistake.
5657     # Let's accept both of them until this is cleared up.
5658     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5659     lt_cv_file_magic_cmd=/usr/bin/file
5660     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5661     ;;
5662     esac
5663     else
5664     lt_cv_deplibs_check_method=pass_all
5665     fi
5666     ;;
5667    
5668     gnu*)
5669     lt_cv_deplibs_check_method=pass_all
5670     ;;
5671    
5672 michael 1094 haiku*)
5673     lt_cv_deplibs_check_method=pass_all
5674     ;;
5675    
5676 michael 912 hpux10.20* | hpux11*)
5677     lt_cv_file_magic_cmd=/usr/bin/file
5678     case $host_cpu in
5679     ia64*)
5680     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5681     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5682     ;;
5683     hppa*64*)
5684 michael 1094 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]'
5685 michael 912 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5686     ;;
5687     *)
5688 michael 1094 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5689 michael 912 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5690     ;;
5691     esac
5692     ;;
5693    
5694     interix[3-9]*)
5695     # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5696     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5697     ;;
5698    
5699     irix5* | irix6* | nonstopux*)
5700     case $LD in
5701     *-32|*"-32 ") libmagic=32-bit;;
5702     *-n32|*"-n32 ") libmagic=N32;;
5703     *-64|*"-64 ") libmagic=64-bit;;
5704     *) libmagic=never-match;;
5705     esac
5706     lt_cv_deplibs_check_method=pass_all
5707     ;;
5708    
5709 michael 1257 # This must be glibc/ELF.
5710 michael 1094 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5711 michael 912 lt_cv_deplibs_check_method=pass_all
5712     ;;
5713    
5714     netbsd*)
5715 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5716 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5717     else
5718     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5719     fi
5720     ;;
5721    
5722     newos6*)
5723     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5724     lt_cv_file_magic_cmd=/usr/bin/file
5725     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5726     ;;
5727    
5728 michael 945 *nto* | *qnx*)
5729     lt_cv_deplibs_check_method=pass_all
5730 michael 912 ;;
5731    
5732     openbsd*)
5733 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5734 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5735     else
5736     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5737     fi
5738     ;;
5739    
5740     osf3* | osf4* | osf5*)
5741     lt_cv_deplibs_check_method=pass_all
5742     ;;
5743    
5744     rdos*)
5745     lt_cv_deplibs_check_method=pass_all
5746     ;;
5747    
5748     solaris*)
5749     lt_cv_deplibs_check_method=pass_all
5750     ;;
5751    
5752 michael 945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5753     lt_cv_deplibs_check_method=pass_all
5754     ;;
5755    
5756 michael 912 sysv4 | sysv4.3*)
5757     case $host_vendor in
5758     motorola)
5759     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]'
5760     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5761     ;;
5762     ncr)
5763     lt_cv_deplibs_check_method=pass_all
5764     ;;
5765     sequent)
5766     lt_cv_file_magic_cmd='/bin/file'
5767     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5768     ;;
5769     sni)
5770     lt_cv_file_magic_cmd='/bin/file'
5771     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5772     lt_cv_file_magic_test_file=/lib/libc.so
5773     ;;
5774     siemens)
5775     lt_cv_deplibs_check_method=pass_all
5776     ;;
5777     pc)
5778     lt_cv_deplibs_check_method=pass_all
5779     ;;
5780     esac
5781     ;;
5782    
5783 michael 945 tpf*)
5784 michael 912 lt_cv_deplibs_check_method=pass_all
5785     ;;
5786     esac
5787    
5788     fi
5789 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5790 db 941 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5791 michael 1106
5792     file_magic_glob=
5793     want_nocaseglob=no
5794     if test "$build" = "$host"; then
5795     case $host_os in
5796     mingw* | pw32*)
5797     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5798     want_nocaseglob=yes
5799     else
5800     file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5801     fi
5802     ;;
5803     esac
5804     fi
5805    
5806 michael 912 file_magic_cmd=$lt_cv_file_magic_cmd
5807     deplibs_check_method=$lt_cv_deplibs_check_method
5808     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5809    
5810    
5811    
5812    
5813 michael 945
5814    
5815    
5816    
5817    
5818    
5819    
5820    
5821 michael 1106
5822    
5823    
5824    
5825    
5826    
5827    
5828    
5829    
5830    
5831 michael 945 if test -n "$ac_tool_prefix"; then
5832 michael 1106 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5833     set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5834 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5835 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5836 michael 1106 if ${ac_cv_prog_DLLTOOL+:} false; then :
5837 michael 945 $as_echo_n "(cached) " >&6
5838     else
5839 michael 1106 if test -n "$DLLTOOL"; then
5840     ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5841     else
5842     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5843     for as_dir in $PATH
5844     do
5845     IFS=$as_save_IFS
5846     test -z "$as_dir" && as_dir=.
5847     for ac_exec_ext in '' $ac_executable_extensions; do
5848 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5849 michael 1106 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5850     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5851     break 2
5852     fi
5853     done
5854     done
5855     IFS=$as_save_IFS
5856    
5857     fi
5858     fi
5859     DLLTOOL=$ac_cv_prog_DLLTOOL
5860     if test -n "$DLLTOOL"; then
5861     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5862     $as_echo "$DLLTOOL" >&6; }
5863     else
5864     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865     $as_echo "no" >&6; }
5866     fi
5867    
5868    
5869     fi
5870     if test -z "$ac_cv_prog_DLLTOOL"; then
5871     ac_ct_DLLTOOL=$DLLTOOL
5872     # Extract the first word of "dlltool", so it can be a program name with args.
5873     set dummy dlltool; ac_word=$2
5874     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875     $as_echo_n "checking for $ac_word... " >&6; }
5876     if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5877     $as_echo_n "(cached) " >&6
5878     else
5879     if test -n "$ac_ct_DLLTOOL"; then
5880     ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5881     else
5882     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883     for as_dir in $PATH
5884     do
5885     IFS=$as_save_IFS
5886     test -z "$as_dir" && as_dir=.
5887     for ac_exec_ext in '' $ac_executable_extensions; do
5888 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 michael 1106 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5890     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892     fi
5893     done
5894     done
5895     IFS=$as_save_IFS
5896    
5897     fi
5898     fi
5899     ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5900     if test -n "$ac_ct_DLLTOOL"; then
5901     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5902     $as_echo "$ac_ct_DLLTOOL" >&6; }
5903     else
5904     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905     $as_echo "no" >&6; }
5906     fi
5907    
5908     if test "x$ac_ct_DLLTOOL" = x; then
5909     DLLTOOL="false"
5910     else
5911     case $cross_compiling:$ac_tool_warned in
5912     yes:)
5913     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5914     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5915     ac_tool_warned=yes ;;
5916     esac
5917     DLLTOOL=$ac_ct_DLLTOOL
5918     fi
5919     else
5920     DLLTOOL="$ac_cv_prog_DLLTOOL"
5921     fi
5922    
5923     test -z "$DLLTOOL" && DLLTOOL=dlltool
5924    
5925    
5926    
5927    
5928    
5929    
5930    
5931    
5932    
5933    
5934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5935     $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5936     if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5937     $as_echo_n "(cached) " >&6
5938     else
5939     lt_cv_sharedlib_from_linklib_cmd='unknown'
5940    
5941     case $host_os in
5942     cygwin* | mingw* | pw32* | cegcc*)
5943     # two different shell functions defined in ltmain.sh
5944     # decide which to use based on capabilities of $DLLTOOL
5945     case `$DLLTOOL --help 2>&1` in
5946     *--identify-strict*)
5947     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5948     ;;
5949     *)
5950     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5951     ;;
5952     esac
5953     ;;
5954     *)
5955     # fallback: assume linklib IS sharedlib
5956     lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5957     ;;
5958     esac
5959    
5960     fi
5961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5962     $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5963     sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5964     test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5965    
5966    
5967    
5968    
5969    
5970    
5971    
5972     if test -n "$ac_tool_prefix"; then
5973     for ac_prog in ar
5974     do
5975     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5976     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5977     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5978     $as_echo_n "checking for $ac_word... " >&6; }
5979     if ${ac_cv_prog_AR+:} false; then :
5980     $as_echo_n "(cached) " >&6
5981     else
5982 michael 945 if test -n "$AR"; then
5983     ac_cv_prog_AR="$AR" # Let the user override the test.
5984     else
5985     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986     for as_dir in $PATH
5987     do
5988     IFS=$as_save_IFS
5989     test -z "$as_dir" && as_dir=.
5990 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5991 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5992 michael 1106 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5993 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5994 michael 945 break 2
5995     fi
5996     done
5997 michael 967 done
5998 michael 945 IFS=$as_save_IFS
5999    
6000     fi
6001     fi
6002     AR=$ac_cv_prog_AR
6003     if test -n "$AR"; then
6004 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6005 michael 945 $as_echo "$AR" >&6; }
6006     else
6007 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6008 michael 945 $as_echo "no" >&6; }
6009     fi
6010    
6011    
6012 michael 1106 test -n "$AR" && break
6013     done
6014 michael 945 fi
6015 michael 1106 if test -z "$AR"; then
6016 michael 945 ac_ct_AR=$AR
6017 michael 1106 for ac_prog in ar
6018     do
6019     # Extract the first word of "$ac_prog", so it can be a program name with args.
6020     set dummy $ac_prog; ac_word=$2
6021 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6022 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6023 michael 1106 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6024 michael 945 $as_echo_n "(cached) " >&6
6025     else
6026     if test -n "$ac_ct_AR"; then
6027     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6028     else
6029     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6030     for as_dir in $PATH
6031     do
6032     IFS=$as_save_IFS
6033     test -z "$as_dir" && as_dir=.
6034 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6035 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6036 michael 1106 ac_cv_prog_ac_ct_AR="$ac_prog"
6037 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6038 michael 945 break 2
6039     fi
6040     done
6041 michael 967 done
6042 michael 945 IFS=$as_save_IFS
6043    
6044     fi
6045     fi
6046     ac_ct_AR=$ac_cv_prog_ac_ct_AR
6047     if test -n "$ac_ct_AR"; then
6048 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6049 michael 945 $as_echo "$ac_ct_AR" >&6; }
6050     else
6051 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6052 michael 945 $as_echo "no" >&6; }
6053     fi
6054    
6055 michael 1106
6056     test -n "$ac_ct_AR" && break
6057     done
6058    
6059 michael 945 if test "x$ac_ct_AR" = x; then
6060     AR="false"
6061     else
6062     case $cross_compiling:$ac_tool_warned in
6063     yes:)
6064 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6066     ac_tool_warned=yes ;;
6067     esac
6068     AR=$ac_ct_AR
6069     fi
6070     fi
6071    
6072 michael 1106 : ${AR=ar}
6073     : ${AR_FLAGS=cru}
6074 michael 945
6075    
6076    
6077    
6078    
6079    
6080    
6081    
6082    
6083    
6084    
6085 michael 1106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6086     $as_echo_n "checking for archiver @FILE support... " >&6; }
6087     if ${lt_cv_ar_at_file+:} false; then :
6088     $as_echo_n "(cached) " >&6
6089     else
6090     lt_cv_ar_at_file=no
6091     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092     /* end confdefs.h. */
6093    
6094     int
6095     main ()
6096     {
6097    
6098     ;
6099     return 0;
6100     }
6101     _ACEOF
6102     if ac_fn_c_try_compile "$LINENO"; then :
6103     echo conftest.$ac_objext > conftest.lst
6104     lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6105     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6106     (eval $lt_ar_try) 2>&5
6107     ac_status=$?
6108     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6109     test $ac_status = 0; }
6110     if test "$ac_status" -eq 0; then
6111     # Ensure the archiver fails upon bogus file names.
6112     rm -f conftest.$ac_objext libconftest.a
6113     { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6114     (eval $lt_ar_try) 2>&5
6115     ac_status=$?
6116     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6117     test $ac_status = 0; }
6118     if test "$ac_status" -ne 0; then
6119     lt_cv_ar_at_file=@
6120     fi
6121     fi
6122     rm -f conftest.* libconftest.a
6123    
6124     fi
6125     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6126    
6127     fi
6128     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6129     $as_echo "$lt_cv_ar_at_file" >&6; }
6130    
6131     if test "x$lt_cv_ar_at_file" = xno; then
6132     archiver_list_spec=
6133     else
6134     archiver_list_spec=$lt_cv_ar_at_file
6135     fi
6136    
6137    
6138    
6139    
6140    
6141    
6142    
6143 michael 945 if test -n "$ac_tool_prefix"; then
6144     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6145     set dummy ${ac_tool_prefix}strip; ac_word=$2
6146 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6148 michael 1106 if ${ac_cv_prog_STRIP+:} false; then :
6149 michael 945 $as_echo_n "(cached) " >&6
6150     else
6151     if test -n "$STRIP"; then
6152     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6153     else
6154     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155     for as_dir in $PATH
6156     do
6157     IFS=$as_save_IFS
6158     test -z "$as_dir" && as_dir=.
6159 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6160 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6161 michael 945 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6162 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163 michael 945 break 2
6164     fi
6165     done
6166 michael 967 done
6167 michael 945 IFS=$as_save_IFS
6168    
6169     fi
6170     fi
6171     STRIP=$ac_cv_prog_STRIP
6172     if test -n "$STRIP"; then
6173 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6174 michael 945 $as_echo "$STRIP" >&6; }
6175     else
6176 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177 michael 945 $as_echo "no" >&6; }
6178     fi
6179    
6180    
6181     fi
6182     if test -z "$ac_cv_prog_STRIP"; then
6183     ac_ct_STRIP=$STRIP
6184     # Extract the first word of "strip", so it can be a program name with args.
6185     set dummy strip; ac_word=$2
6186 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6188 michael 1106 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6189 michael 945 $as_echo_n "(cached) " >&6
6190     else
6191     if test -n "$ac_ct_STRIP"; then
6192     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6193     else
6194     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6195     for as_dir in $PATH
6196     do
6197     IFS=$as_save_IFS
6198     test -z "$as_dir" && as_dir=.
6199 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6200 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6201 michael 945 ac_cv_prog_ac_ct_STRIP="strip"
6202 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6203 michael 945 break 2
6204     fi
6205     done
6206 michael 967 done
6207 michael 945 IFS=$as_save_IFS
6208    
6209     fi
6210     fi
6211     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6212     if test -n "$ac_ct_STRIP"; then
6213 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6214 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
6215     else
6216 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6217 michael 945 $as_echo "no" >&6; }
6218     fi
6219    
6220     if test "x$ac_ct_STRIP" = x; then
6221     STRIP=":"
6222     else
6223     case $cross_compiling:$ac_tool_warned in
6224     yes:)
6225 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6226 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6227     ac_tool_warned=yes ;;
6228     esac
6229     STRIP=$ac_ct_STRIP
6230     fi
6231     else
6232     STRIP="$ac_cv_prog_STRIP"
6233     fi
6234    
6235     test -z "$STRIP" && STRIP=:
6236    
6237    
6238    
6239    
6240    
6241    
6242     if test -n "$ac_tool_prefix"; then
6243     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6244     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6245 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6247 michael 1106 if ${ac_cv_prog_RANLIB+:} false; then :
6248 michael 945 $as_echo_n "(cached) " >&6
6249     else
6250     if test -n "$RANLIB"; then
6251     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6252     else
6253     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254     for as_dir in $PATH
6255     do
6256     IFS=$as_save_IFS
6257     test -z "$as_dir" && as_dir=.
6258 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6259 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6260 michael 945 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6261 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262 michael 945 break 2
6263     fi
6264     done
6265 michael 967 done
6266 michael 945 IFS=$as_save_IFS
6267    
6268     fi
6269     fi
6270     RANLIB=$ac_cv_prog_RANLIB
6271     if test -n "$RANLIB"; then
6272 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6273 michael 945 $as_echo "$RANLIB" >&6; }
6274     else
6275 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276 michael 945 $as_echo "no" >&6; }
6277     fi
6278    
6279    
6280     fi
6281     if test -z "$ac_cv_prog_RANLIB"; then
6282     ac_ct_RANLIB=$RANLIB
6283     # Extract the first word of "ranlib", so it can be a program name with args.
6284     set dummy ranlib; ac_word=$2
6285 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6286 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6287 michael 1106 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6288 michael 945 $as_echo_n "(cached) " >&6
6289     else
6290     if test -n "$ac_ct_RANLIB"; then
6291     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6292     else
6293     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294     for as_dir in $PATH
6295     do
6296     IFS=$as_save_IFS
6297     test -z "$as_dir" && as_dir=.
6298 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6299 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300 michael 945 ac_cv_prog_ac_ct_RANLIB="ranlib"
6301 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6302 michael 945 break 2
6303     fi
6304     done
6305 michael 967 done
6306 michael 945 IFS=$as_save_IFS
6307    
6308     fi
6309     fi
6310     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6311     if test -n "$ac_ct_RANLIB"; then
6312 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6313 michael 945 $as_echo "$ac_ct_RANLIB" >&6; }
6314     else
6315 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6316 michael 945 $as_echo "no" >&6; }
6317     fi
6318    
6319     if test "x$ac_ct_RANLIB" = x; then
6320     RANLIB=":"
6321     else
6322     case $cross_compiling:$ac_tool_warned in
6323     yes:)
6324 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6325 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6326     ac_tool_warned=yes ;;
6327     esac
6328     RANLIB=$ac_ct_RANLIB
6329     fi
6330     else
6331     RANLIB="$ac_cv_prog_RANLIB"
6332     fi
6333    
6334     test -z "$RANLIB" && RANLIB=:
6335    
6336    
6337    
6338    
6339    
6340    
6341     # Determine commands to create old-style static archives.
6342     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6343     old_postinstall_cmds='chmod 644 $oldlib'
6344     old_postuninstall_cmds=
6345    
6346     if test -n "$RANLIB"; then
6347     case $host_os in
6348     openbsd*)
6349 michael 1257 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6350 michael 945 ;;
6351     *)
6352 michael 1257 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6353 michael 945 ;;
6354     esac
6355 michael 1257 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6356 michael 945 fi
6357    
6358 michael 1094 case $host_os in
6359     darwin*)
6360     lock_old_archive_extraction=yes ;;
6361     *)
6362     lock_old_archive_extraction=no ;;
6363     esac
6364 michael 945
6365    
6366    
6367    
6368    
6369    
6370    
6371    
6372    
6373    
6374    
6375    
6376    
6377    
6378    
6379    
6380    
6381    
6382    
6383    
6384    
6385    
6386    
6387    
6388    
6389    
6390    
6391    
6392    
6393    
6394    
6395    
6396    
6397 michael 1094
6398    
6399    
6400    
6401    
6402    
6403 michael 912 # If no C compiler was specified, use CC.
6404     LTCC=${LTCC-"$CC"}
6405    
6406     # If no C compiler flags were specified, use CFLAGS.
6407     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6408    
6409     # Allow CC to be a program name with arguments.
6410     compiler=$CC
6411    
6412 michael 945
6413     # Check for command to grab the raw symbol name followed by C symbol from nm.
6414 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6415 michael 945 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6416 michael 1106 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6417 michael 945 $as_echo_n "(cached) " >&6
6418     else
6419    
6420     # These are sane defaults that work on at least a few old systems.
6421     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6422    
6423     # Character class describing NM global symbol codes.
6424     symcode='[BCDEGRST]'
6425    
6426     # Regexp to match symbols that can be accessed directly from C.
6427     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6428    
6429     # Define system-specific variables.
6430     case $host_os in
6431     aix*)
6432     symcode='[BCDT]'
6433     ;;
6434     cygwin* | mingw* | pw32* | cegcc*)
6435     symcode='[ABCDGISTW]'
6436     ;;
6437     hpux*)
6438     if test "$host_cpu" = ia64; then
6439     symcode='[ABCDEGRST]'
6440     fi
6441     ;;
6442     irix* | nonstopux*)
6443     symcode='[BCDEGRST]'
6444     ;;
6445     osf*)
6446     symcode='[BCDEGQRST]'
6447     ;;
6448     solaris*)
6449     symcode='[BDRT]'
6450     ;;
6451     sco3.2v5*)
6452     symcode='[DT]'
6453     ;;
6454     sysv4.2uw2*)
6455     symcode='[DT]'
6456     ;;
6457     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6458     symcode='[ABDT]'
6459     ;;
6460     sysv4)
6461     symcode='[DFNSTU]'
6462     ;;
6463     esac
6464    
6465     # If we're using GNU nm, then use its standard symbol codes.
6466     case `$NM -V 2>&1` in
6467     *GNU* | *'with BFD'*)
6468     symcode='[ABCDGIRSTW]' ;;
6469     esac
6470    
6471     # Transform an extracted symbol line into a proper C declaration.
6472     # Some systems (esp. on ia64) link data and code symbols differently,
6473     # so use this general approach.
6474     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6475    
6476     # Transform an extracted symbol line into symbol name and symbol address
6477 michael 1106 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6478     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'"
6479 michael 945
6480     # Handle CRLF in mingw tool chain
6481     opt_cr=
6482     case $build_os in
6483     mingw*)
6484     opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6485     ;;
6486     esac
6487    
6488     # Try without a prefix underscore, then with it.
6489     for ac_symprfx in "" "_"; do
6490    
6491     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6492     symxfrm="\\1 $ac_symprfx\\2 \\2"
6493    
6494     # Write the raw and C identifiers.
6495     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6496     # Fake it for dumpbin and say T for any non-static function
6497     # and D for any global variable.
6498     # Also find C++ and __fastcall symbols from MSVC++,
6499     # which start with @ or ?.
6500     lt_cv_sys_global_symbol_pipe="$AWK '"\
6501     " {last_section=section; section=\$ 3};"\
6502 michael 1257 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6503 michael 945 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6504     " \$ 0!~/External *\|/{next};"\
6505     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6506     " {if(hide[section]) next};"\
6507     " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6508     " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6509     " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6510     " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6511     " ' prfx=^$ac_symprfx"
6512     else
6513     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6514     fi
6515 michael 1106 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6516 michael 945
6517     # Check to see that the pipe works correctly.
6518     pipe_works=no
6519    
6520     rm -f conftest*
6521     cat > conftest.$ac_ext <<_LT_EOF
6522     #ifdef __cplusplus
6523     extern "C" {
6524     #endif
6525     char nm_test_var;
6526     void nm_test_func(void);
6527     void nm_test_func(void){}
6528     #ifdef __cplusplus
6529     }
6530     #endif
6531     int main(){nm_test_var='a';nm_test_func();return(0);}
6532     _LT_EOF
6533    
6534 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6535 michael 945 (eval $ac_compile) 2>&5
6536     ac_status=$?
6537 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6538     test $ac_status = 0; }; then
6539 michael 945 # Now try to grab the symbols.
6540     nlist=conftest.nm
6541 michael 1094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6542     (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6543 michael 945 ac_status=$?
6544 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6545     test $ac_status = 0; } && test -s "$nlist"; then
6546 michael 945 # Try sorting and uniquifying the output.
6547     if sort "$nlist" | uniq > "$nlist"T; then
6548     mv -f "$nlist"T "$nlist"
6549     else
6550     rm -f "$nlist"T
6551     fi
6552    
6553     # Make sure that we snagged all the symbols we need.
6554     if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6555     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6556     cat <<_LT_EOF > conftest.$ac_ext
6557 michael 1106 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6558     #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6559     /* DATA imports from DLLs on WIN32 con't be const, because runtime
6560     relocations are performed -- see ld's documentation on pseudo-relocs. */
6561     # define LT_DLSYM_CONST
6562     #elif defined(__osf__)
6563     /* This system does not cope well with relocations in const data. */
6564     # define LT_DLSYM_CONST
6565     #else
6566     # define LT_DLSYM_CONST const
6567     #endif
6568    
6569 michael 945 #ifdef __cplusplus
6570     extern "C" {
6571     #endif
6572    
6573     _LT_EOF
6574     # Now generate the symbol file.
6575     eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6576    
6577     cat <<_LT_EOF >> conftest.$ac_ext
6578    
6579     /* The mapping between symbol names and symbols. */
6580 michael 1106 LT_DLSYM_CONST struct {
6581 michael 945 const char *name;
6582     void *address;
6583     }
6584     lt__PROGRAM__LTX_preloaded_symbols[] =
6585     {
6586     { "@PROGRAM@", (void *) 0 },
6587     _LT_EOF
6588     $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6589     cat <<\_LT_EOF >> conftest.$ac_ext
6590     {0, (void *) 0}
6591     };
6592    
6593     /* This works around a problem in FreeBSD linker */
6594     #ifdef FREEBSD_WORKAROUND
6595     static const void *lt_preloaded_setup() {
6596     return lt__PROGRAM__LTX_preloaded_symbols;
6597     }
6598     #endif
6599    
6600     #ifdef __cplusplus
6601     }
6602     #endif
6603     _LT_EOF
6604     # Now try linking the two files.
6605     mv conftest.$ac_objext conftstm.$ac_objext
6606 michael 1106 lt_globsym_save_LIBS=$LIBS
6607     lt_globsym_save_CFLAGS=$CFLAGS
6608 michael 945 LIBS="conftstm.$ac_objext"
6609     CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6610 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6611 michael 945 (eval $ac_link) 2>&5
6612     ac_status=$?
6613 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6614     test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6615 michael 945 pipe_works=yes
6616     fi
6617 michael 1106 LIBS=$lt_globsym_save_LIBS
6618     CFLAGS=$lt_globsym_save_CFLAGS
6619 michael 945 else
6620     echo "cannot find nm_test_func in $nlist" >&5
6621     fi
6622     else
6623     echo "cannot find nm_test_var in $nlist" >&5
6624     fi
6625     else
6626     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6627     fi
6628     else
6629     echo "$progname: failed program was:" >&5
6630     cat conftest.$ac_ext >&5
6631     fi
6632     rm -rf conftest* conftst*
6633    
6634     # Do not use the global_symbol_pipe unless it works.
6635     if test "$pipe_works" = yes; then
6636     break
6637     else
6638     lt_cv_sys_global_symbol_pipe=
6639     fi
6640     done
6641    
6642     fi
6643    
6644     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6645     lt_cv_sys_global_symbol_to_cdecl=
6646     fi
6647     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6648 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6649 michael 945 $as_echo "failed" >&6; }
6650     else
6651 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6652 michael 945 $as_echo "ok" >&6; }
6653     fi
6654    
6655 michael 1106 # Response file support.
6656     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6657     nm_file_list_spec='@'
6658     elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6659     nm_file_list_spec='@'
6660     fi
6661 michael 945
6662    
6663    
6664    
6665    
6666    
6667    
6668    
6669    
6670    
6671    
6672    
6673    
6674    
6675    
6676    
6677    
6678    
6679    
6680    
6681    
6682 michael 1106
6683    
6684    
6685    
6686    
6687    
6688     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6689     $as_echo_n "checking for sysroot... " >&6; }
6690    
6691     # Check whether --with-sysroot was given.
6692     if test "${with_sysroot+set}" = set; then :
6693     withval=$with_sysroot;
6694     else
6695     with_sysroot=no
6696     fi
6697    
6698    
6699     lt_sysroot=
6700     case ${with_sysroot} in #(
6701     yes)
6702     if test "$GCC" = yes; then
6703     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6704     fi
6705     ;; #(
6706     /*)
6707     lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6708     ;; #(
6709     no|'')
6710     ;; #(
6711     *)
6712     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6713     $as_echo "${with_sysroot}" >&6; }
6714     as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6715     ;;
6716     esac
6717    
6718     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6719     $as_echo "${lt_sysroot:-no}" >&6; }
6720    
6721    
6722    
6723    
6724    
6725 michael 912 # Check whether --enable-libtool-lock was given.
6726 michael 967 if test "${enable_libtool_lock+set}" = set; then :
6727 michael 912 enableval=$enable_libtool_lock;
6728     fi
6729    
6730     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6731    
6732     # Some flags need to be propagated to the compiler or linker for good
6733     # libtool support.
6734     case $host in
6735     ia64-*-hpux*)
6736     # Find out which ABI we are using.
6737     echo 'int i;' > conftest.$ac_ext
6738 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6739 michael 912 (eval $ac_compile) 2>&5
6740     ac_status=$?
6741 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6742     test $ac_status = 0; }; then
6743 michael 912 case `/usr/bin/file conftest.$ac_objext` in
6744 michael 945 *ELF-32*)
6745     HPUX_IA64_MODE="32"
6746     ;;
6747     *ELF-64*)
6748     HPUX_IA64_MODE="64"
6749     ;;
6750 michael 912 esac
6751     fi
6752     rm -rf conftest*
6753     ;;
6754     *-*-irix6*)
6755     # Find out which ABI we are using.
6756 michael 1094 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6757 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6758 michael 912 (eval $ac_compile) 2>&5
6759     ac_status=$?
6760 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6761     test $ac_status = 0; }; then
6762 michael 945 if test "$lt_cv_prog_gnu_ld" = yes; then
6763     case `/usr/bin/file conftest.$ac_objext` in
6764     *32-bit*)
6765     LD="${LD-ld} -melf32bsmip"
6766     ;;
6767     *N32*)
6768     LD="${LD-ld} -melf32bmipn32"
6769     ;;
6770     *64-bit*)
6771     LD="${LD-ld} -melf64bmip"
6772     ;;
6773     esac
6774     else
6775     case `/usr/bin/file conftest.$ac_objext` in
6776     *32-bit*)
6777     LD="${LD-ld} -32"
6778     ;;
6779     *N32*)
6780     LD="${LD-ld} -n32"
6781     ;;
6782     *64-bit*)
6783     LD="${LD-ld} -64"
6784     ;;
6785     esac
6786     fi
6787 michael 912 fi
6788     rm -rf conftest*
6789     ;;
6790    
6791     x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6792 michael 945 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6793 michael 912 # Find out which ABI we are using.
6794     echo 'int i;' > conftest.$ac_ext
6795 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6796 michael 912 (eval $ac_compile) 2>&5
6797     ac_status=$?
6798 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6799     test $ac_status = 0; }; then
6800 michael 912 case `/usr/bin/file conftest.o` in
6801 michael 945 *32-bit*)
6802     case $host in
6803     x86_64-*kfreebsd*-gnu)
6804     LD="${LD-ld} -m elf_i386_fbsd"
6805     ;;
6806     x86_64-*linux*)
6807     LD="${LD-ld} -m elf_i386"
6808     ;;
6809     ppc64-*linux*|powerpc64-*linux*)
6810     LD="${LD-ld} -m elf32ppclinux"
6811     ;;
6812     s390x-*linux*)
6813     LD="${LD-ld} -m elf_s390"
6814     ;;
6815     sparc64-*linux*)
6816     LD="${LD-ld} -m elf32_sparc"
6817     ;;
6818     esac
6819     ;;
6820     *64-bit*)
6821     case $host in
6822     x86_64-*kfreebsd*-gnu)
6823     LD="${LD-ld} -m elf_x86_64_fbsd"
6824     ;;
6825     x86_64-*linux*)
6826     LD="${LD-ld} -m elf_x86_64"
6827     ;;
6828     ppc*-*linux*|powerpc*-*linux*)
6829     LD="${LD-ld} -m elf64ppc"
6830     ;;
6831     s390*-*linux*|s390*-*tpf*)
6832     LD="${LD-ld} -m elf64_s390"
6833     ;;
6834     sparc*-*linux*)
6835     LD="${LD-ld} -m elf64_sparc"
6836     ;;
6837     esac
6838     ;;
6839 michael 912 esac
6840     fi
6841     rm -rf conftest*
6842     ;;
6843    
6844     *-*-sco3.2v5*)
6845     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6846     SAVE_CFLAGS="$CFLAGS"
6847     CFLAGS="$CFLAGS -belf"
6848 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6849 db 941 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6850 michael 1106 if ${lt_cv_cc_needs_belf+:} false; then :
6851 db 941 $as_echo_n "(cached) " >&6
6852 michael 912 else
6853     ac_ext=c
6854     ac_cpp='$CPP $CPPFLAGS'
6855     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6856     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6857     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6858    
6859 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860 michael 912 /* end confdefs.h. */
6861    
6862     int
6863     main ()
6864     {
6865    
6866     ;
6867     return 0;
6868     }
6869     _ACEOF
6870 michael 967 if ac_fn_c_try_link "$LINENO"; then :
6871 michael 912 lt_cv_cc_needs_belf=yes
6872     else
6873 michael 967 lt_cv_cc_needs_belf=no
6874 michael 912 fi
6875 michael 967 rm -f core conftest.err conftest.$ac_objext \
6876     conftest$ac_exeext conftest.$ac_ext
6877 michael 912 ac_ext=c
6878     ac_cpp='$CPP $CPPFLAGS'
6879     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6880     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6881     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6882    
6883     fi
6884 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6885 db 941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6886 michael 912 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6887     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6888     CFLAGS="$SAVE_CFLAGS"
6889     fi
6890     ;;
6891 michael 1257 *-*solaris*)
6892 michael 912 # Find out which ABI we are using.
6893     echo 'int i;' > conftest.$ac_ext
6894 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6895 michael 912 (eval $ac_compile) 2>&5
6896     ac_status=$?
6897 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6898     test $ac_status = 0; }; then
6899 michael 912 case `/usr/bin/file conftest.o` in
6900     *64-bit*)
6901     case $lt_cv_prog_gnu_ld in
6902 michael 1257 yes*)
6903     case $host in
6904     i?86-*-solaris*)
6905     LD="${LD-ld} -m elf_x86_64"
6906     ;;
6907     sparc*-*-solaris*)
6908     LD="${LD-ld} -m elf64_sparc"
6909     ;;
6910     esac
6911     # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6912     if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6913     LD="${LD-ld}_sol2"
6914     fi
6915     ;;
6916 db 941 *)
6917 michael 945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6918 db 941 LD="${LD-ld} -64"
6919     fi
6920     ;;
6921 michael 912 esac
6922     ;;
6923     esac
6924     fi
6925     rm -rf conftest*
6926     ;;
6927 michael 945 esac
6928 michael 912
6929 michael 945 need_locks="$enable_libtool_lock"
6930 michael 912
6931 michael 1106 if test -n "$ac_tool_prefix"; then
6932     # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6933     set dummy ${ac_tool_prefix}mt; ac_word=$2
6934     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935     $as_echo_n "checking for $ac_word... " >&6; }
6936     if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6937     $as_echo_n "(cached) " >&6
6938     else
6939     if test -n "$MANIFEST_TOOL"; then
6940     ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6941     else
6942     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943     for as_dir in $PATH
6944     do
6945     IFS=$as_save_IFS
6946     test -z "$as_dir" && as_dir=.
6947     for ac_exec_ext in '' $ac_executable_extensions; do
6948 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 michael 1106 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951     break 2
6952     fi
6953     done
6954     done
6955     IFS=$as_save_IFS
6956 michael 945
6957 michael 1106 fi
6958     fi
6959     MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6960     if test -n "$MANIFEST_TOOL"; then
6961     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6962     $as_echo "$MANIFEST_TOOL" >&6; }
6963     else
6964     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965     $as_echo "no" >&6; }
6966     fi
6967    
6968    
6969     fi
6970     if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6971     ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6972     # Extract the first word of "mt", so it can be a program name with args.
6973     set dummy mt; ac_word=$2
6974     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975     $as_echo_n "checking for $ac_word... " >&6; }
6976     if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6977     $as_echo_n "(cached) " >&6
6978     else
6979     if test -n "$ac_ct_MANIFEST_TOOL"; then
6980     ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6981     else
6982     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983     for as_dir in $PATH
6984     do
6985     IFS=$as_save_IFS
6986     test -z "$as_dir" && as_dir=.
6987     for ac_exec_ext in '' $ac_executable_extensions; do
6988 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 michael 1106 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6990     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991     break 2
6992     fi
6993     done
6994     done
6995     IFS=$as_save_IFS
6996    
6997     fi
6998     fi
6999     ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7000     if test -n "$ac_ct_MANIFEST_TOOL"; then
7001     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7002     $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7003     else
7004     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005     $as_echo "no" >&6; }
7006     fi
7007    
7008     if test "x$ac_ct_MANIFEST_TOOL" = x; then
7009     MANIFEST_TOOL=":"
7010     else
7011     case $cross_compiling:$ac_tool_warned in
7012     yes:)
7013     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014     $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015     ac_tool_warned=yes ;;
7016     esac
7017     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7018     fi
7019     else
7020     MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7021     fi
7022    
7023     test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7024     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7025     $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7026     if ${lt_cv_path_mainfest_tool+:} false; then :
7027     $as_echo_n "(cached) " >&6
7028     else
7029     lt_cv_path_mainfest_tool=no
7030     echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7031     $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7032     cat conftest.err >&5
7033     if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7034     lt_cv_path_mainfest_tool=yes
7035     fi
7036     rm -f conftest*
7037     fi
7038     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7039     $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7040     if test "x$lt_cv_path_mainfest_tool" != xyes; then
7041     MANIFEST_TOOL=:
7042     fi
7043    
7044    
7045    
7046    
7047    
7048    
7049 michael 945 case $host_os in
7050     rhapsody* | darwin*)
7051     if test -n "$ac_tool_prefix"; then
7052     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7053     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7054 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7056 michael 1106 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7057 michael 945 $as_echo_n "(cached) " >&6
7058     else
7059     if test -n "$DSYMUTIL"; then
7060     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7061     else
7062     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063     for as_dir in $PATH
7064     do
7065     IFS=$as_save_IFS
7066     test -z "$as_dir" && as_dir=.
7067 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7068 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7069 michael 945 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7070 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 michael 945 break 2
7072     fi
7073     done
7074 michael 967 done
7075 michael 945 IFS=$as_save_IFS
7076    
7077     fi
7078     fi
7079     DSYMUTIL=$ac_cv_prog_DSYMUTIL
7080     if test -n "$DSYMUTIL"; then
7081 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7082 michael 945 $as_echo "$DSYMUTIL" >&6; }
7083     else
7084 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 michael 945 $as_echo "no" >&6; }
7086     fi
7087    
7088    
7089     fi
7090     if test -z "$ac_cv_prog_DSYMUTIL"; then
7091     ac_ct_DSYMUTIL=$DSYMUTIL
7092     # Extract the first word of "dsymutil", so it can be a program name with args.
7093     set dummy dsymutil; ac_word=$2
7094 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7096 michael 1106 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7097 michael 945 $as_echo_n "(cached) " >&6
7098     else
7099     if test -n "$ac_ct_DSYMUTIL"; then
7100     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7101     else
7102     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103     for as_dir in $PATH
7104     do
7105     IFS=$as_save_IFS
7106     test -z "$as_dir" && as_dir=.
7107 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7108 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7109 michael 945 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7110 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 michael 945 break 2
7112     fi
7113     done
7114 michael 967 done
7115 michael 945 IFS=$as_save_IFS
7116    
7117     fi
7118     fi
7119     ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7120     if test -n "$ac_ct_DSYMUTIL"; then
7121 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7122 michael 945 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7123     else
7124 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 michael 945 $as_echo "no" >&6; }
7126     fi
7127    
7128     if test "x$ac_ct_DSYMUTIL" = x; then
7129     DSYMUTIL=":"
7130     else
7131     case $cross_compiling:$ac_tool_warned in
7132     yes:)
7133 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135     ac_tool_warned=yes ;;
7136 michael 912 esac
7137 michael 945 DSYMUTIL=$ac_ct_DSYMUTIL
7138     fi
7139     else
7140     DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7141     fi
7142 michael 912
7143 michael 945 if test -n "$ac_tool_prefix"; then
7144     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7145     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7146 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7148 michael 1106 if ${ac_cv_prog_NMEDIT+:} false; then :
7149 michael 945 $as_echo_n "(cached) " >&6
7150     else
7151     if test -n "$NMEDIT"; then
7152     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7153     else
7154     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155     for as_dir in $PATH
7156     do
7157     IFS=$as_save_IFS
7158     test -z "$as_dir" && as_dir=.
7159 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7160 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7161 michael 945 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7162 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 michael 945 break 2
7164     fi
7165     done
7166 michael 967 done
7167 michael 945 IFS=$as_save_IFS
7168 michael 912
7169 michael 945 fi
7170     fi
7171     NMEDIT=$ac_cv_prog_NMEDIT
7172     if test -n "$NMEDIT"; then
7173 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7174 michael 945 $as_echo "$NMEDIT" >&6; }
7175     else
7176 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 michael 945 $as_echo "no" >&6; }
7178     fi
7179 michael 912
7180 michael 945
7181     fi
7182     if test -z "$ac_cv_prog_NMEDIT"; then
7183     ac_ct_NMEDIT=$NMEDIT
7184     # Extract the first word of "nmedit", so it can be a program name with args.
7185     set dummy nmedit; ac_word=$2
7186 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7188 michael 1106 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7189 michael 945 $as_echo_n "(cached) " >&6
7190     else
7191     if test -n "$ac_ct_NMEDIT"; then
7192     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7193     else
7194     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195     for as_dir in $PATH
7196     do
7197     IFS=$as_save_IFS
7198     test -z "$as_dir" && as_dir=.
7199 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7200 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7201 michael 945 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7202 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 michael 945 break 2
7204     fi
7205     done
7206 michael 967 done
7207 michael 945 IFS=$as_save_IFS
7208    
7209     fi
7210     fi
7211     ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7212     if test -n "$ac_ct_NMEDIT"; then
7213 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7214 michael 945 $as_echo "$ac_ct_NMEDIT" >&6; }
7215     else
7216 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 michael 945 $as_echo "no" >&6; }
7218     fi
7219    
7220     if test "x$ac_ct_NMEDIT" = x; then
7221     NMEDIT=":"
7222     else
7223     case $cross_compiling:$ac_tool_warned in
7224     yes:)
7225 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227     ac_tool_warned=yes ;;
7228     esac
7229     NMEDIT=$ac_ct_NMEDIT
7230     fi
7231     else
7232     NMEDIT="$ac_cv_prog_NMEDIT"
7233     fi
7234    
7235     if test -n "$ac_tool_prefix"; then
7236     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7237     set dummy ${ac_tool_prefix}lipo; ac_word=$2
7238 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7240 michael 1106 if ${ac_cv_prog_LIPO+:} false; then :
7241 michael 945 $as_echo_n "(cached) " >&6
7242     else
7243     if test -n "$LIPO"; then
7244     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7245     else
7246     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247     for as_dir in $PATH
7248     do
7249     IFS=$as_save_IFS
7250     test -z "$as_dir" && as_dir=.
7251 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7252 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 michael 945 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7254 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 michael 945 break 2
7256     fi
7257     done
7258 michael 967 done
7259 michael 945 IFS=$as_save_IFS
7260    
7261     fi
7262     fi
7263     LIPO=$ac_cv_prog_LIPO
7264     if test -n "$LIPO"; then
7265 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7266 michael 945 $as_echo "$LIPO" >&6; }
7267     else
7268 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 michael 945 $as_echo "no" >&6; }
7270     fi
7271    
7272    
7273     fi
7274     if test -z "$ac_cv_prog_LIPO"; then
7275     ac_ct_LIPO=$LIPO
7276     # Extract the first word of "lipo", so it can be a program name with args.
7277     set dummy lipo; ac_word=$2
7278 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7280 michael 1106 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7281 michael 945 $as_echo_n "(cached) " >&6
7282     else
7283     if test -n "$ac_ct_LIPO"; then
7284     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7285     else
7286     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287     for as_dir in $PATH
7288     do
7289     IFS=$as_save_IFS
7290     test -z "$as_dir" && as_dir=.
7291 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7292 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7293 michael 945 ac_cv_prog_ac_ct_LIPO="lipo"
7294 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 michael 945 break 2
7296     fi
7297     done
7298 michael 967 done
7299 michael 945 IFS=$as_save_IFS
7300    
7301     fi
7302     fi
7303     ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7304     if test -n "$ac_ct_LIPO"; then
7305 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7306 michael 945 $as_echo "$ac_ct_LIPO" >&6; }
7307     else
7308 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 michael 945 $as_echo "no" >&6; }
7310     fi
7311    
7312     if test "x$ac_ct_LIPO" = x; then
7313     LIPO=":"
7314     else
7315     case $cross_compiling:$ac_tool_warned in
7316     yes:)
7317 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319     ac_tool_warned=yes ;;
7320     esac
7321     LIPO=$ac_ct_LIPO
7322     fi
7323     else
7324     LIPO="$ac_cv_prog_LIPO"
7325     fi
7326    
7327     if test -n "$ac_tool_prefix"; then
7328     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7329     set dummy ${ac_tool_prefix}otool; ac_word=$2
7330 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7332 michael 1106 if ${ac_cv_prog_OTOOL+:} false; then :
7333 michael 945 $as_echo_n "(cached) " >&6
7334     else
7335     if test -n "$OTOOL"; then
7336     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7337     else
7338     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339     for as_dir in $PATH
7340     do
7341     IFS=$as_save_IFS
7342     test -z "$as_dir" && as_dir=.
7343 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7344 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 michael 945 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7346 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 michael 945 break 2
7348     fi
7349     done
7350 michael 967 done
7351 michael 945 IFS=$as_save_IFS
7352    
7353     fi
7354     fi
7355     OTOOL=$ac_cv_prog_OTOOL
7356     if test -n "$OTOOL"; then
7357 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7358 michael 945 $as_echo "$OTOOL" >&6; }
7359     else
7360 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 michael 945 $as_echo "no" >&6; }
7362     fi
7363    
7364    
7365     fi
7366     if test -z "$ac_cv_prog_OTOOL"; then
7367     ac_ct_OTOOL=$OTOOL
7368     # Extract the first word of "otool", so it can be a program name with args.
7369     set dummy otool; ac_word=$2
7370 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7372 michael 1106 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7373 michael 945 $as_echo_n "(cached) " >&6
7374     else
7375     if test -n "$ac_ct_OTOOL"; then
7376     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7377     else
7378     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379     for as_dir in $PATH
7380     do
7381     IFS=$as_save_IFS
7382     test -z "$as_dir" && as_dir=.
7383 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7384 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7385 michael 945 ac_cv_prog_ac_ct_OTOOL="otool"
7386 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 michael 945 break 2
7388     fi
7389     done
7390 michael 967 done
7391 michael 945 IFS=$as_save_IFS
7392    
7393     fi
7394     fi
7395     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7396     if test -n "$ac_ct_OTOOL"; then
7397 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7398 michael 945 $as_echo "$ac_ct_OTOOL" >&6; }
7399     else
7400 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 michael 945 $as_echo "no" >&6; }
7402     fi
7403    
7404     if test "x$ac_ct_OTOOL" = x; then
7405     OTOOL=":"
7406     else
7407     case $cross_compiling:$ac_tool_warned in
7408     yes:)
7409 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411     ac_tool_warned=yes ;;
7412     esac
7413     OTOOL=$ac_ct_OTOOL
7414     fi
7415     else
7416     OTOOL="$ac_cv_prog_OTOOL"
7417     fi
7418    
7419     if test -n "$ac_tool_prefix"; then
7420     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7421     set dummy ${ac_tool_prefix}otool64; ac_word=$2
7422 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7423 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7424 michael 1106 if ${ac_cv_prog_OTOOL64+:} false; then :
7425 michael 945 $as_echo_n "(cached) " >&6
7426     else
7427     if test -n "$OTOOL64"; then
7428     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7429     else
7430     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7431     for as_dir in $PATH
7432     do
7433     IFS=$as_save_IFS
7434     test -z "$as_dir" && as_dir=.
7435 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7436 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7437 michael 945 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7438 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 michael 945 break 2
7440     fi
7441     done
7442 michael 967 done
7443 michael 945 IFS=$as_save_IFS
7444    
7445     fi
7446     fi
7447     OTOOL64=$ac_cv_prog_OTOOL64
7448     if test -n "$OTOOL64"; then
7449 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7450 michael 945 $as_echo "$OTOOL64" >&6; }
7451     else
7452 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 michael 945 $as_echo "no" >&6; }
7454     fi
7455    
7456    
7457     fi
7458     if test -z "$ac_cv_prog_OTOOL64"; then
7459     ac_ct_OTOOL64=$OTOOL64
7460     # Extract the first word of "otool64", so it can be a program name with args.
7461     set dummy otool64; ac_word=$2
7462 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7463 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
7464 michael 1106 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7465 michael 945 $as_echo_n "(cached) " >&6
7466     else
7467     if test -n "$ac_ct_OTOOL64"; then
7468     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7469     else
7470     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7471     for as_dir in $PATH
7472     do
7473     IFS=$as_save_IFS
7474     test -z "$as_dir" && as_dir=.
7475 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
7476 michael 1373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7477 michael 945 ac_cv_prog_ac_ct_OTOOL64="otool64"
7478 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 michael 945 break 2
7480     fi
7481     done
7482 michael 967 done
7483 michael 945 IFS=$as_save_IFS
7484    
7485     fi
7486     fi
7487     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7488     if test -n "$ac_ct_OTOOL64"; then
7489 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7490 michael 945 $as_echo "$ac_ct_OTOOL64" >&6; }
7491     else
7492 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7493 michael 945 $as_echo "no" >&6; }
7494     fi
7495    
7496     if test "x$ac_ct_OTOOL64" = x; then
7497     OTOOL64=":"
7498     else
7499     case $cross_compiling:$ac_tool_warned in
7500     yes:)
7501 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7502 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7503     ac_tool_warned=yes ;;
7504     esac
7505     OTOOL64=$ac_ct_OTOOL64
7506     fi
7507     else
7508     OTOOL64="$ac_cv_prog_OTOOL64"
7509     fi
7510    
7511    
7512    
7513    
7514    
7515    
7516    
7517    
7518    
7519    
7520    
7521    
7522    
7523    
7524    
7525    
7526    
7527    
7528    
7529    
7530    
7531    
7532    
7533    
7534    
7535    
7536    
7537 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7538 michael 945 $as_echo_n "checking for -single_module linker flag... " >&6; }
7539 michael 1106 if ${lt_cv_apple_cc_single_mod+:} false; then :
7540 michael 945 $as_echo_n "(cached) " >&6
7541     else
7542     lt_cv_apple_cc_single_mod=no
7543     if test -z "${LT_MULTI_MODULE}"; then
7544     # By default we will add the -single_module flag. You can override
7545     # by either setting the environment variable LT_MULTI_MODULE
7546     # non-empty at configure time, or by adding -multi_module to the
7547     # link flags.
7548     rm -rf libconftest.dylib*
7549     echo "int foo(void){return 1;}" > conftest.c
7550     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7551     -dynamiclib -Wl,-single_module conftest.c" >&5
7552     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7553     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7554     _lt_result=$?
7555 michael 1257 # If there is a non-empty error log, and "single_module"
7556     # appears in it, assume the flag caused a linker warning
7557     if test -s conftest.err && $GREP single_module conftest.err; then
7558     cat conftest.err >&5
7559     # Otherwise, if the output was created with a 0 exit code from
7560     # the compiler, it worked.
7561     elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7562 michael 945 lt_cv_apple_cc_single_mod=yes
7563     else
7564     cat conftest.err >&5
7565     fi
7566     rm -rf libconftest.dylib*
7567     rm -f conftest.*
7568     fi
7569     fi
7570 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7571 michael 945 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7572 michael 1257
7573 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7574 michael 945 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7575 michael 1106 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7576 michael 945 $as_echo_n "(cached) " >&6
7577     else
7578     lt_cv_ld_exported_symbols_list=no
7579     save_LDFLAGS=$LDFLAGS
7580     echo "_main" > conftest.sym
7581     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7582 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7583 michael 945 /* end confdefs.h. */
7584    
7585     int
7586     main ()
7587     {
7588    
7589     ;
7590     return 0;
7591     }
7592     _ACEOF
7593 michael 967 if ac_fn_c_try_link "$LINENO"; then :
7594 michael 945 lt_cv_ld_exported_symbols_list=yes
7595     else
7596 michael 967 lt_cv_ld_exported_symbols_list=no
7597 michael 945 fi
7598 michael 967 rm -f core conftest.err conftest.$ac_objext \
7599     conftest$ac_exeext conftest.$ac_ext
7600 michael 945 LDFLAGS="$save_LDFLAGS"
7601    
7602     fi
7603 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7604 michael 945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7605 michael 1257
7606 michael 1094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7607     $as_echo_n "checking for -force_load linker flag... " >&6; }
7608 michael 1106 if ${lt_cv_ld_force_load+:} false; then :
7609 michael 1094 $as_echo_n "(cached) " >&6
7610     else
7611     lt_cv_ld_force_load=no
7612     cat > conftest.c << _LT_EOF
7613     int forced_loaded() { return 2;}
7614     _LT_EOF
7615     echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7616     $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7617     echo "$AR cru libconftest.a conftest.o" >&5
7618     $AR cru libconftest.a conftest.o 2>&5
7619     echo "$RANLIB libconftest.a" >&5
7620     $RANLIB libconftest.a 2>&5
7621     cat > conftest.c << _LT_EOF
7622     int main() { return 0;}
7623     _LT_EOF
7624     echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7625     $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7626     _lt_result=$?
7627 michael 1257 if test -s conftest.err && $GREP force_load conftest.err; then
7628     cat conftest.err >&5
7629     elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7630 michael 1094 lt_cv_ld_force_load=yes
7631     else
7632     cat conftest.err >&5
7633     fi
7634     rm -f conftest.err libconftest.a conftest conftest.c
7635     rm -rf conftest.dSYM
7636    
7637     fi
7638     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7639     $as_echo "$lt_cv_ld_force_load" >&6; }
7640 michael 945 case $host_os in
7641     rhapsody* | darwin1.[012])
7642     _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7643     darwin1.*)
7644     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7645     darwin*) # darwin 5.x on
7646     # if running on 10.5 or later, the deployment target defaults
7647     # to the OS version, if on x86, and 10.4, the deployment
7648     # target defaults to 10.4. Don't you love it?
7649     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7650     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7651     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7652     10.[012]*)
7653     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7654     10.*)
7655     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7656     esac
7657     ;;
7658     esac
7659     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7660     _lt_dar_single_mod='$single_module'
7661     fi
7662     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7663     _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7664     else
7665     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7666     fi
7667 michael 1094 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7668 michael 945 _lt_dsymutil='~$DSYMUTIL $lib || :'
7669     else
7670     _lt_dsymutil=
7671     fi
7672     ;;
7673     esac
7674    
7675 michael 912 ac_ext=c
7676     ac_cpp='$CPP $CPPFLAGS'
7677     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7678     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7679     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7680 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7681 db 941 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7682 michael 912 # On Suns, sometimes $CPP names a directory.
7683     if test -n "$CPP" && test -d "$CPP"; then
7684     CPP=
7685     fi
7686     if test -z "$CPP"; then
7687 michael 1106 if ${ac_cv_prog_CPP+:} false; then :
7688 db 941 $as_echo_n "(cached) " >&6
7689 michael 912 else
7690     # Double quotes because CPP needs to be expanded
7691     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7692     do
7693     ac_preproc_ok=false
7694     for ac_c_preproc_warn_flag in '' yes
7695     do
7696     # Use a header file that comes with gcc, so configuring glibc
7697     # with a fresh cross-compiler works.
7698     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7699     # <limits.h> exists even on freestanding compilers.
7700     # On the NeXT, cc -E runs the code through the compiler's parser,
7701     # not just through cpp. "Syntax error" is here to catch this case.
7702 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 michael 912 /* end confdefs.h. */
7704     #ifdef __STDC__
7705     # include <limits.h>
7706     #else
7707     # include <assert.h>
7708     #endif
7709     Syntax error
7710     _ACEOF
7711 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7712    
7713 michael 912 else
7714     # Broken: fails on valid input.
7715     continue
7716     fi
7717 michael 1095 rm -f conftest.err conftest.i conftest.$ac_ext
7718 michael 912
7719     # OK, works on sane cases. Now check whether nonexistent headers
7720     # can be detected and how.
7721 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7722 michael 912 /* end confdefs.h. */
7723     #include <ac_nonexistent.h>
7724     _ACEOF
7725 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7726 michael 912 # Broken: success on invalid input.
7727     continue
7728     else
7729     # Passes both tests.
7730     ac_preproc_ok=:
7731     break
7732     fi
7733 michael 1095 rm -f conftest.err conftest.i conftest.$ac_ext
7734 michael 912
7735     done
7736     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7737 michael 1095 rm -f conftest.i conftest.err conftest.$ac_ext
7738 michael 967 if $ac_preproc_ok; then :
7739 michael 912 break
7740     fi
7741    
7742     done
7743     ac_cv_prog_CPP=$CPP
7744    
7745     fi
7746     CPP=$ac_cv_prog_CPP
7747     else
7748     ac_cv_prog_CPP=$CPP
7749     fi
7750 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7751 db 941 $as_echo "$CPP" >&6; }
7752 michael 912 ac_preproc_ok=false
7753     for ac_c_preproc_warn_flag in '' yes
7754     do
7755     # Use a header file that comes with gcc, so configuring glibc
7756     # with a fresh cross-compiler works.
7757     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7758     # <limits.h> exists even on freestanding compilers.
7759     # On the NeXT, cc -E runs the code through the compiler's parser,
7760     # not just through cpp. "Syntax error" is here to catch this case.
7761 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7762 michael 912 /* end confdefs.h. */
7763     #ifdef __STDC__
7764     # include <limits.h>
7765     #else
7766     # include <assert.h>
7767     #endif
7768     Syntax error
7769     _ACEOF
7770 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7771    
7772 michael 912 else
7773     # Broken: fails on valid input.
7774     continue
7775     fi
7776 michael 1095 rm -f conftest.err conftest.i conftest.$ac_ext
7777 michael 912
7778     # OK, works on sane cases. Now check whether nonexistent headers
7779     # can be detected and how.
7780 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 michael 912 /* end confdefs.h. */
7782     #include <ac_nonexistent.h>
7783     _ACEOF
7784 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7785 michael 912 # Broken: success on invalid input.
7786     continue
7787     else
7788     # Passes both tests.
7789     ac_preproc_ok=:
7790     break
7791     fi
7792 michael 1095 rm -f conftest.err conftest.i conftest.$ac_ext
7793 michael 912
7794     done
7795     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7796 michael 1095 rm -f conftest.i conftest.err conftest.$ac_ext
7797 michael 967 if $ac_preproc_ok; then :
7798    
7799 michael 912 else
7800 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7801 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7802 michael 1095 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7803     See \`config.log' for more details" "$LINENO" 5; }
7804 michael 912 fi
7805    
7806     ac_ext=c
7807     ac_cpp='$CPP $CPPFLAGS'
7808     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7809     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7810     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7811    
7812    
7813 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7814 db 941 $as_echo_n "checking for ANSI C header files... " >&6; }
7815 michael 1106 if ${ac_cv_header_stdc+:} false; then :
7816 db 941 $as_echo_n "(cached) " >&6
7817 michael 912 else
7818 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 michael 912 /* end confdefs.h. */
7820     #include <stdlib.h>
7821     #include <stdarg.h>
7822     #include <string.h>
7823     #include <float.h>
7824    
7825     int
7826     main ()
7827     {
7828    
7829     ;
7830     return 0;
7831     }
7832     _ACEOF
7833 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
7834 michael 912 ac_cv_header_stdc=yes
7835     else
7836 michael 967 ac_cv_header_stdc=no
7837 michael 912 fi
7838     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839    
7840     if test $ac_cv_header_stdc = yes; then
7841     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7842 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843 michael 912 /* end confdefs.h. */
7844     #include <string.h>
7845    
7846     _ACEOF
7847     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7848 michael 967 $EGREP "memchr" >/dev/null 2>&1; then :
7849    
7850 michael 912 else
7851     ac_cv_header_stdc=no
7852     fi
7853     rm -f conftest*
7854    
7855     fi
7856    
7857     if test $ac_cv_header_stdc = yes; then
7858     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7859 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860 michael 912 /* end confdefs.h. */
7861     #include <stdlib.h>
7862    
7863     _ACEOF
7864     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7865 michael 967 $EGREP "free" >/dev/null 2>&1; then :
7866    
7867 michael 912 else
7868     ac_cv_header_stdc=no
7869     fi
7870     rm -f conftest*
7871    
7872     fi
7873    
7874     if test $ac_cv_header_stdc = yes; then
7875     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7876 michael 967 if test "$cross_compiling" = yes; then :
7877 michael 912 :
7878     else
7879 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7880 michael 912 /* end confdefs.h. */
7881     #include <ctype.h>
7882     #include <stdlib.h>
7883     #if ((' ' & 0x0FF) == 0x020)
7884     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7885     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7886     #else
7887     # define ISLOWER(c) \
7888     (('a' <= (c) && (c) <= 'i') \
7889     || ('j' <= (c) && (c) <= 'r') \
7890     || ('s' <= (c) && (c) <= 'z'))
7891     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7892     #endif
7893    
7894     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7895     int
7896     main ()
7897     {
7898     int i;
7899     for (i = 0; i < 256; i++)
7900     if (XOR (islower (i), ISLOWER (i))
7901     || toupper (i) != TOUPPER (i))
7902     return 2;
7903     return 0;
7904     }
7905     _ACEOF
7906 michael 967 if ac_fn_c_try_run "$LINENO"; then :
7907    
7908 michael 912 else
7909 michael 967 ac_cv_header_stdc=no
7910 michael 912 fi
7911 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7912     conftest.$ac_objext conftest.beam conftest.$ac_ext
7913 michael 912 fi
7914    
7915     fi
7916     fi
7917 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7918 db 941 $as_echo "$ac_cv_header_stdc" >&6; }
7919 michael 912 if test $ac_cv_header_stdc = yes; then
7920    
7921 michael 967 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7922 michael 912
7923     fi
7924    
7925     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7926     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7927     inttypes.h stdint.h unistd.h
7928 michael 967 do :
7929     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7930     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7931     "
7932 michael 1095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7933 michael 912 cat >>confdefs.h <<_ACEOF
7934 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7935 michael 912 _ACEOF
7936    
7937     fi
7938    
7939     done
7940    
7941    
7942     for ac_header in dlfcn.h
7943 michael 967 do :
7944     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7945     "
7946 michael 1106 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7947 michael 912 cat >>confdefs.h <<_ACEOF
7948 michael 967 #define HAVE_DLFCN_H 1
7949 michael 912 _ACEOF
7950    
7951     fi
7952    
7953     done
7954    
7955    
7956    
7957 michael 1094
7958    
7959 michael 945 # Set options
7960     enable_dlopen=yes
7961 michael 977 # Check whether --enable-static was given.
7962     if test "${enable_static+set}" = set; then :
7963     enableval=$enable_static; p=${PACKAGE-default}
7964 michael 945 case $enableval in
7965 michael 977 yes) enable_static=yes ;;
7966     no) enable_static=no ;;
7967 michael 945 *)
7968 michael 977 enable_static=no
7969 michael 945 # Look at the argument we got. We use all the common list separators.
7970     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7971     for pkg in $enableval; do
7972     IFS="$lt_save_ifs"
7973     if test "X$pkg" = "X$p"; then
7974 michael 977 enable_static=yes
7975 michael 945 fi
7976     done
7977     IFS="$lt_save_ifs"
7978     ;;
7979     esac
7980 michael 912 else
7981 michael 977 enable_static=no
7982 michael 912 fi
7983    
7984    
7985    
7986    
7987    
7988    
7989    
7990    
7991    
7992 michael 977
7993    
7994     enable_win32_dll=no
7995    
7996    
7997     # Check whether --enable-shared was given.
7998     if test "${enable_shared+set}" = set; then :
7999     enableval=$enable_shared; p=${PACKAGE-default}
8000 michael 945 case $enableval in
8001 michael 977 yes) enable_shared=yes ;;
8002     no) enable_shared=no ;;
8003 michael 945 *)
8004 michael 977 enable_shared=no
8005 michael 945 # Look at the argument we got. We use all the common list separators.
8006     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8007     for pkg in $enableval; do
8008     IFS="$lt_save_ifs"
8009     if test "X$pkg" = "X$p"; then
8010 michael 977 enable_shared=yes
8011 michael 945 fi
8012     done
8013     IFS="$lt_save_ifs"
8014 michael 912 ;;
8015     esac
8016     else
8017 michael 977 enable_shared=yes
8018 michael 912 fi
8019    
8020    
8021    
8022    
8023    
8024    
8025    
8026    
8027    
8028    
8029 michael 977
8030 michael 945 # Check whether --with-pic was given.
8031 michael 967 if test "${with_pic+set}" = set; then :
8032 michael 1257 withval=$with_pic; lt_p=${PACKAGE-default}
8033     case $withval in
8034     yes|no) pic_mode=$withval ;;
8035     *)
8036     pic_mode=default
8037     # Look at the argument we got. We use all the common list separators.
8038     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8039     for lt_pkg in $withval; do
8040     IFS="$lt_save_ifs"
8041     if test "X$lt_pkg" = "X$lt_p"; then
8042     pic_mode=yes
8043     fi
8044     done
8045     IFS="$lt_save_ifs"
8046     ;;
8047     esac
8048 michael 912 else
8049 michael 945 pic_mode=default
8050 michael 912 fi
8051    
8052    
8053 michael 945 test -z "$pic_mode" && pic_mode=default
8054 michael 912
8055    
8056    
8057    
8058    
8059    
8060    
8061 michael 945 # Check whether --enable-fast-install was given.
8062 michael 967 if test "${enable_fast_install+set}" = set; then :
8063 michael 945 enableval=$enable_fast_install; p=${PACKAGE-default}
8064     case $enableval in
8065     yes) enable_fast_install=yes ;;
8066     no) enable_fast_install=no ;;
8067     *)
8068     enable_fast_install=no
8069     # Look at the argument we got. We use all the common list separators.
8070     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8071     for pkg in $enableval; do
8072     IFS="$lt_save_ifs"
8073     if test "X$pkg" = "X$p"; then
8074     enable_fast_install=yes
8075     fi
8076     done
8077     IFS="$lt_save_ifs"
8078     ;;
8079     esac
8080 michael 912 else
8081 michael 945 enable_fast_install=yes
8082 michael 912 fi
8083    
8084    
8085    
8086    
8087    
8088    
8089    
8090    
8091    
8092    
8093    
8094 michael 945 # This can be used to rebuild libtool when needed
8095     LIBTOOL_DEPS="$ltmain"
8096 michael 912
8097 michael 945 # Always use our own libtool.
8098     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8099 michael 912
8100    
8101    
8102    
8103    
8104    
8105    
8106    
8107    
8108    
8109    
8110    
8111    
8112    
8113    
8114    
8115    
8116    
8117    
8118    
8119    
8120    
8121    
8122    
8123    
8124 michael 1094
8125 michael 1257
8126    
8127    
8128    
8129 michael 945 test -z "$LN_S" && LN_S="ln -s"
8130 michael 912
8131    
8132    
8133    
8134    
8135    
8136    
8137    
8138    
8139    
8140    
8141    
8142    
8143    
8144 michael 945 if test -n "${ZSH_VERSION+set}" ; then
8145     setopt NO_GLOB_SUBST
8146 michael 912 fi
8147    
8148 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8149 db 941 $as_echo_n "checking for objdir... " >&6; }
8150 michael 1106 if ${lt_cv_objdir+:} false; then :
8151 db 941 $as_echo_n "(cached) " >&6
8152 michael 912 else
8153     rm -f .libs 2>/dev/null
8154     mkdir .libs 2>/dev/null
8155     if test -d .libs; then
8156     lt_cv_objdir=.libs
8157     else
8158     # MS-DOS does not allow filenames that begin with a dot.
8159     lt_cv_objdir=_libs
8160     fi
8161     rmdir .libs 2>/dev/null
8162     fi
8163 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8164 db 941 $as_echo "$lt_cv_objdir" >&6; }
8165 michael 912 objdir=$lt_cv_objdir
8166    
8167    
8168    
8169    
8170    
8171 michael 945 cat >>confdefs.h <<_ACEOF
8172     #define LT_OBJDIR "$lt_cv_objdir/"
8173     _ACEOF
8174    
8175    
8176    
8177    
8178 michael 912 case $host_os in
8179     aix3*)
8180     # AIX sometimes has problems with the GCC collect2 program. For some
8181     # reason, if we set the COLLECT_NAMES environment variable, the problems
8182     # vanish in a puff of smoke.
8183     if test "X${COLLECT_NAMES+set}" != Xset; then
8184     COLLECT_NAMES=
8185     export COLLECT_NAMES
8186     fi
8187     ;;
8188     esac
8189    
8190     # Global variables:
8191 michael 945 ofile=libtool
8192 michael 912 can_build_shared=yes
8193    
8194     # All known linkers require a `.a' archive for static linking (except MSVC,
8195     # which needs '.lib').
8196     libext=a
8197 michael 945
8198 michael 912 with_gnu_ld="$lt_cv_prog_gnu_ld"
8199    
8200     old_CC="$CC"
8201     old_CFLAGS="$CFLAGS"
8202    
8203     # Set sane defaults for various variables
8204     test -z "$CC" && CC=cc
8205     test -z "$LTCC" && LTCC=$CC
8206     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8207     test -z "$LD" && LD=ld
8208     test -z "$ac_objext" && ac_objext=o
8209    
8210     for cc_temp in $compiler""; do
8211     case $cc_temp in
8212     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8213     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8214     \-*) ;;
8215     *) break;;
8216     esac
8217     done
8218 michael 1094 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8219 michael 912
8220    
8221     # Only perform the check for file, if the check method requires it
8222 michael 945 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8223 michael 912 case $deplibs_check_method in
8224     file_magic*)
8225     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8226 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8227 db 941 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8228 michael 1106 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8229 db 941 $as_echo_n "(cached) " >&6
8230 michael 912 else
8231     case $MAGIC_CMD in
8232     [\\/*] | ?:[\\/]*)
8233     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8234     ;;
8235     *)
8236     lt_save_MAGIC_CMD="$MAGIC_CMD"
8237     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8238     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8239     for ac_dir in $ac_dummy; do
8240     IFS="$lt_save_ifs"
8241     test -z "$ac_dir" && ac_dir=.
8242     if test -f $ac_dir/${ac_tool_prefix}file; then
8243     lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8244     if test -n "$file_magic_test_file"; then
8245     case $deplibs_check_method in
8246     "file_magic "*)
8247     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8248     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8249     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8250     $EGREP "$file_magic_regex" > /dev/null; then
8251     :
8252     else
8253 michael 945 cat <<_LT_EOF 1>&2
8254 michael 912
8255     *** Warning: the command libtool uses to detect shared libraries,
8256     *** $file_magic_cmd, produces output that libtool cannot recognize.
8257     *** The result is that libtool may fail to recognize shared libraries
8258     *** as such. This will affect the creation of libtool libraries that
8259     *** depend on shared libraries, but programs linked with such libtool
8260     *** libraries will work regardless of this problem. Nevertheless, you
8261     *** may want to report the problem to your system manager and/or to
8262     *** bug-libtool@gnu.org
8263    
8264 michael 945 _LT_EOF
8265 michael 912 fi ;;
8266     esac
8267     fi
8268     break
8269     fi
8270     done
8271     IFS="$lt_save_ifs"
8272     MAGIC_CMD="$lt_save_MAGIC_CMD"
8273     ;;
8274     esac
8275     fi
8276    
8277     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8278     if test -n "$MAGIC_CMD"; then
8279 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8280 db 941 $as_echo "$MAGIC_CMD" >&6; }
8281 michael 912 else
8282 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 db 941 $as_echo "no" >&6; }
8284 michael 912 fi
8285    
8286 michael 945
8287    
8288    
8289    
8290 michael 912 if test -z "$lt_cv_path_MAGIC_CMD"; then
8291     if test -n "$ac_tool_prefix"; then
8292 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8293 db 941 $as_echo_n "checking for file... " >&6; }
8294 michael 1106 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8295 db 941 $as_echo_n "(cached) " >&6
8296 michael 912 else
8297     case $MAGIC_CMD in
8298     [\\/*] | ?:[\\/]*)
8299     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8300     ;;
8301     *)
8302     lt_save_MAGIC_CMD="$MAGIC_CMD"
8303     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8304     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8305     for ac_dir in $ac_dummy; do
8306     IFS="$lt_save_ifs"
8307     test -z "$ac_dir" && ac_dir=.
8308     if test -f $ac_dir/file; then
8309     lt_cv_path_MAGIC_CMD="$ac_dir/file"
8310     if test -n "$file_magic_test_file"; then
8311     case $deplibs_check_method in
8312     "file_magic "*)
8313     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8314     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8315     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8316     $EGREP "$file_magic_regex" > /dev/null; then
8317     :
8318     else
8319 michael 945 cat <<_LT_EOF 1>&2
8320 michael 912
8321     *** Warning: the command libtool uses to detect shared libraries,
8322     *** $file_magic_cmd, produces output that libtool cannot recognize.
8323     *** The result is that libtool may fail to recognize shared libraries
8324     *** as such. This will affect the creation of libtool libraries that
8325     *** depend on shared libraries, but programs linked with such libtool
8326     *** libraries will work regardless of this problem. Nevertheless, you
8327     *** may want to report the problem to your system manager and/or to
8328     *** bug-libtool@gnu.org
8329    
8330 michael 945 _LT_EOF
8331 michael 912 fi ;;
8332     esac
8333     fi
8334     break
8335     fi
8336     done
8337     IFS="$lt_save_ifs"
8338     MAGIC_CMD="$lt_save_MAGIC_CMD"
8339     ;;
8340     esac
8341     fi
8342    
8343     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8344     if test -n "$MAGIC_CMD"; then
8345 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8346 db 941 $as_echo "$MAGIC_CMD" >&6; }
8347 michael 912 else
8348 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8349 db 941 $as_echo "no" >&6; }
8350 michael 912 fi
8351    
8352 michael 945
8353 michael 912 else
8354     MAGIC_CMD=:
8355     fi
8356     fi
8357    
8358     fi
8359     ;;
8360     esac
8361    
8362 michael 945 # Use C for the default configuration in the libtool script
8363 db 941
8364 michael 912 lt_save_CC="$CC"
8365     ac_ext=c
8366     ac_cpp='$CPP $CPPFLAGS'
8367     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8368     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8369     ac_compiler_gnu=$ac_cv_c_compiler_gnu
8370    
8371    
8372     # Source file extension for C test sources.
8373     ac_ext=c
8374    
8375     # Object file extension for compiled C test sources.
8376     objext=o
8377     objext=$objext
8378    
8379     # Code to be used in simple compile tests
8380     lt_simple_compile_test_code="int some_variable = 0;"
8381    
8382     # Code to be used in simple link tests
8383     lt_simple_link_test_code='int main(){return(0);}'
8384    
8385    
8386 michael 945
8387    
8388    
8389    
8390    
8391 michael 912 # If no C compiler was specified, use CC.
8392     LTCC=${LTCC-"$CC"}
8393    
8394     # If no C compiler flags were specified, use CFLAGS.
8395     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8396    
8397     # Allow CC to be a program name with arguments.
8398     compiler=$CC
8399    
8400 michael 945 # Save the default compiler, since it gets overwritten when the other
8401     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8402     compiler_DEFAULT=$CC
8403 michael 912
8404     # save warnings/boilerplate of simple test code
8405     ac_outfile=conftest.$ac_objext
8406     echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8407     eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8408     _lt_compiler_boilerplate=`cat conftest.err`
8409 michael 945 $RM conftest*
8410 michael 912
8411     ac_outfile=conftest.$ac_objext
8412     echo "$lt_simple_link_test_code" >conftest.$ac_ext
8413     eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8414     _lt_linker_boilerplate=`cat conftest.err`
8415 michael 945 $RM -r conftest*
8416 michael 912
8417    
8418 michael 945 if test -n "$compiler"; then
8419 michael 912
8420     lt_prog_compiler_no_builtin_flag=
8421    
8422     if test "$GCC" = yes; then
8423 michael 1094 case $cc_basename in
8424     nvcc*)
8425     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8426     *)
8427     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8428     esac
8429 michael 912
8430 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8431 db 941 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8432 michael 1106 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8433 db 941 $as_echo_n "(cached) " >&6
8434 michael 912 else
8435     lt_cv_prog_compiler_rtti_exceptions=no
8436 michael 945 ac_outfile=conftest.$ac_objext
8437 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8438     lt_compiler_flag="-fno-rtti -fno-exceptions"
8439     # Insert the option either (1) after the last *FLAGS variable, or
8440     # (2) before a word containing "conftest.", or (3) at the end.
8441     # Note that $ac_compile itself does not contain backslashes and begins
8442     # with a dollar sign (not a hyphen), so the echo should work correctly.
8443     # The option is referenced via a variable to avoid confusing sed.
8444     lt_compile=`echo "$ac_compile" | $SED \
8445     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8446     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8447     -e 's:$: $lt_compiler_flag:'`
8448 michael 1094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8449 michael 912 (eval "$lt_compile" 2>conftest.err)
8450     ac_status=$?
8451     cat conftest.err >&5
8452 michael 1094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
8454     # The compiler can only warn and ignore the option if not recognized
8455     # So say no if there are warnings other than the usual output.
8456 michael 1094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8457 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8458     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8459     lt_cv_prog_compiler_rtti_exceptions=yes
8460     fi
8461     fi
8462 michael 945 $RM conftest*
8463 michael 912
8464     fi
8465 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8466 db 941 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8467 michael 912
8468     if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8469     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8470     else
8471     :
8472     fi
8473    
8474     fi
8475    
8476 michael 945
8477    
8478    
8479    
8480    
8481     lt_prog_compiler_wl=
8482 michael 912 lt_prog_compiler_pic=
8483     lt_prog_compiler_static=
8484    
8485    
8486     if test "$GCC" = yes; then
8487     lt_prog_compiler_wl='-Wl,'
8488     lt_prog_compiler_static='-static'
8489    
8490     case $host_os in
8491     aix*)
8492     # All AIX code is PIC.
8493     if test "$host_cpu" = ia64; then
8494     # AIX 5 now supports IA64 processor
8495     lt_prog_compiler_static='-Bstatic'
8496     fi
8497     ;;
8498    
8499     amigaos*)
8500 michael 945 case $host_cpu in
8501     powerpc)
8502     # see comment about AmigaOS4 .so support
8503     lt_prog_compiler_pic='-fPIC'
8504     ;;
8505     m68k)
8506     # FIXME: we need at least 68020 code to build shared libraries, but
8507     # adding the `-m68020' flag to GCC prevents building anything better,
8508     # like `-m68040'.
8509     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8510     ;;
8511     esac
8512 michael 912 ;;
8513    
8514     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8515     # PIC is the default for these OSes.
8516     ;;
8517    
8518 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
8519 michael 912 # This hack is so that the source file can tell whether it is being
8520     # built for inclusion in a dll (and should export symbols for example).
8521     # Although the cygwin gcc ignores -fPIC, still need this for old-style
8522     # (--disable-auto-import) libraries
8523     lt_prog_compiler_pic='-DDLL_EXPORT'
8524     ;;
8525    
8526     darwin* | rhapsody*)
8527     # PIC is the default on this platform
8528     # Common symbols not allowed in MH_DYLIB files
8529     lt_prog_compiler_pic='-fno-common'
8530     ;;
8531    
8532 michael 1094 haiku*)
8533     # PIC is the default for Haiku.
8534     # The "-static" flag exists, but is broken.
8535     lt_prog_compiler_static=
8536     ;;
8537    
8538 michael 945 hpux*)
8539     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8540     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8541     # sets the default TLS model and affects inlining.
8542     case $host_cpu in
8543     hppa*64*)
8544     # +Z the default
8545     ;;
8546     *)
8547     lt_prog_compiler_pic='-fPIC'
8548     ;;
8549     esac
8550     ;;
8551    
8552 michael 912 interix[3-9]*)
8553     # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8554     # Instead, we relocate shared libraries at runtime.
8555     ;;
8556    
8557     msdosdjgpp*)
8558     # Just because we use GCC doesn't mean we suddenly get shared libraries
8559     # on systems that don't support them.
8560     lt_prog_compiler_can_build_shared=no
8561     enable_shared=no
8562     ;;
8563    
8564 michael 945 *nto* | *qnx*)
8565     # QNX uses GNU C++, but need to define -shared option too, otherwise
8566     # it will coredump.
8567     lt_prog_compiler_pic='-fPIC -shared'
8568     ;;
8569    
8570 michael 912 sysv4*MP*)
8571     if test -d /usr/nec; then
8572     lt_prog_compiler_pic=-Kconform_pic
8573     fi
8574     ;;
8575    
8576     *)
8577     lt_prog_compiler_pic='-fPIC'
8578     ;;
8579     esac
8580 michael 1094
8581     case $cc_basename in
8582     nvcc*) # Cuda Compiler Driver 2.2
8583     lt_prog_compiler_wl='-Xlinker '
8584 michael 1257 if test -n "$lt_prog_compiler_pic"; then
8585     lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8586     fi
8587 michael 1094 ;;
8588     esac
8589 michael 912 else
8590     # PORTME Check for flag to pass linker flags through the system compiler.
8591     case $host_os in
8592     aix*)
8593     lt_prog_compiler_wl='-Wl,'
8594     if test "$host_cpu" = ia64; then
8595     # AIX 5 now supports IA64 processor
8596     lt_prog_compiler_static='-Bstatic'
8597     else
8598     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8599     fi
8600     ;;
8601    
8602 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
8603 michael 912 # This hack is so that the source file can tell whether it is being
8604     # built for inclusion in a dll (and should export symbols for example).
8605     lt_prog_compiler_pic='-DDLL_EXPORT'
8606     ;;
8607    
8608     hpux9* | hpux10* | hpux11*)
8609     lt_prog_compiler_wl='-Wl,'
8610     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8611     # not for PA HP-UX.
8612     case $host_cpu in
8613     hppa*64*|ia64*)
8614     # +Z the default
8615     ;;
8616     *)
8617     lt_prog_compiler_pic='+Z'
8618     ;;
8619     esac
8620     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8621     lt_prog_compiler_static='${wl}-a ${wl}archive'
8622     ;;
8623    
8624     irix5* | irix6* | nonstopux*)
8625     lt_prog_compiler_wl='-Wl,'
8626     # PIC (with -KPIC) is the default.
8627     lt_prog_compiler_static='-non_shared'
8628     ;;
8629    
8630 michael 1094 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8631 michael 912 case $cc_basename in
8632 michael 945 # old Intel for x86_64 which still supported -KPIC.
8633     ecc*)
8634 michael 912 lt_prog_compiler_wl='-Wl,'
8635     lt_prog_compiler_pic='-KPIC'
8636     lt_prog_compiler_static='-static'
8637     ;;
8638 michael 945 # icc used to be incompatible with GCC.
8639     # ICC 10 doesn't accept -KPIC any more.
8640     icc* | ifort*)
8641     lt_prog_compiler_wl='-Wl,'
8642     lt_prog_compiler_pic='-fPIC'
8643     lt_prog_compiler_static='-static'
8644     ;;
8645     # Lahey Fortran 8.1.
8646     lf95*)
8647     lt_prog_compiler_wl='-Wl,'
8648     lt_prog_compiler_pic='--shared'
8649     lt_prog_compiler_static='--static'
8650     ;;
8651 michael 1106 nagfor*)
8652     # NAG Fortran compiler
8653     lt_prog_compiler_wl='-Wl,-Wl,,'
8654     lt_prog_compiler_pic='-PIC'
8655     lt_prog_compiler_static='-Bstatic'
8656     ;;
8657 michael 1094 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8658 michael 912 # Portland Group compilers (*not* the Pentium gcc compiler,
8659     # which looks to be a dead project)
8660     lt_prog_compiler_wl='-Wl,'
8661     lt_prog_compiler_pic='-fpic'
8662     lt_prog_compiler_static='-Bstatic'
8663     ;;
8664     ccc*)
8665     lt_prog_compiler_wl='-Wl,'
8666     # All Alpha code is PIC.
8667     lt_prog_compiler_static='-non_shared'
8668     ;;
8669 michael 1094 xl* | bgxl* | bgf* | mpixl*)
8670     # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8671 michael 945 lt_prog_compiler_wl='-Wl,'
8672     lt_prog_compiler_pic='-qpic'
8673     lt_prog_compiler_static='-qstaticlink'
8674     ;;
8675 michael 912 *)
8676 michael 945 case `$CC -V 2>&1 | sed 5q` in
8677 michael 1257 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8678 michael 1094 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8679     lt_prog_compiler_pic='-KPIC'
8680     lt_prog_compiler_static='-Bstatic'
8681     lt_prog_compiler_wl=''
8682     ;;
8683 michael 1257 *Sun\ F* | *Sun*Fortran*)
8684     lt_prog_compiler_pic='-KPIC'
8685     lt_prog_compiler_static='-Bstatic'
8686     lt_prog_compiler_wl='-Qoption ld '
8687     ;;
8688 michael 912 *Sun\ C*)
8689     # Sun C 5.9
8690     lt_prog_compiler_pic='-KPIC'
8691     lt_prog_compiler_static='-Bstatic'
8692     lt_prog_compiler_wl='-Wl,'
8693     ;;
8694 michael 1257 *Intel*\ [CF]*Compiler*)
8695     lt_prog_compiler_wl='-Wl,'
8696     lt_prog_compiler_pic='-fPIC'
8697     lt_prog_compiler_static='-static'
8698     ;;
8699     *Portland\ Group*)
8700     lt_prog_compiler_wl='-Wl,'
8701     lt_prog_compiler_pic='-fpic'
8702     lt_prog_compiler_static='-Bstatic'
8703     ;;
8704 michael 912 esac
8705     ;;
8706     esac
8707     ;;
8708    
8709 michael 945 newsos6)
8710     lt_prog_compiler_pic='-KPIC'
8711     lt_prog_compiler_static='-Bstatic'
8712     ;;
8713    
8714     *nto* | *qnx*)
8715     # QNX uses GNU C++, but need to define -shared option too, otherwise
8716     # it will coredump.
8717     lt_prog_compiler_pic='-fPIC -shared'
8718     ;;
8719    
8720 michael 912 osf3* | osf4* | osf5*)
8721     lt_prog_compiler_wl='-Wl,'
8722     # All OSF/1 code is PIC.
8723     lt_prog_compiler_static='-non_shared'
8724     ;;
8725    
8726     rdos*)
8727     lt_prog_compiler_static='-non_shared'
8728     ;;
8729    
8730     solaris*)
8731     lt_prog_compiler_pic='-KPIC'
8732     lt_prog_compiler_static='-Bstatic'
8733     case $cc_basename in
8734 michael 1094 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8735 michael 912 lt_prog_compiler_wl='-Qoption ld ';;
8736     *)
8737     lt_prog_compiler_wl='-Wl,';;
8738     esac
8739     ;;
8740    
8741     sunos4*)
8742     lt_prog_compiler_wl='-Qoption ld '
8743     lt_prog_compiler_pic='-PIC'
8744     lt_prog_compiler_static='-Bstatic'
8745     ;;
8746    
8747     sysv4 | sysv4.2uw2* | sysv4.3*)
8748     lt_prog_compiler_wl='-Wl,'
8749     lt_prog_compiler_pic='-KPIC'
8750     lt_prog_compiler_static='-Bstatic'
8751     ;;
8752    
8753     sysv4*MP*)
8754     if test -d /usr/nec ;then
8755     lt_prog_compiler_pic='-Kconform_pic'
8756     lt_prog_compiler_static='-Bstatic'
8757     fi
8758     ;;
8759    
8760     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8761     lt_prog_compiler_wl='-Wl,'
8762     lt_prog_compiler_pic='-KPIC'
8763     lt_prog_compiler_static='-Bstatic'
8764     ;;
8765    
8766     unicos*)
8767     lt_prog_compiler_wl='-Wl,'
8768     lt_prog_compiler_can_build_shared=no
8769     ;;
8770    
8771     uts4*)
8772     lt_prog_compiler_pic='-pic'
8773     lt_prog_compiler_static='-Bstatic'
8774     ;;
8775    
8776     *)
8777     lt_prog_compiler_can_build_shared=no
8778     ;;
8779     esac
8780     fi
8781    
8782 michael 945 case $host_os in
8783     # For platforms which do not support PIC, -DPIC is meaningless:
8784     *djgpp*)
8785     lt_prog_compiler_pic=
8786     ;;
8787     *)
8788     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8789     ;;
8790     esac
8791 michael 912
8792 michael 1106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8793     $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8794     if ${lt_cv_prog_compiler_pic+:} false; then :
8795     $as_echo_n "(cached) " >&6
8796     else
8797     lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8798     fi
8799     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8800     $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8801     lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8802 michael 945
8803 michael 912 #
8804     # Check to make sure the PIC flag actually works.
8805     #
8806     if test -n "$lt_prog_compiler_pic"; then
8807 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8808 db 941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8809 michael 1106 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8810 db 941 $as_echo_n "(cached) " >&6
8811 michael 912 else
8812 db 941 lt_cv_prog_compiler_pic_works=no
8813 michael 945 ac_outfile=conftest.$ac_objext
8814 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8815     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8816     # Insert the option either (1) after the last *FLAGS variable, or
8817     # (2) before a word containing "conftest.", or (3) at the end.
8818     # Note that $ac_compile itself does not contain backslashes and begins
8819     # with a dollar sign (not a hyphen), so the echo should work correctly.
8820     # The option is referenced via a variable to avoid confusing sed.
8821     lt_compile=`echo "$ac_compile" | $SED \
8822     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8823     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8824     -e 's:$: $lt_compiler_flag:'`
8825 michael 1094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8826 michael 912 (eval "$lt_compile" 2>conftest.err)
8827     ac_status=$?
8828     cat conftest.err >&5
8829 michael 1094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8830 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
8831     # The compiler can only warn and ignore the option if not recognized
8832     # So say no if there are warnings other than the usual output.
8833 michael 1094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8834 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8835     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8836 db 941 lt_cv_prog_compiler_pic_works=yes
8837 michael 912 fi
8838     fi
8839 michael 945 $RM conftest*
8840 michael 912
8841     fi
8842 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8843 db 941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8844 michael 912
8845 db 941 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8846 michael 912 case $lt_prog_compiler_pic in
8847     "" | " "*) ;;
8848     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8849     esac
8850     else
8851     lt_prog_compiler_pic=
8852     lt_prog_compiler_can_build_shared=no
8853     fi
8854    
8855     fi
8856    
8857 michael 945
8858    
8859    
8860    
8861    
8862 michael 1106
8863    
8864    
8865    
8866    
8867 michael 912 #
8868     # Check to make sure the static flag actually works.
8869     #
8870     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8871 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8872 db 941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8873 michael 1106 if ${lt_cv_prog_compiler_static_works+:} false; then :
8874 db 941 $as_echo_n "(cached) " >&6
8875 michael 912 else
8876 db 941 lt_cv_prog_compiler_static_works=no
8877 michael 912 save_LDFLAGS="$LDFLAGS"
8878     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8879     echo "$lt_simple_link_test_code" > conftest.$ac_ext
8880     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8881     # The linker can only warn and ignore the option if not recognized
8882     # So say no if there are warnings
8883     if test -s conftest.err; then
8884     # Append any errors to the config.log.
8885     cat conftest.err 1>&5
8886 michael 1094 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8887 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8888     if diff conftest.exp conftest.er2 >/dev/null; then
8889 db 941 lt_cv_prog_compiler_static_works=yes
8890 michael 912 fi
8891     else
8892 db 941 lt_cv_prog_compiler_static_works=yes
8893 michael 912 fi
8894     fi
8895 michael 945 $RM -r conftest*
8896 michael 912 LDFLAGS="$save_LDFLAGS"
8897    
8898     fi
8899 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8900 db 941 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8901 michael 912
8902 db 941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8903 michael 912 :
8904     else
8905     lt_prog_compiler_static=
8906     fi
8907    
8908    
8909 michael 945
8910    
8911    
8912    
8913    
8914 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8915 db 941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8916 michael 1106 if ${lt_cv_prog_compiler_c_o+:} false; then :
8917 db 941 $as_echo_n "(cached) " >&6
8918 michael 912 else
8919     lt_cv_prog_compiler_c_o=no
8920 michael 945 $RM -r conftest 2>/dev/null
8921 michael 912 mkdir conftest
8922     cd conftest
8923     mkdir out
8924     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8925    
8926     lt_compiler_flag="-o out/conftest2.$ac_objext"
8927     # Insert the option either (1) after the last *FLAGS variable, or
8928     # (2) before a word containing "conftest.", or (3) at the end.
8929     # Note that $ac_compile itself does not contain backslashes and begins
8930     # with a dollar sign (not a hyphen), so the echo should work correctly.
8931     lt_compile=`echo "$ac_compile" | $SED \
8932     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8933     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8934     -e 's:$: $lt_compiler_flag:'`
8935 michael 1094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8936 michael 912 (eval "$lt_compile" 2>out/conftest.err)
8937     ac_status=$?
8938     cat out/conftest.err >&5
8939 michael 1094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940 michael 912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8941     then
8942     # The compiler can only warn and ignore the option if not recognized
8943     # So say no if there are warnings
8944 michael 1094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8945 michael 912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8946     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8947     lt_cv_prog_compiler_c_o=yes
8948     fi
8949     fi
8950     chmod u+w . 2>&5
8951 michael 945 $RM conftest*
8952 michael 912 # SGI C++ compiler will create directory out/ii_files/ for
8953     # template instantiation
8954 michael 945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8955     $RM out/* && rmdir out
8956 michael 912 cd ..
8957 michael 945 $RM -r conftest
8958     $RM conftest*
8959 michael 912
8960     fi
8961 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8962 db 941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8963 michael 912
8964    
8965 michael 945
8966    
8967    
8968    
8969 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8970 michael 945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8971 michael 1106 if ${lt_cv_prog_compiler_c_o+:} false; then :
8972 michael 945 $as_echo_n "(cached) " >&6
8973     else
8974     lt_cv_prog_compiler_c_o=no
8975     $RM -r conftest 2>/dev/null
8976     mkdir conftest
8977     cd conftest
8978     mkdir out
8979     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8980    
8981     lt_compiler_flag="-o out/conftest2.$ac_objext"
8982     # Insert the option either (1) after the last *FLAGS variable, or
8983     # (2) before a word containing "conftest.", or (3) at the end.
8984     # Note that $ac_compile itself does not contain backslashes and begins
8985     # with a dollar sign (not a hyphen), so the echo should work correctly.
8986     lt_compile=`echo "$ac_compile" | $SED \
8987     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8988     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8989     -e 's:$: $lt_compiler_flag:'`
8990 michael 1094 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8991 michael 945 (eval "$lt_compile" 2>out/conftest.err)
8992     ac_status=$?
8993     cat out/conftest.err >&5
8994 michael 1094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 michael 945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8996     then
8997     # The compiler can only warn and ignore the option if not recognized
8998     # So say no if there are warnings
8999 michael 1094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9000 michael 945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9001     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9002     lt_cv_prog_compiler_c_o=yes
9003     fi
9004     fi
9005     chmod u+w . 2>&5
9006     $RM conftest*
9007     # SGI C++ compiler will create directory out/ii_files/ for
9008     # template instantiation
9009     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9010     $RM out/* && rmdir out
9011     cd ..
9012     $RM -r conftest
9013     $RM conftest*
9014    
9015     fi
9016 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9017 michael 945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9018    
9019    
9020    
9021    
9022 michael 912 hard_links="nottested"
9023     if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9024     # do not overwrite the value of need_locks provided by the user
9025 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9026 db 941 $as_echo_n "checking if we can lock with hard links... " >&6; }
9027 michael 912 hard_links=yes
9028 michael 945 $RM conftest*
9029 michael 912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9030     touch conftest.a
9031     ln conftest.a conftest.b 2>&5 || hard_links=no
9032     ln conftest.a conftest.b 2>/dev/null && hard_links=no
9033 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9034 db 941 $as_echo "$hard_links" >&6; }
9035 michael 912 if test "$hard_links" = no; then
9036 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9037 db 941 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9038 michael 912 need_locks=warn
9039     fi
9040     else
9041     need_locks=no
9042     fi
9043    
9044 michael 945
9045    
9046    
9047    
9048    
9049 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9050 db 941 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9051 michael 912
9052     runpath_var=
9053     allow_undefined_flag=
9054 michael 945 always_export_symbols=no
9055 michael 912 archive_cmds=
9056     archive_expsym_cmds=
9057 michael 945 compiler_needs_object=no
9058     enable_shared_with_static_runtimes=no
9059 michael 912 export_dynamic_flag_spec=
9060 michael 945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9061     hardcode_automatic=no
9062     hardcode_direct=no
9063     hardcode_direct_absolute=no
9064 michael 912 hardcode_libdir_flag_spec=
9065     hardcode_libdir_separator=
9066     hardcode_minus_L=no
9067     hardcode_shlibpath_var=unsupported
9068 michael 945 inherit_rpath=no
9069 michael 912 link_all_deplibs=unknown
9070     module_cmds=
9071     module_expsym_cmds=
9072 michael 945 old_archive_from_new_cmds=
9073     old_archive_from_expsyms_cmds=
9074     thread_safe_flag_spec=
9075     whole_archive_flag_spec=
9076 michael 912 # include_expsyms should be a list of space-separated symbols to be *always*
9077     # included in the symbol list
9078     include_expsyms=
9079     # exclude_expsyms can be an extended regexp of symbols to exclude
9080     # it will be wrapped by ` (' and `)$', so one must not match beginning or
9081     # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9082     # as well as any symbol that contains `d'.
9083 db 941 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9084 michael 912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9085     # platforms (ab)use it in PIC code, but their linkers get confused if
9086     # the symbol is explicitly referenced. Since portable code cannot
9087     # rely on this symbol name, it's probably fine to never include it in
9088     # preloaded symbol tables.
9089 db 941 # Exclude shared library initialization/finalization symbols.
9090 michael 912 extract_expsyms_cmds=
9091    
9092     case $host_os in
9093 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9094 michael 912 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9095     # When not using gcc, we currently assume that we are using
9096     # Microsoft Visual C++.
9097     if test "$GCC" != yes; then
9098     with_gnu_ld=no
9099     fi
9100     ;;
9101     interix*)
9102     # we just hope/assume this is gcc and not c89 (= MSVC++)
9103     with_gnu_ld=yes
9104     ;;
9105     openbsd*)
9106     with_gnu_ld=no
9107     ;;
9108     esac
9109    
9110     ld_shlibs=yes
9111 michael 1094
9112     # On some targets, GNU ld is compatible enough with the native linker
9113     # that we're better off using the native interface for both.
9114     lt_use_gnu_ld_interface=no
9115 michael 912 if test "$with_gnu_ld" = yes; then
9116 michael 1094 case $host_os in
9117     aix*)
9118     # The AIX port of GNU ld has always aspired to compatibility
9119     # with the native linker. However, as the warning in the GNU ld
9120     # block says, versions before 2.19.5* couldn't really create working
9121     # shared libraries, regardless of the interface used.
9122     case `$LD -v 2>&1` in
9123     *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9124     *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9125     *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9126     *)
9127     lt_use_gnu_ld_interface=yes
9128     ;;
9129     esac
9130     ;;
9131     *)
9132     lt_use_gnu_ld_interface=yes
9133     ;;
9134     esac
9135     fi
9136    
9137     if test "$lt_use_gnu_ld_interface" = yes; then
9138 michael 912 # If archive_cmds runs LD, not CC, wlarc should be empty
9139     wlarc='${wl}'
9140    
9141     # Set some defaults for GNU ld with shared library support. These
9142     # are reset later if shared libraries are not supported. Putting them
9143     # here allows them to be overridden if necessary.
9144     runpath_var=LD_RUN_PATH
9145 michael 945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9146 michael 912 export_dynamic_flag_spec='${wl}--export-dynamic'
9147     # ancient GNU ld didn't support --whole-archive et. al.
9148 michael 945 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9149     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9150     else
9151     whole_archive_flag_spec=
9152 michael 912 fi
9153     supports_anon_versioning=no
9154 michael 945 case `$LD -v 2>&1` in
9155 michael 1094 *GNU\ gold*) supports_anon_versioning=yes ;;
9156 michael 912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9157     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9158     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9159     *\ 2.11.*) ;; # other 2.11 versions
9160     *) supports_anon_versioning=yes ;;
9161     esac
9162    
9163     # See if GNU ld supports shared libraries.
9164     case $host_os in
9165 db 941 aix[3-9]*)
9166 michael 912 # On AIX/PPC, the GNU linker is very broken
9167     if test "$host_cpu" != ia64; then
9168     ld_shlibs=no
9169 michael 945 cat <<_LT_EOF 1>&2
9170 michael 912
9171 michael 1094 *** Warning: the GNU linker, at least up to release 2.19, is reported
9172 michael 912 *** to be unable to reliably create shared libraries on AIX.
9173     *** Therefore, libtool is disabling shared libraries support. If you
9174 michael 1094 *** really care for shared libraries, you may want to install binutils
9175     *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9176     *** You will then need to restart the configuration process.
9177 michael 912
9178 michael 945 _LT_EOF
9179 michael 912 fi
9180     ;;
9181    
9182     amigaos*)
9183 michael 945 case $host_cpu in
9184     powerpc)
9185     # see comment about AmigaOS4 .so support
9186     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9187     archive_expsym_cmds=''
9188     ;;
9189     m68k)
9190     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)'
9191     hardcode_libdir_flag_spec='-L$libdir'
9192     hardcode_minus_L=yes
9193     ;;
9194     esac
9195 michael 912 ;;
9196    
9197     beos*)
9198 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9199 michael 912 allow_undefined_flag=unsupported
9200     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9201     # support --undefined. This deserves some investigation. FIXME
9202     archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9203     else
9204     ld_shlibs=no
9205     fi
9206     ;;
9207    
9208 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9209     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9210 michael 912 # as there is no search path for DLLs.
9211     hardcode_libdir_flag_spec='-L$libdir'
9212 michael 1094 export_dynamic_flag_spec='${wl}--export-all-symbols'
9213 michael 912 allow_undefined_flag=unsupported
9214     always_export_symbols=no
9215     enable_shared_with_static_runtimes=yes
9216 michael 1106 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'
9217     exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9218 michael 912
9219 michael 945 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9220 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9221     # If the export-symbols file already is a .def file (1st line
9222     # is EXPORTS), use it as is; otherwise, prepend...
9223     archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9224     cp $export_symbols $output_objdir/$soname.def;
9225     else
9226     echo EXPORTS > $output_objdir/$soname.def;
9227     cat $export_symbols >> $output_objdir/$soname.def;
9228     fi~
9229     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9230     else
9231     ld_shlibs=no
9232     fi
9233     ;;
9234    
9235 michael 1094 haiku*)
9236     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9237     link_all_deplibs=yes
9238     ;;
9239    
9240 michael 912 interix[3-9]*)
9241     hardcode_direct=no
9242     hardcode_shlibpath_var=no
9243     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9244     export_dynamic_flag_spec='${wl}-E'
9245     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9246     # Instead, shared libraries are loaded at an image base (0x10000000 by
9247     # default) and relocated if they conflict, which is a slow very memory
9248     # consuming and fragmenting process. To avoid this, we pick a random,
9249     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9250     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9251     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9252     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'
9253     ;;
9254    
9255 michael 1094 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9256 michael 945 tmp_diet=no
9257     if test "$host_os" = linux-dietlibc; then
9258     case $cc_basename in
9259     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9260     esac
9261     fi
9262     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9263     && test "$tmp_diet" = no
9264     then
9265 michael 1106 tmp_addflag=' $pic_flag'
9266 michael 945 tmp_sharedflag='-shared'
9267 michael 912 case $cc_basename,$host_cpu in
9268 michael 945 pgcc*) # Portland Group C compiler
9269 michael 1094 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'
9270 michael 912 tmp_addflag=' $pic_flag'
9271     ;;
9272 michael 1094 pgf77* | pgf90* | pgf95* | pgfortran*)
9273     # Portland Group f77 and f90 compilers
9274     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'
9275 michael 912 tmp_addflag=' $pic_flag -Mnomain' ;;
9276 michael 945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9277 michael 912 tmp_addflag=' -i_dynamic' ;;
9278     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9279     tmp_addflag=' -i_dynamic -nofor_main' ;;
9280     ifc* | ifort*) # Intel Fortran compiler
9281     tmp_addflag=' -nofor_main' ;;
9282 michael 945 lf95*) # Lahey Fortran 8.1
9283     whole_archive_flag_spec=
9284     tmp_sharedflag='--shared' ;;
9285 michael 1094 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9286 michael 945 tmp_sharedflag='-qmkshrobj'
9287     tmp_addflag= ;;
9288 michael 1094 nvcc*) # Cuda Compiler Driver 2.2
9289     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'
9290     compiler_needs_object=yes
9291     ;;
9292 michael 912 esac
9293     case `$CC -V 2>&1 | sed 5q` in
9294     *Sun\ C*) # Sun C 5.9
9295 michael 1094 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'
9296 michael 945 compiler_needs_object=yes
9297 michael 912 tmp_sharedflag='-G' ;;
9298     *Sun\ F*) # Sun Fortran 8.3
9299     tmp_sharedflag='-G' ;;
9300     esac
9301     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9302    
9303 michael 945 if test "x$supports_anon_versioning" = xyes; then
9304     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9305     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9306     echo "local: *; };" >> $output_objdir/$libname.ver~
9307     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9308     fi
9309    
9310     case $cc_basename in
9311 michael 1094 xlf* | bgf* | bgxlf* | mpixlf*)
9312 michael 945 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9313     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9314 michael 1257 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9315 michael 1094 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9316 michael 945 if test "x$supports_anon_versioning" = xyes; then
9317     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9318     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9319     echo "local: *; };" >> $output_objdir/$libname.ver~
9320 michael 1094 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9321 michael 945 fi
9322     ;;
9323     esac
9324 michael 912 else
9325 michael 945 ld_shlibs=no
9326 michael 912 fi
9327     ;;
9328    
9329     netbsd*)
9330 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9331 michael 912 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9332     wlarc=
9333     else
9334 michael 1106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9335     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9336 michael 912 fi
9337     ;;
9338    
9339     solaris*)
9340 michael 945 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9341 michael 912 ld_shlibs=no
9342 michael 945 cat <<_LT_EOF 1>&2
9343 michael 912
9344     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9345     *** create shared libraries on Solaris systems. Therefore, libtool
9346     *** is disabling shared libraries support. We urge you to upgrade GNU
9347     *** binutils to release 2.9.1 or newer. Another option is to modify
9348     *** your PATH or compiler configuration so that the native linker is
9349     *** used, and then restart.
9350    
9351 michael 945 _LT_EOF
9352     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9353 michael 1106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355 michael 912 else
9356     ld_shlibs=no
9357     fi
9358     ;;
9359    
9360     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9361     case `$LD -v 2>&1` in
9362     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9363     ld_shlibs=no
9364     cat <<_LT_EOF 1>&2
9365    
9366     *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9367     *** reliably create shared libraries on SCO systems. Therefore, libtool
9368     *** is disabling shared libraries support. We urge you to upgrade GNU
9369     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9370     *** your PATH or compiler configuration so that the native linker is
9371     *** used, and then restart.
9372    
9373     _LT_EOF
9374     ;;
9375     *)
9376 michael 945 # For security reasons, it is highly recommended that you always
9377     # use absolute paths for naming shared libraries, and exclude the
9378     # DT_RUNPATH tag from executables and libraries. But doing so
9379     # requires that you compile everything twice, which is a pain.
9380     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9381     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9382     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9384 michael 912 else
9385     ld_shlibs=no
9386     fi
9387     ;;
9388     esac
9389     ;;
9390    
9391     sunos4*)
9392     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9393     wlarc=
9394     hardcode_direct=yes
9395     hardcode_shlibpath_var=no
9396     ;;
9397    
9398     *)
9399 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9400 michael 1106 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9401     archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9402 michael 912 else
9403     ld_shlibs=no
9404     fi
9405     ;;
9406     esac
9407    
9408     if test "$ld_shlibs" = no; then
9409     runpath_var=
9410     hardcode_libdir_flag_spec=
9411     export_dynamic_flag_spec=
9412     whole_archive_flag_spec=
9413     fi
9414     else
9415     # PORTME fill in a description of your system's linker (not GNU ld)
9416     case $host_os in
9417     aix3*)
9418     allow_undefined_flag=unsupported
9419     always_export_symbols=yes
9420     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'
9421     # Note: this linker hardcodes the directories in LIBPATH if there
9422     # are no directories specified by -L.
9423     hardcode_minus_L=yes
9424     if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9425     # Neither direct hardcoding nor static linking is supported with a
9426     # broken collect2.
9427     hardcode_direct=unsupported
9428     fi
9429     ;;
9430    
9431 db 941 aix[4-9]*)
9432 michael 912 if test "$host_cpu" = ia64; then
9433     # On IA64, the linker does run time linking by default, so we don't
9434     # have to do anything special.
9435     aix_use_runtimelinking=no
9436     exp_sym_flag='-Bexport'
9437     no_entry_flag=""
9438     else
9439     # If we're using GNU nm, then we don't want the "-C" option.
9440     # -C means demangle to AIX nm, but means don't demangle with GNU nm
9441 michael 1094 # Also, AIX nm treats weak defined symbols like other global
9442     # defined symbols, whereas GNU nm marks them as "W".
9443 michael 945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9444 michael 1094 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'
9445 michael 912 else
9446 michael 945 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'
9447 michael 912 fi
9448     aix_use_runtimelinking=no
9449    
9450     # Test if we are trying to use run time linking or normal
9451     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9452     # need to do runtime linking.
9453 db 941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9454 michael 912 for ld_flag in $LDFLAGS; do
9455 michael 945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9456     aix_use_runtimelinking=yes
9457     break
9458     fi
9459 michael 912 done
9460     ;;
9461     esac
9462    
9463     exp_sym_flag='-bexport'
9464     no_entry_flag='-bnoentry'
9465     fi
9466    
9467     # When large executables or shared objects are built, AIX ld can
9468     # have problems creating the table of contents. If linking a library
9469     # or program results in "error TOC overflow" add -mminimal-toc to
9470     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9471     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9472    
9473     archive_cmds=''
9474     hardcode_direct=yes
9475 michael 945 hardcode_direct_absolute=yes
9476 michael 912 hardcode_libdir_separator=':'
9477     link_all_deplibs=yes
9478 michael 945 file_list_spec='${wl}-f,'
9479 michael 912
9480     if test "$GCC" = yes; then
9481     case $host_os in aix4.[012]|aix4.[012].*)
9482     # We only want to do this on AIX 4.2 and lower, the check
9483     # below for broken collect2 doesn't work under 4.3+
9484     collect2name=`${CC} -print-prog-name=collect2`
9485 michael 945 if test -f "$collect2name" &&
9486     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9487 michael 912 then
9488 michael 945 # We have reworked collect2
9489     :
9490 michael 912 else
9491 michael 945 # We have old collect2
9492     hardcode_direct=unsupported
9493     # It fails to find uninstalled libraries when the uninstalled
9494     # path is not listed in the libpath. Setting hardcode_minus_L
9495     # to unsupported forces relinking
9496     hardcode_minus_L=yes
9497     hardcode_libdir_flag_spec='-L$libdir'
9498     hardcode_libdir_separator=
9499 michael 912 fi
9500     ;;
9501     esac
9502     shared_flag='-shared'
9503     if test "$aix_use_runtimelinking" = yes; then
9504     shared_flag="$shared_flag "'${wl}-G'
9505     fi
9506     else
9507     # not using gcc
9508     if test "$host_cpu" = ia64; then
9509 michael 945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9510     # chokes on -Wl,-G. The following line is correct:
9511 michael 912 shared_flag='-G'
9512     else
9513     if test "$aix_use_runtimelinking" = yes; then
9514     shared_flag='${wl}-G'
9515     else
9516     shared_flag='${wl}-bM:SRE'
9517     fi
9518     fi
9519     fi
9520    
9521 michael 945 export_dynamic_flag_spec='${wl}-bexpall'
9522 michael 912 # It seems that -bexpall does not export symbols beginning with
9523     # underscore (_), so it is better to generate a list of symbols to export.
9524     always_export_symbols=yes
9525     if test "$aix_use_runtimelinking" = yes; then
9526     # Warning - without using the other runtime loading flags (-brtl),
9527     # -berok will link without error, but may produce a broken library.
9528     allow_undefined_flag='-berok'
9529 michael 945 # Determine the default libpath from the value encoded in an
9530     # empty executable.
9531 michael 1106 if test "${lt_cv_aix_libpath+set}" = set; then
9532     aix_libpath=$lt_cv_aix_libpath
9533     else
9534     if ${lt_cv_aix_libpath_+:} false; then :
9535     $as_echo_n "(cached) " >&6
9536     else
9537     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 michael 912 /* end confdefs.h. */
9539    
9540     int
9541     main ()
9542     {
9543    
9544     ;
9545     return 0;
9546     }
9547     _ACEOF
9548 michael 967 if ac_fn_c_try_link "$LINENO"; then :
9549 michael 912
9550 michael 1106 lt_aix_libpath_sed='
9551     /Import File Strings/,/^$/ {
9552     /^0/ {
9553     s/^0 *\([^ ]*\) *$/\1/
9554     p
9555     }
9556     }'
9557     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9558     # Check for a 64-bit object if we didn't find anything.
9559     if test -z "$lt_cv_aix_libpath_"; then
9560     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9561     fi
9562 michael 912 fi
9563 michael 967 rm -f core conftest.err conftest.$ac_objext \
9564     conftest$ac_exeext conftest.$ac_ext
9565 michael 1106 if test -z "$lt_cv_aix_libpath_"; then
9566     lt_cv_aix_libpath_="/usr/lib:/lib"
9567     fi
9568 michael 912
9569 michael 1106 fi
9570    
9571     aix_libpath=$lt_cv_aix_libpath_
9572     fi
9573    
9574 michael 945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9575 michael 1094 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"
9576 michael 945 else
9577 michael 912 if test "$host_cpu" = ia64; then
9578     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9579     allow_undefined_flag="-z nodefs"
9580     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"
9581     else
9582 michael 945 # Determine the default libpath from the value encoded in an
9583     # empty executable.
9584 michael 1106 if test "${lt_cv_aix_libpath+set}" = set; then
9585     aix_libpath=$lt_cv_aix_libpath
9586     else
9587     if ${lt_cv_aix_libpath_+:} false; then :
9588     $as_echo_n "(cached) " >&6
9589     else
9590     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591 michael 912 /* end confdefs.h. */
9592    
9593     int
9594     main ()
9595     {
9596    
9597     ;
9598     return 0;
9599     }
9600     _ACEOF
9601 michael 967 if ac_fn_c_try_link "$LINENO"; then :
9602 michael 912
9603 michael 1106 lt_aix_libpath_sed='
9604     /Import File Strings/,/^$/ {
9605     /^0/ {
9606     s/^0 *\([^ ]*\) *$/\1/
9607     p
9608     }
9609     }'
9610     lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611     # Check for a 64-bit object if we didn't find anything.
9612     if test -z "$lt_cv_aix_libpath_"; then
9613     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9614     fi
9615 michael 912 fi
9616 michael 967 rm -f core conftest.err conftest.$ac_objext \
9617     conftest$ac_exeext conftest.$ac_ext
9618 michael 1106 if test -z "$lt_cv_aix_libpath_"; then
9619     lt_cv_aix_libpath_="/usr/lib:/lib"
9620     fi
9621 michael 912
9622 michael 1106 fi
9623    
9624     aix_libpath=$lt_cv_aix_libpath_
9625     fi
9626    
9627 michael 912 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9628     # Warning - without using the other run time loading flags,
9629     # -berok will link without error, but may produce a broken library.
9630     no_undefined_flag=' ${wl}-bernotok'
9631     allow_undefined_flag=' ${wl}-berok'
9632 michael 1094 if test "$with_gnu_ld" = yes; then
9633     # We only use this code for GNU lds that support --whole-archive.
9634     whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9635     else
9636     # Exported symbols can be pulled into shared objects from archives
9637     whole_archive_flag_spec='$convenience'
9638     fi
9639 michael 912 archive_cmds_need_lc=yes
9640     # This is similar to how AIX traditionally builds its shared libraries.
9641     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'
9642     fi
9643     fi
9644     ;;
9645    
9646     amigaos*)
9647 michael 945 case $host_cpu in
9648     powerpc)
9649     # see comment about AmigaOS4 .so support
9650     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9651     archive_expsym_cmds=''
9652     ;;
9653     m68k)
9654     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)'
9655     hardcode_libdir_flag_spec='-L$libdir'
9656     hardcode_minus_L=yes
9657     ;;
9658     esac
9659 michael 912 ;;
9660    
9661     bsdi[45]*)
9662     export_dynamic_flag_spec=-rdynamic
9663     ;;
9664    
9665 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9666 michael 912 # When not using gcc, we currently assume that we are using
9667     # Microsoft Visual C++.
9668     # hardcode_libdir_flag_spec is actually meaningless, as there is
9669     # no search path for DLLs.
9670 michael 1106 case $cc_basename in
9671     cl*)
9672     # Native MSVC
9673     hardcode_libdir_flag_spec=' '
9674     allow_undefined_flag=unsupported
9675     always_export_symbols=yes
9676     file_list_spec='@'
9677     # Tell ltmain to make .lib files, not .a files.
9678     libext=lib
9679     # Tell ltmain to make .dll files, not .so files.
9680     shrext_cmds=".dll"
9681     # FIXME: Setting linknames here is a bad hack.
9682     archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9683     archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9684     sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9685     else
9686     sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9687     fi~
9688     $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9689     linknames='
9690     # The linker will not automatically build a static lib if we build a DLL.
9691     # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9692     enable_shared_with_static_runtimes=yes
9693 michael 1257 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9694 michael 1106 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9695     # Don't use ranlib
9696     old_postinstall_cmds='chmod 644 $oldlib'
9697     postlink_cmds='lt_outputfile="@OUTPUT@"~
9698     lt_tool_outputfile="@TOOL_OUTPUT@"~
9699     case $lt_outputfile in
9700     *.exe|*.EXE) ;;
9701     *)
9702     lt_outputfile="$lt_outputfile.exe"
9703     lt_tool_outputfile="$lt_tool_outputfile.exe"
9704     ;;
9705     esac~
9706     if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9707     $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9708     $RM "$lt_outputfile.manifest";
9709     fi'
9710     ;;
9711     *)
9712     # Assume MSVC wrapper
9713     hardcode_libdir_flag_spec=' '
9714     allow_undefined_flag=unsupported
9715     # Tell ltmain to make .lib files, not .a files.
9716     libext=lib
9717     # Tell ltmain to make .dll files, not .so files.
9718     shrext_cmds=".dll"
9719     # FIXME: Setting linknames here is a bad hack.
9720     archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9721     # The linker will automatically build a .lib file if we build a DLL.
9722     old_archive_from_new_cmds='true'
9723     # FIXME: Should let the user specify the lib program.
9724     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9725     enable_shared_with_static_runtimes=yes
9726     ;;
9727     esac
9728 michael 912 ;;
9729    
9730     darwin* | rhapsody*)
9731 michael 945
9732    
9733     archive_cmds_need_lc=no
9734     hardcode_direct=no
9735     hardcode_automatic=yes
9736     hardcode_shlibpath_var=unsupported
9737 michael 1094 if test "$lt_cv_ld_force_load" = "yes"; then
9738     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\"`'
9739 michael 1257
9740 michael 1094 else
9741     whole_archive_flag_spec=''
9742     fi
9743 michael 945 link_all_deplibs=yes
9744     allow_undefined_flag="$_lt_dar_allow_undefined"
9745     case $cc_basename in
9746     ifort*) _lt_dar_can_shared=yes ;;
9747     *) _lt_dar_can_shared=$GCC ;;
9748     esac
9749     if test "$_lt_dar_can_shared" = "yes"; then
9750 michael 1094 output_verbose_link_cmd=func_echo_all
9751 michael 945 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9752     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9753     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}"
9754     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}"
9755    
9756     else
9757     ld_shlibs=no
9758     fi
9759    
9760 michael 912 ;;
9761    
9762     dgux*)
9763     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9764     hardcode_libdir_flag_spec='-L$libdir'
9765     hardcode_shlibpath_var=no
9766     ;;
9767    
9768     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9769     # support. Future versions do this automatically, but an explicit c++rt0.o
9770     # does not break anything, and helps significantly (at the cost of a little
9771     # extra space).
9772     freebsd2.2*)
9773     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9774     hardcode_libdir_flag_spec='-R$libdir'
9775     hardcode_direct=yes
9776     hardcode_shlibpath_var=no
9777     ;;
9778    
9779     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9780 michael 1257 freebsd2.*)
9781 michael 912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9782     hardcode_direct=yes
9783     hardcode_minus_L=yes
9784     hardcode_shlibpath_var=no
9785     ;;
9786    
9787     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9788     freebsd* | dragonfly*)
9789 michael 1106 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9790 michael 912 hardcode_libdir_flag_spec='-R$libdir'
9791     hardcode_direct=yes
9792     hardcode_shlibpath_var=no
9793     ;;
9794    
9795     hpux9*)
9796     if test "$GCC" = yes; then
9797 michael 1106 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'
9798 michael 912 else
9799 michael 945 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'
9800 michael 912 fi
9801     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9802     hardcode_libdir_separator=:
9803     hardcode_direct=yes
9804    
9805     # hardcode_minus_L: Not really in the search PATH,
9806     # but as the default location of the library.
9807     hardcode_minus_L=yes
9808     export_dynamic_flag_spec='${wl}-E'
9809     ;;
9810    
9811     hpux10*)
9812 michael 1094 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9813 michael 1106 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9814 michael 912 else
9815     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9816     fi
9817     if test "$with_gnu_ld" = no; then
9818     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9819     hardcode_libdir_separator=:
9820     hardcode_direct=yes
9821 michael 945 hardcode_direct_absolute=yes
9822 michael 912 export_dynamic_flag_spec='${wl}-E'
9823     # hardcode_minus_L: Not really in the search PATH,
9824     # but as the default location of the library.
9825     hardcode_minus_L=yes
9826     fi
9827     ;;
9828    
9829     hpux11*)
9830 michael 1094 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9831 michael 912 case $host_cpu in
9832     hppa*64*)
9833     archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9834     ;;
9835     ia64*)
9836 michael 1106 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9837 michael 912 ;;
9838     *)
9839 michael 1106 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9840 michael 912 ;;
9841     esac
9842     else
9843     case $host_cpu in
9844     hppa*64*)
9845     archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9846     ;;
9847     ia64*)
9848     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9849     ;;
9850     *)
9851 michael 1094
9852     # Older versions of the 11.00 compiler do not understand -b yet
9853     # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9854     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9855     $as_echo_n "checking if $CC understands -b... " >&6; }
9856 michael 1106 if ${lt_cv_prog_compiler__b+:} false; then :
9857 michael 1094 $as_echo_n "(cached) " >&6
9858     else
9859     lt_cv_prog_compiler__b=no
9860     save_LDFLAGS="$LDFLAGS"
9861     LDFLAGS="$LDFLAGS -b"
9862     echo "$lt_simple_link_test_code" > conftest.$ac_ext
9863     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9864     # The linker can only warn and ignore the option if not recognized
9865     # So say no if there are warnings
9866     if test -s conftest.err; then
9867     # Append any errors to the config.log.
9868     cat conftest.err 1>&5
9869     $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9870     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9871     if diff conftest.exp conftest.er2 >/dev/null; then
9872     lt_cv_prog_compiler__b=yes
9873     fi
9874     else
9875     lt_cv_prog_compiler__b=yes
9876     fi
9877     fi
9878     $RM -r conftest*
9879     LDFLAGS="$save_LDFLAGS"
9880    
9881     fi
9882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9883     $as_echo "$lt_cv_prog_compiler__b" >&6; }
9884    
9885     if test x"$lt_cv_prog_compiler__b" = xyes; then
9886     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9887     else
9888     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9889     fi
9890    
9891 michael 912 ;;
9892     esac
9893     fi
9894     if test "$with_gnu_ld" = no; then
9895     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9896     hardcode_libdir_separator=:
9897    
9898     case $host_cpu in
9899     hppa*64*|ia64*)
9900     hardcode_direct=no
9901     hardcode_shlibpath_var=no
9902     ;;
9903     *)
9904     hardcode_direct=yes
9905 michael 945 hardcode_direct_absolute=yes
9906 michael 912 export_dynamic_flag_spec='${wl}-E'
9907    
9908     # hardcode_minus_L: Not really in the search PATH,
9909     # but as the default location of the library.
9910     hardcode_minus_L=yes
9911     ;;
9912     esac
9913     fi
9914     ;;
9915    
9916     irix5* | irix6* | nonstopux*)
9917     if test "$GCC" = yes; then
9918 michael 1106 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'
9919 michael 945 # Try to use the -exported_symbol ld option, if it does not
9920     # work, assume that -exports_file does not work either and
9921     # implicitly export all symbols.
9922 michael 1106 # This should be the same for all languages, so no per-tag cache variable.
9923     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9924     $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9925     if ${lt_cv_irix_exported_symbol+:} false; then :
9926     $as_echo_n "(cached) " >&6
9927     else
9928     save_LDFLAGS="$LDFLAGS"
9929     LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9930     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931 michael 967 /* end confdefs.h. */
9932 michael 1106 int foo (void) { return 0; }
9933 michael 945 _ACEOF
9934 michael 967 if ac_fn_c_try_link "$LINENO"; then :
9935 michael 1106 lt_cv_irix_exported_symbol=yes
9936     else
9937     lt_cv_irix_exported_symbol=no
9938 michael 945 fi
9939 michael 967 rm -f core conftest.err conftest.$ac_objext \
9940     conftest$ac_exeext conftest.$ac_ext
9941 michael 1106 LDFLAGS="$save_LDFLAGS"
9942     fi
9943     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9944     $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9945     if test "$lt_cv_irix_exported_symbol" = yes; then
9946     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'
9947     fi
9948 michael 912 else
9949 michael 1094 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'
9950     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'
9951 michael 912 fi
9952 michael 945 archive_cmds_need_lc='no'
9953 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9954     hardcode_libdir_separator=:
9955 michael 945 inherit_rpath=yes
9956 michael 912 link_all_deplibs=yes
9957     ;;
9958    
9959     netbsd*)
9960 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9961 michael 912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9962     else
9963     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9964     fi
9965     hardcode_libdir_flag_spec='-R$libdir'
9966     hardcode_direct=yes
9967     hardcode_shlibpath_var=no
9968     ;;
9969    
9970     newsos6)
9971     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972     hardcode_direct=yes
9973     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9974     hardcode_libdir_separator=:
9975     hardcode_shlibpath_var=no
9976     ;;
9977    
9978 michael 945 *nto* | *qnx*)
9979     ;;
9980    
9981 michael 912 openbsd*)
9982     if test -f /usr/libexec/ld.so; then
9983     hardcode_direct=yes
9984     hardcode_shlibpath_var=no
9985 michael 945 hardcode_direct_absolute=yes
9986     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9987 michael 912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9988     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9989     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9990     export_dynamic_flag_spec='${wl}-E'
9991     else
9992     case $host_os in
9993     openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9994     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9995     hardcode_libdir_flag_spec='-R$libdir'
9996     ;;
9997     *)
9998     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9999     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10000     ;;
10001     esac
10002 michael 945 fi
10003 michael 912 else
10004     ld_shlibs=no
10005     fi
10006     ;;
10007    
10008     os2*)
10009     hardcode_libdir_flag_spec='-L$libdir'
10010     hardcode_minus_L=yes
10011     allow_undefined_flag=unsupported
10012 michael 1094 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'
10013 michael 945 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10014 michael 912 ;;
10015    
10016     osf3*)
10017     if test "$GCC" = yes; then
10018     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10019 michael 1094 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'
10020 michael 912 else
10021     allow_undefined_flag=' -expect_unresolved \*'
10022 michael 1094 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'
10023 michael 912 fi
10024 michael 945 archive_cmds_need_lc='no'
10025 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10026     hardcode_libdir_separator=:
10027     ;;
10028    
10029     osf4* | osf5*) # as osf3* with the addition of -msym flag
10030     if test "$GCC" = yes; then
10031     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10032 michael 1106 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'
10033 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10034     else
10035     allow_undefined_flag=' -expect_unresolved \*'
10036 michael 1094 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'
10037 michael 945 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~
10038 michael 1094 $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'
10039 michael 912
10040     # Both c and cxx compiler support -rpath directly
10041     hardcode_libdir_flag_spec='-rpath $libdir'
10042     fi
10043 michael 945 archive_cmds_need_lc='no'
10044 michael 912 hardcode_libdir_separator=:
10045     ;;
10046    
10047     solaris*)
10048 michael 945 no_undefined_flag=' -z defs'
10049 michael 912 if test "$GCC" = yes; then
10050     wlarc='${wl}'
10051 michael 1106 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10052 michael 945 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10053 michael 1106 $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'
10054 michael 912 else
10055 michael 945 case `$CC -V 2>&1` in
10056     *"Compilers 5.0"*)
10057     wlarc=''
10058     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10060     $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10061     ;;
10062     *)
10063     wlarc='${wl}'
10064     archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10065     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10066     $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10067     ;;
10068     esac
10069 michael 912 fi
10070     hardcode_libdir_flag_spec='-R$libdir'
10071     hardcode_shlibpath_var=no
10072     case $host_os in
10073     solaris2.[0-5] | solaris2.[0-5].*) ;;
10074     *)
10075     # The compiler driver will combine and reorder linker options,
10076     # but understands `-z linker_flag'. GCC discards it without `$wl',
10077     # but is careful enough not to reorder.
10078 michael 945 # Supported since Solaris 2.6 (maybe 2.5.1?)
10079 michael 912 if test "$GCC" = yes; then
10080     whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10081     else
10082     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10083     fi
10084     ;;
10085     esac
10086     link_all_deplibs=yes
10087     ;;
10088    
10089     sunos4*)
10090     if test "x$host_vendor" = xsequent; then
10091     # Use $CC to link under sequent, because it throws in some extra .o
10092     # files that make .init and .fini sections work.
10093     archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10094     else
10095     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10096     fi
10097     hardcode_libdir_flag_spec='-L$libdir'
10098     hardcode_direct=yes
10099     hardcode_minus_L=yes
10100     hardcode_shlibpath_var=no
10101     ;;
10102    
10103     sysv4)
10104     case $host_vendor in
10105     sni)
10106     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107     hardcode_direct=yes # is this really true???
10108     ;;
10109     siemens)
10110     ## LD is ld it makes a PLAMLIB
10111     ## CC just makes a GrossModule.
10112     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10113     reload_cmds='$CC -r -o $output$reload_objs'
10114     hardcode_direct=no
10115     ;;
10116     motorola)
10117     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10118     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10119     ;;
10120     esac
10121     runpath_var='LD_RUN_PATH'
10122     hardcode_shlibpath_var=no
10123     ;;
10124    
10125     sysv4.3*)
10126     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10127     hardcode_shlibpath_var=no
10128     export_dynamic_flag_spec='-Bexport'
10129     ;;
10130    
10131     sysv4*MP*)
10132     if test -d /usr/nec; then
10133     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10134     hardcode_shlibpath_var=no
10135     runpath_var=LD_RUN_PATH
10136     hardcode_runpath_var=yes
10137     ld_shlibs=yes
10138     fi
10139     ;;
10140    
10141     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10142     no_undefined_flag='${wl}-z,text'
10143     archive_cmds_need_lc=no
10144     hardcode_shlibpath_var=no
10145     runpath_var='LD_RUN_PATH'
10146    
10147     if test "$GCC" = yes; then
10148     archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10149     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10150     else
10151     archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10152     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10153     fi
10154     ;;
10155    
10156     sysv5* | sco3.2v5* | sco5v6*)
10157     # Note: We can NOT use -z defs as we might desire, because we do not
10158     # link with -lc, and that would cause any symbols used from libc to
10159     # always be unresolved, which means just about no library would
10160     # ever link correctly. If we're not using GNU ld we use -z text
10161     # though, which does catch some bad symbols but isn't as heavy-handed
10162     # as -z defs.
10163     no_undefined_flag='${wl}-z,text'
10164     allow_undefined_flag='${wl}-z,nodefs'
10165     archive_cmds_need_lc=no
10166     hardcode_shlibpath_var=no
10167 michael 945 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10168 michael 912 hardcode_libdir_separator=':'
10169     link_all_deplibs=yes
10170     export_dynamic_flag_spec='${wl}-Bexport'
10171     runpath_var='LD_RUN_PATH'
10172    
10173     if test "$GCC" = yes; then
10174 michael 945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10175     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10176 michael 912 else
10177 michael 945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10178     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10179 michael 912 fi
10180     ;;
10181    
10182     uts4*)
10183     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10184     hardcode_libdir_flag_spec='-L$libdir'
10185     hardcode_shlibpath_var=no
10186     ;;
10187    
10188     *)
10189     ld_shlibs=no
10190     ;;
10191     esac
10192 michael 945
10193     if test x$host_vendor = xsni; then
10194     case $host in
10195     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10196     export_dynamic_flag_spec='${wl}-Blargedynsym'
10197     ;;
10198     esac
10199     fi
10200 michael 912 fi
10201    
10202 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10203 db 941 $as_echo "$ld_shlibs" >&6; }
10204 michael 912 test "$ld_shlibs" = no && can_build_shared=no
10205    
10206 michael 945 with_gnu_ld=$with_gnu_ld
10207    
10208    
10209    
10210    
10211    
10212    
10213    
10214    
10215    
10216    
10217    
10218    
10219    
10220    
10221    
10222 michael 912 #
10223     # Do we need to explicitly link libc?
10224     #
10225     case "x$archive_cmds_need_lc" in
10226     x|xyes)
10227     # Assume -lc should be added
10228     archive_cmds_need_lc=yes
10229    
10230     if test "$enable_shared" = yes && test "$GCC" = yes; then
10231     case $archive_cmds in
10232     *'~'*)
10233     # FIXME: we may have to deal with multi-command sequences.
10234     ;;
10235     '$CC '*)
10236     # Test whether the compiler implicitly links with -lc since on some
10237     # systems, -lgcc has to come before -lc. If gcc already passes -lc
10238     # to ld, don't add -lc before -lgcc.
10239 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10240 db 941 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10241 michael 1106 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10242 michael 1094 $as_echo_n "(cached) " >&6
10243     else
10244     $RM conftest*
10245     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10246 michael 912
10247 michael 1094 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10248 michael 912 (eval $ac_compile) 2>&5
10249     ac_status=$?
10250 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10251     test $ac_status = 0; } 2>conftest.err; then
10252 michael 1094 soname=conftest
10253     lib=conftest
10254     libobjs=conftest.$ac_objext
10255     deplibs=
10256     wl=$lt_prog_compiler_wl
10257     pic_flag=$lt_prog_compiler_pic
10258     compiler_flags=-v
10259     linker_flags=-v
10260     verstring=
10261     output_objdir=.
10262     libname=conftest
10263     lt_save_allow_undefined_flag=$allow_undefined_flag
10264     allow_undefined_flag=
10265     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10266 michael 945 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10267 michael 912 ac_status=$?
10268 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10269     test $ac_status = 0; }
10270 michael 1094 then
10271     lt_cv_archive_cmds_need_lc=no
10272     else
10273     lt_cv_archive_cmds_need_lc=yes
10274     fi
10275     allow_undefined_flag=$lt_save_allow_undefined_flag
10276     else
10277     cat conftest.err 1>&5
10278     fi
10279     $RM conftest*
10280    
10281     fi
10282     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10283     $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10284     archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10285 michael 912 ;;
10286     esac
10287     fi
10288     ;;
10289     esac
10290    
10291 michael 945
10292    
10293    
10294    
10295    
10296    
10297    
10298    
10299    
10300    
10301    
10302    
10303    
10304    
10305    
10306    
10307    
10308    
10309    
10310    
10311    
10312    
10313    
10314    
10315    
10316    
10317    
10318    
10319    
10320    
10321    
10322    
10323    
10324    
10325    
10326    
10327    
10328    
10329    
10330    
10331    
10332    
10333    
10334    
10335    
10336    
10337    
10338    
10339    
10340    
10341    
10342    
10343    
10344    
10345    
10346    
10347    
10348    
10349    
10350    
10351    
10352    
10353    
10354    
10355    
10356    
10357    
10358    
10359    
10360    
10361    
10362    
10363    
10364    
10365    
10366    
10367    
10368    
10369    
10370    
10371    
10372    
10373    
10374    
10375    
10376    
10377    
10378    
10379    
10380    
10381    
10382    
10383    
10384    
10385    
10386    
10387    
10388    
10389    
10390    
10391    
10392    
10393    
10394    
10395    
10396    
10397    
10398    
10399    
10400    
10401    
10402    
10403    
10404    
10405    
10406    
10407    
10408    
10409    
10410    
10411    
10412    
10413    
10414    
10415    
10416    
10417    
10418    
10419    
10420    
10421    
10422    
10423    
10424    
10425    
10426    
10427    
10428    
10429    
10430    
10431    
10432    
10433    
10434    
10435    
10436    
10437    
10438    
10439    
10440    
10441    
10442 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10443 db 941 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10444 michael 912
10445     if test "$GCC" = yes; then
10446     case $host_os in
10447     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10448     *) lt_awk_arg="/^libraries:/" ;;
10449     esac
10450 michael 1094 case $host_os in
10451     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10452     *) lt_sed_strip_eq="s,=/,/,g" ;;
10453     esac
10454     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10455     case $lt_search_path_spec in
10456     *\;*)
10457 michael 912 # if the path contains ";" then we assume it to be the separator
10458     # otherwise default to the standard path separator (i.e. ":") - it is
10459     # assumed that no part of a normal pathname contains ";" but that should
10460     # okay in the real world where ";" in dirpaths is itself problematic.
10461 michael 1094 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10462     ;;
10463     *)
10464     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10465     ;;
10466     esac
10467 michael 912 # Ok, now we have the path, separated by spaces, we can step through it
10468     # and add multilib dir if necessary.
10469     lt_tmp_lt_search_path_spec=
10470     lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10471     for lt_sys_path in $lt_search_path_spec; do
10472     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10473     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10474     else
10475     test -d "$lt_sys_path" && \
10476     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10477     fi
10478     done
10479 michael 1094 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10480 michael 912 BEGIN {RS=" "; FS="/|\n";} {
10481     lt_foo="";
10482     lt_count=0;
10483     for (lt_i = NF; lt_i > 0; lt_i--) {
10484     if ($lt_i != "" && $lt_i != ".") {
10485     if ($lt_i == "..") {
10486     lt_count++;
10487     } else {
10488     if (lt_count == 0) {
10489     lt_foo="/" $lt_i lt_foo;
10490     } else {
10491     lt_count--;
10492     }
10493     }
10494     }
10495     }
10496     if (lt_foo != "") { lt_freq[lt_foo]++; }
10497     if (lt_freq[lt_foo] == 1) { print lt_foo; }
10498     }'`
10499 michael 1094 # AWK program above erroneously prepends '/' to C:/dos/paths
10500     # for these hosts.
10501     case $host_os in
10502     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10503     $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10504     esac
10505     sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10506 michael 912 else
10507     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10508     fi
10509 michael 945 library_names_spec=
10510     libname_spec='lib$name'
10511     soname_spec=
10512     shrext_cmds=".so"
10513     postinstall_cmds=
10514     postuninstall_cmds=
10515     finish_cmds=
10516     finish_eval=
10517     shlibpath_var=
10518     shlibpath_overrides_runpath=unknown
10519     version_type=none
10520     dynamic_linker="$host_os ld.so"
10521     sys_lib_dlsearch_path_spec="/lib /usr/lib"
10522 michael 912 need_lib_prefix=unknown
10523     hardcode_into_libs=no
10524    
10525     # when you set need_version to no, make sure it does not cause -set_version
10526     # flags to be left without arguments
10527     need_version=unknown
10528    
10529     case $host_os in
10530     aix3*)
10531 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10532 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10533     shlibpath_var=LIBPATH
10534    
10535     # AIX 3 has no versioning support, so we append a major version to the name.
10536     soname_spec='${libname}${release}${shared_ext}$major'
10537     ;;
10538    
10539 db 941 aix[4-9]*)
10540 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10541 michael 912 need_lib_prefix=no
10542     need_version=no
10543     hardcode_into_libs=yes
10544     if test "$host_cpu" = ia64; then
10545     # AIX 5 supports IA64
10546     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10547     shlibpath_var=LD_LIBRARY_PATH
10548     else
10549     # With GCC up to 2.95.x, collect2 would create an import file
10550     # for dependence libraries. The import file would start with
10551     # the line `#! .'. This would cause the generated library to
10552     # depend on `.', always an invalid library. This was fixed in
10553     # development snapshots of GCC prior to 3.0.
10554     case $host_os in
10555     aix4 | aix4.[01] | aix4.[01].*)
10556     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10557     echo ' yes '
10558 michael 945 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10559 michael 912 :
10560     else
10561     can_build_shared=no
10562     fi
10563     ;;
10564     esac
10565     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10566     # soname into executable. Probably we can add versioning support to
10567     # collect2, so additional links can be useful in future.
10568     if test "$aix_use_runtimelinking" = yes; then
10569     # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10570     # instead of lib<name>.a to let people know that these are not
10571     # typical AIX shared libraries.
10572     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10573     else
10574     # We preserve .a as extension for shared libraries through AIX4.2
10575     # and later when we are not doing run time linking.
10576     library_names_spec='${libname}${release}.a $libname.a'
10577     soname_spec='${libname}${release}${shared_ext}$major'
10578     fi
10579     shlibpath_var=LIBPATH
10580     fi
10581     ;;
10582    
10583     amigaos*)
10584 michael 945 case $host_cpu in
10585     powerpc)
10586     # Since July 2007 AmigaOS4 officially supports .so libraries.
10587     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10588     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10589     ;;
10590     m68k)
10591     library_names_spec='$libname.ixlibrary $libname.a'
10592     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10593 michael 1094 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'
10594 michael 945 ;;
10595     esac
10596 michael 912 ;;
10597    
10598     beos*)
10599     library_names_spec='${libname}${shared_ext}'
10600     dynamic_linker="$host_os ld.so"
10601     shlibpath_var=LIBRARY_PATH
10602     ;;
10603    
10604     bsdi[45]*)
10605 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10606 michael 912 need_version=no
10607     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608     soname_spec='${libname}${release}${shared_ext}$major'
10609     finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10610     shlibpath_var=LD_LIBRARY_PATH
10611     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10612     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10613     # the default ld.so.conf also contains /usr/contrib/lib and
10614     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10615     # libtool to hard-code these into programs
10616     ;;
10617    
10618 michael 945 cygwin* | mingw* | pw32* | cegcc*)
10619 michael 912 version_type=windows
10620     shrext_cmds=".dll"
10621     need_version=no
10622     need_lib_prefix=no
10623    
10624 michael 1106 case $GCC,$cc_basename in
10625     yes,*)
10626     # gcc
10627 michael 912 library_names_spec='$libname.dll.a'
10628     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10629     postinstall_cmds='base_file=`basename \${file}`~
10630 michael 945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10631 michael 912 dldir=$destdir/`dirname \$dlpath`~
10632     test -d \$dldir || mkdir -p \$dldir~
10633     $install_prog $dir/$dlname \$dldir/$dlname~
10634 michael 945 chmod a+x \$dldir/$dlname~
10635     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10636     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10637     fi'
10638 michael 912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10639     dlpath=$dir/\$dldll~
10640 michael 945 $RM \$dlpath'
10641 michael 912 shlibpath_overrides_runpath=yes
10642    
10643     case $host_os in
10644     cygwin*)
10645     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10646     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10647 michael 1094
10648     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10649 michael 912 ;;
10650 michael 945 mingw* | cegcc*)
10651 michael 912 # MinGW DLLs use traditional 'lib' prefix
10652     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10653     ;;
10654     pw32*)
10655     # pw32 DLLs use 'pw' prefix rather than 'lib'
10656     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10657     ;;
10658     esac
10659 michael 1106 dynamic_linker='Win32 ld.exe'
10660 michael 912 ;;
10661    
10662 michael 1106 *,cl*)
10663     # Native MSVC
10664     libname_spec='$name'
10665     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10666     library_names_spec='${libname}.dll.lib'
10667    
10668     case $build_os in
10669     mingw*)
10670     sys_lib_search_path_spec=
10671     lt_save_ifs=$IFS
10672     IFS=';'
10673     for lt_path in $LIB
10674     do
10675     IFS=$lt_save_ifs
10676     # Let DOS variable expansion print the short 8.3 style file name.
10677     lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10678     sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10679     done
10680     IFS=$lt_save_ifs
10681     # Convert to MSYS style.
10682     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10683     ;;
10684     cygwin*)
10685     # Convert to unix form, then to dos form, then back to unix form
10686     # but this time dos style (no spaces!) so that the unix form looks
10687     # like /cygdrive/c/PROGRA~1:/cygdr...
10688     sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10689     sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10690     sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10691     ;;
10692     *)
10693     sys_lib_search_path_spec="$LIB"
10694     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10695     # It is most probably a Windows format PATH.
10696     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10697     else
10698     sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10699     fi
10700     # FIXME: find the short name or the path components, as spaces are
10701     # common. (e.g. "Program Files" -> "PROGRA~1")
10702     ;;
10703     esac
10704    
10705     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10706     postinstall_cmds='base_file=`basename \${file}`~
10707     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10708     dldir=$destdir/`dirname \$dlpath`~
10709     test -d \$dldir || mkdir -p \$dldir~
10710     $install_prog $dir/$dlname \$dldir/$dlname'
10711     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10712     dlpath=$dir/\$dldll~
10713     $RM \$dlpath'
10714     shlibpath_overrides_runpath=yes
10715     dynamic_linker='Win32 link.exe'
10716     ;;
10717    
10718 michael 912 *)
10719 michael 1106 # Assume MSVC wrapper
10720 michael 912 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10721 michael 1106 dynamic_linker='Win32 ld.exe'
10722 michael 912 ;;
10723     esac
10724     # FIXME: first we should search . and the directory the executable is in
10725     shlibpath_var=PATH
10726     ;;
10727    
10728     darwin* | rhapsody*)
10729     dynamic_linker="$host_os dyld"
10730     version_type=darwin
10731     need_lib_prefix=no
10732     need_version=no
10733 michael 945 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10734 michael 912 soname_spec='${libname}${release}${major}$shared_ext'
10735     shlibpath_overrides_runpath=yes
10736     shlibpath_var=DYLD_LIBRARY_PATH
10737     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10738    
10739     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10740     sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10741     ;;
10742    
10743     dgux*)
10744 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10745 michael 912 need_lib_prefix=no
10746     need_version=no
10747     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10748     soname_spec='${libname}${release}${shared_ext}$major'
10749     shlibpath_var=LD_LIBRARY_PATH
10750     ;;
10751    
10752     freebsd* | dragonfly*)
10753     # DragonFly does not have aout. When/if they implement a new
10754     # versioning mechanism, adjust this.
10755     if test -x /usr/bin/objformat; then
10756     objformat=`/usr/bin/objformat`
10757     else
10758     case $host_os in
10759 michael 1257 freebsd[23].*) objformat=aout ;;
10760 michael 912 *) objformat=elf ;;
10761     esac
10762     fi
10763     version_type=freebsd-$objformat
10764     case $version_type in
10765     freebsd-elf*)
10766     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10767     need_version=no
10768     need_lib_prefix=no
10769     ;;
10770     freebsd-*)
10771     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10772     need_version=yes
10773     ;;
10774     esac
10775     shlibpath_var=LD_LIBRARY_PATH
10776     case $host_os in
10777 michael 1257 freebsd2.*)
10778 michael 912 shlibpath_overrides_runpath=yes
10779     ;;
10780     freebsd3.[01]* | freebsdelf3.[01]*)
10781     shlibpath_overrides_runpath=yes
10782     hardcode_into_libs=yes
10783     ;;
10784     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10785     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10786     shlibpath_overrides_runpath=no
10787     hardcode_into_libs=yes
10788     ;;
10789     *) # from 4.6 on, and DragonFly
10790     shlibpath_overrides_runpath=yes
10791     hardcode_into_libs=yes
10792     ;;
10793     esac
10794     ;;
10795    
10796     gnu*)
10797 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10798 michael 912 need_lib_prefix=no
10799     need_version=no
10800     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10801     soname_spec='${libname}${release}${shared_ext}$major'
10802     shlibpath_var=LD_LIBRARY_PATH
10803 michael 1257 shlibpath_overrides_runpath=no
10804 michael 912 hardcode_into_libs=yes
10805     ;;
10806    
10807 michael 1094 haiku*)
10808 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10809 michael 1094 need_lib_prefix=no
10810     need_version=no
10811     dynamic_linker="$host_os runtime_loader"
10812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10813     soname_spec='${libname}${release}${shared_ext}$major'
10814     shlibpath_var=LIBRARY_PATH
10815     shlibpath_overrides_runpath=yes
10816     sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10817     hardcode_into_libs=yes
10818     ;;
10819    
10820 michael 912 hpux9* | hpux10* | hpux11*)
10821     # Give a soname corresponding to the major version so that dld.sl refuses to
10822     # link against other versions.
10823     version_type=sunos
10824     need_lib_prefix=no
10825     need_version=no
10826     case $host_cpu in
10827     ia64*)
10828     shrext_cmds='.so'
10829     hardcode_into_libs=yes
10830     dynamic_linker="$host_os dld.so"
10831     shlibpath_var=LD_LIBRARY_PATH
10832     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10833     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10834     soname_spec='${libname}${release}${shared_ext}$major'
10835     if test "X$HPUX_IA64_MODE" = X32; then
10836     sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10837     else
10838     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10839     fi
10840     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10841     ;;
10842 michael 945 hppa*64*)
10843 michael 912 shrext_cmds='.sl'
10844 michael 945 hardcode_into_libs=yes
10845 michael 912 dynamic_linker="$host_os dld.sl"
10846 michael 945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10847     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10848     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10849     soname_spec='${libname}${release}${shared_ext}$major'
10850     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10851     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10852     ;;
10853     *)
10854     shrext_cmds='.sl'
10855     dynamic_linker="$host_os dld.sl"
10856 michael 912 shlibpath_var=SHLIB_PATH
10857     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10858     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859     soname_spec='${libname}${release}${shared_ext}$major'
10860     ;;
10861     esac
10862 michael 1094 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10863 michael 912 postinstall_cmds='chmod 555 $lib'
10864 michael 1094 # or fails outright, so override atomically:
10865     install_override_mode=555
10866 michael 912 ;;
10867    
10868     interix[3-9]*)
10869 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10870 michael 912 need_lib_prefix=no
10871     need_version=no
10872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10873     soname_spec='${libname}${release}${shared_ext}$major'
10874     dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10875     shlibpath_var=LD_LIBRARY_PATH
10876     shlibpath_overrides_runpath=no
10877     hardcode_into_libs=yes
10878     ;;
10879    
10880     irix5* | irix6* | nonstopux*)
10881     case $host_os in
10882     nonstopux*) version_type=nonstopux ;;
10883     *)
10884     if test "$lt_cv_prog_gnu_ld" = yes; then
10885 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10886 michael 912 else
10887     version_type=irix
10888     fi ;;
10889     esac
10890     need_lib_prefix=no
10891     need_version=no
10892     soname_spec='${libname}${release}${shared_ext}$major'
10893     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10894     case $host_os in
10895     irix5* | nonstopux*)
10896     libsuff= shlibsuff=
10897     ;;
10898     *)
10899     case $LD in # libtool.m4 will add one of these switches to LD
10900     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10901     libsuff= shlibsuff= libmagic=32-bit;;
10902     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10903     libsuff=32 shlibsuff=N32 libmagic=N32;;
10904     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10905     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10906     *) libsuff= shlibsuff= libmagic=never-match;;
10907     esac
10908     ;;
10909     esac
10910     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10911     shlibpath_overrides_runpath=no
10912     sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10913     sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10914     hardcode_into_libs=yes
10915     ;;
10916    
10917     # No shared lib support for Linux oldld, aout, or coff.
10918     linux*oldld* | linux*aout* | linux*coff*)
10919     dynamic_linker=no
10920     ;;
10921    
10922 michael 1257 # This must be glibc/ELF.
10923 michael 1094 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10924 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
10925 michael 912 need_lib_prefix=no
10926     need_version=no
10927     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10928     soname_spec='${libname}${release}${shared_ext}$major'
10929     finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10930     shlibpath_var=LD_LIBRARY_PATH
10931     shlibpath_overrides_runpath=no
10932 michael 1094
10933 michael 945 # Some binutils ld are patched to set DT_RUNPATH
10934 michael 1106 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10935 michael 1094 $as_echo_n "(cached) " >&6
10936     else
10937     lt_cv_shlibpath_overrides_runpath=no
10938     save_LDFLAGS=$LDFLAGS
10939     save_libdir=$libdir
10940     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10941     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10942     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10943 michael 945 /* end confdefs.h. */
10944    
10945     int
10946     main ()
10947     {
10948    
10949     ;
10950     return 0;
10951     }
10952     _ACEOF
10953 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10954     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10955 michael 1094 lt_cv_shlibpath_overrides_runpath=yes
10956 michael 945 fi
10957     fi
10958 michael 967 rm -f core conftest.err conftest.$ac_objext \
10959     conftest$ac_exeext conftest.$ac_ext
10960 michael 1094 LDFLAGS=$save_LDFLAGS
10961     libdir=$save_libdir
10962 michael 945
10963 michael 1094 fi
10964    
10965     shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10966    
10967 michael 912 # This implies no fast_install, which is unacceptable.
10968     # Some rework will be needed to allow for fast_install
10969     # before this can be enabled.
10970     hardcode_into_libs=yes
10971    
10972     # Append ld.so.conf contents to the search path
10973     if test -f /etc/ld.so.conf; then
10974 michael 1094 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' ' '`
10975 michael 1084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10976 michael 912 fi
10977    
10978     # We used to test for /lib/ld.so.1 and disable shared libraries on
10979     # powerpc, because MkLinux only supported shared libraries with the
10980     # GNU dynamic linker. Since this was broken with cross compilers,
10981     # most powerpc-linux boxes support dynamic linking these days and
10982     # people can always --disable-shared, the test was removed, and we
10983     # assume the GNU/Linux dynamic linker is in use.
10984     dynamic_linker='GNU/Linux ld.so'
10985     ;;
10986    
10987     netbsd*)
10988     version_type=sunos
10989     need_lib_prefix=no
10990     need_version=no
10991 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10992 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10993     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10994     dynamic_linker='NetBSD (a.out) ld.so'
10995     else
10996     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10997     soname_spec='${libname}${release}${shared_ext}$major'
10998     dynamic_linker='NetBSD ld.elf_so'
10999     fi
11000     shlibpath_var=LD_LIBRARY_PATH
11001     shlibpath_overrides_runpath=yes
11002     hardcode_into_libs=yes
11003     ;;
11004    
11005     newsos6)
11006 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11007 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008     shlibpath_var=LD_LIBRARY_PATH
11009     shlibpath_overrides_runpath=yes
11010     ;;
11011    
11012 michael 945 *nto* | *qnx*)
11013     version_type=qnx
11014 michael 912 need_lib_prefix=no
11015     need_version=no
11016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11017     soname_spec='${libname}${release}${shared_ext}$major'
11018     shlibpath_var=LD_LIBRARY_PATH
11019 michael 945 shlibpath_overrides_runpath=no
11020     hardcode_into_libs=yes
11021     dynamic_linker='ldqnx.so'
11022 michael 912 ;;
11023    
11024     openbsd*)
11025     version_type=sunos
11026     sys_lib_dlsearch_path_spec="/usr/lib"
11027     need_lib_prefix=no
11028     # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11029     case $host_os in
11030 michael 945 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11031     *) need_version=no ;;
11032 michael 912 esac
11033     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11034     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11035     shlibpath_var=LD_LIBRARY_PATH
11036 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11037 michael 912 case $host_os in
11038     openbsd2.[89] | openbsd2.[89].*)
11039     shlibpath_overrides_runpath=no
11040     ;;
11041     *)
11042     shlibpath_overrides_runpath=yes
11043     ;;
11044     esac
11045     else
11046     shlibpath_overrides_runpath=yes
11047     fi
11048     ;;
11049    
11050     os2*)
11051     libname_spec='$name'
11052     shrext_cmds=".dll"
11053     need_lib_prefix=no
11054     library_names_spec='$libname${shared_ext} $libname.a'
11055     dynamic_linker='OS/2 ld.exe'
11056     shlibpath_var=LIBPATH
11057     ;;
11058    
11059     osf3* | osf4* | osf5*)
11060     version_type=osf
11061     need_lib_prefix=no
11062     need_version=no
11063     soname_spec='${libname}${release}${shared_ext}$major'
11064     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11065     shlibpath_var=LD_LIBRARY_PATH
11066     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11067     sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11068     ;;
11069    
11070     rdos*)
11071     dynamic_linker=no
11072     ;;
11073    
11074     solaris*)
11075 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11076 michael 912 need_lib_prefix=no
11077     need_version=no
11078     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11079     soname_spec='${libname}${release}${shared_ext}$major'
11080     shlibpath_var=LD_LIBRARY_PATH
11081     shlibpath_overrides_runpath=yes
11082     hardcode_into_libs=yes
11083     # ldd complains unless libraries are executable
11084     postinstall_cmds='chmod +x $lib'
11085     ;;
11086    
11087     sunos4*)
11088     version_type=sunos
11089     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11090     finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11091     shlibpath_var=LD_LIBRARY_PATH
11092     shlibpath_overrides_runpath=yes
11093     if test "$with_gnu_ld" = yes; then
11094     need_lib_prefix=no
11095     fi
11096     need_version=yes
11097     ;;
11098    
11099     sysv4 | sysv4.3*)
11100 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11101 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11102     soname_spec='${libname}${release}${shared_ext}$major'
11103     shlibpath_var=LD_LIBRARY_PATH
11104     case $host_vendor in
11105     sni)
11106     shlibpath_overrides_runpath=no
11107     need_lib_prefix=no
11108     runpath_var=LD_RUN_PATH
11109     ;;
11110     siemens)
11111     need_lib_prefix=no
11112     ;;
11113     motorola)
11114     need_lib_prefix=no
11115     need_version=no
11116     shlibpath_overrides_runpath=no
11117     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11118     ;;
11119     esac
11120     ;;
11121    
11122     sysv4*MP*)
11123     if test -d /usr/nec ;then
11124 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11125 michael 912 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11126     soname_spec='$libname${shared_ext}.$major'
11127     shlibpath_var=LD_LIBRARY_PATH
11128     fi
11129     ;;
11130    
11131     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11132     version_type=freebsd-elf
11133     need_lib_prefix=no
11134     need_version=no
11135     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11136     soname_spec='${libname}${release}${shared_ext}$major'
11137     shlibpath_var=LD_LIBRARY_PATH
11138 michael 945 shlibpath_overrides_runpath=yes
11139 michael 912 hardcode_into_libs=yes
11140     if test "$with_gnu_ld" = yes; then
11141     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11142     else
11143     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11144     case $host_os in
11145     sco3.2v5*)
11146     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11147     ;;
11148     esac
11149     fi
11150     sys_lib_dlsearch_path_spec='/usr/lib'
11151     ;;
11152    
11153 michael 945 tpf*)
11154     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11155 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11156 michael 945 need_lib_prefix=no
11157     need_version=no
11158     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11159     shlibpath_var=LD_LIBRARY_PATH
11160     shlibpath_overrides_runpath=no
11161     hardcode_into_libs=yes
11162     ;;
11163    
11164 michael 912 uts4*)
11165 michael 1257 version_type=linux # correct to gnu/linux during the next big refactor
11166 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11167     soname_spec='${libname}${release}${shared_ext}$major'
11168     shlibpath_var=LD_LIBRARY_PATH
11169     ;;
11170    
11171     *)
11172     dynamic_linker=no
11173     ;;
11174     esac
11175 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11176 db 941 $as_echo "$dynamic_linker" >&6; }
11177 michael 912 test "$dynamic_linker" = no && can_build_shared=no
11178    
11179 michael 945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11180     if test "$GCC" = yes; then
11181     variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11182     fi
11183    
11184 db 941 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11185 michael 945 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11186 db 941 fi
11187     if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11188 michael 945 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11189 db 941 fi
11190    
11191    
11192 michael 912
11193 michael 945
11194    
11195    
11196    
11197    
11198    
11199    
11200    
11201    
11202    
11203    
11204    
11205    
11206    
11207    
11208    
11209    
11210    
11211    
11212    
11213    
11214    
11215    
11216    
11217    
11218    
11219    
11220    
11221    
11222    
11223    
11224    
11225    
11226    
11227    
11228    
11229    
11230    
11231    
11232    
11233    
11234    
11235    
11236    
11237    
11238    
11239    
11240    
11241    
11242    
11243    
11244    
11245    
11246    
11247    
11248    
11249    
11250    
11251    
11252    
11253    
11254    
11255    
11256    
11257    
11258    
11259    
11260    
11261    
11262    
11263    
11264    
11265    
11266    
11267    
11268    
11269    
11270    
11271    
11272    
11273    
11274    
11275    
11276    
11277 michael 1094
11278    
11279    
11280    
11281    
11282 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11283 db 941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11284 michael 912 hardcode_action=
11285 michael 945 if test -n "$hardcode_libdir_flag_spec" ||
11286     test -n "$runpath_var" ||
11287 michael 912 test "X$hardcode_automatic" = "Xyes" ; then
11288    
11289 michael 945 # We can hardcode non-existent directories.
11290 michael 912 if test "$hardcode_direct" != no &&
11291     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11292     # have to relink, otherwise we might link with an installed library
11293     # when we should be linking with a yet-to-be-installed one
11294 michael 945 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11295 michael 912 test "$hardcode_minus_L" != no; then
11296     # Linking always hardcodes the temporary library directory.
11297     hardcode_action=relink
11298     else
11299     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11300     hardcode_action=immediate
11301     fi
11302     else
11303     # We cannot hardcode anything, or else we can only hardcode existing
11304     # directories.
11305     hardcode_action=unsupported
11306     fi
11307 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11308 db 941 $as_echo "$hardcode_action" >&6; }
11309 michael 912
11310 michael 945 if test "$hardcode_action" = relink ||
11311     test "$inherit_rpath" = yes; then
11312 michael 912 # Fast installation is not supported
11313     enable_fast_install=no
11314     elif test "$shlibpath_overrides_runpath" = yes ||
11315     test "$enable_shared" = no; then
11316     # Fast installation is not necessary
11317     enable_fast_install=needless
11318     fi
11319    
11320    
11321 michael 945
11322    
11323    
11324    
11325     if test "x$enable_dlopen" != xyes; then
11326 michael 912 enable_dlopen=unknown
11327     enable_dlopen_self=unknown
11328     enable_dlopen_self_static=unknown
11329     else
11330     lt_cv_dlopen=no
11331     lt_cv_dlopen_libs=
11332    
11333     case $host_os in
11334     beos*)
11335     lt_cv_dlopen="load_add_on"
11336     lt_cv_dlopen_libs=
11337     lt_cv_dlopen_self=yes
11338     ;;
11339    
11340 michael 945 mingw* | pw32* | cegcc*)
11341 michael 912 lt_cv_dlopen="LoadLibrary"
11342     lt_cv_dlopen_libs=
11343 michael 945 ;;
11344 michael 912
11345     cygwin*)
11346     lt_cv_dlopen="dlopen"
11347     lt_cv_dlopen_libs=
11348 michael 945 ;;
11349 michael 912
11350     darwin*)
11351     # if libdl is installed we need to link against it
11352 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11353 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11354 michael 1106 if ${ac_cv_lib_dl_dlopen+:} false; then :
11355 db 941 $as_echo_n "(cached) " >&6
11356 michael 912 else
11357     ac_check_lib_save_LIBS=$LIBS
11358     LIBS="-ldl $LIBS"
11359 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11360 michael 912 /* end confdefs.h. */
11361    
11362     /* Override any GCC internal prototype to avoid an error.
11363     Use char because int might match the return type of a GCC
11364     builtin and then its argument prototype would still apply. */
11365     #ifdef __cplusplus
11366     extern "C"
11367     #endif
11368     char dlopen ();
11369     int
11370     main ()
11371     {
11372     return dlopen ();
11373     ;
11374     return 0;
11375     }
11376     _ACEOF
11377 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11378 michael 912 ac_cv_lib_dl_dlopen=yes
11379     else
11380 michael 967 ac_cv_lib_dl_dlopen=no
11381 michael 912 fi
11382 michael 967 rm -f core conftest.err conftest.$ac_objext \
11383     conftest$ac_exeext conftest.$ac_ext
11384 michael 912 LIBS=$ac_check_lib_save_LIBS
11385     fi
11386 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11387 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11388 michael 1106 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11389 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11390     else
11391    
11392     lt_cv_dlopen="dyld"
11393     lt_cv_dlopen_libs=
11394     lt_cv_dlopen_self=yes
11395    
11396     fi
11397    
11398 michael 945 ;;
11399 michael 912
11400     *)
11401 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11402 michael 1106 if test "x$ac_cv_func_shl_load" = xyes; then :
11403 michael 912 lt_cv_dlopen="shl_load"
11404     else
11405 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11406 db 941 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11407 michael 1106 if ${ac_cv_lib_dld_shl_load+:} false; then :
11408 db 941 $as_echo_n "(cached) " >&6
11409 michael 912 else
11410     ac_check_lib_save_LIBS=$LIBS
11411     LIBS="-ldld $LIBS"
11412 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11413 michael 912 /* end confdefs.h. */
11414    
11415     /* Override any GCC internal prototype to avoid an error.
11416     Use char because int might match the return type of a GCC
11417     builtin and then its argument prototype would still apply. */
11418     #ifdef __cplusplus
11419     extern "C"
11420     #endif
11421     char shl_load ();
11422     int
11423     main ()
11424     {
11425     return shl_load ();
11426     ;
11427     return 0;
11428     }
11429     _ACEOF
11430 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11431 michael 912 ac_cv_lib_dld_shl_load=yes
11432     else
11433 michael 967 ac_cv_lib_dld_shl_load=no
11434 michael 912 fi
11435 michael 967 rm -f core conftest.err conftest.$ac_objext \
11436     conftest$ac_exeext conftest.$ac_ext
11437 michael 912 LIBS=$ac_check_lib_save_LIBS
11438     fi
11439 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11440 db 941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11441 michael 1106 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11442 db 941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11443 michael 912 else
11444 michael 967 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11445 michael 1106 if test "x$ac_cv_func_dlopen" = xyes; then :
11446 michael 912 lt_cv_dlopen="dlopen"
11447     else
11448 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11449 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11450 michael 1106 if ${ac_cv_lib_dl_dlopen+:} false; then :
11451 db 941 $as_echo_n "(cached) " >&6
11452 michael 912 else
11453     ac_check_lib_save_LIBS=$LIBS
11454     LIBS="-ldl $LIBS"
11455 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11456 michael 912 /* end confdefs.h. */
11457    
11458     /* Override any GCC internal prototype to avoid an error.
11459     Use char because int might match the return type of a GCC
11460     builtin and then its argument prototype would still apply. */
11461     #ifdef __cplusplus
11462     extern "C"
11463     #endif
11464     char dlopen ();
11465     int
11466     main ()
11467     {
11468     return dlopen ();
11469     ;
11470     return 0;
11471     }
11472     _ACEOF
11473 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11474 michael 912 ac_cv_lib_dl_dlopen=yes
11475     else
11476 michael 967 ac_cv_lib_dl_dlopen=no
11477 michael 912 fi
11478 michael 967 rm -f core conftest.err conftest.$ac_objext \
11479     conftest$ac_exeext conftest.$ac_ext
11480 michael 912 LIBS=$ac_check_lib_save_LIBS
11481     fi
11482 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11483 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11484 michael 1106 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11485 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11486     else
11487 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11488 db 941 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11489 michael 1106 if ${ac_cv_lib_svld_dlopen+:} false; then :
11490 db 941 $as_echo_n "(cached) " >&6
11491 michael 912 else
11492     ac_check_lib_save_LIBS=$LIBS
11493     LIBS="-lsvld $LIBS"
11494 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11495 michael 912 /* end confdefs.h. */
11496    
11497     /* Override any GCC internal prototype to avoid an error.
11498     Use char because int might match the return type of a GCC
11499     builtin and then its argument prototype would still apply. */
11500     #ifdef __cplusplus
11501     extern "C"
11502     #endif
11503     char dlopen ();
11504     int
11505     main ()
11506     {
11507     return dlopen ();
11508     ;
11509     return 0;
11510     }
11511     _ACEOF
11512 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11513 michael 912 ac_cv_lib_svld_dlopen=yes
11514     else
11515 michael 967 ac_cv_lib_svld_dlopen=no
11516 michael 912 fi
11517 michael 967 rm -f core conftest.err conftest.$ac_objext \
11518     conftest$ac_exeext conftest.$ac_ext
11519 michael 912 LIBS=$ac_check_lib_save_LIBS
11520     fi
11521 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11522 db 941 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11523 michael 1106 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11524 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11525     else
11526 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11527 db 941 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11528 michael 1106 if ${ac_cv_lib_dld_dld_link+:} false; then :
11529 db 941 $as_echo_n "(cached) " >&6
11530 michael 912 else
11531     ac_check_lib_save_LIBS=$LIBS
11532     LIBS="-ldld $LIBS"
11533 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534 michael 912 /* end confdefs.h. */
11535    
11536     /* Override any GCC internal prototype to avoid an error.
11537     Use char because int might match the return type of a GCC
11538     builtin and then its argument prototype would still apply. */
11539     #ifdef __cplusplus
11540     extern "C"
11541     #endif
11542     char dld_link ();
11543     int
11544     main ()
11545     {
11546     return dld_link ();
11547     ;
11548     return 0;
11549     }
11550     _ACEOF
11551 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11552 michael 912 ac_cv_lib_dld_dld_link=yes
11553     else
11554 michael 967 ac_cv_lib_dld_dld_link=no
11555 michael 912 fi
11556 michael 967 rm -f core conftest.err conftest.$ac_objext \
11557     conftest$ac_exeext conftest.$ac_ext
11558 michael 912 LIBS=$ac_check_lib_save_LIBS
11559     fi
11560 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11561 db 941 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11562 michael 1106 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11563 db 941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11564 michael 912 fi
11565    
11566    
11567     fi
11568    
11569    
11570     fi
11571    
11572    
11573     fi
11574    
11575    
11576     fi
11577    
11578    
11579     fi
11580    
11581     ;;
11582     esac
11583    
11584     if test "x$lt_cv_dlopen" != xno; then
11585     enable_dlopen=yes
11586     else
11587     enable_dlopen=no
11588     fi
11589    
11590     case $lt_cv_dlopen in
11591     dlopen)
11592     save_CPPFLAGS="$CPPFLAGS"
11593     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11594    
11595     save_LDFLAGS="$LDFLAGS"
11596     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11597    
11598     save_LIBS="$LIBS"
11599     LIBS="$lt_cv_dlopen_libs $LIBS"
11600    
11601 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11602 db 941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11603 michael 1106 if ${lt_cv_dlopen_self+:} false; then :
11604 db 941 $as_echo_n "(cached) " >&6
11605 michael 912 else
11606     if test "$cross_compiling" = yes; then :
11607     lt_cv_dlopen_self=cross
11608     else
11609     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11610     lt_status=$lt_dlunknown
11611 michael 945 cat > conftest.$ac_ext <<_LT_EOF
11612 michael 1094 #line $LINENO "configure"
11613 michael 912 #include "confdefs.h"
11614    
11615     #if HAVE_DLFCN_H
11616     #include <dlfcn.h>
11617     #endif
11618    
11619     #include <stdio.h>
11620    
11621     #ifdef RTLD_GLOBAL
11622     # define LT_DLGLOBAL RTLD_GLOBAL
11623     #else
11624     # ifdef DL_GLOBAL
11625     # define LT_DLGLOBAL DL_GLOBAL
11626     # else
11627     # define LT_DLGLOBAL 0
11628     # endif
11629     #endif
11630    
11631     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11632     find out it does not work in some platform. */
11633     #ifndef LT_DLLAZY_OR_NOW
11634     # ifdef RTLD_LAZY
11635     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11636     # else
11637     # ifdef DL_LAZY
11638     # define LT_DLLAZY_OR_NOW DL_LAZY
11639     # else
11640     # ifdef RTLD_NOW
11641     # define LT_DLLAZY_OR_NOW RTLD_NOW
11642     # else
11643     # ifdef DL_NOW
11644     # define LT_DLLAZY_OR_NOW DL_NOW
11645     # else
11646     # define LT_DLLAZY_OR_NOW 0
11647     # endif
11648     # endif
11649     # endif
11650     # endif
11651     #endif
11652    
11653 michael 1094 /* When -fvisbility=hidden is used, assume the code has been annotated
11654     correspondingly for the symbols needed. */
11655     #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11656 michael 1106 int fnord () __attribute__((visibility("default")));
11657 michael 1094 #endif
11658    
11659 michael 1106 int fnord () { return 42; }
11660 michael 912 int main ()
11661     {
11662     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11663     int status = $lt_dlunknown;
11664    
11665     if (self)
11666     {
11667     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11668 michael 1094 else
11669     {
11670     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11671     else puts (dlerror ());
11672     }
11673 michael 912 /* dlclose (self); */
11674     }
11675     else
11676     puts (dlerror ());
11677    
11678 michael 945 return status;
11679 michael 912 }
11680 michael 945 _LT_EOF
11681 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11682 michael 912 (eval $ac_link) 2>&5
11683     ac_status=$?
11684 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11685     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11686 michael 912 (./conftest; exit; ) >&5 2>/dev/null
11687     lt_status=$?
11688     case x$lt_status in
11689     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11690     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11691     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11692     esac
11693     else :
11694     # compilation failed
11695     lt_cv_dlopen_self=no
11696     fi
11697     fi
11698     rm -fr conftest*
11699    
11700    
11701     fi
11702 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11703 db 941 $as_echo "$lt_cv_dlopen_self" >&6; }
11704 michael 912
11705     if test "x$lt_cv_dlopen_self" = xyes; then
11706     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11707 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11708 db 941 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11709 michael 1106 if ${lt_cv_dlopen_self_static+:} false; then :
11710 db 941 $as_echo_n "(cached) " >&6
11711 michael 912 else
11712     if test "$cross_compiling" = yes; then :
11713     lt_cv_dlopen_self_static=cross
11714     else
11715     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11716     lt_status=$lt_dlunknown
11717 michael 945 cat > conftest.$ac_ext <<_LT_EOF
11718 michael 1094 #line $LINENO "configure"
11719 michael 912 #include "confdefs.h"
11720    
11721     #if HAVE_DLFCN_H
11722     #include <dlfcn.h>
11723     #endif
11724    
11725     #include <stdio.h>
11726    
11727     #ifdef RTLD_GLOBAL
11728     # define LT_DLGLOBAL RTLD_GLOBAL
11729     #else
11730     # ifdef DL_GLOBAL
11731     # define LT_DLGLOBAL DL_GLOBAL
11732     # else
11733     # define LT_DLGLOBAL 0
11734     # endif
11735     #endif
11736    
11737     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11738     find out it does not work in some platform. */
11739     #ifndef LT_DLLAZY_OR_NOW
11740     # ifdef RTLD_LAZY
11741     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11742     # else
11743     # ifdef DL_LAZY
11744     # define LT_DLLAZY_OR_NOW DL_LAZY
11745     # else
11746     # ifdef RTLD_NOW
11747     # define LT_DLLAZY_OR_NOW RTLD_NOW
11748     # else
11749     # ifdef DL_NOW
11750     # define LT_DLLAZY_OR_NOW DL_NOW
11751     # else
11752     # define LT_DLLAZY_OR_NOW 0
11753     # endif
11754     # endif
11755     # endif
11756     # endif
11757     #endif
11758    
11759 michael 1094 /* When -fvisbility=hidden is used, assume the code has been annotated
11760     correspondingly for the symbols needed. */
11761     #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11762 michael 1106 int fnord () __attribute__((visibility("default")));
11763 michael 1094 #endif
11764    
11765 michael 1106 int fnord () { return 42; }
11766 michael 912 int main ()
11767     {
11768     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11769     int status = $lt_dlunknown;
11770    
11771     if (self)
11772     {
11773     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11774 michael 1094 else
11775     {
11776     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11777     else puts (dlerror ());
11778     }
11779 michael 912 /* dlclose (self); */
11780     }
11781     else
11782     puts (dlerror ());
11783    
11784 michael 945 return status;
11785 michael 912 }
11786 michael 945 _LT_EOF
11787 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11788 michael 912 (eval $ac_link) 2>&5
11789     ac_status=$?
11790 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11791     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11792 michael 912 (./conftest; exit; ) >&5 2>/dev/null
11793     lt_status=$?
11794     case x$lt_status in
11795     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11796     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11797     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11798     esac
11799     else :
11800     # compilation failed
11801     lt_cv_dlopen_self_static=no
11802     fi
11803     fi
11804     rm -fr conftest*
11805    
11806    
11807     fi
11808 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11809 db 941 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11810 michael 912 fi
11811    
11812     CPPFLAGS="$save_CPPFLAGS"
11813     LDFLAGS="$save_LDFLAGS"
11814     LIBS="$save_LIBS"
11815     ;;
11816     esac
11817    
11818     case $lt_cv_dlopen_self in
11819     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11820     *) enable_dlopen_self=unknown ;;
11821     esac
11822    
11823     case $lt_cv_dlopen_self_static in
11824     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11825     *) enable_dlopen_self_static=unknown ;;
11826     esac
11827     fi
11828    
11829    
11830    
11831    
11832    
11833    
11834    
11835    
11836    
11837    
11838    
11839    
11840    
11841    
11842    
11843    
11844    
11845 michael 945 striplib=
11846     old_striplib=
11847 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11848 michael 945 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11849     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11850     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11851     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11852 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11853 michael 945 $as_echo "yes" >&6; }
11854     else
11855     # FIXME - insert some real tests, host_os isn't really good enough
11856     case $host_os in
11857     darwin*)
11858     if test -n "$STRIP" ; then
11859     striplib="$STRIP -x"
11860     old_striplib="$STRIP -S"
11861 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11862 michael 945 $as_echo "yes" >&6; }
11863     else
11864 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11865 michael 945 $as_echo "no" >&6; }
11866     fi
11867     ;;
11868     *)
11869 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11870 michael 945 $as_echo "no" >&6; }
11871     ;;
11872     esac
11873     fi
11874 michael 912
11875    
11876    
11877    
11878    
11879    
11880    
11881    
11882    
11883    
11884    
11885    
11886 michael 945 # Report which library types will actually be built
11887 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11888 michael 945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11889 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11890 michael 945 $as_echo "$can_build_shared" >&6; }
11891 michael 912
11892 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11893 michael 945 $as_echo_n "checking whether to build shared libraries... " >&6; }
11894     test "$can_build_shared" = "no" && enable_shared=no
11895 michael 912
11896 michael 945 # On AIX, shared libraries and static libraries use the same namespace, and
11897     # are all built from PIC.
11898 michael 912 case $host_os in
11899     aix3*)
11900 michael 945 test "$enable_shared" = yes && enable_static=no
11901     if test -n "$RANLIB"; then
11902     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11903     postinstall_cmds='$RANLIB $lib'
11904     fi
11905     ;;
11906 michael 912
11907 michael 945 aix[4-9]*)
11908     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11909     test "$enable_shared" = yes && enable_static=no
11910     fi
11911 michael 912 ;;
11912     esac
11913 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11914 michael 945 $as_echo "$enable_shared" >&6; }
11915 michael 912
11916 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11917 michael 945 $as_echo_n "checking whether to build static libraries... " >&6; }
11918     # Make sure either enable_shared or enable_static is yes.
11919     test "$enable_shared" = yes || enable_static=yes
11920 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11921 michael 945 $as_echo "$enable_static" >&6; }
11922 michael 912
11923    
11924    
11925    
11926 michael 945 fi
11927 michael 912 ac_ext=c
11928     ac_cpp='$CPP $CPPFLAGS'
11929     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11930     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11931     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11932    
11933     CC="$lt_save_CC"
11934    
11935    
11936    
11937    
11938    
11939    
11940    
11941    
11942    
11943    
11944    
11945    
11946    
11947 michael 1257
11948    
11949 michael 945 ac_config_commands="$ac_config_commands libtool"
11950 michael 912
11951    
11952    
11953    
11954 michael 945 # Only expand once:
11955 michael 912
11956    
11957 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11958 michael 945 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11959 michael 1106 if ${libltdl_cv_shlibext+:} false; then :
11960 michael 945 $as_echo_n "(cached) " >&6
11961 michael 912 else
11962    
11963 michael 945 module=yes
11964     eval libltdl_cv_shlibext=$shrext_cmds
11965 michael 1257 module=no
11966     eval libltdl_cv_shrext=$shrext_cmds
11967 michael 912
11968     fi
11969 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11970 michael 945 $as_echo "$libltdl_cv_shlibext" >&6; }
11971     if test -n "$libltdl_cv_shlibext"; then
11972 michael 912
11973 michael 945 cat >>confdefs.h <<_ACEOF
11974     #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11975     _ACEOF
11976 michael 912
11977     fi
11978 michael 1257 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11979 michael 912
11980 michael 1257 cat >>confdefs.h <<_ACEOF
11981     #define LT_SHARED_EXT "$libltdl_cv_shrext"
11982     _ACEOF
11983    
11984     fi
11985    
11986 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11987 michael 945 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11988 michael 1106 if ${lt_cv_module_path_var+:} false; then :
11989 db 941 $as_echo_n "(cached) " >&6
11990 michael 912 else
11991 michael 945 lt_cv_module_path_var="$shlibpath_var"
11992 michael 912 fi
11993 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11994 michael 945 $as_echo "$lt_cv_module_path_var" >&6; }
11995     if test -n "$lt_cv_module_path_var"; then
11996    
11997     cat >>confdefs.h <<_ACEOF
11998     #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11999     _ACEOF
12000    
12001 michael 912 fi
12002    
12003 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
12004 michael 945 $as_echo_n "checking for the default library search path... " >&6; }
12005 michael 1106 if ${lt_cv_sys_dlsearch_path+:} false; then :
12006 db 941 $as_echo_n "(cached) " >&6
12007 michael 912 else
12008 michael 945 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12009 michael 912 fi
12010 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12011 michael 945 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12012     if test -n "$lt_cv_sys_dlsearch_path"; then
12013     sys_dlsearch_path=
12014     for dir in $lt_cv_sys_dlsearch_path; do
12015     if test -z "$sys_dlsearch_path"; then
12016     sys_dlsearch_path="$dir"
12017 michael 912 else
12018 michael 945 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12019 michael 912 fi
12020 michael 945 done
12021 michael 912
12022 michael 945 cat >>confdefs.h <<_ACEOF
12023     #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12024     _ACEOF
12025 michael 912
12026     fi
12027    
12028    
12029 michael 945 LT_DLLOADERS=
12030 michael 912
12031    
12032 michael 945 ac_ext=c
12033     ac_cpp='$CPP $CPPFLAGS'
12034     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12035     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12036     ac_compiler_gnu=$ac_cv_c_compiler_gnu
12037 michael 912
12038    
12039 michael 945 LIBADD_DLOPEN=
12040 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12041 michael 945 $as_echo_n "checking for library containing dlopen... " >&6; }
12042 michael 1106 if ${ac_cv_search_dlopen+:} false; then :
12043 michael 945 $as_echo_n "(cached) " >&6
12044     else
12045     ac_func_search_save_LIBS=$LIBS
12046 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12047 michael 912 /* end confdefs.h. */
12048    
12049 michael 945 /* Override any GCC internal prototype to avoid an error.
12050     Use char because int might match the return type of a GCC
12051     builtin and then its argument prototype would still apply. */
12052     #ifdef __cplusplus
12053     extern "C"
12054     #endif
12055     char dlopen ();
12056 michael 912 int
12057     main ()
12058     {
12059 michael 945 return dlopen ();
12060 michael 912 ;
12061     return 0;
12062     }
12063     _ACEOF
12064 michael 945 for ac_lib in '' dl; do
12065     if test -z "$ac_lib"; then
12066     ac_res="none required"
12067     else
12068     ac_res=-l$ac_lib
12069     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12070     fi
12071 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12072 michael 945 ac_cv_search_dlopen=$ac_res
12073 michael 912 fi
12074 michael 967 rm -f core conftest.err conftest.$ac_objext \
12075     conftest$ac_exeext
12076 michael 1106 if ${ac_cv_search_dlopen+:} false; then :
12077 michael 945 break
12078     fi
12079     done
12080 michael 1106 if ${ac_cv_search_dlopen+:} false; then :
12081 michael 967
12082 michael 945 else
12083     ac_cv_search_dlopen=no
12084     fi
12085     rm conftest.$ac_ext
12086     LIBS=$ac_func_search_save_LIBS
12087     fi
12088 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12089 michael 945 $as_echo "$ac_cv_search_dlopen" >&6; }
12090     ac_res=$ac_cv_search_dlopen
12091 michael 967 if test "$ac_res" != no; then :
12092 michael 945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12093 michael 912
12094 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12095 michael 912
12096 michael 945 if test "$ac_cv_search_dlopen" != "none required" ; then
12097     LIBADD_DLOPEN="-ldl"
12098     fi
12099     libltdl_cv_lib_dl_dlopen="yes"
12100     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12101     else
12102 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12103 michael 912 /* end confdefs.h. */
12104 michael 945 #if HAVE_DLFCN_H
12105     # include <dlfcn.h>
12106     #endif
12107 michael 912
12108     int
12109     main ()
12110     {
12111 michael 945 dlopen(0, 0);
12112 michael 912 ;
12113     return 0;
12114     }
12115     _ACEOF
12116 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12117 michael 912
12118 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12119 michael 945
12120     libltdl_cv_func_dlopen="yes"
12121     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12122 michael 912 else
12123 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12124 michael 945 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12125 michael 1106 if ${ac_cv_lib_svld_dlopen+:} false; then :
12126 michael 945 $as_echo_n "(cached) " >&6
12127     else
12128     ac_check_lib_save_LIBS=$LIBS
12129     LIBS="-lsvld $LIBS"
12130 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12131 michael 945 /* end confdefs.h. */
12132 michael 912
12133 michael 945 /* Override any GCC internal prototype to avoid an error.
12134     Use char because int might match the return type of a GCC
12135     builtin and then its argument prototype would still apply. */
12136     #ifdef __cplusplus
12137     extern "C"
12138     #endif
12139     char dlopen ();
12140     int
12141     main ()
12142     {
12143     return dlopen ();
12144     ;
12145     return 0;
12146     }
12147     _ACEOF
12148 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12149 michael 945 ac_cv_lib_svld_dlopen=yes
12150 michael 912 else
12151 michael 967 ac_cv_lib_svld_dlopen=no
12152 db 941 fi
12153 michael 967 rm -f core conftest.err conftest.$ac_objext \
12154     conftest$ac_exeext conftest.$ac_ext
12155 michael 945 LIBS=$ac_check_lib_save_LIBS
12156 michael 912 fi
12157 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12158 michael 945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12159 michael 1106 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12160 michael 912
12161 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12162 michael 912
12163 michael 945 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12164     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12165 michael 912 fi
12166    
12167     fi
12168 michael 967 rm -f core conftest.err conftest.$ac_objext \
12169     conftest$ac_exeext conftest.$ac_ext
12170 michael 912 fi
12171    
12172 michael 945 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12173     then
12174     lt_save_LIBS="$LIBS"
12175     LIBS="$LIBS $LIBADD_DLOPEN"
12176 michael 967 for ac_func in dlerror
12177     do :
12178     ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12179 michael 1106 if test "x$ac_cv_func_dlerror" = xyes; then :
12180 michael 945 cat >>confdefs.h <<_ACEOF
12181 michael 967 #define HAVE_DLERROR 1
12182 michael 945 _ACEOF
12183 michael 912
12184     fi
12185 michael 945 done
12186 michael 912
12187 michael 945 LIBS="$lt_save_LIBS"
12188 michael 912 fi
12189    
12190    
12191 michael 945 LIBADD_SHL_LOAD=
12192 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12193 michael 1106 if test "x$ac_cv_func_shl_load" = xyes; then :
12194 michael 912
12195 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12196 michael 912
12197 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12198 michael 912 else
12199 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12200 michael 945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12201 michael 1106 if ${ac_cv_lib_dld_shl_load+:} false; then :
12202 db 941 $as_echo_n "(cached) " >&6
12203 michael 912 else
12204 michael 945 ac_check_lib_save_LIBS=$LIBS
12205     LIBS="-ldld $LIBS"
12206 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 michael 945 /* end confdefs.h. */
12208 michael 912
12209 michael 945 /* Override any GCC internal prototype to avoid an error.
12210     Use char because int might match the return type of a GCC
12211     builtin and then its argument prototype would still apply. */
12212     #ifdef __cplusplus
12213     extern "C"
12214     #endif
12215     char shl_load ();
12216     int
12217     main ()
12218     {
12219     return shl_load ();
12220     ;
12221     return 0;
12222     }
12223 michael 912 _ACEOF
12224 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12225 michael 945 ac_cv_lib_dld_shl_load=yes
12226 michael 912 else
12227 michael 967 ac_cv_lib_dld_shl_load=no
12228 michael 912 fi
12229 michael 967 rm -f core conftest.err conftest.$ac_objext \
12230     conftest$ac_exeext conftest.$ac_ext
12231 michael 945 LIBS=$ac_check_lib_save_LIBS
12232     fi
12233 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12234 michael 945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12235 michael 1106 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12236 michael 912
12237 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12238 michael 912
12239 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12240     LIBADD_SHL_LOAD="-ldld"
12241     fi
12242    
12243     fi
12244    
12245    
12246    
12247     case $host_os in
12248     darwin[1567].*)
12249     # We only want this for pre-Mac OS X 10.4.
12250 michael 967 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12251 michael 1106 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12252 michael 945
12253 michael 967 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12254 michael 945
12255     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12256     fi
12257 michael 912
12258 michael 945 ;;
12259     beos*)
12260     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12261     ;;
12262     cygwin* | mingw* | os2* | pw32*)
12263 michael 967 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12264     "
12265 michael 1106 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12266 michael 967 ac_have_decl=1
12267 michael 945 else
12268 michael 967 ac_have_decl=0
12269 michael 945 fi
12270 michael 912
12271 michael 945 cat >>confdefs.h <<_ACEOF
12272 michael 967 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12273 michael 945 _ACEOF
12274 michael 912
12275 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12276     ;;
12277     esac
12278 michael 912
12279 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12280 michael 945 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12281 michael 1106 if ${ac_cv_lib_dld_dld_link+:} false; then :
12282 michael 945 $as_echo_n "(cached) " >&6
12283     else
12284     ac_check_lib_save_LIBS=$LIBS
12285     LIBS="-ldld $LIBS"
12286 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 michael 945 /* end confdefs.h. */
12288 michael 912
12289 michael 945 /* Override any GCC internal prototype to avoid an error.
12290     Use char because int might match the return type of a GCC
12291     builtin and then its argument prototype would still apply. */
12292     #ifdef __cplusplus
12293     extern "C"
12294     #endif
12295     char dld_link ();
12296     int
12297     main ()
12298     {
12299     return dld_link ();
12300     ;
12301     return 0;
12302     }
12303     _ACEOF
12304 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12305 michael 945 ac_cv_lib_dld_dld_link=yes
12306     else
12307 michael 967 ac_cv_lib_dld_dld_link=no
12308 michael 945 fi
12309 michael 967 rm -f core conftest.err conftest.$ac_objext \
12310     conftest$ac_exeext conftest.$ac_ext
12311 michael 945 LIBS=$ac_check_lib_save_LIBS
12312     fi
12313 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12314 michael 945 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12315 michael 1106 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12316 michael 912
12317 michael 967 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12318 michael 912
12319 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12320     fi
12321 michael 912
12322    
12323    
12324    
12325 michael 945 LT_DLPREOPEN=
12326     if test -n "$LT_DLLOADERS"
12327     then
12328     for lt_loader in $LT_DLLOADERS; do
12329     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12330     done
12331 michael 912
12332 michael 967 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12333 michael 912
12334 michael 945 fi
12335 michael 912
12336    
12337 michael 945 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12338 michael 912
12339    
12340 michael 945 ac_ext=c
12341     ac_cpp='$CPP $CPPFLAGS'
12342     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12343     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12344     ac_compiler_gnu=$ac_cv_c_compiler_gnu
12345 michael 912
12346    
12347 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12348 michael 945 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12349 michael 1106 if ${lt_cv_sys_symbol_underscore+:} false; then :
12350 michael 945 $as_echo_n "(cached) " >&6
12351     else
12352     lt_cv_sys_symbol_underscore=no
12353     cat > conftest.$ac_ext <<_LT_EOF
12354     void nm_test_func(){}
12355     int main(){nm_test_func;return 0;}
12356     _LT_EOF
12357 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12358 michael 912 (eval $ac_compile) 2>&5
12359     ac_status=$?
12360 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12361     test $ac_status = 0; }; then
12362 michael 945 # Now try to grab the symbols.
12363     ac_nlist=conftest.nm
12364 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12365 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12366 michael 912 ac_status=$?
12367 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12368     test $ac_status = 0; } && test -s "$ac_nlist"; then
12369 michael 945 # See whether the symbols have a leading underscore.
12370     if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12371     lt_cv_sys_symbol_underscore=yes
12372     else
12373     if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12374     :
12375 michael 912 else
12376 michael 945 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12377 michael 912 fi
12378     fi
12379 michael 945 else
12380     echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12381     fi
12382     else
12383     echo "configure: failed program was:" >&5
12384     cat conftest.c >&5
12385 michael 912 fi
12386 michael 945 rm -rf conftest*
12387 michael 912
12388 michael 945 fi
12389 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12390 michael 945 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12391     sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12392 michael 912
12393    
12394 michael 945 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12395     if test x"$libltdl_cv_func_dlopen" = xyes ||
12396     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12397 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12398 michael 945 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12399 michael 1106 if ${libltdl_cv_need_uscore+:} false; then :
12400 michael 945 $as_echo_n "(cached) " >&6
12401     else
12402     libltdl_cv_need_uscore=unknown
12403     save_LIBS="$LIBS"
12404     LIBS="$LIBS $LIBADD_DLOPEN"
12405     if test "$cross_compiling" = yes; then :
12406     libltdl_cv_need_uscore=cross
12407     else
12408     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12409     lt_status=$lt_dlunknown
12410     cat > conftest.$ac_ext <<_LT_EOF
12411 michael 1094 #line $LINENO "configure"
12412 michael 945 #include "confdefs.h"
12413 michael 912
12414 michael 945 #if HAVE_DLFCN_H
12415     #include <dlfcn.h>
12416     #endif
12417 michael 912
12418 michael 945 #include <stdio.h>
12419 michael 912
12420 michael 945 #ifdef RTLD_GLOBAL
12421     # define LT_DLGLOBAL RTLD_GLOBAL
12422     #else
12423     # ifdef DL_GLOBAL
12424     # define LT_DLGLOBAL DL_GLOBAL
12425     # else
12426     # define LT_DLGLOBAL 0
12427     # endif
12428     #endif
12429    
12430     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12431     find out it does not work in some platform. */
12432     #ifndef LT_DLLAZY_OR_NOW
12433     # ifdef RTLD_LAZY
12434     # define LT_DLLAZY_OR_NOW RTLD_LAZY
12435     # else
12436     # ifdef DL_LAZY
12437     # define LT_DLLAZY_OR_NOW DL_LAZY
12438     # else
12439     # ifdef RTLD_NOW
12440     # define LT_DLLAZY_OR_NOW RTLD_NOW
12441     # else
12442     # ifdef DL_NOW
12443     # define LT_DLLAZY_OR_NOW DL_NOW
12444     # else
12445     # define LT_DLLAZY_OR_NOW 0
12446     # endif
12447     # endif
12448     # endif
12449     # endif
12450     #endif
12451    
12452 michael 1094 /* When -fvisbility=hidden is used, assume the code has been annotated
12453     correspondingly for the symbols needed. */
12454     #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12455 michael 1106 int fnord () __attribute__((visibility("default")));
12456 michael 1094 #endif
12457    
12458 michael 1106 int fnord () { return 42; }
12459 michael 945 int main ()
12460     {
12461     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12462     int status = $lt_dlunknown;
12463    
12464     if (self)
12465     {
12466     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12467 michael 1094 else
12468     {
12469     if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12470     else puts (dlerror ());
12471     }
12472 michael 945 /* dlclose (self); */
12473     }
12474 michael 912 else
12475 michael 945 puts (dlerror ());
12476    
12477     return status;
12478     }
12479     _LT_EOF
12480 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12481 michael 945 (eval $ac_link) 2>&5
12482     ac_status=$?
12483 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12484     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12485 michael 945 (./conftest; exit; ) >&5 2>/dev/null
12486     lt_status=$?
12487     case x$lt_status in
12488     x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12489     x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12490     x$lt_dlunknown|x*) ;;
12491 michael 912 esac
12492 michael 945 else :
12493     # compilation failed
12494    
12495 michael 912 fi
12496 michael 945 fi
12497     rm -fr conftest*
12498 michael 912
12499 michael 945 LIBS="$save_LIBS"
12500 michael 912
12501 michael 945 fi
12502 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12503 michael 945 $as_echo "$libltdl_cv_need_uscore" >&6; }
12504     fi
12505     fi
12506 michael 912
12507 michael 945 if test x"$libltdl_cv_need_uscore" = xyes; then
12508 michael 912
12509 michael 967 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12510 michael 912
12511 michael 945 fi
12512 michael 912
12513 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12514 michael 945 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12515 michael 1106 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12516 michael 945 $as_echo_n "(cached) " >&6
12517     else
12518     # PORTME does your system automatically load deplibs for dlopen?
12519     # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12520     # For now, we just catch OSes we know something about -- in the
12521     # future, we'll try test this programmatically.
12522     lt_cv_sys_dlopen_deplibs=unknown
12523     case $host_os in
12524     aix3*|aix4.1.*|aix4.2.*)
12525     # Unknown whether this is true for these versions of AIX, but
12526     # we want this `case' here to explicitly catch those versions.
12527     lt_cv_sys_dlopen_deplibs=unknown
12528     ;;
12529     aix[4-9]*)
12530     lt_cv_sys_dlopen_deplibs=yes
12531     ;;
12532     amigaos*)
12533     case $host_cpu in
12534     powerpc)
12535     lt_cv_sys_dlopen_deplibs=no
12536 michael 912 ;;
12537     esac
12538     ;;
12539 michael 945 darwin*)
12540     # Assuming the user has installed a libdl from somewhere, this is true
12541     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12542     lt_cv_sys_dlopen_deplibs=yes
12543 michael 912 ;;
12544 michael 945 freebsd* | dragonfly*)
12545     lt_cv_sys_dlopen_deplibs=yes
12546 michael 912 ;;
12547 michael 1094 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12548 michael 945 # GNU and its variants, using gnu ld.so (Glibc)
12549     lt_cv_sys_dlopen_deplibs=yes
12550 michael 912 ;;
12551 michael 945 hpux10*|hpux11*)
12552     lt_cv_sys_dlopen_deplibs=yes
12553 michael 912 ;;
12554 michael 945 interix*)
12555     lt_cv_sys_dlopen_deplibs=yes
12556 michael 912 ;;
12557 michael 945 irix[12345]*|irix6.[01]*)
12558     # Catch all versions of IRIX before 6.2, and indicate that we don't
12559     # know how it worked for any of those versions.
12560     lt_cv_sys_dlopen_deplibs=unknown
12561 michael 912 ;;
12562 michael 945 irix*)
12563     # The case above catches anything before 6.2, and it's known that
12564     # at 6.2 and later dlopen does load deplibs.
12565     lt_cv_sys_dlopen_deplibs=yes
12566 michael 912 ;;
12567 michael 945 netbsd*)
12568     lt_cv_sys_dlopen_deplibs=yes
12569 michael 912 ;;
12570 michael 945 openbsd*)
12571     lt_cv_sys_dlopen_deplibs=yes
12572 michael 912 ;;
12573 michael 945 osf[1234]*)
12574     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12575     # it did *not* use an RPATH in a shared library to find objects the
12576     # library depends on, so we explicitly say `no'.
12577     lt_cv_sys_dlopen_deplibs=no
12578     ;;
12579     osf5.0|osf5.0a|osf5.1)
12580     # dlopen *does* load deplibs and with the right loader patch applied
12581     # it even uses RPATH in a shared library to search for shared objects
12582     # that the library depends on, but there's no easy way to know if that
12583     # patch is installed. Since this is the case, all we can really
12584     # say is unknown -- it depends on the patch being installed. If
12585     # it is, this changes to `yes'. Without it, it would be `no'.
12586     lt_cv_sys_dlopen_deplibs=unknown
12587     ;;
12588     osf*)
12589     # the two cases above should catch all versions of osf <= 5.1. Read
12590     # the comments above for what we know about them.
12591     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12592     # is used to find them so we can finally say `yes'.
12593     lt_cv_sys_dlopen_deplibs=yes
12594     ;;
12595     qnx*)
12596     lt_cv_sys_dlopen_deplibs=yes
12597     ;;
12598     solaris*)
12599     lt_cv_sys_dlopen_deplibs=yes
12600     ;;
12601     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12602     libltdl_cv_sys_dlopen_deplibs=yes
12603     ;;
12604 michael 912 esac
12605    
12606 michael 945 fi
12607 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12608 michael 945 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12609     if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12610 michael 912
12611 michael 967 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12612 michael 912
12613 michael 945 fi
12614 michael 912
12615 michael 945 :
12616 michael 912
12617 michael 945 for ac_header in argz.h
12618 michael 967 do :
12619     ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12620     "
12621 michael 1106 if test "x$ac_cv_header_argz_h" = xyes; then :
12622 michael 945 cat >>confdefs.h <<_ACEOF
12623 michael 967 #define HAVE_ARGZ_H 1
12624 michael 945 _ACEOF
12625 michael 912
12626     fi
12627    
12628 michael 945 done
12629 michael 912
12630    
12631 michael 967 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12632 michael 945 # include <argz.h>
12633     #endif
12634 michael 967 "
12635 michael 1106 if test "x$ac_cv_type_error_t" = xyes; then :
12636 michael 912
12637 michael 945 cat >>confdefs.h <<_ACEOF
12638     #define HAVE_ERROR_T 1
12639     _ACEOF
12640 michael 912
12641    
12642 michael 945 else
12643 michael 912
12644 michael 967 $as_echo "#define error_t int" >>confdefs.h
12645 michael 912
12646    
12647 michael 967 $as_echo "#define __error_t_defined 1" >>confdefs.h
12648 michael 912
12649 michael 945 fi
12650 michael 912
12651    
12652 michael 945 ARGZ_H=
12653     for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12654     argz_next argz_stringify
12655 michael 967 do :
12656     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12657     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12658 michael 1095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12659 michael 945 cat >>confdefs.h <<_ACEOF
12660     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12661     _ACEOF
12662 michael 912
12663 michael 945 else
12664     ARGZ_H=argz.h;
12665 michael 912
12666 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12667 michael 912
12668 michael 945 fi
12669     done
12670 michael 912
12671    
12672 michael 967 if test -z "$ARGZ_H"; then :
12673     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12674 michael 945 $as_echo_n "checking if argz actually works... " >&6; }
12675 michael 1106 if ${lt_cv_sys_argz_works+:} false; then :
12676 michael 945 $as_echo_n "(cached) " >&6
12677 michael 912 else
12678 michael 945 case $host_os in #(
12679     *cygwin*)
12680     lt_cv_sys_argz_works=no
12681     if test "$cross_compiling" != no; then
12682     lt_cv_sys_argz_works="guessing no"
12683     else
12684     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12685     save_IFS=$IFS
12686     IFS=-.
12687     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12688     IFS=$save_IFS
12689     lt_os_major=${2-0}
12690     lt_os_minor=${3-0}
12691     lt_os_micro=${4-0}
12692     if test "$lt_os_major" -gt 1 \
12693     || { test "$lt_os_major" -eq 1 \
12694     && { test "$lt_os_minor" -gt 5 \
12695     || { test "$lt_os_minor" -eq 5 \
12696     && test "$lt_os_micro" -gt 24; }; }; }; then
12697     lt_cv_sys_argz_works=yes
12698     fi
12699     fi
12700     ;; #(
12701     *) lt_cv_sys_argz_works=yes ;;
12702     esac
12703 michael 912 fi
12704 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12705 michael 945 $as_echo "$lt_cv_sys_argz_works" >&6; }
12706 michael 1106 if test "$lt_cv_sys_argz_works" = yes; then :
12707 michael 912
12708 michael 967 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12709 michael 912
12710 michael 945 else
12711     ARGZ_H=argz.h
12712 michael 912
12713    
12714 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12715 michael 912
12716 michael 945 fi
12717     fi
12718 michael 912
12719    
12720    
12721 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12722 michael 945 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12723 michael 1106 if ${libltdl_cv_preloaded_symbols+:} false; then :
12724 db 941 $as_echo_n "(cached) " >&6
12725 michael 912 else
12726 michael 945 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12727     libltdl_cv_preloaded_symbols=yes
12728     else
12729     libltdl_cv_preloaded_symbols=no
12730     fi
12731 michael 912
12732     fi
12733 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12734 michael 945 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12735     if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12736 michael 912
12737 michael 967 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12738 michael 912
12739     fi
12740    
12741 michael 945 # Set options
12742 michael 912
12743    
12744    
12745    
12746 db 941
12747 michael 912
12748    
12749    
12750    
12751    
12752    
12753 michael 945 # Check whether --with-included_ltdl was given.
12754 michael 967 if test "${with_included_ltdl+set}" = set; then :
12755 michael 945 withval=$with_included_ltdl;
12756     fi
12757 db 941
12758 michael 912
12759 michael 945 if test "x$with_included_ltdl" != xyes; then
12760     # We are not being forced to use the included libltdl sources, so
12761     # decide whether there is a useful installed version we can use.
12762 michael 967 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12763 michael 912
12764 michael 967 "
12765 michael 1106 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12766 michael 967 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12767 michael 945 #include <ltdl.h>
12768 michael 967 "
12769 michael 1106 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12770 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12771 michael 945 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12772 michael 1106 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12773 michael 945 $as_echo_n "(cached) " >&6
12774     else
12775     ac_check_lib_save_LIBS=$LIBS
12776     LIBS="-lltdl $LIBS"
12777 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12778 michael 912 /* end confdefs.h. */
12779    
12780 michael 945 /* Override any GCC internal prototype to avoid an error.
12781     Use char because int might match the return type of a GCC
12782     builtin and then its argument prototype would still apply. */
12783     #ifdef __cplusplus
12784     extern "C"
12785     #endif
12786     char lt_dladvise_preload ();
12787 michael 912 int
12788     main ()
12789     {
12790 michael 945 return lt_dladvise_preload ();
12791 michael 912 ;
12792     return 0;
12793     }
12794     _ACEOF
12795 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12796 michael 945 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12797 michael 912 else
12798 michael 967 ac_cv_lib_ltdl_lt_dladvise_preload=no
12799 michael 912 fi
12800 michael 967 rm -f core conftest.err conftest.$ac_objext \
12801     conftest$ac_exeext conftest.$ac_ext
12802 michael 945 LIBS=$ac_check_lib_save_LIBS
12803     fi
12804 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12805 michael 945 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12806 michael 1106 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12807 michael 945 with_included_ltdl=no
12808     else
12809     with_included_ltdl=yes
12810     fi
12811 michael 912
12812 michael 945 else
12813     with_included_ltdl=yes
12814     fi
12815 michael 912
12816 michael 945 else
12817     with_included_ltdl=yes
12818     fi
12819 michael 912
12820    
12821 michael 945 fi
12822 michael 912
12823    
12824    
12825    
12826 michael 945 # Check whether --with-ltdl_include was given.
12827 michael 967 if test "${with_ltdl_include+set}" = set; then :
12828 michael 945 withval=$with_ltdl_include;
12829     fi
12830 michael 912
12831    
12832 michael 945 if test -n "$with_ltdl_include"; then
12833     if test -f "$with_ltdl_include/ltdl.h"; then :
12834 michael 912 else
12835 michael 1095 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12836 michael 912 fi
12837 michael 945 else
12838     with_ltdl_include=no
12839     fi
12840 michael 912
12841    
12842 michael 945 # Check whether --with-ltdl_lib was given.
12843 michael 967 if test "${with_ltdl_lib+set}" = set; then :
12844 michael 945 withval=$with_ltdl_lib;
12845     fi
12846 michael 912
12847    
12848 michael 945 if test -n "$with_ltdl_lib"; then
12849     if test -f "$with_ltdl_lib/libltdl.la"; then :
12850 michael 912 else
12851 michael 1095 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12852 michael 912 fi
12853 michael 945 else
12854     with_ltdl_lib=no
12855     fi
12856 michael 912
12857 michael 945 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12858     ,yes,no,no,)
12859     case $enable_ltdl_convenience in
12860 michael 1095 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12861 michael 945 "") enable_ltdl_convenience=yes
12862     ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12863     esac
12864     LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12865     LTDLDEPS=$LIBLTDL
12866     LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12867 michael 912
12868    
12869    
12870    
12871    
12872 michael 945 # For backwards non-gettext consistent compatibility...
12873     INCLTDL="$LTDLINCL"
12874 michael 912
12875    
12876 michael 945 ;;
12877     ,no,no,no,)
12878     # If the included ltdl is not to be used, then use the
12879     # preinstalled libltdl we found.
12880 michael 912
12881 michael 967 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12882 michael 912
12883 michael 945 LIBLTDL=-lltdl
12884     LTDLDEPS=
12885     LTDLINCL=
12886 michael 912 ;;
12887 michael 945 ,no*,no,*)
12888 michael 1095 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12889 michael 912 ;;
12890 michael 945 *) with_included_ltdl=no
12891     LIBLTDL="-L$with_ltdl_lib -lltdl"
12892     LTDLDEPS=
12893     LTDLINCL="-I$with_ltdl_include"
12894     ;;
12895     esac
12896     INCLTDL="$LTDLINCL"
12897 michael 912
12898 michael 945 # Report our decision...
12899 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12900 michael 945 $as_echo_n "checking where to find libltdl headers... " >&6; }
12901 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12902 michael 945 $as_echo "$LTDLINCL" >&6; }
12903 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12904 michael 945 $as_echo_n "checking where to find libltdl library... " >&6; }
12905 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12906 michael 945 $as_echo "$LIBLTDL" >&6; }
12907 michael 912
12908    
12909    
12910 michael 945 # Check whether --enable-ltdl-install was given.
12911 michael 967 if test "${enable_ltdl_install+set}" = set; then :
12912 michael 945 enableval=$enable_ltdl_install;
12913     fi
12914 michael 912
12915    
12916 michael 945 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12917     *yes*) ;;
12918     *) enable_ltdl_convenience=yes ;;
12919 michael 912 esac
12920    
12921 michael 945 if test x"${enable_ltdl_install-no}" != xno; then
12922     INSTALL_LTDL_TRUE=
12923     INSTALL_LTDL_FALSE='#'
12924 db 941 else
12925 michael 945 INSTALL_LTDL_TRUE='#'
12926     INSTALL_LTDL_FALSE=
12927 db 941 fi
12928    
12929 michael 945 if test x"${enable_ltdl_convenience-no}" != xno; then
12930     CONVENIENCE_LTDL_TRUE=
12931     CONVENIENCE_LTDL_FALSE='#'
12932 db 941 else
12933 michael 945 CONVENIENCE_LTDL_TRUE='#'
12934     CONVENIENCE_LTDL_FALSE=
12935 db 941 fi
12936    
12937    
12938 michael 912
12939    
12940    
12941    
12942 michael 945 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12943     # the user used. This is so that ltdl.h can pick up the parent projects
12944     # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12945     # definitions required by ltdl.c.
12946     # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12947 michael 912
12948    
12949    
12950 michael 945 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12951 michael 967 do :
12952     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12953     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12954     "
12955 michael 1095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12956 michael 945 cat >>confdefs.h <<_ACEOF
12957     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12958     _ACEOF
12959 michael 912
12960 michael 945 fi
12961 michael 912
12962 michael 945 done
12963 michael 912
12964    
12965 michael 945 for ac_func in closedir opendir readdir
12966 michael 967 do :
12967     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12968     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12969 michael 1095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12970 michael 945 cat >>confdefs.h <<_ACEOF
12971     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12972     _ACEOF
12973 michael 912
12974 michael 945 else
12975 michael 912
12976    
12977 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12978 michael 912
12979     fi
12980     done
12981    
12982 michael 945 for ac_func in strlcat strlcpy
12983 michael 967 do :
12984     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12985     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12986 michael 1095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12987 michael 945 cat >>confdefs.h <<_ACEOF
12988     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12989     _ACEOF
12990 michael 912
12991     else
12992    
12993    
12994 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12995 michael 912
12996     fi
12997 michael 945 done
12998 michael 912
12999    
13000    
13001 michael 945 cat >>confdefs.h <<_ACEOF
13002     #define LT_LIBEXT "$libext"
13003     _ACEOF
13004 michael 912
13005    
13006 michael 1106 name=
13007     eval "lt_libprefix=\"$libname_spec\""
13008    
13009     cat >>confdefs.h <<_ACEOF
13010     #define LT_LIBPREFIX "$lt_libprefix"
13011     _ACEOF
13012    
13013    
13014 michael 945 name=ltdl
13015 michael 1106 eval "LTDLOPEN=\"$libname_spec\""
13016 michael 912
13017    
13018    
13019    
13020    
13021    
13022    
13023    
13024 michael 945 # Only expand once:
13025 michael 912
13026    
13027 michael 1053 LIBTOOL="$LIBTOOL --silent"
13028 michael 912
13029     # Checks for libraries.
13030    
13031 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13032 db 941 $as_echo_n "checking for library containing socket... " >&6; }
13033 michael 1106 if ${ac_cv_search_socket+:} false; then :
13034 db 941 $as_echo_n "(cached) " >&6
13035 michael 912 else
13036     ac_func_search_save_LIBS=$LIBS
13037 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13038 michael 912 /* end confdefs.h. */
13039    
13040     /* Override any GCC internal prototype to avoid an error.
13041     Use char because int might match the return type of a GCC
13042     builtin and then its argument prototype would still apply. */
13043     #ifdef __cplusplus
13044     extern "C"
13045     #endif
13046     char socket ();
13047     int
13048     main ()
13049     {
13050     return socket ();
13051     ;
13052     return 0;
13053     }
13054     _ACEOF
13055     for ac_lib in '' socket; do
13056     if test -z "$ac_lib"; then
13057     ac_res="none required"
13058     else
13059     ac_res=-l$ac_lib
13060     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13061     fi
13062 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13063 michael 912 ac_cv_search_socket=$ac_res
13064     fi
13065 michael 967 rm -f core conftest.err conftest.$ac_objext \
13066     conftest$ac_exeext
13067 michael 1106 if ${ac_cv_search_socket+:} false; then :
13068 michael 912 break
13069     fi
13070     done
13071 michael 1106 if ${ac_cv_search_socket+:} false; then :
13072 michael 967
13073 michael 912 else
13074     ac_cv_search_socket=no
13075     fi
13076     rm conftest.$ac_ext
13077     LIBS=$ac_func_search_save_LIBS
13078     fi
13079 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13080 db 941 $as_echo "$ac_cv_search_socket" >&6; }
13081 michael 912 ac_res=$ac_cv_search_socket
13082 michael 967 if test "$ac_res" != no; then :
13083 michael 912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13084    
13085     else
13086 michael 1095 as_fn_error $? "socket library not found" "$LINENO" 5
13087 michael 912 fi
13088    
13089 michael 1105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
13090     $as_echo_n "checking for library containing inet_ntoa... " >&6; }
13091 michael 1106 if ${ac_cv_search_inet_ntoa+:} false; then :
13092 michael 1105 $as_echo_n "(cached) " >&6
13093     else
13094     ac_func_search_save_LIBS=$LIBS
13095     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13096     /* end confdefs.h. */
13097    
13098     /* Override any GCC internal prototype to avoid an error.
13099     Use char because int might match the return type of a GCC
13100     builtin and then its argument prototype would still apply. */
13101     #ifdef __cplusplus
13102     extern "C"
13103     #endif
13104     char inet_ntoa ();
13105     int
13106     main ()
13107     {
13108     return inet_ntoa ();
13109     ;
13110     return 0;
13111     }
13112     _ACEOF
13113     for ac_lib in '' nsl; do
13114     if test -z "$ac_lib"; then
13115     ac_res="none required"
13116     else
13117     ac_res=-l$ac_lib
13118     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13119     fi
13120     if ac_fn_c_try_link "$LINENO"; then :
13121     ac_cv_search_inet_ntoa=$ac_res
13122     fi
13123     rm -f core conftest.err conftest.$ac_objext \
13124     conftest$ac_exeext
13125 michael 1106 if ${ac_cv_search_inet_ntoa+:} false; then :
13126 michael 1105 break
13127     fi
13128     done
13129 michael 1106 if ${ac_cv_search_inet_ntoa+:} false; then :
13130 michael 1105
13131     else
13132     ac_cv_search_inet_ntoa=no
13133     fi
13134     rm conftest.$ac_ext
13135     LIBS=$ac_func_search_save_LIBS
13136     fi
13137     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
13138     $as_echo "$ac_cv_search_inet_ntoa" >&6; }
13139     ac_res=$ac_cv_search_inet_ntoa
13140     if test "$ac_res" != no; then :
13141     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13142    
13143     fi
13144    
13145     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
13146     $as_echo_n "checking for library containing inet_aton... " >&6; }
13147 michael 1106 if ${ac_cv_search_inet_aton+:} false; then :
13148 michael 1105 $as_echo_n "(cached) " >&6
13149     else
13150     ac_func_search_save_LIBS=$LIBS
13151     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13152     /* end confdefs.h. */
13153    
13154     /* Override any GCC internal prototype to avoid an error.
13155     Use char because int might match the return type of a GCC
13156     builtin and then its argument prototype would still apply. */
13157     #ifdef __cplusplus
13158     extern "C"
13159     #endif
13160     char inet_aton ();
13161     int
13162     main ()
13163     {
13164     return inet_aton ();
13165     ;
13166     return 0;
13167     }
13168     _ACEOF
13169     for ac_lib in '' resolv; do
13170     if test -z "$ac_lib"; then
13171     ac_res="none required"
13172     else
13173     ac_res=-l$ac_lib
13174     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13175     fi
13176     if ac_fn_c_try_link "$LINENO"; then :
13177     ac_cv_search_inet_aton=$ac_res
13178     fi
13179     rm -f core conftest.err conftest.$ac_objext \
13180     conftest$ac_exeext
13181 michael 1106 if ${ac_cv_search_inet_aton+:} false; then :
13182 michael 1105 break
13183     fi
13184     done
13185 michael 1106 if ${ac_cv_search_inet_aton+:} false; then :
13186 michael 1105
13187     else
13188     ac_cv_search_inet_aton=no
13189     fi
13190     rm conftest.$ac_ext
13191     LIBS=$ac_func_search_save_LIBS
13192     fi
13193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
13194     $as_echo "$ac_cv_search_inet_aton" >&6; }
13195     ac_res=$ac_cv_search_inet_aton
13196     if test "$ac_res" != no; then :
13197     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13198    
13199     fi
13200    
13201 michael 967 for ac_func in inet_aton inet_ntop inet_pton
13202     do :
13203     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13204     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13205 michael 1095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13206 michael 912 cat >>confdefs.h <<_ACEOF
13207 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13208 michael 912 _ACEOF
13209    
13210     fi
13211     done
13212    
13213 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
13214 db 941 #include <sys/socket.h>
13215     #include <netdb.h>
13216    
13217 michael 967 "
13218 michael 1106 if test "x$ac_cv_type_struct_sockaddr_in" = xyes; then :
13219 db 941
13220 michael 912 cat >>confdefs.h <<_ACEOF
13221     #define HAVE_STRUCT_SOCKADDR_IN 1
13222     _ACEOF
13223    
13224    
13225     fi
13226 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
13227 db 941 #include <sys/socket.h>
13228     #include <netdb.h>
13229    
13230 michael 967 "
13231 michael 1106 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
13232 db 941
13233 michael 912 cat >>confdefs.h <<_ACEOF
13234     #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13235     _ACEOF
13236    
13237    
13238     fi
13239 michael 967 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
13240 db 941 #include <sys/socket.h>
13241     #include <netdb.h>
13242    
13243 michael 967 "
13244 michael 1106 if test "x$ac_cv_type_struct_addrinfo" = xyes; then :
13245 db 941
13246 michael 912 cat >>confdefs.h <<_ACEOF
13247     #define HAVE_STRUCT_ADDRINFO 1
13248     _ACEOF
13249    
13250    
13251     fi
13252    
13253 michael 967 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "#include <sys/types.h>
13254 db 941 <sys/socket.h>
13255 michael 967 "
13256 michael 1106 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
13257 michael 912
13258     cat >>confdefs.h <<_ACEOF
13259     #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
13260     _ACEOF
13261    
13262    
13263     fi
13264    
13265    
13266    
13267 michael 1123 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "#include <netinet/in.h>
13268     "
13269 michael 1106 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes; then :
13270 michael 912
13271 michael 967 $as_echo "#define IPV6 1" >>confdefs.h
13272 michael 912
13273     fi
13274    
13275    
13276    
13277     # Checks for typedefs, structures, and compiler characteristics.
13278 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
13279 db 941 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
13280 michael 1106 if ${ac_cv_c_bigendian+:} false; then :
13281 db 941 $as_echo_n "(cached) " >&6
13282 michael 912 else
13283 db 941 ac_cv_c_bigendian=unknown
13284 michael 942 # See if we're dealing with a universal compiler.
13285 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13286 michael 912 /* end confdefs.h. */
13287 michael 942 #ifndef __APPLE_CC__
13288     not a universal capable compiler
13289 db 941 #endif
13290     typedef int dummy;
13291    
13292     _ACEOF
13293 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13294 michael 942
13295     # Check for potential -arch flags. It is not universal unless
13296 michael 967 # there are at least two -arch flags with different values.
13297     ac_arch=
13298     ac_prev=
13299     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
13300     if test -n "$ac_prev"; then
13301     case $ac_word in
13302     i?86 | x86_64 | ppc | ppc64)
13303     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
13304     ac_arch=$ac_word
13305     else
13306     ac_cv_c_bigendian=universal
13307     break
13308     fi
13309     ;;
13310     esac
13311     ac_prev=
13312     elif test "x$ac_word" = "x-arch"; then
13313     ac_prev=arch
13314     fi
13315     done
13316 db 941 fi
13317     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13318     if test $ac_cv_c_bigendian = unknown; then
13319     # See if sys/param.h defines the BYTE_ORDER macro.
13320 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 db 941 /* end confdefs.h. */
13322 michael 912 #include <sys/types.h>
13323 db 941 #include <sys/param.h>
13324 michael 912
13325     int
13326     main ()
13327     {
13328 db 941 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
13329     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
13330     && LITTLE_ENDIAN)
13331     bogus endian macros
13332     #endif
13333 michael 912
13334     ;
13335     return 0;
13336     }
13337     _ACEOF
13338 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13339 michael 912 # It does; now see whether it defined to BIG_ENDIAN or not.
13340 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13341 michael 912 /* end confdefs.h. */
13342     #include <sys/types.h>
13343 db 941 #include <sys/param.h>
13344 michael 912
13345     int
13346     main ()
13347     {
13348     #if BYTE_ORDER != BIG_ENDIAN
13349 db 941 not big endian
13350     #endif
13351 michael 912
13352     ;
13353     return 0;
13354     }
13355     _ACEOF
13356 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13357 michael 912 ac_cv_c_bigendian=yes
13358     else
13359 michael 967 ac_cv_c_bigendian=no
13360 michael 912 fi
13361     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13362 db 941 fi
13363     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13364     fi
13365     if test $ac_cv_c_bigendian = unknown; then
13366     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
13367 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13368 michael 912 /* end confdefs.h. */
13369 db 941 #include <limits.h>
13370    
13371 michael 912 int
13372     main ()
13373     {
13374 db 941 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
13375     bogus endian macros
13376     #endif
13377    
13378 michael 912 ;
13379     return 0;
13380     }
13381     _ACEOF
13382 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13383 db 941 # It does; now see whether it defined to _BIG_ENDIAN or not.
13384 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13385 michael 912 /* end confdefs.h. */
13386 db 941 #include <limits.h>
13387    
13388 michael 912 int
13389     main ()
13390     {
13391 db 941 #ifndef _BIG_ENDIAN
13392     not big endian
13393     #endif
13394 michael 912
13395     ;
13396     return 0;
13397     }
13398     _ACEOF
13399 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13400 db 941 ac_cv_c_bigendian=yes
13401 michael 912 else
13402 michael 967 ac_cv_c_bigendian=no
13403 michael 912 fi
13404 db 941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 michael 912 fi
13406     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13407 db 941 fi
13408     if test $ac_cv_c_bigendian = unknown; then
13409     # Compile a test program.
13410 michael 967 if test "$cross_compiling" = yes; then :
13411 db 941 # Try to guess by grepping values from an object file.
13412 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 michael 912 /* end confdefs.h. */
13414 db 941 short int ascii_mm[] =
13415     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
13416     short int ascii_ii[] =
13417     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
13418     int use_ascii (int i) {
13419     return ascii_mm[i] + ascii_ii[i];
13420     }
13421     short int ebcdic_ii[] =
13422     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
13423     short int ebcdic_mm[] =
13424     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
13425     int use_ebcdic (int i) {
13426     return ebcdic_mm[i] + ebcdic_ii[i];
13427     }
13428     extern int foo;
13429    
13430 michael 912 int
13431     main ()
13432     {
13433 db 941 return use_ascii (foo) == use_ebcdic (foo);
13434 michael 912 ;
13435     return 0;
13436     }
13437     _ACEOF
13438 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13439 db 941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
13440     ac_cv_c_bigendian=yes
13441     fi
13442     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
13443     if test "$ac_cv_c_bigendian" = unknown; then
13444     ac_cv_c_bigendian=no
13445     else
13446     # finding both strings is unlikely to happen, but who knows?
13447     ac_cv_c_bigendian=unknown
13448     fi
13449     fi
13450 michael 912 fi
13451     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 db 941 else
13453 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 db 941 /* end confdefs.h. */
13455     $ac_includes_default
13456     int
13457     main ()
13458     {
13459    
13460     /* Are we little or big endian? From Harbison&Steele. */
13461     union
13462     {
13463     long int l;
13464     char c[sizeof (long int)];
13465     } u;
13466     u.l = 1;
13467     return u.c[sizeof (long int) - 1] == 1;
13468    
13469     ;
13470     return 0;
13471     }
13472     _ACEOF
13473 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13474 db 941 ac_cv_c_bigendian=no
13475     else
13476 michael 967 ac_cv_c_bigendian=yes
13477 michael 912 fi
13478 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13479     conftest.$ac_objext conftest.beam conftest.$ac_ext
13480 db 941 fi
13481 michael 912
13482 db 941 fi
13483     fi
13484 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
13485 db 941 $as_echo "$ac_cv_c_bigendian" >&6; }
13486     case $ac_cv_c_bigendian in #(
13487     yes)
13488 michael 967 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
13489 db 941 ;; #(
13490     no)
13491     ;; #(
13492     universal)
13493 michael 942
13494 michael 967 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
13495 michael 942
13496     ;; #(
13497 db 941 *)
13498 michael 1095 as_fn_error $? "unknown endianness
13499 michael 967 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
13500 db 941 esac
13501    
13502    
13503 michael 912 # Checks for library functions.
13504    
13505    
13506    
13507 michael 967 for ac_func in $ac_func_list
13508     do :
13509     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13510     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13511 michael 1095 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13512 michael 912 cat >>confdefs.h <<_ACEOF
13513 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13514 michael 912 _ACEOF
13515    
13516     fi
13517     done
13518    
13519    
13520    
13521    
13522    
13523    
13524    
13525    
13526    
13527    
13528 michael 942
13529    
13530    
13531 michael 923 # Checks for header files.
13532 michael 912
13533    
13534    
13535 michael 967 for ac_header in $ac_header_list
13536     do :
13537     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13538     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13539     "
13540 michael 1095 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13541 michael 912 cat >>confdefs.h <<_ACEOF
13542 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13543 michael 912 _ACEOF
13544    
13545     fi
13546    
13547     done
13548    
13549    
13550    
13551    
13552    
13553    
13554    
13555    
13556    
13557    
13558    
13559    
13560    
13561    
13562    
13563    
13564    
13565 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
13566 db 941 $as_echo_n "checking for library containing crypt... " >&6; }
13567 michael 1106 if ${ac_cv_search_crypt+:} false; then :
13568 db 941 $as_echo_n "(cached) " >&6
13569 michael 923 else
13570     ac_func_search_save_LIBS=$LIBS
13571 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13572 michael 923 /* end confdefs.h. */
13573    
13574     /* Override any GCC internal prototype to avoid an error.
13575     Use char because int might match the return type of a GCC
13576     builtin and then its argument prototype would still apply. */
13577     #ifdef __cplusplus
13578     extern "C"
13579     #endif
13580     char crypt ();
13581     int
13582     main ()
13583     {
13584     return crypt ();
13585     ;
13586     return 0;
13587     }
13588     _ACEOF
13589 michael 977 for ac_lib in '' crypt; do
13590 michael 923 if test -z "$ac_lib"; then
13591     ac_res="none required"
13592     else
13593     ac_res=-l$ac_lib
13594     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13595     fi
13596 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13597 michael 923 ac_cv_search_crypt=$ac_res
13598     fi
13599 michael 967 rm -f core conftest.err conftest.$ac_objext \
13600     conftest$ac_exeext
13601 michael 1106 if ${ac_cv_search_crypt+:} false; then :
13602 michael 923 break
13603     fi
13604     done
13605 michael 1106 if ${ac_cv_search_crypt+:} false; then :
13606 michael 967
13607 michael 923 else
13608     ac_cv_search_crypt=no
13609     fi
13610     rm conftest.$ac_ext
13611     LIBS=$ac_func_search_save_LIBS
13612     fi
13613 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
13614 db 941 $as_echo "$ac_cv_search_crypt" >&6; }
13615 michael 923 ac_res=$ac_cv_search_crypt
13616 michael 967 if test "$ac_res" != no; then :
13617 michael 923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13618    
13619     fi
13620    
13621    
13622 michael 1009 # Check whether --enable-libpcre was given.
13623     if test "${enable_libpcre+set}" = set; then :
13624 michael 1349 enableval=$enable_libpcre;
13625 michael 1009 else
13626     ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
13627 michael 1106 if test "x$ac_cv_header_pcre_h" = xyes; then :
13628 michael 1349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pcre_study" >&5
13629     $as_echo_n "checking for library containing pcre_study... " >&6; }
13630     if ${ac_cv_search_pcre_study+:} false; then :
13631 michael 1009 $as_echo_n "(cached) " >&6
13632     else
13633 michael 1349 ac_func_search_save_LIBS=$LIBS
13634 michael 1009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13635     /* end confdefs.h. */
13636    
13637     /* Override any GCC internal prototype to avoid an error.
13638     Use char because int might match the return type of a GCC
13639     builtin and then its argument prototype would still apply. */
13640     #ifdef __cplusplus
13641     extern "C"
13642     #endif
13643     char pcre_study ();
13644     int
13645     main ()
13646     {
13647     return pcre_study ();
13648     ;
13649     return 0;
13650     }
13651     _ACEOF
13652 michael 1349 for ac_lib in '' pcre; do
13653     if test -z "$ac_lib"; then
13654     ac_res="none required"
13655     else
13656     ac_res=-l$ac_lib
13657     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13658     fi
13659     if ac_fn_c_try_link "$LINENO"; then :
13660     ac_cv_search_pcre_study=$ac_res
13661 michael 1009 fi
13662     rm -f core conftest.err conftest.$ac_objext \
13663 michael 1349 conftest$ac_exeext
13664     if ${ac_cv_search_pcre_study+:} false; then :
13665     break
13666 michael 1009 fi
13667 michael 1349 done
13668     if ${ac_cv_search_pcre_study+:} false; then :
13669 michael 1009
13670 michael 1349 else
13671     ac_cv_search_pcre_study=no
13672     fi
13673     rm conftest.$ac_ext
13674     LIBS=$ac_func_search_save_LIBS
13675     fi
13676     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pcre_study" >&5
13677     $as_echo "$ac_cv_search_pcre_study" >&6; }
13678     ac_res=$ac_cv_search_pcre_study
13679     if test "$ac_res" != no; then :
13680     test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13681 michael 1009
13682     $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
13683    
13684     fi
13685    
13686     fi
13687    
13688    
13689     fi
13690    
13691    
13692 michael 912 # Check whether --enable-openssl was given.
13693 michael 967 if test "${enable_openssl+set}" = set; then :
13694 michael 912 enableval=$enable_openssl; cf_enable_openssl=$enableval
13695     else
13696     cf_enable_openssl="auto"
13697     fi
13698    
13699 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
13700 db 941 $as_echo_n "checking for OpenSSL... " >&6; }
13701 michael 912 if test "$cf_enable_openssl" != "no"; then
13702     cf_openssl_basedir=""
13703     if test "$cf_enable_openssl" != "auto" &&
13704     test "$cf_enable_openssl" != "yes"; then
13705     cf_openssl_basedir="${cf_enable_openssl}"
13706     else
13707     for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
13708     /opt /opt/openssl /usr/local/openssl; do
13709     if test -f "${dirs}/include/openssl/opensslv.h"; then
13710     cf_openssl_basedir="${dirs}"
13711     break
13712     fi
13713     done
13714     unset dirs
13715     fi
13716    
13717     if test ! -z "$cf_openssl_basedir"; then
13718     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
13719     CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
13720     LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
13721     else
13722     cf_openssl_basedir=""
13723     fi
13724     else
13725     if test -f "/usr/include/openssl/opensslv.h"; then
13726     cf_openssl_basedir="/usr"
13727     fi
13728     fi
13729    
13730     if test ! -z "$cf_openssl_basedir"; then
13731 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13732 db 941 $as_echo "$cf_openssl_basedir" >&6; }
13733 michael 912 cf_enable_openssl="yes"
13734     else
13735 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13736     $as_echo "not found. Please check your path." >&6; }
13737 michael 912 cf_enable_openssl="no"
13738     fi
13739     unset cf_openssl_basedir
13740     else
13741 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13742 db 941 $as_echo "disabled" >&6; }
13743 michael 912 fi
13744 michael 1015
13745     if test "$cf_enable_openssl" != "no"; then :
13746 michael 1304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.8 or above" >&5
13747     $as_echo_n "checking for OpenSSL 0.9.8 or above... " >&6; }
13748 michael 1015 if test "$cross_compiling" = yes; then :
13749     cf_openssl_version_ok=no
13750     else
13751     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13752     /* end confdefs.h. */
13753    
13754 michael 1106
13755 michael 1015 #include <openssl/opensslv.h>
13756     #include <stdlib.h>
13757     int
13758     main ()
13759     {
13760 michael 1304 exit(!(OPENSSL_VERSION_NUMBER >= 0x00908000));
13761 michael 1015 ;
13762     return 0;
13763     }
13764     _ACEOF
13765     if ac_fn_c_try_run "$LINENO"; then :
13766     cf_openssl_version_ok=yes
13767     else
13768     cf_openssl_version_ok=no
13769     fi
13770     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13771     conftest.$ac_objext conftest.beam conftest.$ac_ext
13772     fi
13773    
13774    
13775     if test "$cf_openssl_version_ok" = "yes"; then :
13776     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13777     $as_echo "found" >&6; }
13778    
13779 michael 1456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
13780     $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
13781     if ${ac_cv_lib_crypto_RSA_free+:} false; then :
13782 michael 1304 $as_echo_n "(cached) " >&6
13783     else
13784     ac_check_lib_save_LIBS=$LIBS
13785 michael 1456 LIBS="-lcrypto $LIBS"
13786 michael 1304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787     /* end confdefs.h. */
13788    
13789     /* Override any GCC internal prototype to avoid an error.
13790     Use char because int might match the return type of a GCC
13791     builtin and then its argument prototype would still apply. */
13792     #ifdef __cplusplus
13793     extern "C"
13794     #endif
13795 michael 1456 char RSA_free ();
13796 michael 1304 int
13797     main ()
13798     {
13799 michael 1456 return RSA_free ();
13800 michael 1304 ;
13801     return 0;
13802     }
13803     _ACEOF
13804     if ac_fn_c_try_link "$LINENO"; then :
13805 michael 1456 ac_cv_lib_crypto_RSA_free=yes
13806 michael 1304 else
13807 michael 1456 ac_cv_lib_crypto_RSA_free=no
13808 michael 1304 fi
13809     rm -f core conftest.err conftest.$ac_objext \
13810     conftest$ac_exeext conftest.$ac_ext
13811     LIBS=$ac_check_lib_save_LIBS
13812     fi
13813 michael 1456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
13814     $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
13815     if test "x$ac_cv_lib_crypto_RSA_free" = xyes; then :
13816 michael 1304 cat >>confdefs.h <<_ACEOF
13817 michael 1456 #define HAVE_LIBCRYPTO 1
13818 michael 1304 _ACEOF
13819    
13820 michael 1456 LIBS="-lcrypto $LIBS"
13821 michael 1304
13822     fi
13823    
13824 michael 1456 if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
13825     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
13826     $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
13827     if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
13828 michael 1015 $as_echo_n "(cached) " >&6
13829     else
13830     ac_check_lib_save_LIBS=$LIBS
13831 michael 1456 LIBS="-lssl $LIBS"
13832 michael 1015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833     /* end confdefs.h. */
13834    
13835     /* Override any GCC internal prototype to avoid an error.
13836     Use char because int might match the return type of a GCC
13837     builtin and then its argument prototype would still apply. */
13838     #ifdef __cplusplus
13839     extern "C"
13840     #endif
13841 michael 1456 char SSL_connect ();
13842 michael 1015 int
13843     main ()
13844     {
13845 michael 1456 return SSL_connect ();
13846 michael 1015 ;
13847     return 0;
13848     }
13849     _ACEOF
13850     if ac_fn_c_try_link "$LINENO"; then :
13851 michael 1456 ac_cv_lib_ssl_SSL_connect=yes
13852 michael 1015 else
13853 michael 1456 ac_cv_lib_ssl_SSL_connect=no
13854 michael 1015 fi
13855     rm -f core conftest.err conftest.$ac_objext \
13856     conftest$ac_exeext conftest.$ac_ext
13857     LIBS=$ac_check_lib_save_LIBS
13858     fi
13859 michael 1456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
13860     $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
13861     if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
13862 michael 1015 cat >>confdefs.h <<_ACEOF
13863 michael 1456 #define HAVE_LIBSSL 1
13864 michael 1015 _ACEOF
13865    
13866 michael 1456 LIBS="-lssl $LIBS"
13867 michael 1015
13868     fi
13869    
13870     fi
13871    
13872     else
13873     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13874     $as_echo "no - OpenSSL support disabled" >&6; }
13875     cf_enable_openssl="no"
13876     fi
13877     fi
13878    
13879 michael 1456 if test "$ac_cv_lib_ssl_SSL_connect" = yes; then
13880 michael 912 ENABLE_SSL_TRUE=
13881     ENABLE_SSL_FALSE='#'
13882     else
13883     ENABLE_SSL_TRUE='#'
13884     ENABLE_SSL_FALSE=
13885     fi
13886    
13887    
13888    
13889 michael 924 # Check whether --enable-assert was given.
13890 michael 967 if test "${enable_assert+set}" = set; then :
13891 michael 924 enableval=$enable_assert; assert=$enableval
13892     else
13893     assert=no
13894     fi
13895    
13896    
13897 michael 1010 if test "$assert" = "no"; then :
13898    
13899 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
13900 michael 925
13901 michael 924 fi
13902    
13903    
13904 michael 925
13905 michael 1358 $as_echo "#define NICKNAMEHISTORYLENGTH 16384" >>confdefs.h
13906 michael 925
13907    
13908 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13909 michael 925
13910    
13911 michael 967 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13912 michael 925
13913    
13914 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13915 michael 925
13916    
13917 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13918 michael 925
13919    
13920 michael 967 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13921 michael 925
13922    
13923 michael 967 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13924 michael 925
13925 michael 998
13926 michael 1521 $as_echo "#define AUTH_HEAP_SIZE 256" >>confdefs.h
13927 michael 998
13928    
13929 michael 1521 $as_echo "#define DNS_HEAP_SIZE 256" >>confdefs.h
13930 michael 998
13931 michael 925
13932 michael 1523
13933 michael 912 # Argument processing.
13934    
13935     desired_iopoll_mechanism="none"
13936     # Check whether --enable-kqueue was given.
13937 michael 967 if test "${enable_kqueue+set}" = set; then :
13938 michael 912 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13939     fi
13940    
13941     # Check whether --enable-epoll was given.
13942 michael 967 if test "${enable_epoll+set}" = set; then :
13943 michael 912 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13944     fi
13945    
13946     # Check whether --enable-devpoll was given.
13947 michael 967 if test "${enable_devpoll+set}" = set; then :
13948 michael 912 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13949     fi
13950    
13951     # Check whether --enable-rtsigio was given.
13952 michael 967 if test "${enable_rtsigio+set}" = set; then :
13953 michael 912 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13954     fi
13955    
13956     # Check whether --enable-poll was given.
13957 michael 967 if test "${enable_poll+set}" = set; then :
13958 michael 912 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13959     fi
13960    
13961     # Check whether --enable-select was given.
13962 michael 967 if test "${enable_select+set}" = set; then :
13963 michael 912 enableval=$enable_select; desired_iopoll_mechanism="select"
13964     fi
13965    
13966 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13967 db 941 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13968 michael 912 iopoll_mechanism_none=0
13969    
13970     cat >>confdefs.h <<_ACEOF
13971     #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13972     _ACEOF
13973    
13974     iopoll_mechanism_kqueue=1
13975    
13976     cat >>confdefs.h <<_ACEOF
13977     #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13978     _ACEOF
13979    
13980 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13981 michael 912 /* end confdefs.h. */
13982     /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13983     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13984     #define kevent innocuous_kevent
13985    
13986     /* System header to define __stub macros and hopefully few prototypes,
13987     which can conflict with char kevent (); below.
13988     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13989     <limits.h> exists even on freestanding compilers. */
13990    
13991     #ifdef __STDC__
13992     # include <limits.h>
13993     #else
13994     # include <assert.h>
13995     #endif
13996    
13997     #undef kevent
13998    
13999     /* Override any GCC internal prototype to avoid an error.
14000     Use char because int might match the return type of a GCC
14001     builtin and then its argument prototype would still apply. */
14002     #ifdef __cplusplus
14003     extern "C"
14004     #endif
14005     char kevent ();
14006     /* The GNU C library defines this for functions which it implements
14007     to always fail with ENOSYS. Some functions are actually named
14008     something starting with __ and the normal name is an alias. */
14009     #if defined __stub_kevent || defined __stub___kevent
14010     choke me
14011     #endif
14012    
14013     int
14014     main ()
14015     {
14016     return kevent ();
14017     ;
14018     return 0;
14019     }
14020     _ACEOF
14021 michael 967 if ac_fn_c_try_link "$LINENO"; then :
14022 michael 912 is_kqueue_mechanism_available="yes"
14023     else
14024 michael 967 is_kqueue_mechanism_available="no"
14025 michael 912 fi
14026 michael 967 rm -f core conftest.err conftest.$ac_objext \
14027     conftest$ac_exeext conftest.$ac_ext
14028 michael 912 iopoll_mechanism_epoll=2
14029    
14030     cat >>confdefs.h <<_ACEOF
14031     #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
14032     _ACEOF
14033    
14034 michael 967 if test "$cross_compiling" = yes; then :
14035     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14036 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14037 michael 1095 as_fn_error $? "cannot run test program while cross compiling
14038     See \`config.log' for more details" "$LINENO" 5; }
14039 michael 912 else
14040 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14041     /* end confdefs.h. */
14042 michael 912
14043     #include <sys/epoll.h>
14044     #include <sys/syscall.h>
14045     #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
14046     #if !defined(__NR_epoll_create)
14047     #if defined(__ia64__)
14048     #define __NR_epoll_create 1243
14049     #elif defined(__x86_64__)
14050     #define __NR_epoll_create 214
14051     #elif defined(__sparc64__) || defined(__sparc__)
14052     #define __NR_epoll_create 193
14053     #elif defined(__s390__) || defined(__m68k__)
14054     #define __NR_epoll_create 249
14055     #elif defined(__ppc64__) || defined(__ppc__)
14056     #define __NR_epoll_create 236
14057     #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
14058     #define __NR_epoll_create 224
14059     #elif defined(__alpha__)
14060     #define __NR_epoll_create 407
14061     #elif defined(__sh64__)
14062     #define __NR_epoll_create 282
14063     #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
14064     #define __NR_epoll_create 254
14065     #else
14066     #error No system call numbers defined for epoll family.
14067     #endif
14068     #endif
14069     _syscall1(int, epoll_create, int, size)
14070     #endif
14071    
14072 michael 1106 int
14073     main ()
14074     {
14075     return epoll_create(256) == -1 ? 1 : 0
14076     ;
14077     return 0;
14078     }
14079 michael 912 _ACEOF
14080 michael 967 if ac_fn_c_try_run "$LINENO"; then :
14081 michael 912 is_epoll_mechanism_available="yes"
14082     else
14083 michael 967 is_epoll_mechanism_available="no"
14084 michael 912 fi
14085 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14086     conftest.$ac_objext conftest.beam conftest.$ac_ext
14087 michael 912 fi
14088    
14089     iopoll_mechanism_devpoll=3
14090    
14091     cat >>confdefs.h <<_ACEOF
14092     #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
14093     _ACEOF
14094    
14095 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14096 michael 912 /* end confdefs.h. */
14097     #include <devpoll.h>
14098     int
14099     main ()
14100     {
14101    
14102     ;
14103     return 0;
14104     }
14105     _ACEOF
14106 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
14107 michael 912 is_devpoll_mechanism_available="yes"
14108     else
14109 michael 967 is_devpoll_mechanism_available="no"
14110 michael 912 fi
14111     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14112     if test "$is_devpoll_mechanism_available" = "yes" ; then
14113    
14114 michael 967 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
14115 michael 912
14116     fi
14117 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14118 michael 912 /* end confdefs.h. */
14119     #include <sys/devpoll.h>
14120     int
14121     main ()
14122     {
14123    
14124     ;
14125     return 0;
14126     }
14127     _ACEOF
14128 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
14129 michael 912 is_devpoll_mechanism_available="yes"
14130     else
14131 michael 967 is_devpoll_mechanism_available="no"
14132 michael 912 fi
14133     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14134     if test "$is_devpoll_mechanism_available" = "yes" ; then
14135    
14136 michael 967 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
14137 michael 912
14138     fi
14139     iopoll_mechanism_rtsigio=4
14140    
14141     cat >>confdefs.h <<_ACEOF
14142     #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
14143     _ACEOF
14144    
14145 michael 967 if test "$cross_compiling" = yes; then :
14146     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14147 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14148 michael 1095 as_fn_error $? "cannot run test program while cross compiling
14149     See \`config.log' for more details" "$LINENO" 5; }
14150 michael 912 else
14151 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14152 michael 912 /* end confdefs.h. */
14153    
14154 michael 1106 #define _GNU_SOURCE
14155 michael 912 #include <fcntl.h>
14156 michael 1106 static unsigned int have_f_setsig = 0;
14157 michael 912
14158     int
14159     main ()
14160     {
14161    
14162 michael 1106 #ifdef F_SETSIG
14163     have_f_setsig = 1;
14164     #endif
14165     return have_f_setsig == 0;
14166    
14167 michael 912 ;
14168     return 0;
14169     }
14170     _ACEOF
14171 michael 967 if ac_fn_c_try_run "$LINENO"; then :
14172 michael 912 is_rtsigio_mechanism_available="yes"
14173     else
14174 michael 967 is_rtsigio_mechanism_available="no"
14175 michael 912 fi
14176 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14177     conftest.$ac_objext conftest.beam conftest.$ac_ext
14178 michael 912 fi
14179    
14180     iopoll_mechanism_poll=5
14181    
14182     cat >>confdefs.h <<_ACEOF
14183     #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
14184     _ACEOF
14185    
14186 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14187 michael 912 /* end confdefs.h. */
14188     /* Define poll to an innocuous variant, in case <limits.h> declares poll.
14189     For example, HP-UX 11i <limits.h> declares gettimeofday. */
14190     #define poll innocuous_poll
14191    
14192     /* System header to define __stub macros and hopefully few prototypes,
14193     which can conflict with char poll (); below.
14194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14195     <limits.h> exists even on freestanding compilers. */
14196    
14197     #ifdef __STDC__
14198     # include <limits.h>
14199     #else
14200     # include <assert.h>
14201     #endif
14202    
14203     #undef poll
14204    
14205     /* Override any GCC internal prototype to avoid an error.
14206     Use char because int might match the return type of a GCC
14207     builtin and then its argument prototype would still apply. */
14208     #ifdef __cplusplus
14209     extern "C"
14210     #endif
14211     char poll ();
14212     /* The GNU C library defines this for functions which it implements
14213     to always fail with ENOSYS. Some functions are actually named
14214     something starting with __ and the normal name is an alias. */
14215     #if defined __stub_poll || defined __stub___poll
14216     choke me
14217     #endif
14218    
14219     int
14220     main ()
14221     {
14222     return poll ();
14223     ;
14224     return 0;
14225     }
14226     _ACEOF
14227 michael 967 if ac_fn_c_try_link "$LINENO"; then :
14228 michael 912 is_poll_mechanism_available="yes"
14229     else
14230 michael 967 is_poll_mechanism_available="no"
14231 michael 912 fi
14232 michael 967 rm -f core conftest.err conftest.$ac_objext \
14233     conftest$ac_exeext conftest.$ac_ext
14234 michael 912 iopoll_mechanism_select=6
14235    
14236     cat >>confdefs.h <<_ACEOF
14237     #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
14238     _ACEOF
14239    
14240 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14241 michael 912 /* end confdefs.h. */
14242     /* Define select to an innocuous variant, in case <limits.h> declares select.
14243     For example, HP-UX 11i <limits.h> declares gettimeofday. */
14244     #define select innocuous_select
14245    
14246     /* System header to define __stub macros and hopefully few prototypes,
14247     which can conflict with char select (); below.
14248     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14249     <limits.h> exists even on freestanding compilers. */
14250    
14251     #ifdef __STDC__
14252     # include <limits.h>
14253     #else
14254     # include <assert.h>
14255     #endif
14256    
14257     #undef select
14258    
14259     /* Override any GCC internal prototype to avoid an error.
14260     Use char because int might match the return type of a GCC
14261     builtin and then its argument prototype would still apply. */
14262     #ifdef __cplusplus
14263     extern "C"
14264     #endif
14265     char select ();
14266     /* The GNU C library defines this for functions which it implements
14267     to always fail with ENOSYS. Some functions are actually named
14268     something starting with __ and the normal name is an alias. */
14269     #if defined __stub_select || defined __stub___select
14270     choke me
14271     #endif
14272    
14273     int
14274     main ()
14275     {
14276     return select ();
14277     ;
14278     return 0;
14279     }
14280     _ACEOF
14281 michael 967 if ac_fn_c_try_link "$LINENO"; then :
14282 michael 912 is_select_mechanism_available="yes"
14283     else
14284 michael 967 is_select_mechanism_available="no"
14285 michael 912 fi
14286 michael 967 rm -f core conftest.err conftest.$ac_objext \
14287     conftest$ac_exeext conftest.$ac_ext
14288 michael 912 optimal_iopoll_mechanism="none"
14289     for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
14290     eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
14291     if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
14292     optimal_iopoll_mechanism="$mechanism"
14293     break
14294     fi
14295     done
14296     if test "$desired_iopoll_mechanism" = "none" ; then
14297     if test "$optimal_iopoll_mechanism" = "none" ; then
14298 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14299 db 941 $as_echo "none" >&6; }
14300 michael 1095 as_fn_error $? "no iopoll mechanism found!" "$LINENO" 5
14301 michael 912 else
14302     selected_iopoll_mechanism=$optimal_iopoll_mechanism
14303 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14304 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
14305 michael 912 fi
14306     else
14307     eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
14308     if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
14309     selected_iopoll_mechanism=$desired_iopoll_mechanism
14310 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
14311 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
14312 michael 912 else
14313 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
14314 db 941 $as_echo "none" >&6; }
14315 michael 1095 as_fn_error $? "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
14316 michael 912 fi
14317     fi
14318     eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
14319    
14320     cat >>confdefs.h <<_ACEOF
14321     #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
14322     _ACEOF
14323    
14324    
14325    
14326    
14327     # Check whether --with-nicklen was given.
14328 michael 967 if test "${with_nicklen+set}" = set; then :
14329 michael 912 withval=$with_nicklen; nicklen="$withval"
14330     else
14331     nicklen="9"
14332     fi
14333    
14334    
14335     cat >>confdefs.h <<_ACEOF
14336 michael 1431 #define NICKLEN ($nicklen)
14337 michael 912 _ACEOF
14338    
14339    
14340    
14341    
14342     # Check whether --with-topiclen was given.
14343 michael 967 if test "${with_topiclen+set}" = set; then :
14344 michael 912 withval=$with_topiclen; topiclen="$withval"
14345     else
14346     topiclen="160"
14347     fi
14348    
14349    
14350     cat >>confdefs.h <<_ACEOF
14351 michael 1015 #define TOPICLEN ($topiclen)
14352 michael 912 _ACEOF
14353    
14354    
14355    
14356     # Check whether --enable-halfops was given.
14357 michael 967 if test "${enable_halfops+set}" = set; then :
14358 michael 912 enableval=$enable_halfops; halfops="$enableval"
14359     else
14360     halfops="no"
14361     fi
14362    
14363     if test "$halfops" = "yes" ; then
14364    
14365 michael 967 $as_echo "#define HALFOPS 1" >>confdefs.h
14366 michael 912
14367     fi
14368    
14369    
14370     # Check whether --enable-debugging was given.
14371 michael 967 if test "${enable_debugging+set}" = set; then :
14372 michael 912 enableval=$enable_debugging; debugging="$enableval"
14373     else
14374     debugging="no"
14375     fi
14376    
14377     if test "$debugging" = "yes" ; then
14378    
14379 michael 967 $as_echo "#define DEBUG 1" >>confdefs.h
14380 michael 912
14381 michael 1017 CFLAGS="-Wall -g -O0"
14382 michael 912 else
14383    
14384 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
14385 michael 912
14386     fi
14387    
14388    
14389     # Check whether --enable-warnings was given.
14390 michael 967 if test "${enable_warnings+set}" = set; then :
14391 michael 912 enableval=$enable_warnings; warnings="$enableval"
14392     else
14393     warnings="no"
14394     fi
14395    
14396     if test "$warnings" = "yes" ; then
14397 michael 1013 CFLAGS="-Wall -Wextra -Wno-unused -Wcast-qual -Wcast-align -Wbad-function-cast -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wundef"
14398 michael 912 fi
14399    
14400    
14401    
14402     prefix_NONE=
14403     exec_prefix_NONE=
14404     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14405     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14406     eval ac_define_dir="\"$prefix\""
14407     eval ac_define_dir="\"$ac_define_dir\""
14408     PREFIX="$ac_define_dir"
14409    
14410    
14411     cat >>confdefs.h <<_ACEOF
14412     #define PREFIX "$ac_define_dir"
14413     _ACEOF
14414    
14415     test "$prefix_NONE" && prefix=NONE
14416     test "$exec_prefix_NONE" && exec_prefix=NONE
14417    
14418    
14419     prefix_NONE=
14420     exec_prefix_NONE=
14421     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14422     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14423     eval ac_define_dir="\"$sysconfdir\""
14424     eval ac_define_dir="\"$ac_define_dir\""
14425     SYSCONFDIR="$ac_define_dir"
14426    
14427    
14428     cat >>confdefs.h <<_ACEOF
14429     #define SYSCONFDIR "$ac_define_dir"
14430     _ACEOF
14431    
14432     test "$prefix_NONE" && prefix=NONE
14433     test "$exec_prefix_NONE" && exec_prefix=NONE
14434    
14435    
14436     prefix_NONE=
14437     exec_prefix_NONE=
14438     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14439     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14440     eval ac_define_dir="\"$libdir\""
14441     eval ac_define_dir="\"$ac_define_dir\""
14442     LIBDIR="$ac_define_dir"
14443    
14444    
14445     cat >>confdefs.h <<_ACEOF
14446     #define LIBDIR "$ac_define_dir"
14447     _ACEOF
14448    
14449     test "$prefix_NONE" && prefix=NONE
14450     test "$exec_prefix_NONE" && exec_prefix=NONE
14451    
14452    
14453     prefix_NONE=
14454     exec_prefix_NONE=
14455     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14456     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14457     eval ac_define_dir="\"$datadir\""
14458     eval ac_define_dir="\"$ac_define_dir\""
14459     DATADIR="$ac_define_dir"
14460    
14461    
14462     cat >>confdefs.h <<_ACEOF
14463     #define DATADIR "$ac_define_dir"
14464     _ACEOF
14465    
14466     test "$prefix_NONE" && prefix=NONE
14467     test "$exec_prefix_NONE" && exec_prefix=NONE
14468    
14469    
14470     prefix_NONE=
14471     exec_prefix_NONE=
14472     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
14473     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
14474     eval ac_define_dir="\"$localstatedir\""
14475     eval ac_define_dir="\"$ac_define_dir\""
14476     LOCALSTATEDIR="$ac_define_dir"
14477    
14478    
14479     cat >>confdefs.h <<_ACEOF
14480     #define LOCALSTATEDIR "$ac_define_dir"
14481     _ACEOF
14482    
14483     test "$prefix_NONE" && prefix=NONE
14484     test "$exec_prefix_NONE" && exec_prefix=NONE
14485    
14486 db 941
14487 michael 1310 ac_config_files="$ac_config_files Makefile contrib/Makefile contrib/help/Makefile src/Makefile libltdl/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
14488 michael 912
14489    
14490     cat >confcache <<\_ACEOF
14491     # This file is a shell script that caches the results of configure
14492     # tests run on this system so they can be shared between configure
14493     # scripts and configure runs, see configure's option --config-cache.
14494     # It is not useful on other systems. If it contains results you don't
14495     # want to keep, you may remove or edit it.
14496     #
14497     # config.status only pays attention to the cache file if you give it
14498     # the --recheck option to rerun configure.
14499     #
14500     # `ac_cv_env_foo' variables (set or unset) will be overridden when
14501     # loading this file, other *unset* `ac_cv_foo' will be assigned the
14502     # following values.
14503    
14504     _ACEOF
14505    
14506     # The following way of writing the cache mishandles newlines in values,
14507     # but we know of no workaround that is simple, portable, and efficient.
14508     # So, we kill variables containing newlines.
14509     # Ultrix sh set writes to stderr and can't be redirected directly,
14510     # and sets the high bit in the cache file unless we assign to the vars.
14511     (
14512     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14513     eval ac_val=\$$ac_var
14514     case $ac_val in #(
14515     *${as_nl}*)
14516     case $ac_var in #(
14517 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14518 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14519 michael 912 esac
14520     case $ac_var in #(
14521     _ | IFS | as_nl) ;; #(
14522 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14523 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
14524 michael 912 esac ;;
14525     esac
14526     done
14527    
14528     (set) 2>&1 |
14529     case $as_nl`(ac_space=' '; set) 2>&1` in #(
14530     *${as_nl}ac_space=\ *)
14531 michael 967 # `set' does not quote correctly, so add quotes: double-quote
14532     # substitution turns \\\\ into \\, and sed turns \\ into \.
14533 michael 912 sed -n \
14534     "s/'/'\\\\''/g;
14535     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14536     ;; #(
14537     *)
14538     # `set' quotes correctly as required by POSIX, so do not add quotes.
14539     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14540     ;;
14541     esac |
14542     sort
14543     ) |
14544     sed '
14545     /^ac_cv_env_/b end
14546     t clear
14547     :clear
14548     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14549     t end
14550     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14551     :end' >>confcache
14552     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14553     if test -w "$cache_file"; then
14554 michael 1106 if test "x$cache_file" != "x/dev/null"; then
14555 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14556 db 941 $as_echo "$as_me: updating cache $cache_file" >&6;}
14557 michael 1106 if test ! -f "$cache_file" || test -h "$cache_file"; then
14558     cat confcache >"$cache_file"
14559     else
14560     case $cache_file in #(
14561     */* | ?:*)
14562     mv -f confcache "$cache_file"$$ &&
14563     mv -f "$cache_file"$$ "$cache_file" ;; #(
14564     *)
14565     mv -f confcache "$cache_file" ;;
14566     esac
14567     fi
14568     fi
14569 michael 912 else
14570 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14571 db 941 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14572 michael 912 fi
14573     fi
14574     rm -f confcache
14575    
14576     test "x$prefix" = xNONE && prefix=$ac_default_prefix
14577     # Let make expand exec_prefix.
14578     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14579    
14580     DEFS=-DHAVE_CONFIG_H
14581    
14582     ac_libobjs=
14583     ac_ltlibobjs=
14584 michael 1095 U=
14585 michael 912 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14586     # 1. Remove the extension, and $U if already installed.
14587     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14588 db 941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14589 michael 912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14590     # will be set to the directory where LIBOBJS objects are built.
14591 michael 967 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14592     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14593 michael 912 done
14594     LIBOBJS=$ac_libobjs
14595    
14596     LTLIBOBJS=$ac_ltlibobjs
14597    
14598    
14599 michael 1373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14600     $as_echo_n "checking that generated files are newer than configure... " >&6; }
14601     if test -n "$am_sleep_pid"; then
14602     # Hide warnings about reused PIDs.
14603     wait $am_sleep_pid 2>/dev/null
14604     fi
14605     { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14606     $as_echo "done" >&6; }
14607 michael 945 if test -n "$EXEEXT"; then
14608     am__EXEEXT_TRUE=
14609     am__EXEEXT_FALSE='#'
14610     else
14611     am__EXEEXT_TRUE='#'
14612     am__EXEEXT_FALSE=
14613     fi
14614    
14615 michael 912 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14616 michael 1095 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14617 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14618 michael 912 fi
14619     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14620 michael 1095 as_fn_error $? "conditional \"AMDEP\" was never defined.
14621 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14622 michael 912 fi
14623     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14624 michael 1095 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14625 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14626 michael 912 fi
14627 michael 945 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
14628 michael 1095 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
14629 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14630 michael 912 fi
14631 michael 945 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
14632 michael 1095 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
14633 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14634 michael 945 fi
14635     LT_CONFIG_H=config.h
14636 michael 942
14637 michael 945 _ltdl_libobjs=
14638     _ltdl_ltlibobjs=
14639     if test -n "$_LT_LIBOBJS"; then
14640     # Remove the extension.
14641     _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
14642     for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
14643     _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
14644     _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
14645     done
14646     fi
14647     ltdl_LIBOBJS=$_ltdl_libobjs
14648    
14649     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
14650    
14651    
14652    
14653 michael 912 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
14654 michael 1095 as_fn_error $? "conditional \"ENABLE_SSL\" was never defined.
14655 michael 967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14656 michael 912 fi
14657    
14658 michael 1106 : "${CONFIG_STATUS=./config.status}"
14659 db 941 ac_write_fail=0
14660 michael 912 ac_clean_files_save=$ac_clean_files
14661     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14662 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14663 db 941 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14664 michael 967 as_write_fail=0
14665     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14666 michael 912 #! $SHELL
14667     # Generated by $as_me.
14668     # Run this file to recreate the current configuration.
14669     # Compiler output produced by configure, useful for debugging
14670     # configure, is in config.log if it exists.
14671    
14672     debug=false
14673     ac_cs_recheck=false
14674     ac_cs_silent=false
14675 michael 967
14676 michael 912 SHELL=\${CONFIG_SHELL-$SHELL}
14677 michael 967 export SHELL
14678     _ASEOF
14679     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14680     ## -------------------- ##
14681     ## M4sh Initialization. ##
14682     ## -------------------- ##
14683 michael 912
14684     # Be more Bourne compatible
14685     DUALCASE=1; export DUALCASE # for MKS sh
14686 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14687 michael 912 emulate sh
14688     NULLCMD=:
14689 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14690 michael 912 # is contrary to our usage. Disable this feature.
14691     alias -g '${1+"$@"}'='"$@"'
14692     setopt NO_GLOB_SUBST
14693     else
14694 michael 967 case `(set -o) 2>/dev/null` in #(
14695     *posix*) :
14696     set -o posix ;; #(
14697     *) :
14698     ;;
14699 michael 912 esac
14700     fi
14701    
14702    
14703 db 941 as_nl='
14704     '
14705     export as_nl
14706     # Printing a long string crashes Solaris 7 /usr/bin/printf.
14707     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14708     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14709     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14710 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
14711     # but without wasting forks for bash or zsh.
14712     if test -z "$BASH_VERSION$ZSH_VERSION" \
14713     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14714     as_echo='print -r --'
14715     as_echo_n='print -rn --'
14716     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14717 db 941 as_echo='printf %s\n'
14718     as_echo_n='printf %s'
14719     else
14720     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14721     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14722     as_echo_n='/usr/ucb/echo -n'
14723 michael 912 else
14724 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14725     as_echo_n_body='eval
14726     arg=$1;
14727 michael 967 case $arg in #(
14728 db 941 *"$as_nl"*)
14729     expr "X$arg" : "X\\(.*\\)$as_nl";
14730     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14731     esac;
14732     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14733     '
14734     export as_echo_n_body
14735     as_echo_n='sh -c $as_echo_n_body as_echo'
14736 michael 912 fi
14737 db 941 export as_echo_body
14738     as_echo='sh -c $as_echo_body as_echo'
14739 michael 912 fi
14740    
14741 db 941 # The user is always right.
14742     if test "${PATH_SEPARATOR+set}" != set; then
14743     PATH_SEPARATOR=:
14744     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14745     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14746     PATH_SEPARATOR=';'
14747     }
14748     fi
14749    
14750 michael 912
14751     # IFS
14752     # We need space, tab and new line, in precisely that order. Quoting is
14753     # there to prevent editors from complaining about space-tab.
14754     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14755     # splitting by setting IFS to empty value.)
14756     IFS=" "" $as_nl"
14757    
14758     # Find who we are. Look in the path if we contain no directory separator.
14759 michael 1106 as_myself=
14760 michael 967 case $0 in #((
14761 michael 912 *[\\/]* ) as_myself=$0 ;;
14762     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14763     for as_dir in $PATH
14764     do
14765     IFS=$as_save_IFS
14766     test -z "$as_dir" && as_dir=.
14767 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14768     done
14769 michael 912 IFS=$as_save_IFS
14770    
14771     ;;
14772     esac
14773     # We did not find ourselves, most probably we were run as `sh COMMAND'
14774     # in which case we are not to be found in the path.
14775     if test "x$as_myself" = x; then
14776     as_myself=$0
14777     fi
14778     if test ! -f "$as_myself"; then
14779 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14780 michael 967 exit 1
14781 michael 912 fi
14782    
14783 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
14784     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14785     # suppresses any "Segmentation fault" message there. '((' could
14786     # trigger a bug in pdksh 5.2.14.
14787     for as_var in BASH_ENV ENV MAIL MAILPATH
14788     do eval test x\${$as_var+set} = xset \
14789     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14790 michael 912 done
14791     PS1='$ '
14792     PS2='> '
14793     PS4='+ '
14794    
14795     # NLS nuisances.
14796 db 941 LC_ALL=C
14797     export LC_ALL
14798     LANGUAGE=C
14799     export LANGUAGE
14800 michael 912
14801 michael 967 # CDPATH.
14802     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14803    
14804    
14805 michael 1095 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14806     # ----------------------------------------
14807 michael 967 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14808     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14809 michael 1095 # script with STATUS, using 1 if that was 0.
14810 michael 967 as_fn_error ()
14811     {
14812 michael 1095 as_status=$1; test $as_status -eq 0 && as_status=1
14813     if test "$4"; then
14814     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14815     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14816 michael 967 fi
14817 michael 1095 $as_echo "$as_me: error: $2" >&2
14818 michael 967 as_fn_exit $as_status
14819     } # as_fn_error
14820    
14821    
14822     # as_fn_set_status STATUS
14823     # -----------------------
14824     # Set $? to STATUS, without forking.
14825     as_fn_set_status ()
14826     {
14827     return $1
14828     } # as_fn_set_status
14829    
14830     # as_fn_exit STATUS
14831     # -----------------
14832     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14833     as_fn_exit ()
14834     {
14835     set +e
14836     as_fn_set_status $1
14837     exit $1
14838     } # as_fn_exit
14839    
14840     # as_fn_unset VAR
14841     # ---------------
14842     # Portably unset VAR.
14843     as_fn_unset ()
14844     {
14845     { eval $1=; unset $1;}
14846     }
14847     as_unset=as_fn_unset
14848     # as_fn_append VAR VALUE
14849     # ----------------------
14850     # Append the text in VALUE to the end of the definition contained in VAR. Take
14851     # advantage of any shell optimizations that allow amortized linear growth over
14852     # repeated appends, instead of the typical quadratic growth present in naive
14853     # implementations.
14854     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14855     eval 'as_fn_append ()
14856     {
14857     eval $1+=\$2
14858     }'
14859     else
14860     as_fn_append ()
14861     {
14862     eval $1=\$$1\$2
14863     }
14864     fi # as_fn_append
14865    
14866     # as_fn_arith ARG...
14867     # ------------------
14868     # Perform arithmetic evaluation on the ARGs, and store the result in the
14869     # global $as_val. Take advantage of shells that can avoid forks. The arguments
14870     # must be portable across $(()) and expr.
14871     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14872     eval 'as_fn_arith ()
14873     {
14874     as_val=$(( $* ))
14875     }'
14876     else
14877     as_fn_arith ()
14878     {
14879     as_val=`expr "$@" || test $? -eq 1`
14880     }
14881     fi # as_fn_arith
14882    
14883    
14884 michael 912 if expr a : '\(a\)' >/dev/null 2>&1 &&
14885     test "X`expr 00001 : '.*\(...\)'`" = X001; then
14886     as_expr=expr
14887     else
14888     as_expr=false
14889     fi
14890    
14891     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14892     as_basename=basename
14893     else
14894     as_basename=false
14895     fi
14896    
14897 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14898     as_dirname=dirname
14899     else
14900     as_dirname=false
14901     fi
14902 michael 912
14903     as_me=`$as_basename -- "$0" ||
14904     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14905     X"$0" : 'X\(//\)$' \| \
14906     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14907 db 941 $as_echo X/"$0" |
14908 michael 912 sed '/^.*\/\([^/][^/]*\)\/*$/{
14909     s//\1/
14910     q
14911     }
14912     /^X\/\(\/\/\)$/{
14913     s//\1/
14914     q
14915     }
14916     /^X\/\(\/\).*/{
14917     s//\1/
14918     q
14919     }
14920     s/.*/./; q'`
14921    
14922 michael 967 # Avoid depending upon Character Ranges.
14923     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14924     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14925     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14926     as_cr_digits='0123456789'
14927     as_cr_alnum=$as_cr_Letters$as_cr_digits
14928 michael 912
14929     ECHO_C= ECHO_N= ECHO_T=
14930 michael 967 case `echo -n x` in #(((((
14931 michael 912 -n*)
14932 michael 967 case `echo 'xy\c'` in
14933 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14934 michael 967 xy) ECHO_C='\c';;
14935     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14936     ECHO_T=' ';;
14937 michael 912 esac;;
14938     *)
14939     ECHO_N='-n';;
14940     esac
14941    
14942     rm -f conf$$ conf$$.exe conf$$.file
14943     if test -d conf$$.dir; then
14944     rm -f conf$$.dir/conf$$.file
14945     else
14946     rm -f conf$$.dir
14947 db 941 mkdir conf$$.dir 2>/dev/null
14948 michael 912 fi
14949 db 941 if (echo >conf$$.file) 2>/dev/null; then
14950     if ln -s conf$$.file conf$$ 2>/dev/null; then
14951     as_ln_s='ln -s'
14952     # ... but there are two gotchas:
14953     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14954     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14955 michael 1373 # In both cases, we have to default to `cp -pR'.
14956 db 941 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14957 michael 1373 as_ln_s='cp -pR'
14958 db 941 elif ln conf$$.file conf$$ 2>/dev/null; then
14959     as_ln_s=ln
14960     else
14961 michael 1373 as_ln_s='cp -pR'
14962 db 941 fi
14963 michael 912 else
14964 michael 1373 as_ln_s='cp -pR'
14965 michael 912 fi
14966     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14967     rmdir conf$$.dir 2>/dev/null
14968    
14969 michael 967
14970     # as_fn_mkdir_p
14971     # -------------
14972     # Create "$as_dir" as a directory, including parents if necessary.
14973     as_fn_mkdir_p ()
14974     {
14975    
14976     case $as_dir in #(
14977     -*) as_dir=./$as_dir;;
14978     esac
14979     test -d "$as_dir" || eval $as_mkdir_p || {
14980     as_dirs=
14981     while :; do
14982     case $as_dir in #(
14983     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14984     *) as_qdir=$as_dir;;
14985     esac
14986     as_dirs="'$as_qdir' $as_dirs"
14987     as_dir=`$as_dirname -- "$as_dir" ||
14988     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14989     X"$as_dir" : 'X\(//\)[^/]' \| \
14990     X"$as_dir" : 'X\(//\)$' \| \
14991     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14992     $as_echo X"$as_dir" |
14993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14994     s//\1/
14995     q
14996     }
14997     /^X\(\/\/\)[^/].*/{
14998     s//\1/
14999     q
15000     }
15001     /^X\(\/\/\)$/{
15002     s//\1/
15003     q
15004     }
15005     /^X\(\/\).*/{
15006     s//\1/
15007     q
15008     }
15009     s/.*/./; q'`
15010     test -d "$as_dir" && break
15011     done
15012     test -z "$as_dirs" || eval "mkdir $as_dirs"
15013 michael 1095 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15014 michael 967
15015    
15016     } # as_fn_mkdir_p
15017 michael 912 if mkdir -p . 2>/dev/null; then
15018 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
15019 michael 912 else
15020     test -d ./-p && rmdir ./-p
15021     as_mkdir_p=false
15022     fi
15023    
15024    
15025 michael 1373 # as_fn_executable_p FILE
15026     # -----------------------
15027     # Test if FILE is an executable regular file.
15028     as_fn_executable_p ()
15029     {
15030     test -f "$1" && test -x "$1"
15031     } # as_fn_executable_p
15032     as_test_x='test -x'
15033     as_executable_p=as_fn_executable_p
15034    
15035 michael 912 # Sed expression to map a string onto a valid CPP name.
15036     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15037    
15038     # Sed expression to map a string onto a valid variable name.
15039     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15040    
15041    
15042     exec 6>&1
15043 michael 967 ## ----------------------------------- ##
15044     ## Main body of $CONFIG_STATUS script. ##
15045     ## ----------------------------------- ##
15046     _ASEOF
15047     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15048 michael 912
15049 michael 967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15050     # Save the log message, to keep $0 and so on meaningful, and to
15051 michael 912 # report actual input values of CONFIG_FILES etc. instead of their
15052     # values after options handling.
15053     ac_log="
15054 michael 1521 This file was extended by ircd-hybrid $as_me 8.0.0rc1, which was
15055 michael 1373 generated by GNU Autoconf 2.69. Invocation command line was
15056 michael 912
15057     CONFIG_FILES = $CONFIG_FILES
15058     CONFIG_HEADERS = $CONFIG_HEADERS
15059     CONFIG_LINKS = $CONFIG_LINKS
15060     CONFIG_COMMANDS = $CONFIG_COMMANDS
15061     $ $0 $@
15062    
15063     on `(hostname || uname -n) 2>/dev/null | sed 1q`
15064     "
15065    
15066     _ACEOF
15067    
15068 michael 942 case $ac_config_files in *"
15069     "*) set x $ac_config_files; shift; ac_config_files=$*;;
15070     esac
15071    
15072     case $ac_config_headers in *"
15073     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15074     esac
15075    
15076    
15077 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15078 michael 912 # Files that config.status was made for.
15079 michael 967 config_files="$ac_config_files"
15080     config_headers="$ac_config_headers"
15081     config_commands="$ac_config_commands"
15082 michael 912
15083     _ACEOF
15084    
15085 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15086 michael 912 ac_cs_usage="\
15087 michael 967 \`$as_me' instantiates files and other configuration actions
15088     from templates according to the current configuration. Unless the files
15089     and actions are specified as TAGs, all are instantiated by default.
15090 michael 912
15091 michael 967 Usage: $0 [OPTION]... [TAG]...
15092 michael 912
15093     -h, --help print this help, then exit
15094     -V, --version print version number and configuration settings, then exit
15095 michael 1033 --config print configuration, then exit
15096 michael 942 -q, --quiet, --silent
15097     do not print progress messages
15098 michael 912 -d, --debug don't remove temporary files
15099     --recheck update $as_me by reconfiguring in the same conditions
15100 michael 942 --file=FILE[:TEMPLATE]
15101 db 941 instantiate the configuration file FILE
15102 michael 942 --header=FILE[:TEMPLATE]
15103 db 941 instantiate the configuration header FILE
15104 michael 912
15105     Configuration files:
15106     $config_files
15107    
15108     Configuration headers:
15109     $config_headers
15110    
15111     Configuration commands:
15112     $config_commands
15113    
15114 michael 1039 Report bugs to <bugs@ircd-hybrid.org>."
15115 michael 912
15116     _ACEOF
15117 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15118 michael 1033 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15119 michael 912 ac_cs_version="\\
15120 michael 1521 ircd-hybrid config.status 8.0.0rc1
15121 michael 1373 configured by $0, generated by GNU Autoconf 2.69,
15122 michael 1033 with options \\"\$ac_cs_config\\"
15123 michael 912
15124 michael 1373 Copyright (C) 2012 Free Software Foundation, Inc.
15125 michael 912 This config.status script is free software; the Free Software Foundation
15126     gives unlimited permission to copy, distribute and modify it."
15127    
15128     ac_pwd='$ac_pwd'
15129     srcdir='$srcdir'
15130     INSTALL='$INSTALL'
15131     MKDIR_P='$MKDIR_P'
15132 db 941 AWK='$AWK'
15133     test -n "\$AWK" || AWK=awk
15134 michael 912 _ACEOF
15135    
15136 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15137     # The default lists apply if the user does not specify any file.
15138 michael 912 ac_need_defaults=:
15139     while test $# != 0
15140     do
15141     case $1 in
15142 michael 1095 --*=?*)
15143 michael 912 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15144     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15145     ac_shift=:
15146     ;;
15147 michael 1095 --*=)
15148     ac_option=`expr "X$1" : 'X\([^=]*\)='`
15149     ac_optarg=
15150     ac_shift=:
15151     ;;
15152 michael 912 *)
15153     ac_option=$1
15154     ac_optarg=$2
15155     ac_shift=shift
15156     ;;
15157     esac
15158    
15159     case $ac_option in
15160     # Handling of the options.
15161     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15162     ac_cs_recheck=: ;;
15163     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15164 db 941 $as_echo "$ac_cs_version"; exit ;;
15165 michael 1033 --config | --confi | --conf | --con | --co | --c )
15166     $as_echo "$ac_cs_config"; exit ;;
15167 michael 912 --debug | --debu | --deb | --de | --d | -d )
15168     debug=: ;;
15169     --file | --fil | --fi | --f )
15170     $ac_shift
15171 db 941 case $ac_optarg in
15172     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15173 michael 1095 '') as_fn_error $? "missing file argument" ;;
15174 db 941 esac
15175 michael 967 as_fn_append CONFIG_FILES " '$ac_optarg'"
15176 michael 912 ac_need_defaults=false;;
15177     --header | --heade | --head | --hea )
15178     $ac_shift
15179 db 941 case $ac_optarg in
15180     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15181     esac
15182 michael 967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15183 michael 912 ac_need_defaults=false;;
15184     --he | --h)
15185     # Conflict between --help and --header
15186 michael 1095 as_fn_error $? "ambiguous option: \`$1'
15187 michael 967 Try \`$0 --help' for more information.";;
15188 michael 912 --help | --hel | -h )
15189 db 941 $as_echo "$ac_cs_usage"; exit ;;
15190 michael 912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15191     | -silent | --silent | --silen | --sile | --sil | --si | --s)
15192     ac_cs_silent=: ;;
15193    
15194     # This is an error.
15195 michael 1095 -*) as_fn_error $? "unrecognized option: \`$1'
15196 michael 967 Try \`$0 --help' for more information." ;;
15197 michael 912
15198 michael 967 *) as_fn_append ac_config_targets " $1"
15199 michael 912 ac_need_defaults=false ;;
15200    
15201     esac
15202     shift
15203     done
15204    
15205     ac_configure_extra_args=
15206    
15207     if $ac_cs_silent; then
15208     exec 6>/dev/null
15209     ac_configure_extra_args="$ac_configure_extra_args --silent"
15210     fi
15211    
15212     _ACEOF
15213 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15214 michael 912 if \$ac_cs_recheck; then
15215 michael 1373 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15216 db 941 shift
15217     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15218     CONFIG_SHELL='$SHELL'
15219 michael 912 export CONFIG_SHELL
15220 db 941 exec "\$@"
15221 michael 912 fi
15222    
15223     _ACEOF
15224 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15225 michael 912 exec 5>>config.log
15226     {
15227     echo
15228     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15229     ## Running $as_me. ##
15230     _ASBOX
15231 db 941 $as_echo "$ac_log"
15232 michael 912 } >&5
15233    
15234     _ACEOF
15235 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15236 michael 912 #
15237     # INIT-COMMANDS
15238     #
15239     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15240    
15241 michael 945
15242     # The HP-UX ksh and POSIX shell print the target directory to stdout
15243     # if CDPATH is set.
15244     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15245    
15246     sed_quote_subst='$sed_quote_subst'
15247     double_quote_subst='$double_quote_subst'
15248     delay_variable_subst='$delay_variable_subst'
15249 michael 1094 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15250     macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15251     enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15252     enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15253     pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15254     enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15255     SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15256     ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15257 michael 1257 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15258 michael 1094 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15259     host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15260     host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15261     build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15262     build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15263     build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15264     SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15265     Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15266     GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15267     EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15268     FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15269     LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15270     NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15271     LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15272     max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15273     ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15274     exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15275     lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15276     lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15277     lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15278 michael 1106 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15279     lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15280 michael 1094 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15281     reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15282     OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15283     deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15284     file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15285 michael 1106 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15286     want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15287     DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15288     sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15289 michael 1094 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15290     AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15291 michael 1106 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15292 michael 1094 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15293     RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15294     old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15295     old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15296     old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15297     lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15298     CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15299     CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15300     compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15301     GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15302     lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15303     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15304     lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15305     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"`'
15306 michael 1106 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15307     lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15308 michael 1094 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15309     MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15310     lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15311 michael 1106 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15312 michael 1094 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15313     lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15314     lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15315     need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15316 michael 1106 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15317 michael 1094 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15318     NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15319     LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15320     OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15321     OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15322     libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15323     shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15324     extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15325     archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15326     enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15327     export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15328     whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15329     compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15330     old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15331     old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15332     archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15333     archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15334     module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15335     module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15336     with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15337     allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15338     no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15339     hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15340     hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15341     hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15342     hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15343     hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15344     hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15345     hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15346     inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15347     link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15348     always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15349     export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15350     exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15351     include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15352     prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15353 michael 1106 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15354 michael 1094 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15355     variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15356     need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15357     need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15358     version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15359     runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15360     shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15361     shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15362     libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15363     library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15364     soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15365     install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15366     postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15367     postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15368     finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15369     finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15370     hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15371     sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15372     sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15373     hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15374     enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15375     enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15376     enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15377     old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15378     striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15379 michael 945
15380     LTCC='$LTCC'
15381     LTCFLAGS='$LTCFLAGS'
15382     compiler='$compiler_DEFAULT'
15383    
15384 michael 1094 # A function that is used when there is no print builtin or printf.
15385     func_fallback_echo ()
15386     {
15387     eval 'cat <<_LTECHO_EOF
15388     \$1
15389     _LTECHO_EOF'
15390     }
15391    
15392 michael 945 # Quote evaled strings.
15393 michael 1094 for var in SHELL \
15394     ECHO \
15395 michael 1257 PATH_SEPARATOR \
15396 michael 1094 SED \
15397 michael 945 GREP \
15398     EGREP \
15399     FGREP \
15400     LD \
15401     NM \
15402     LN_S \
15403     lt_SP2NL \
15404     lt_NL2SP \
15405     reload_flag \
15406     OBJDUMP \
15407     deplibs_check_method \
15408     file_magic_cmd \
15409 michael 1106 file_magic_glob \
15410     want_nocaseglob \
15411     DLLTOOL \
15412     sharedlib_from_linklib_cmd \
15413 michael 945 AR \
15414     AR_FLAGS \
15415 michael 1106 archiver_list_spec \
15416 michael 945 STRIP \
15417     RANLIB \
15418     CC \
15419     CFLAGS \
15420     compiler \
15421     lt_cv_sys_global_symbol_pipe \
15422     lt_cv_sys_global_symbol_to_cdecl \
15423     lt_cv_sys_global_symbol_to_c_name_address \
15424     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15425 michael 1106 nm_file_list_spec \
15426 michael 945 lt_prog_compiler_no_builtin_flag \
15427 michael 1106 lt_prog_compiler_pic \
15428 michael 945 lt_prog_compiler_wl \
15429     lt_prog_compiler_static \
15430     lt_cv_prog_compiler_c_o \
15431     need_locks \
15432 michael 1106 MANIFEST_TOOL \
15433 michael 945 DSYMUTIL \
15434     NMEDIT \
15435     LIPO \
15436     OTOOL \
15437     OTOOL64 \
15438     shrext_cmds \
15439     export_dynamic_flag_spec \
15440     whole_archive_flag_spec \
15441     compiler_needs_object \
15442     with_gnu_ld \
15443     allow_undefined_flag \
15444     no_undefined_flag \
15445     hardcode_libdir_flag_spec \
15446     hardcode_libdir_separator \
15447     exclude_expsyms \
15448     include_expsyms \
15449     file_list_spec \
15450     variables_saved_for_relink \
15451     libname_spec \
15452     library_names_spec \
15453     soname_spec \
15454 michael 1094 install_override_mode \
15455 michael 945 finish_eval \
15456     old_striplib \
15457     striplib; do
15458 michael 1094 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15459 michael 945 *[\\\\\\\`\\"\\\$]*)
15460 michael 1094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15461 michael 945 ;;
15462     *)
15463     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15464     ;;
15465     esac
15466     done
15467    
15468     # Double-quote double-evaled strings.
15469     for var in reload_cmds \
15470     old_postinstall_cmds \
15471     old_postuninstall_cmds \
15472     old_archive_cmds \
15473     extract_expsyms_cmds \
15474     old_archive_from_new_cmds \
15475     old_archive_from_expsyms_cmds \
15476     archive_cmds \
15477     archive_expsym_cmds \
15478     module_cmds \
15479     module_expsym_cmds \
15480     export_symbols_cmds \
15481     prelink_cmds \
15482 michael 1106 postlink_cmds \
15483 michael 945 postinstall_cmds \
15484     postuninstall_cmds \
15485     finish_cmds \
15486     sys_lib_search_path_spec \
15487     sys_lib_dlsearch_path_spec; do
15488 michael 1094 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15489 michael 945 *[\\\\\\\`\\"\\\$]*)
15490 michael 1094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15491 michael 945 ;;
15492     *)
15493     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15494     ;;
15495     esac
15496     done
15497    
15498     ac_aux_dir='$ac_aux_dir'
15499     xsi_shell='$xsi_shell'
15500     lt_shell_append='$lt_shell_append'
15501    
15502     # See if we are running on zsh, and set the options which allow our
15503     # commands through without removal of \ escapes INIT.
15504     if test -n "\${ZSH_VERSION+set}" ; then
15505     setopt NO_GLOB_SUBST
15506     fi
15507    
15508    
15509     PACKAGE='$PACKAGE'
15510     VERSION='$VERSION'
15511     TIMESTAMP='$TIMESTAMP'
15512     RM='$RM'
15513     ofile='$ofile'
15514    
15515    
15516    
15517    
15518 michael 912 _ACEOF
15519    
15520 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15521 michael 912
15522     # Handling of arguments.
15523     for ac_config_target in $ac_config_targets
15524     do
15525     case $ac_config_target in
15526     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15527     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15528 michael 945 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15529 michael 912 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15530     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
15531     "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
15532     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15533 michael 1092 "libltdl/Makefile") CONFIG_FILES="$CONFIG_FILES libltdl/Makefile" ;;
15534 michael 912 "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
15535     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
15536     "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
15537     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15538     "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
15539     "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
15540     "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
15541 michael 922 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
15542 michael 912
15543 michael 1095 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15544 michael 912 esac
15545     done
15546    
15547    
15548     # If the user did not use the arguments to specify the items to instantiate,
15549     # then the envvar interface is used. Set only those that are not.
15550     # We use the long form for the default assignment because of an extremely
15551     # bizarre bug on SunOS 4.1.3.
15552     if $ac_need_defaults; then
15553     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15554     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15555     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15556     fi
15557    
15558     # Have a temporary directory for convenience. Make it in the build tree
15559     # simply because there is no reason against having it here, and in addition,
15560     # creating and moving files from /tmp can sometimes cause problems.
15561     # Hook for its removal unless debugging.
15562     # Note that there is a small window in which the directory will not be cleaned:
15563     # after its creation but before its name has been assigned to `$tmp'.
15564     $debug ||
15565     {
15566 michael 1106 tmp= ac_tmp=
15567 michael 912 trap 'exit_status=$?
15568 michael 1106 : "${ac_tmp:=$tmp}"
15569     { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15570 michael 912 ' 0
15571 michael 967 trap 'as_fn_exit 1' 1 2 13 15
15572 michael 912 }
15573     # Create a (secure) tmp directory for tmp files.
15574    
15575     {
15576     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15577 michael 1106 test -d "$tmp"
15578 michael 912 } ||
15579     {
15580     tmp=./conf$$-$RANDOM
15581     (umask 077 && mkdir "$tmp")
15582 michael 1095 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15583 michael 1106 ac_tmp=$tmp
15584 michael 912
15585 db 941 # Set up the scripts for CONFIG_FILES section.
15586     # No need to generate them if there are no CONFIG_FILES.
15587     # This happens for instance with `./config.status config.h'.
15588 michael 912 if test -n "$CONFIG_FILES"; then
15589    
15590 db 941
15591 michael 967 ac_cr=`echo X | tr X '\015'`
15592     # On cygwin, bash can eat \r inside `` if the user requested igncr.
15593     # But we know of no other shell where ac_cr would be empty at this
15594     # point, so we can use a bashism as a fallback.
15595     if test "x$ac_cr" = x; then
15596     eval ac_cr=\$\'\\r\'
15597     fi
15598 db 941 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15599     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15600 michael 1095 ac_cs_awk_cr='\\r'
15601 db 941 else
15602     ac_cs_awk_cr=$ac_cr
15603     fi
15604    
15605 michael 1106 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15606 michael 912 _ACEOF
15607    
15608    
15609 db 941 {
15610     echo "cat >conf$$subs.awk <<_ACEOF" &&
15611     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15612     echo "_ACEOF"
15613     } >conf$$subs.sh ||
15614 michael 1095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15615     ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15616 michael 912 ac_delim='%!_!# '
15617     for ac_last_try in false false false false false :; do
15618 db 941 . ./conf$$subs.sh ||
15619 michael 1095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15620 michael 912
15621 michael 942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15622     if test $ac_delim_n = $ac_delim_num; then
15623 michael 912 break
15624     elif $ac_last_try; then
15625 michael 1095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15626 michael 912 else
15627     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15628     fi
15629     done
15630 db 941 rm -f conf$$subs.sh
15631 michael 912
15632 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15633 michael 1106 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15634 michael 912 _ACEOF
15635 db 941 sed -n '
15636     h
15637     s/^/S["/; s/!.*/"]=/
15638     p
15639     g
15640     s/^[^!]*!//
15641     :repl
15642     t repl
15643     s/'"$ac_delim"'$//
15644     t delim
15645     :nl
15646     h
15647 michael 1033 s/\(.\{148\}\)..*/\1/
15648 db 941 t more1
15649     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15650     p
15651     n
15652     b repl
15653     :more1
15654     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15655     p
15656     g
15657     s/.\{148\}//
15658     t nl
15659     :delim
15660     h
15661 michael 1033 s/\(.\{148\}\)..*/\1/
15662 db 941 t more2
15663     s/["\\]/\\&/g; s/^/"/; s/$/"/
15664     p
15665     b
15666     :more2
15667     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15668     p
15669     g
15670     s/.\{148\}//
15671     t delim
15672     ' <conf$$subs.awk | sed '
15673     /^[^""]/{
15674     N
15675     s/\n//
15676     }
15677     ' >>$CONFIG_STATUS || ac_write_fail=1
15678     rm -f conf$$subs.awk
15679     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15680     _ACAWK
15681 michael 1106 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15682 db 941 for (key in S) S_is_set[key] = 1
15683     FS = ""
15684 michael 912
15685 db 941 }
15686     {
15687     line = $ 0
15688     nfields = split(line, field, "@")
15689     substed = 0
15690     len = length(field[1])
15691     for (i = 2; i < nfields; i++) {
15692     key = field[i]
15693     keylen = length(key)
15694     if (S_is_set[key]) {
15695     value = S[key]
15696     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15697     len += length(value) + length(field[++i])
15698     substed = 1
15699     } else
15700     len += 1 + keylen
15701     }
15702 michael 912
15703 db 941 print line
15704     }
15705    
15706     _ACAWK
15707 michael 912 _ACEOF
15708 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15709     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15710     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15711     else
15712     cat
15713 michael 1106 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15714 michael 1095 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15715 michael 912 _ACEOF
15716    
15717 michael 1095 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15718     # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15719 michael 912 # trailing colons and then remove the whole line if VPATH becomes empty
15720     # (actually we leave an empty line to preserve line numbers).
15721     if test "x$srcdir" = x.; then
15722 michael 1095 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15723     h
15724     s///
15725     s/^/:/
15726     s/[ ]*$/:/
15727     s/:\$(srcdir):/:/g
15728     s/:\${srcdir}:/:/g
15729     s/:@srcdir@:/:/g
15730     s/^:*//
15731 michael 912 s/:*$//
15732 michael 1095 x
15733     s/\(=[ ]*\).*/\1/
15734     G
15735     s/\n//
15736 michael 912 s/^[^=]*=[ ]*$//
15737     }'
15738     fi
15739    
15740 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15741 michael 912 fi # test -n "$CONFIG_FILES"
15742    
15743 db 941 # Set up the scripts for CONFIG_HEADERS section.
15744     # No need to generate them if there are no CONFIG_HEADERS.
15745     # This happens for instance with `./config.status Makefile'.
15746     if test -n "$CONFIG_HEADERS"; then
15747 michael 1106 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15748 db 941 BEGIN {
15749     _ACEOF
15750 michael 912
15751 db 941 # Transform confdefs.h into an awk script `defines.awk', embedded as
15752     # here-document in config.status, that substitutes the proper values into
15753     # config.h.in to produce config.h.
15754    
15755     # Create a delimiter string that does not exist in confdefs.h, to ease
15756     # handling of long lines.
15757     ac_delim='%!_!# '
15758     for ac_last_try in false false :; do
15759 michael 1106 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15760     if test -z "$ac_tt"; then
15761 db 941 break
15762     elif $ac_last_try; then
15763 michael 1095 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15764 db 941 else
15765     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15766     fi
15767     done
15768    
15769     # For the awk script, D is an array of macro values keyed by name,
15770     # likewise P contains macro parameters if any. Preserve backslash
15771     # newline sequences.
15772    
15773     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15774     sed -n '
15775     s/.\{148\}/&'"$ac_delim"'/g
15776     t rset
15777     :rset
15778     s/^[ ]*#[ ]*define[ ][ ]*/ /
15779     t def
15780     d
15781     :def
15782     s/\\$//
15783     t bsnl
15784     s/["\\]/\\&/g
15785     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15786     D["\1"]=" \3"/p
15787     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15788     d
15789     :bsnl
15790     s/["\\]/\\&/g
15791     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15792     D["\1"]=" \3\\\\\\n"\\/p
15793     t cont
15794     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15795     t cont
15796     d
15797     :cont
15798     n
15799     s/.\{148\}/&'"$ac_delim"'/g
15800     t clear
15801     :clear
15802     s/\\$//
15803     t bsnlc
15804     s/["\\]/\\&/g; s/^/"/; s/$/"/p
15805     d
15806     :bsnlc
15807     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15808     b cont
15809     ' <confdefs.h | sed '
15810     s/'"$ac_delim"'/"\\\
15811     "/g' >>$CONFIG_STATUS || ac_write_fail=1
15812    
15813     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15814     for (key in D) D_is_set[key] = 1
15815     FS = ""
15816     }
15817     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15818     line = \$ 0
15819     split(line, arg, " ")
15820     if (arg[1] == "#") {
15821     defundef = arg[2]
15822     mac1 = arg[3]
15823     } else {
15824     defundef = substr(arg[1], 2)
15825     mac1 = arg[2]
15826     }
15827     split(mac1, mac2, "(") #)
15828     macro = mac2[1]
15829 michael 942 prefix = substr(line, 1, index(line, defundef) - 1)
15830 db 941 if (D_is_set[macro]) {
15831     # Preserve the white space surrounding the "#".
15832     print prefix "define", macro P[macro] D[macro]
15833     next
15834     } else {
15835     # Replace #undef with comments. This is necessary, for example,
15836     # in the case of _POSIX_SOURCE, which is predefined and required
15837     # on some systems where configure will not decide to define it.
15838     if (defundef == "undef") {
15839 michael 942 print "/*", prefix defundef, macro, "*/"
15840 db 941 next
15841     }
15842     }
15843     }
15844     { print }
15845     _ACAWK
15846     _ACEOF
15847     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15848 michael 1095 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
15849 db 941 fi # test -n "$CONFIG_HEADERS"
15850    
15851    
15852     eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15853     shift
15854     for ac_tag
15855 michael 912 do
15856     case $ac_tag in
15857     :[FHLC]) ac_mode=$ac_tag; continue;;
15858     esac
15859     case $ac_mode$ac_tag in
15860     :[FHL]*:*);;
15861 michael 1095 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
15862 michael 912 :[FH]-) ac_tag=-:-;;
15863     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15864     esac
15865     ac_save_IFS=$IFS
15866     IFS=:
15867     set x $ac_tag
15868     IFS=$ac_save_IFS
15869     shift
15870     ac_file=$1
15871     shift
15872    
15873     case $ac_mode in
15874     :L) ac_source=$1;;
15875     :[FH])
15876     ac_file_inputs=
15877     for ac_f
15878     do
15879     case $ac_f in
15880 michael 1106 -) ac_f="$ac_tmp/stdin";;
15881 michael 912 *) # Look for the file first in the build tree, then in the source tree
15882     # (if the path is not absolute). The absolute path cannot be DOS-style,
15883     # because $ac_f cannot contain `:'.
15884     test -f "$ac_f" ||
15885     case $ac_f in
15886     [\\/$]*) false;;
15887     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15888     esac ||
15889 michael 1095 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15890 michael 912 esac
15891 db 941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15892 michael 967 as_fn_append ac_file_inputs " '$ac_f'"
15893 michael 912 done
15894    
15895     # Let's still pretend it is `configure' which instantiates (i.e., don't
15896     # use $as_me), people would be surprised to read:
15897     # /* config.h. Generated by config.status. */
15898 db 941 configure_input='Generated from '`
15899     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15900     `' by configure.'
15901 michael 912 if test x"$ac_file" != x-; then
15902     configure_input="$ac_file. $configure_input"
15903 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15904 db 941 $as_echo "$as_me: creating $ac_file" >&6;}
15905 michael 912 fi
15906 db 941 # Neutralize special characters interpreted by sed in replacement strings.
15907     case $configure_input in #(
15908     *\&* | *\|* | *\\* )
15909     ac_sed_conf_input=`$as_echo "$configure_input" |
15910     sed 's/[\\\\&|]/\\\\&/g'`;; #(
15911     *) ac_sed_conf_input=$configure_input;;
15912     esac
15913 michael 912
15914     case $ac_tag in
15915 michael 1106 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15916 michael 1095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
15917 michael 912 esac
15918     ;;
15919     esac
15920    
15921     ac_dir=`$as_dirname -- "$ac_file" ||
15922     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15923     X"$ac_file" : 'X\(//\)[^/]' \| \
15924     X"$ac_file" : 'X\(//\)$' \| \
15925     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15926 db 941 $as_echo X"$ac_file" |
15927 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15928     s//\1/
15929     q
15930     }
15931     /^X\(\/\/\)[^/].*/{
15932     s//\1/
15933     q
15934     }
15935     /^X\(\/\/\)$/{
15936     s//\1/
15937     q
15938     }
15939     /^X\(\/\).*/{
15940     s//\1/
15941     q
15942     }
15943     s/.*/./; q'`
15944 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
15945 michael 912 ac_builddir=.
15946    
15947     case "$ac_dir" in
15948     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15949     *)
15950 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15951 michael 912 # A ".." for each directory in $ac_dir_suffix.
15952 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15953 michael 912 case $ac_top_builddir_sub in
15954     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15955     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15956     esac ;;
15957     esac
15958     ac_abs_top_builddir=$ac_pwd
15959     ac_abs_builddir=$ac_pwd$ac_dir_suffix
15960     # for backward compatibility:
15961     ac_top_builddir=$ac_top_build_prefix
15962    
15963     case $srcdir in
15964     .) # We are building in place.
15965     ac_srcdir=.
15966     ac_top_srcdir=$ac_top_builddir_sub
15967     ac_abs_top_srcdir=$ac_pwd ;;
15968     [\\/]* | ?:[\\/]* ) # Absolute name.
15969     ac_srcdir=$srcdir$ac_dir_suffix;
15970     ac_top_srcdir=$srcdir
15971     ac_abs_top_srcdir=$srcdir ;;
15972     *) # Relative name.
15973     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15974     ac_top_srcdir=$ac_top_build_prefix$srcdir
15975     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15976     esac
15977     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15978    
15979    
15980     case $ac_mode in
15981     :F)
15982     #
15983     # CONFIG_FILE
15984     #
15985    
15986     case $INSTALL in
15987     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15988     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15989     esac
15990     ac_MKDIR_P=$MKDIR_P
15991     case $MKDIR_P in
15992     [\\/$]* | ?:[\\/]* ) ;;
15993     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15994     esac
15995     _ACEOF
15996    
15997 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15998 michael 912 # If the template does not know about datarootdir, expand it.
15999     # FIXME: This hack should be removed a few years after 2.60.
16000     ac_datarootdir_hack=; ac_datarootdir_seen=
16001 db 941 ac_sed_dataroot='
16002     /datarootdir/ {
16003 michael 912 p
16004     q
16005     }
16006     /@datadir@/p
16007     /@docdir@/p
16008     /@infodir@/p
16009     /@localedir@/p
16010 michael 967 /@mandir@/p'
16011 db 941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16012 michael 912 *datarootdir*) ac_datarootdir_seen=yes;;
16013     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16014 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16015 db 941 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16016 michael 912 _ACEOF
16017 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16018 michael 912 ac_datarootdir_hack='
16019     s&@datadir@&$datadir&g
16020     s&@docdir@&$docdir&g
16021     s&@infodir@&$infodir&g
16022     s&@localedir@&$localedir&g
16023     s&@mandir@&$mandir&g
16024 michael 967 s&\\\${datarootdir}&$datarootdir&g' ;;
16025 michael 912 esac
16026     _ACEOF
16027    
16028     # Neutralize VPATH when `$srcdir' = `.'.
16029     # Shell code in configure.ac might set extrasub.
16030     # FIXME: do we really want to maintain this feature?
16031 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16032     ac_sed_extra="$ac_vpsub
16033 michael 912 $extrasub
16034     _ACEOF
16035 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16036 michael 912 :t
16037     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16038 db 941 s|@configure_input@|$ac_sed_conf_input|;t t
16039 michael 912 s&@top_builddir@&$ac_top_builddir_sub&;t t
16040 db 941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16041 michael 912 s&@srcdir@&$ac_srcdir&;t t
16042     s&@abs_srcdir@&$ac_abs_srcdir&;t t
16043     s&@top_srcdir@&$ac_top_srcdir&;t t
16044     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16045     s&@builddir@&$ac_builddir&;t t
16046     s&@abs_builddir@&$ac_abs_builddir&;t t
16047     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16048     s&@INSTALL@&$ac_INSTALL&;t t
16049     s&@MKDIR_P@&$ac_MKDIR_P&;t t
16050     $ac_datarootdir_hack
16051 db 941 "
16052 michael 1106 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16053     >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16054 michael 912
16055     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16056 michael 1106 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16057     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16058     "$ac_tmp/out"`; test -z "$ac_out"; } &&
16059 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16060 michael 1095 which seems to be undefined. Please make sure it is defined" >&5
16061 db 941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16062 michael 1095 which seems to be undefined. Please make sure it is defined" >&2;}
16063 michael 912
16064 michael 1106 rm -f "$ac_tmp/stdin"
16065 michael 912 case $ac_file in
16066 michael 1106 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16067     *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16068 db 941 esac \
16069 michael 1095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16070 michael 912 ;;
16071     :H)
16072     #
16073     # CONFIG_HEADER
16074     #
16075     if test x"$ac_file" != x-; then
16076 db 941 {
16077     $as_echo "/* $configure_input */" \
16078 michael 1106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16079     } >"$ac_tmp/config.h" \
16080 michael 1095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16081 michael 1106 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16082 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16083 db 941 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16084 michael 912 else
16085 db 941 rm -f "$ac_file"
16086 michael 1106 mv "$ac_tmp/config.h" "$ac_file" \
16087 michael 1095 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16088 michael 912 fi
16089     else
16090 db 941 $as_echo "/* $configure_input */" \
16091 michael 1106 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16092 michael 1095 || as_fn_error $? "could not create -" "$LINENO" 5
16093 michael 912 fi
16094 db 941 # Compute "$ac_file"'s index in $config_headers.
16095     _am_arg="$ac_file"
16096 michael 912 _am_stamp_count=1
16097     for _am_header in $config_headers :; do
16098     case $_am_header in
16099 db 941 $_am_arg | $_am_arg:* )
16100 michael 912 break ;;
16101     * )
16102     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16103     esac
16104     done
16105 db 941 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16106     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16107     X"$_am_arg" : 'X\(//\)[^/]' \| \
16108     X"$_am_arg" : 'X\(//\)$' \| \
16109     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16110     $as_echo X"$_am_arg" |
16111 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16112     s//\1/
16113     q
16114     }
16115     /^X\(\/\/\)[^/].*/{
16116     s//\1/
16117     q
16118     }
16119     /^X\(\/\/\)$/{
16120     s//\1/
16121     q
16122     }
16123     /^X\(\/\).*/{
16124     s//\1/
16125     q
16126     }
16127     s/.*/./; q'`/stamp-h$_am_stamp_count
16128     ;;
16129    
16130 michael 967 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16131 db 941 $as_echo "$as_me: executing $ac_file commands" >&6;}
16132 michael 912 ;;
16133     esac
16134    
16135    
16136     case $ac_file$ac_mode in
16137 michael 945 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16138     # Autoconf 2.62 quotes --file arguments for eval, but not when files
16139     # are listed without --file. Let's play safe and only enable the eval
16140     # if we detect the quoting.
16141     case $CONFIG_FILES in
16142     *\'*) eval set x "$CONFIG_FILES" ;;
16143     *) set x $CONFIG_FILES ;;
16144     esac
16145     shift
16146     for mf
16147     do
16148     # Strip MF so we end up with the name of the file.
16149     mf=`echo "$mf" | sed -e 's/:.*$//'`
16150     # Check whether this is an Automake generated Makefile or not.
16151 michael 1373 # We used to match only the files named 'Makefile.in', but
16152 michael 945 # some people rename them; so instead we look at the file content.
16153     # Grep'ing the first line is not enough: some people post-process
16154     # each Makefile.in and add a new line on top of each file to say so.
16155     # Grep'ing the whole file is not good either: AIX grep has a line
16156     # limit of 2048, but all sed's we know have understand at least 4000.
16157     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16158     dirpart=`$as_dirname -- "$mf" ||
16159 michael 912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16160     X"$mf" : 'X\(//\)[^/]' \| \
16161     X"$mf" : 'X\(//\)$' \| \
16162     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16163 db 941 $as_echo X"$mf" |
16164 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16165     s//\1/
16166     q
16167     }
16168     /^X\(\/\/\)[^/].*/{
16169     s//\1/
16170     q
16171     }
16172     /^X\(\/\/\)$/{
16173     s//\1/
16174     q
16175     }
16176     /^X\(\/\).*/{
16177     s//\1/
16178     q
16179     }
16180     s/.*/./; q'`
16181 michael 945 else
16182     continue
16183     fi
16184     # Extract the definition of DEPDIR, am__include, and am__quote
16185 michael 1373 # from the Makefile without running 'make'.
16186 michael 945 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16187     test -z "$DEPDIR" && continue
16188     am__include=`sed -n 's/^am__include = //p' < "$mf"`
16189     test -z "am__include" && continue
16190     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16191     # Find all dependency output files, they are included files with
16192     # $(DEPDIR) in their names. We invoke sed twice because it is the
16193     # simplest approach to changing $(DEPDIR) to its actual value in the
16194     # expansion.
16195     for file in `sed -n "
16196     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16197 michael 1373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16198 michael 945 # Make sure the directory exists.
16199     test -f "$dirpart/$file" && continue
16200     fdir=`$as_dirname -- "$file" ||
16201 michael 912 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16202     X"$file" : 'X\(//\)[^/]' \| \
16203     X"$file" : 'X\(//\)$' \| \
16204     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16205 db 941 $as_echo X"$file" |
16206 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16207     s//\1/
16208     q
16209     }
16210     /^X\(\/\/\)[^/].*/{
16211     s//\1/
16212     q
16213     }
16214     /^X\(\/\/\)$/{
16215     s//\1/
16216     q
16217     }
16218     /^X\(\/\).*/{
16219     s//\1/
16220     q
16221     }
16222     s/.*/./; q'`
16223 michael 967 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16224 michael 945 # echo "creating $dirpart/$file"
16225     echo '# dummy' > "$dirpart/$file"
16226     done
16227 michael 912 done
16228 michael 945 }
16229 michael 912 ;;
16230 michael 945 "libtool":C)
16231 michael 912
16232 michael 945 # See if we are running on zsh, and set the options which allow our
16233     # commands through without removal of \ escapes.
16234     if test -n "${ZSH_VERSION+set}" ; then
16235     setopt NO_GLOB_SUBST
16236     fi
16237    
16238     cfgfile="${ofile}T"
16239     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16240     $RM "$cfgfile"
16241    
16242     cat <<_LT_EOF >> "$cfgfile"
16243     #! $SHELL
16244    
16245     # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16246     # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16247     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16248     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16249     #
16250     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16251 michael 1257 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16252     # Foundation, Inc.
16253 michael 945 # Written by Gordon Matzigkeit, 1996
16254     #
16255     # This file is part of GNU Libtool.
16256     #
16257     # GNU Libtool is free software; you can redistribute it and/or
16258     # modify it under the terms of the GNU General Public License as
16259     # published by the Free Software Foundation; either version 2 of
16260     # the License, or (at your option) any later version.
16261     #
16262     # As a special exception to the GNU General Public License,
16263     # if you distribute this file as part of a program or library that
16264     # is built using GNU Libtool, you may include this file under the
16265     # same distribution terms that you use for the rest of that program.
16266     #
16267     # GNU Libtool is distributed in the hope that it will be useful,
16268     # but WITHOUT ANY WARRANTY; without even the implied warranty of
16269     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16270     # GNU General Public License for more details.
16271     #
16272     # You should have received a copy of the GNU General Public License
16273     # along with GNU Libtool; see the file COPYING. If not, a copy
16274     # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16275     # obtained by writing to the Free Software Foundation, Inc.,
16276     # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16277    
16278    
16279     # The names of the tagged configurations supported by this script.
16280     available_tags=""
16281    
16282     # ### BEGIN LIBTOOL CONFIG
16283    
16284     # Which release of libtool.m4 was used?
16285     macro_version=$macro_version
16286     macro_revision=$macro_revision
16287    
16288 michael 977 # Whether or not to build static libraries.
16289     build_old_libs=$enable_static
16290    
16291 michael 945 # Whether or not to build shared libraries.
16292     build_libtool_libs=$enable_shared
16293    
16294     # What type of objects to build.
16295     pic_mode=$pic_mode
16296    
16297     # Whether or not to optimize for fast installation.
16298     fast_install=$enable_fast_install
16299    
16300 michael 1094 # Shell to use when invoking shell scripts.
16301     SHELL=$lt_SHELL
16302    
16303     # An echo program that protects backslashes.
16304     ECHO=$lt_ECHO
16305    
16306 michael 1257 # The PATH separator for the build system.
16307     PATH_SEPARATOR=$lt_PATH_SEPARATOR
16308    
16309 michael 945 # The host system.
16310     host_alias=$host_alias
16311     host=$host
16312     host_os=$host_os
16313    
16314     # The build system.
16315     build_alias=$build_alias
16316     build=$build
16317     build_os=$build_os
16318    
16319     # A sed program that does not truncate output.
16320     SED=$lt_SED
16321    
16322     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16323     Xsed="\$SED -e 1s/^X//"
16324    
16325     # A grep program that handles long lines.
16326     GREP=$lt_GREP
16327    
16328     # An ERE matcher.
16329     EGREP=$lt_EGREP
16330    
16331     # A literal string matcher.
16332     FGREP=$lt_FGREP
16333    
16334     # A BSD- or MS-compatible name lister.
16335     NM=$lt_NM
16336    
16337     # Whether we need soft or hard links.
16338     LN_S=$lt_LN_S
16339    
16340     # What is the maximum length of a command?
16341     max_cmd_len=$max_cmd_len
16342    
16343     # Object file suffix (normally "o").
16344     objext=$ac_objext
16345    
16346     # Executable file suffix (normally "").
16347     exeext=$exeext
16348    
16349     # whether the shell understands "unset".
16350     lt_unset=$lt_unset
16351    
16352     # turn spaces into newlines.
16353     SP2NL=$lt_lt_SP2NL
16354    
16355     # turn newlines into spaces.
16356     NL2SP=$lt_lt_NL2SP
16357    
16358 michael 1106 # convert \$build file names to \$host format.
16359     to_host_file_cmd=$lt_cv_to_host_file_cmd
16360    
16361     # convert \$build files to toolchain format.
16362     to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16363    
16364 michael 945 # An object symbol dumper.
16365     OBJDUMP=$lt_OBJDUMP
16366    
16367     # Method to check whether dependent libraries are shared objects.
16368     deplibs_check_method=$lt_deplibs_check_method
16369    
16370 michael 1106 # Command to use when deplibs_check_method = "file_magic".
16371 michael 945 file_magic_cmd=$lt_file_magic_cmd
16372    
16373 michael 1106 # How to find potential files when deplibs_check_method = "file_magic".
16374     file_magic_glob=$lt_file_magic_glob
16375    
16376     # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16377     want_nocaseglob=$lt_want_nocaseglob
16378    
16379     # DLL creation program.
16380     DLLTOOL=$lt_DLLTOOL
16381    
16382     # Command to associate shared and link libraries.
16383     sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16384    
16385 michael 945 # The archiver.
16386     AR=$lt_AR
16387 michael 1106
16388     # Flags to create an archive.
16389 michael 945 AR_FLAGS=$lt_AR_FLAGS
16390    
16391 michael 1106 # How to feed a file listing to the archiver.
16392     archiver_list_spec=$lt_archiver_list_spec
16393    
16394 michael 945 # A symbol stripping program.
16395     STRIP=$lt_STRIP
16396    
16397     # Commands used to install an old-style archive.
16398     RANLIB=$lt_RANLIB
16399     old_postinstall_cmds=$lt_old_postinstall_cmds
16400     old_postuninstall_cmds=$lt_old_postuninstall_cmds
16401    
16402 michael 1094 # Whether to use a lock for old archive extraction.
16403     lock_old_archive_extraction=$lock_old_archive_extraction
16404    
16405 michael 945 # A C compiler.
16406     LTCC=$lt_CC
16407    
16408     # LTCC compiler flags.
16409     LTCFLAGS=$lt_CFLAGS
16410    
16411     # Take the output of nm and produce a listing of raw symbols and C names.
16412     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16413    
16414     # Transform the output of nm in a proper C declaration.
16415     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16416    
16417     # Transform the output of nm in a C name address pair.
16418     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16419    
16420     # Transform the output of nm in a C name address pair when lib prefix is needed.
16421     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16422    
16423 michael 1106 # Specify filename containing input files for \$NM.
16424     nm_file_list_spec=$lt_nm_file_list_spec
16425    
16426     # The root where to search for dependent libraries,and in which our libraries should be installed.
16427     lt_sysroot=$lt_sysroot
16428    
16429 michael 945 # The name of the directory that contains temporary libtool files.
16430     objdir=$objdir
16431    
16432     # Used to examine libraries when file_magic_cmd begins with "file".
16433     MAGIC_CMD=$MAGIC_CMD
16434    
16435     # Must we lock files when doing compilation?
16436     need_locks=$lt_need_locks
16437    
16438 michael 1106 # Manifest tool.
16439     MANIFEST_TOOL=$lt_MANIFEST_TOOL
16440    
16441 michael 945 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16442     DSYMUTIL=$lt_DSYMUTIL
16443    
16444     # Tool to change global to local symbols on Mac OS X.
16445     NMEDIT=$lt_NMEDIT
16446    
16447     # Tool to manipulate fat objects and archives on Mac OS X.
16448     LIPO=$lt_LIPO
16449    
16450     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16451     OTOOL=$lt_OTOOL
16452    
16453     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16454     OTOOL64=$lt_OTOOL64
16455    
16456     # Old archive suffix (normally "a").
16457     libext=$libext
16458    
16459     # Shared library suffix (normally ".so").
16460     shrext_cmds=$lt_shrext_cmds
16461    
16462     # The commands to extract the exported symbol list from a shared archive.
16463     extract_expsyms_cmds=$lt_extract_expsyms_cmds
16464    
16465     # Variables whose values should be saved in libtool wrapper scripts and
16466     # restored at link time.
16467     variables_saved_for_relink=$lt_variables_saved_for_relink
16468    
16469     # Do we need the "lib" prefix for modules?
16470     need_lib_prefix=$need_lib_prefix
16471    
16472     # Do we need a version for libraries?
16473     need_version=$need_version
16474    
16475     # Library versioning type.
16476     version_type=$version_type
16477    
16478     # Shared library runtime path variable.
16479     runpath_var=$runpath_var
16480    
16481     # Shared library path variable.
16482     shlibpath_var=$shlibpath_var
16483    
16484     # Is shlibpath searched before the hard-coded library search path?
16485     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16486    
16487     # Format of library name prefix.
16488     libname_spec=$lt_libname_spec
16489    
16490     # List of archive names. First name is the real one, the rest are links.
16491     # The last name is the one that the linker finds with -lNAME
16492     library_names_spec=$lt_library_names_spec
16493    
16494     # The coded name of the library, if different from the real name.
16495     soname_spec=$lt_soname_spec
16496    
16497 michael 1094 # Permission mode override for installation of shared libraries.
16498     install_override_mode=$lt_install_override_mode
16499    
16500 michael 945 # Command to use after installation of a shared archive.
16501     postinstall_cmds=$lt_postinstall_cmds
16502    
16503     # Command to use after uninstallation of a shared archive.
16504     postuninstall_cmds=$lt_postuninstall_cmds
16505    
16506     # Commands used to finish a libtool library installation in a directory.
16507     finish_cmds=$lt_finish_cmds
16508    
16509     # As "finish_cmds", except a single script fragment to be evaled but
16510     # not shown.
16511     finish_eval=$lt_finish_eval
16512    
16513     # Whether we should hardcode library paths into libraries.
16514     hardcode_into_libs=$hardcode_into_libs
16515    
16516     # Compile-time system search path for libraries.
16517     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16518    
16519     # Run-time system search path for libraries.
16520     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16521    
16522     # Whether dlopen is supported.
16523     dlopen_support=$enable_dlopen
16524    
16525     # Whether dlopen of programs is supported.
16526     dlopen_self=$enable_dlopen_self
16527    
16528     # Whether dlopen of statically linked programs is supported.
16529     dlopen_self_static=$enable_dlopen_self_static
16530    
16531     # Commands to strip libraries.
16532     old_striplib=$lt_old_striplib
16533     striplib=$lt_striplib
16534    
16535    
16536     # The linker used to build libraries.
16537     LD=$lt_LD
16538    
16539 michael 1094 # How to create reloadable object files.
16540     reload_flag=$lt_reload_flag
16541     reload_cmds=$lt_reload_cmds
16542    
16543 michael 945 # Commands used to build an old-style archive.
16544     old_archive_cmds=$lt_old_archive_cmds
16545    
16546     # A language specific compiler.
16547     CC=$lt_compiler
16548    
16549     # Is the compiler the GNU compiler?
16550     with_gcc=$GCC
16551    
16552     # Compiler flag to turn off builtin functions.
16553     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16554    
16555 michael 1106 # Additional compiler flags for building library objects.
16556     pic_flag=$lt_lt_prog_compiler_pic
16557    
16558 michael 945 # How to pass a linker flag through the compiler.
16559     wl=$lt_lt_prog_compiler_wl
16560    
16561     # Compiler flag to prevent dynamic linking.
16562     link_static_flag=$lt_lt_prog_compiler_static
16563    
16564     # Does compiler simultaneously support -c and -o options?
16565     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16566    
16567     # Whether or not to add -lc for building shared libraries.
16568     build_libtool_need_lc=$archive_cmds_need_lc
16569    
16570     # Whether or not to disallow shared libs when runtime libs are static.
16571     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16572    
16573     # Compiler flag to allow reflexive dlopens.
16574     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16575    
16576     # Compiler flag to generate shared objects directly from archives.
16577     whole_archive_flag_spec=$lt_whole_archive_flag_spec
16578    
16579     # Whether the compiler copes with passing no objects directly.
16580     compiler_needs_object=$lt_compiler_needs_object
16581    
16582     # Create an old-style archive from a shared archive.
16583     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16584    
16585     # Create a temporary old-style archive to link instead of a shared archive.
16586     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16587    
16588     # Commands used to build a shared archive.
16589     archive_cmds=$lt_archive_cmds
16590     archive_expsym_cmds=$lt_archive_expsym_cmds
16591    
16592     # Commands used to build a loadable module if different from building
16593     # a shared archive.
16594     module_cmds=$lt_module_cmds
16595     module_expsym_cmds=$lt_module_expsym_cmds
16596    
16597     # Whether we are building with GNU ld or not.
16598     with_gnu_ld=$lt_with_gnu_ld
16599    
16600     # Flag that allows shared libraries with undefined symbols to be built.
16601     allow_undefined_flag=$lt_allow_undefined_flag
16602    
16603     # Flag that enforces no undefined symbols.
16604     no_undefined_flag=$lt_no_undefined_flag
16605    
16606     # Flag to hardcode \$libdir into a binary during linking.
16607     # This must work even if \$libdir does not exist
16608     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16609    
16610     # Whether we need a single "-rpath" flag with a separated argument.
16611     hardcode_libdir_separator=$lt_hardcode_libdir_separator
16612    
16613     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16614     # DIR into the resulting binary.
16615     hardcode_direct=$hardcode_direct
16616    
16617     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16618     # DIR into the resulting binary and the resulting library dependency is
16619     # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16620     # library is relocated.
16621     hardcode_direct_absolute=$hardcode_direct_absolute
16622    
16623     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16624     # into the resulting binary.
16625     hardcode_minus_L=$hardcode_minus_L
16626    
16627     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16628     # into the resulting binary.
16629     hardcode_shlibpath_var=$hardcode_shlibpath_var
16630    
16631     # Set to "yes" if building a shared library automatically hardcodes DIR
16632     # into the library and all subsequent libraries and executables linked
16633     # against it.
16634     hardcode_automatic=$hardcode_automatic
16635    
16636     # Set to yes if linker adds runtime paths of dependent libraries
16637     # to runtime path list.
16638     inherit_rpath=$inherit_rpath
16639    
16640     # Whether libtool must link a program against all its dependency libraries.
16641     link_all_deplibs=$link_all_deplibs
16642    
16643     # Set to "yes" if exported symbols are required.
16644     always_export_symbols=$always_export_symbols
16645    
16646     # The commands to list exported symbols.
16647     export_symbols_cmds=$lt_export_symbols_cmds
16648    
16649     # Symbols that should not be listed in the preloaded symbols.
16650     exclude_expsyms=$lt_exclude_expsyms
16651    
16652     # Symbols that must always be exported.
16653     include_expsyms=$lt_include_expsyms
16654    
16655     # Commands necessary for linking programs (against libraries) with templates.
16656     prelink_cmds=$lt_prelink_cmds
16657    
16658 michael 1106 # Commands necessary for finishing linking programs.
16659     postlink_cmds=$lt_postlink_cmds
16660    
16661 michael 945 # Specify filename containing input files.
16662     file_list_spec=$lt_file_list_spec
16663    
16664     # How to hardcode a shared library path into an executable.
16665     hardcode_action=$hardcode_action
16666    
16667     # ### END LIBTOOL CONFIG
16668    
16669     _LT_EOF
16670    
16671     case $host_os in
16672     aix3*)
16673     cat <<\_LT_EOF >> "$cfgfile"
16674     # AIX sometimes has problems with the GCC collect2 program. For some
16675     # reason, if we set the COLLECT_NAMES environment variable, the problems
16676     # vanish in a puff of smoke.
16677     if test "X${COLLECT_NAMES+set}" != Xset; then
16678     COLLECT_NAMES=
16679     export COLLECT_NAMES
16680     fi
16681     _LT_EOF
16682     ;;
16683 michael 912 esac
16684 michael 945
16685    
16686     ltmain="$ac_aux_dir/ltmain.sh"
16687    
16688    
16689     # We use sed instead of cat because bash on DJGPP gets confused if
16690     # if finds mixed CR/LF and LF-only lines. Since sed operates in
16691     # text mode, it properly converts lines to CR/LF. This bash problem
16692     # is reportedly fixed, but why not run on old versions too?
16693 michael 1106 sed '$q' "$ltmain" >> "$cfgfile" \
16694     || (rm -f "$cfgfile"; exit 1)
16695 michael 945
16696 michael 1106 if test x"$xsi_shell" = xyes; then
16697     sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16698     func_dirname ()\
16699     {\
16700     \ case ${1} in\
16701     \ */*) func_dirname_result="${1%/*}${2}" ;;\
16702     \ * ) func_dirname_result="${3}" ;;\
16703     \ esac\
16704     } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16705     && mv -f "$cfgfile.tmp" "$cfgfile" \
16706     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16707     test 0 -eq $? || _lt_function_replace_fail=:
16708 michael 945
16709    
16710 michael 1106 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16711     func_basename ()\
16712     {\
16713     \ func_basename_result="${1##*/}"\
16714     } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16715     && mv -f "$cfgfile.tmp" "$cfgfile" \
16716     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16717     test 0 -eq $? || _lt_function_replace_fail=:
16718 michael 945
16719    
16720 michael 1106 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16721     func_dirname_and_basename ()\
16722     {\
16723     \ case ${1} in\
16724     \ */*) func_dirname_result="${1%/*}${2}" ;;\
16725     \ * ) func_dirname_result="${3}" ;;\
16726     \ esac\
16727     \ func_basename_result="${1##*/}"\
16728     } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16729     && mv -f "$cfgfile.tmp" "$cfgfile" \
16730     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16731     test 0 -eq $? || _lt_function_replace_fail=:
16732 michael 945
16733    
16734 michael 1106 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16735     func_stripname ()\
16736     {\
16737     \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16738     \ # positional parameters, so assign one to ordinary parameter first.\
16739     \ func_stripname_result=${3}\
16740     \ func_stripname_result=${func_stripname_result#"${1}"}\
16741     \ func_stripname_result=${func_stripname_result%"${2}"}\
16742     } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16743     && mv -f "$cfgfile.tmp" "$cfgfile" \
16744     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16745     test 0 -eq $? || _lt_function_replace_fail=:
16746 michael 945
16747    
16748 michael 1106 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16749     func_split_long_opt ()\
16750     {\
16751     \ func_split_long_opt_name=${1%%=*}\
16752     \ func_split_long_opt_arg=${1#*=}\
16753     } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16754     && mv -f "$cfgfile.tmp" "$cfgfile" \
16755     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16756     test 0 -eq $? || _lt_function_replace_fail=:
16757 michael 945
16758    
16759 michael 1106 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16760     func_split_short_opt ()\
16761     {\
16762     \ func_split_short_opt_arg=${1#??}\
16763     \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16764     } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16765     && mv -f "$cfgfile.tmp" "$cfgfile" \
16766     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16767     test 0 -eq $? || _lt_function_replace_fail=:
16768 michael 945
16769    
16770 michael 1106 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16771     func_lo2o ()\
16772     {\
16773     \ case ${1} in\
16774     \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16775     \ *) func_lo2o_result=${1} ;;\
16776     \ esac\
16777     } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16778     && mv -f "$cfgfile.tmp" "$cfgfile" \
16779     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16780     test 0 -eq $? || _lt_function_replace_fail=:
16781 michael 945
16782    
16783 michael 1106 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16784     func_xform ()\
16785     {\
16786     func_xform_result=${1%.*}.lo\
16787     } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16788     && mv -f "$cfgfile.tmp" "$cfgfile" \
16789     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16790     test 0 -eq $? || _lt_function_replace_fail=:
16791 michael 945
16792    
16793 michael 1106 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16794     func_arith ()\
16795     {\
16796     func_arith_result=$(( $* ))\
16797     } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16798     && mv -f "$cfgfile.tmp" "$cfgfile" \
16799     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16800     test 0 -eq $? || _lt_function_replace_fail=:
16801 michael 945
16802    
16803 michael 1106 sed -e '/^func_len ()$/,/^} # func_len /c\
16804     func_len ()\
16805     {\
16806     func_len_result=${#1}\
16807     } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16808     && mv -f "$cfgfile.tmp" "$cfgfile" \
16809     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16810     test 0 -eq $? || _lt_function_replace_fail=:
16811 michael 945
16812 michael 1106 fi
16813 michael 945
16814 michael 1106 if test x"$lt_shell_append" = xyes; then
16815     sed -e '/^func_append ()$/,/^} # func_append /c\
16816     func_append ()\
16817     {\
16818     eval "${1}+=\\${2}"\
16819     } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16820     && mv -f "$cfgfile.tmp" "$cfgfile" \
16821     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16822     test 0 -eq $? || _lt_function_replace_fail=:
16823 michael 945
16824    
16825 michael 1106 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16826     func_append_quoted ()\
16827     {\
16828     \ func_quote_for_eval "${2}"\
16829     \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16830     } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16831     && mv -f "$cfgfile.tmp" "$cfgfile" \
16832     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16833     test 0 -eq $? || _lt_function_replace_fail=:
16834 michael 945
16835    
16836 michael 1106 # Save a `func_append' function call where possible by direct use of '+='
16837     sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16838     && mv -f "$cfgfile.tmp" "$cfgfile" \
16839     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16840     test 0 -eq $? || _lt_function_replace_fail=:
16841     else
16842     # Save a `func_append' function call even when '+=' is not available
16843     sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16844     && mv -f "$cfgfile.tmp" "$cfgfile" \
16845     || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16846     test 0 -eq $? || _lt_function_replace_fail=:
16847     fi
16848 michael 945
16849 michael 1106 if test x"$_lt_function_replace_fail" = x":"; then
16850     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16851     $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16852     fi
16853 michael 945
16854    
16855 michael 1106 mv -f "$cfgfile" "$ofile" ||
16856 michael 945 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16857     chmod +x "$ofile"
16858    
16859     ;;
16860    
16861     esac
16862 michael 912 done # for ac_tag
16863    
16864    
16865 michael 967 as_fn_exit 0
16866 michael 912 _ACEOF
16867     ac_clean_files=$ac_clean_files_save
16868    
16869 db 941 test $ac_write_fail = 0 ||
16870 michael 1095 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16871 michael 912
16872 db 941
16873 michael 912 # configure is writing to config.log, and then calls config.status.
16874     # config.status does its own redirection, appending to config.log.
16875     # Unfortunately, on DOS this fails, as config.log is still kept open
16876     # by configure, so config.status won't be able to write to it; its
16877     # output is simply discarded. So we exec the FD to /dev/null,
16878     # effectively closing config.log, so it can be properly (re)opened and
16879     # appended to by config.status. When coming back to configure, we
16880     # need to make the FD available again.
16881     if test "$no_create" != yes; then
16882     ac_cs_success=:
16883     ac_config_status_args=
16884     test "$silent" = yes &&
16885     ac_config_status_args="$ac_config_status_args --quiet"
16886     exec 5>/dev/null
16887     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16888     exec 5>>config.log
16889     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16890     # would make configure fail if this is the last instruction.
16891 michael 1095 $ac_cs_success || as_fn_exit 1
16892 michael 912 fi
16893 db 941 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16894 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16895 michael 942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16896 db 941 fi
16897 michael 912

Properties

Name Value
svn:executable *