ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid-8/configure
Revision: 1072
Committed: Wed Feb 17 22:58:23 2010 UTC (16 years, 8 months ago) by michael
Original Path: ircd-hybrid-7.3/configure
File size: 468658 byte(s)
Log Message:
- remove old dot_in_ip6_addr configuration option. this is now obsolete.

File Contents

# User Rev Content
1 michael 912 #! /bin/sh
2 michael 1072 # From configure.ac Id: configure.ac 1068 2010-02-16 23:01:26Z michael .
3 michael 912 # Guess values for system-dependent variables and create Makefiles.
4 michael 1039 # Generated by GNU Autoconf 2.65 for ircd-hybrid 7.3-rc1.
5 michael 912 #
6 michael 1039 # Report bugs to <bugs@ircd-hybrid.org>.
7 michael 1033 #
8 michael 1039 #
9 michael 912 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 michael 1033 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
11     # Inc.
12 michael 967 #
13 michael 1033 #
14 michael 912 # This configure script is free software; the Free Software Foundation
15     # gives unlimited permission to copy, distribute and modify it.
16 michael 967 ## -------------------- ##
17     ## M4sh Initialization. ##
18     ## -------------------- ##
19 michael 912
20     # Be more Bourne compatible
21     DUALCASE=1; export DUALCASE # for MKS sh
22 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
23 michael 912 emulate sh
24     NULLCMD=:
25 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 michael 912 # is contrary to our usage. Disable this feature.
27     alias -g '${1+"$@"}'='"$@"'
28     setopt NO_GLOB_SUBST
29     else
30 michael 967 case `(set -o) 2>/dev/null` in #(
31     *posix*) :
32     set -o posix ;; #(
33     *) :
34     ;;
35 michael 912 esac
36     fi
37    
38    
39 db 941 as_nl='
40     '
41     export as_nl
42     # Printing a long string crashes Solaris 7 /usr/bin/printf.
43     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
44     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
46 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
47     # but without wasting forks for bash or zsh.
48     if test -z "$BASH_VERSION$ZSH_VERSION" \
49     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50     as_echo='print -r --'
51     as_echo_n='print -rn --'
52     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 db 941 as_echo='printf %s\n'
54     as_echo_n='printf %s'
55     else
56     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
57     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
58     as_echo_n='/usr/ucb/echo -n'
59 michael 912 else
60 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
61     as_echo_n_body='eval
62     arg=$1;
63 michael 967 case $arg in #(
64 db 941 *"$as_nl"*)
65     expr "X$arg" : "X\\(.*\\)$as_nl";
66     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67     esac;
68     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
69     '
70     export as_echo_n_body
71     as_echo_n='sh -c $as_echo_n_body as_echo'
72 michael 912 fi
73 db 941 export as_echo_body
74     as_echo='sh -c $as_echo_body as_echo'
75 michael 912 fi
76    
77 db 941 # The user is always right.
78     if test "${PATH_SEPARATOR+set}" != set; then
79     PATH_SEPARATOR=:
80     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82     PATH_SEPARATOR=';'
83     }
84     fi
85    
86 michael 912
87     # IFS
88     # We need space, tab and new line, in precisely that order. Quoting is
89     # there to prevent editors from complaining about space-tab.
90     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
91     # splitting by setting IFS to empty value.)
92     IFS=" "" $as_nl"
93    
94     # Find who we are. Look in the path if we contain no directory separator.
95 michael 967 case $0 in #((
96 michael 912 *[\\/]* ) as_myself=$0 ;;
97     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98     for as_dir in $PATH
99     do
100     IFS=$as_save_IFS
101     test -z "$as_dir" && as_dir=.
102 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103     done
104 michael 912 IFS=$as_save_IFS
105    
106     ;;
107     esac
108     # We did not find ourselves, most probably we were run as `sh COMMAND'
109     # in which case we are not to be found in the path.
110     if test "x$as_myself" = x; then
111     as_myself=$0
112     fi
113     if test ! -f "$as_myself"; then
114 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 michael 967 exit 1
116 michael 912 fi
117    
118 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
119     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120     # suppresses any "Segmentation fault" message there. '((' could
121     # trigger a bug in pdksh 5.2.14.
122     for as_var in BASH_ENV ENV MAIL MAILPATH
123     do eval test x\${$as_var+set} = xset \
124     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 michael 912 done
126     PS1='$ '
127     PS2='> '
128     PS4='+ '
129    
130     # NLS nuisances.
131 db 941 LC_ALL=C
132     export LC_ALL
133     LANGUAGE=C
134     export LANGUAGE
135 michael 912
136     # CDPATH.
137 michael 967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 michael 912
139     if test "x$CONFIG_SHELL" = x; then
140 michael 967 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141     emulate sh
142     NULLCMD=:
143     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144     # is contrary to our usage. Disable this feature.
145     alias -g '\${1+\"\$@\"}'='\"\$@\"'
146     setopt NO_GLOB_SUBST
147 michael 912 else
148 michael 967 case \`(set -o) 2>/dev/null\` in #(
149     *posix*) :
150     set -o posix ;; #(
151     *) :
152     ;;
153     esac
154 michael 912 fi
155 michael 967 "
156     as_required="as_fn_return () { (exit \$1); }
157     as_fn_success () { as_fn_return 0; }
158     as_fn_failure () { as_fn_return 1; }
159     as_fn_ret_success () { return 0; }
160     as_fn_ret_failure () { return 1; }
161 michael 912
162     exitcode=0
163 michael 967 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 michael 912
169     else
170 michael 967 exitcode=1; echo positional parameters were not saved.
171 michael 912 fi
172 michael 967 test x\$exitcode = x0 || exit 1"
173     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177     test \$(( 1 + 1 )) = 2 || exit 1"
178     if (eval "$as_required") 2>/dev/null; then :
179     as_have_required=yes
180 michael 912 else
181 michael 967 as_have_required=no
182 michael 912 fi
183 michael 967 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 michael 912
185     else
186 michael 967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187     as_found=false
188 michael 912 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189     do
190     IFS=$as_save_IFS
191     test -z "$as_dir" && as_dir=.
192 michael 967 as_found=:
193     case $as_dir in #(
194 michael 912 /*)
195     for as_base in sh bash ksh sh5; do
196 michael 967 # Try only shells that exist, to save several forks.
197     as_shell=$as_dir/$as_base
198     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200     CONFIG_SHELL=$as_shell as_have_required=yes
201     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202     break 2
203     fi
204     fi
205 michael 912 done;;
206     esac
207 michael 967 as_found=false
208 michael 912 done
209 michael 967 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211     CONFIG_SHELL=$SHELL as_have_required=yes
212     fi; }
213 michael 912 IFS=$as_save_IFS
214    
215    
216 michael 967 if test "x$CONFIG_SHELL" != x; then :
217     # We cannot yet assume a decent shell, so we have to provide a
218     # neutralization value for shells without unset; and this also
219     # works around shells that cannot unset nonexistent variables.
220     BASH_ENV=/dev/null
221     ENV=/dev/null
222     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223     export CONFIG_SHELL
224     exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
225 michael 912 fi
226    
227 michael 967 if test x$as_have_required = xno; then :
228     $as_echo "$0: This script requires a shell more modern than all"
229     $as_echo "$0: the shells that I found on your system."
230     if test x${ZSH_VERSION+set} = xset ; then
231     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
232     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233     else
234 michael 1039 $as_echo "$0: Please tell bug-autoconf@gnu.org and
235     $0: bugs@ircd-hybrid.org about your system, including any
236     $0: error possibly output before this message. Then install
237     $0: a modern shell, or manually run the script under such a
238     $0: shell if you do have one."
239 michael 967 fi
240     exit 1
241 michael 912 fi
242     fi
243     fi
244 michael 967 SHELL=${CONFIG_SHELL-/bin/sh}
245     export SHELL
246     # Unset more variables known to interfere with behavior of common tools.
247     CLICOLOR_FORCE= GREP_OPTIONS=
248     unset CLICOLOR_FORCE GREP_OPTIONS
249 michael 912
250 michael 967 ## --------------------- ##
251     ## M4sh Shell Functions. ##
252     ## --------------------- ##
253     # as_fn_unset VAR
254     # ---------------
255     # Portably unset VAR.
256     as_fn_unset ()
257     {
258     { eval $1=; unset $1;}
259     }
260     as_unset=as_fn_unset
261 michael 912
262 michael 967 # as_fn_set_status STATUS
263     # -----------------------
264     # Set $? to STATUS, without forking.
265     as_fn_set_status ()
266     {
267     return $1
268     } # as_fn_set_status
269 michael 912
270 michael 967 # as_fn_exit STATUS
271     # -----------------
272     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273     as_fn_exit ()
274     {
275     set +e
276     as_fn_set_status $1
277     exit $1
278     } # as_fn_exit
279 michael 912
280 michael 967 # as_fn_mkdir_p
281     # -------------
282     # Create "$as_dir" as a directory, including parents if necessary.
283     as_fn_mkdir_p ()
284     {
285 michael 912
286 michael 967 case $as_dir in #(
287     -*) as_dir=./$as_dir;;
288     esac
289     test -d "$as_dir" || eval $as_mkdir_p || {
290     as_dirs=
291     while :; do
292     case $as_dir in #(
293     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294     *) as_qdir=$as_dir;;
295     esac
296     as_dirs="'$as_qdir' $as_dirs"
297     as_dir=`$as_dirname -- "$as_dir" ||
298     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299     X"$as_dir" : 'X\(//\)[^/]' \| \
300     X"$as_dir" : 'X\(//\)$' \| \
301     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302     $as_echo X"$as_dir" |
303     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304     s//\1/
305     q
306     }
307     /^X\(\/\/\)[^/].*/{
308     s//\1/
309     q
310     }
311     /^X\(\/\/\)$/{
312     s//\1/
313     q
314     }
315     /^X\(\/\).*/{
316     s//\1/
317     q
318     }
319     s/.*/./; q'`
320     test -d "$as_dir" && break
321     done
322     test -z "$as_dirs" || eval "mkdir $as_dirs"
323     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 michael 912
325    
326 michael 967 } # as_fn_mkdir_p
327     # as_fn_append VAR VALUE
328     # ----------------------
329     # Append the text in VALUE to the end of the definition contained in VAR. Take
330     # advantage of any shell optimizations that allow amortized linear growth over
331     # repeated appends, instead of the typical quadratic growth present in naive
332     # implementations.
333     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334     eval 'as_fn_append ()
335     {
336     eval $1+=\$2
337     }'
338     else
339     as_fn_append ()
340     {
341     eval $1=\$$1\$2
342     }
343     fi # as_fn_append
344 michael 912
345 michael 967 # as_fn_arith ARG...
346     # ------------------
347     # Perform arithmetic evaluation on the ARGs, and store the result in the
348     # global $as_val. Take advantage of shells that can avoid forks. The arguments
349     # must be portable across $(()) and expr.
350     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351     eval 'as_fn_arith ()
352     {
353     as_val=$(( $* ))
354     }'
355     else
356     as_fn_arith ()
357     {
358     as_val=`expr "$@" || test $? -eq 1`
359     }
360     fi # as_fn_arith
361 michael 912
362    
363 michael 967 # as_fn_error ERROR [LINENO LOG_FD]
364     # ---------------------------------
365     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367     # script with status $?, using 1 if that was 0.
368     as_fn_error ()
369     {
370     as_status=$?; test $as_status -eq 0 && as_status=1
371     if test "$3"; then
372     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374     fi
375     $as_echo "$as_me: error: $1" >&2
376     as_fn_exit $as_status
377     } # as_fn_error
378 michael 912
379 michael 967 if expr a : '\(a\)' >/dev/null 2>&1 &&
380     test "X`expr 00001 : '.*\(...\)'`" = X001; then
381     as_expr=expr
382 michael 912 else
383 michael 967 as_expr=false
384 michael 912 fi
385    
386 michael 967 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387     as_basename=basename
388 michael 912 else
389 michael 967 as_basename=false
390 michael 912 fi
391    
392 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393     as_dirname=dirname
394 michael 912 else
395 michael 967 as_dirname=false
396 michael 912 fi
397    
398 michael 967 as_me=`$as_basename -- "$0" ||
399     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400     X"$0" : 'X\(//\)$' \| \
401     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402     $as_echo X/"$0" |
403     sed '/^.*\/\([^/][^/]*\)\/*$/{
404     s//\1/
405     q
406     }
407     /^X\/\(\/\/\)$/{
408     s//\1/
409     q
410     }
411     /^X\/\(\/\).*/{
412     s//\1/
413     q
414     }
415     s/.*/./; q'`
416 michael 912
417 michael 967 # Avoid depending upon Character Ranges.
418     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421     as_cr_digits='0123456789'
422     as_cr_alnum=$as_cr_Letters$as_cr_digits
423 michael 912
424    
425 michael 967 as_lineno_1=$LINENO as_lineno_1a=$LINENO
426     as_lineno_2=$LINENO as_lineno_2a=$LINENO
427     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
430 michael 912 sed -n '
431     p
432     /[$]LINENO/=
433     ' <$as_myself |
434     sed '
435     s/[$]LINENO.*/&-/
436     t lineno
437     b
438     :lineno
439     N
440     :loop
441     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442     t loop
443     s/-\n.*//
444     ' >$as_me.lineno &&
445     chmod +x "$as_me.lineno" ||
446 michael 967 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447 michael 912
448     # Don't try to exec as it changes $[0], causing all sort of problems
449     # (the dirname of $[0] is not the place where we might find the
450     # original and so on. Autoconf is especially sensitive to this).
451     . "./$as_me.lineno"
452     # Exit status is that of the last command.
453     exit
454     }
455    
456     ECHO_C= ECHO_N= ECHO_T=
457 michael 967 case `echo -n x` in #(((((
458 michael 912 -n*)
459 michael 967 case `echo 'xy\c'` in
460 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
461 michael 967 xy) ECHO_C='\c';;
462     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
463     ECHO_T=' ';;
464 michael 912 esac;;
465     *)
466     ECHO_N='-n';;
467     esac
468    
469     rm -f conf$$ conf$$.exe conf$$.file
470     if test -d conf$$.dir; then
471     rm -f conf$$.dir/conf$$.file
472     else
473     rm -f conf$$.dir
474 db 941 mkdir conf$$.dir 2>/dev/null
475 michael 912 fi
476 db 941 if (echo >conf$$.file) 2>/dev/null; then
477     if ln -s conf$$.file conf$$ 2>/dev/null; then
478     as_ln_s='ln -s'
479     # ... but there are two gotchas:
480     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482     # In both cases, we have to default to `cp -p'.
483     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484     as_ln_s='cp -p'
485     elif ln conf$$.file conf$$ 2>/dev/null; then
486     as_ln_s=ln
487     else
488 michael 912 as_ln_s='cp -p'
489 db 941 fi
490 michael 912 else
491     as_ln_s='cp -p'
492     fi
493     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494     rmdir conf$$.dir 2>/dev/null
495    
496     if mkdir -p . 2>/dev/null; then
497 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
498 michael 912 else
499     test -d ./-p && rmdir ./-p
500     as_mkdir_p=false
501     fi
502    
503     if test -x / >/dev/null 2>&1; then
504     as_test_x='test -x'
505     else
506     if ls -dL / >/dev/null 2>&1; then
507     as_ls_L_option=L
508     else
509     as_ls_L_option=
510     fi
511     as_test_x='
512     eval sh -c '\''
513     if test -d "$1"; then
514 db 941 test -d "$1/.";
515 michael 912 else
516 michael 967 case $1 in #(
517 db 941 -*)set "./$1";;
518 michael 912 esac;
519 michael 967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520 michael 912 ???[sx]*):;;*)false;;esac;fi
521     '\'' sh
522     '
523     fi
524     as_executable_p=$as_test_x
525    
526     # Sed expression to map a string onto a valid CPP name.
527     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528    
529     # Sed expression to map a string onto a valid variable name.
530     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531    
532    
533    
534     # Check that we are running under the correct shell.
535     SHELL=${CONFIG_SHELL-/bin/sh}
536    
537 michael 945 case X$lt_ECHO in
538 michael 912 X*--fallback-echo)
539     # Remove one level of quotation (which was required for Make).
540 michael 945 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541 michael 912 ;;
542     esac
543    
544 michael 945 ECHO=${lt_ECHO-echo}
545 michael 912 if test "X$1" = X--no-reexec; then
546     # Discard the --no-reexec flag, and continue.
547     shift
548     elif test "X$1" = X--fallback-echo; then
549     # Avoid inline document here, it may be left over
550     :
551 michael 945 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552     # Yippee, $ECHO works!
553 michael 912 :
554     else
555     # Restart under the correct shell.
556     exec $SHELL "$0" --no-reexec ${1+"$@"}
557     fi
558    
559     if test "X$1" = X--fallback-echo; then
560     # used as fallback echo
561     shift
562 michael 945 cat <<_LT_EOF
563 michael 912 $*
564 michael 945 _LT_EOF
565 michael 912 exit 0
566     fi
567    
568     # The HP-UX ksh and POSIX shell print the target directory to stdout
569     # if CDPATH is set.
570     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571    
572 michael 945 if test -z "$lt_ECHO"; then
573     if test "X${echo_test_string+set}" != Xset; then
574     # find a string as large as possible, as long as the shell can cope with it
575     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577     if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578     { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579     then
580     break
581     fi
582     done
583     fi
584 michael 912
585 michael 945 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588     :
589     else
590     # The Solaris, AIX, and Digital Unix default echo programs unquote
591     # backslashes. This makes it impossible to quote backslashes using
592     # echo "$something" | sed 's/\\/\\\\/g'
593     #
594     # So, first we look for a working echo in the user's PATH.
595 michael 912
596 michael 945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597     for dir in $PATH /usr/ucb; do
598     IFS="$lt_save_ifs"
599     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600     test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601     echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602     test "X$echo_testing_string" = "X$echo_test_string"; then
603     ECHO="$dir/echo"
604     break
605     fi
606     done
607 michael 912 IFS="$lt_save_ifs"
608    
609 michael 945 if test "X$ECHO" = Xecho; then
610     # We didn't find a better echo, so look for alternatives.
611     if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612     echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613     test "X$echo_testing_string" = "X$echo_test_string"; then
614     # This shell has a builtin print -r that does the trick.
615     ECHO='print -r'
616     elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617     test "X$CONFIG_SHELL" != X/bin/ksh; then
618     # If we have ksh, try running configure again with it.
619     ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620     export ORIGINAL_CONFIG_SHELL
621     CONFIG_SHELL=/bin/ksh
622     export CONFIG_SHELL
623     exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624     else
625     # Try using printf.
626     ECHO='printf %s\n'
627     if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629 michael 912 test "X$echo_testing_string" = "X$echo_test_string"; then
630 michael 945 # Cool, printf works
631     :
632     elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633     test "X$echo_testing_string" = 'X\t' &&
634     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635     test "X$echo_testing_string" = "X$echo_test_string"; then
636     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637     export CONFIG_SHELL
638     SHELL="$CONFIG_SHELL"
639     export SHELL
640     ECHO="$CONFIG_SHELL $0 --fallback-echo"
641     elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642     test "X$echo_testing_string" = 'X\t' &&
643     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644     test "X$echo_testing_string" = "X$echo_test_string"; then
645     ECHO="$CONFIG_SHELL $0 --fallback-echo"
646     else
647     # maybe with a smaller string...
648     prev=:
649 michael 912
650 michael 945 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651     if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652     then
653     break
654     fi
655     prev="$cmd"
656     done
657    
658     if test "$prev" != 'sed 50q "$0"'; then
659     echo_test_string=`eval $prev`
660     export echo_test_string
661     exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662     else
663     # Oops. We lost completely, so just stick with echo.
664     ECHO=echo
665 michael 912 fi
666 michael 945 fi
667 michael 912 fi
668     fi
669     fi
670     fi
671    
672     # Copy echo and quote the copy suitably for passing to libtool from
673     # the Makefile, instead of quoting the original, which is used later.
674 michael 945 lt_ECHO=$ECHO
675     if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676     lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677 michael 912 fi
678    
679    
680    
681    
682 michael 945 lt_ltdl_dir='libltdl'
683 michael 912
684 michael 945 lt_dlopen_dir="$lt_ltdl_dir"
685 michael 912
686 michael 1033 test -n "$DJDIR" || exec 7<&0 </dev/null
687     exec 6>&1
688 michael 912
689     # Name of the host.
690     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
691     # so uname gets run too.
692     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
693    
694     #
695     # Initializations.
696     #
697     ac_default_prefix=/usr/local
698     ac_clean_files=
699     ac_config_libobj_dir=.
700     LIBOBJS=
701     cross_compiling=no
702     subdirs=
703     MFLAGS=
704     MAKEFLAGS=
705    
706     # Identity of this package.
707     PACKAGE_NAME='ircd-hybrid'
708     PACKAGE_TARNAME='ircd-hybrid'
709 michael 1039 PACKAGE_VERSION='7.3-rc1'
710     PACKAGE_STRING='ircd-hybrid 7.3-rc1'
711     PACKAGE_BUGREPORT='bugs@ircd-hybrid.org'
712 michael 967 PACKAGE_URL=''
713 michael 912
714     ac_unique_file="src/ircd.c"
715     # Factoring default headers for most tests.
716     ac_includes_default="\
717     #include <stdio.h>
718     #ifdef HAVE_SYS_TYPES_H
719     # include <sys/types.h>
720     #endif
721     #ifdef HAVE_SYS_STAT_H
722     # include <sys/stat.h>
723     #endif
724     #ifdef STDC_HEADERS
725     # include <stdlib.h>
726     # include <stddef.h>
727     #else
728     # ifdef HAVE_STDLIB_H
729     # include <stdlib.h>
730     # endif
731     #endif
732     #ifdef HAVE_STRING_H
733     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
734     # include <memory.h>
735     # endif
736     # include <string.h>
737     #endif
738     #ifdef HAVE_STRINGS_H
739     # include <strings.h>
740     #endif
741     #ifdef HAVE_INTTYPES_H
742     # include <inttypes.h>
743     #endif
744     #ifdef HAVE_STDINT_H
745     # include <stdint.h>
746     #endif
747     #ifdef HAVE_UNISTD_H
748     # include <unistd.h>
749     #endif"
750    
751 michael 945 enable_option_checking=no
752 michael 912 ac_func_list=
753     ac_header_list=
754 michael 945 ac_subst_vars='ltdl_LTLIBOBJS
755     ltdl_LIBOBJS
756     am__EXEEXT_FALSE
757     am__EXEEXT_TRUE
758     LTLIBOBJS
759 michael 942 LIBOBJS
760     LOCALSTATEDIR
761     DATADIR
762     LIBDIR
763     SYSCONFDIR
764     PREFIX
765     EFNET_FALSE
766     EFNET_TRUE
767     ENABLE_SSL_FALSE
768     ENABLE_SSL_TRUE
769 michael 1009 ENABLE_PCRE_FALSE
770     ENABLE_PCRE_TRUE
771 michael 945 LTDLOPEN
772     LT_CONFIG_H
773     subdirs
774     CONVENIENCE_LTDL_FALSE
775     CONVENIENCE_LTDL_TRUE
776     INSTALL_LTDL_FALSE
777     INSTALL_LTDL_TRUE
778     ARGZ_H
779     sys_symbol_underscore
780     LIBADD_DL
781     LT_DLPREOPEN
782     LIBADD_DLD_LINK
783     LIBADD_SHL_LOAD
784     LIBADD_DLOPEN
785     LT_DLLOADERS
786     INCLTDL
787     LTDLINCL
788     LTDLDEPS
789     LIBLTDL
790 michael 942 CPP
791 michael 945 OTOOL64
792     OTOOL
793     LIPO
794 michael 942 NMEDIT
795     DSYMUTIL
796 michael 945 lt_ECHO
797 michael 942 RANLIB
798     AR
799 michael 945 OBJDUMP
800 michael 942 LN_S
801 michael 945 NM
802     ac_ct_DUMPBIN
803     DUMPBIN
804     LD
805     FGREP
806 michael 942 EGREP
807     GREP
808     SED
809     host_os
810     host_vendor
811     host_cpu
812     host
813     build_os
814     build_vendor
815     build_cpu
816     build
817 michael 945 LIBTOOL
818 michael 942 LEXLIB
819     LEX_OUTPUT_ROOT
820     LEX
821     YFLAGS
822     YACC
823     am__fastdepCC_FALSE
824     am__fastdepCC_TRUE
825     CCDEPMODE
826     AMDEPBACKSLASH
827     AMDEP_FALSE
828     AMDEP_TRUE
829     am__quote
830     am__include
831     DEPDIR
832     OBJEXT
833     EXEEXT
834     ac_ct_CC
835     CPPFLAGS
836     LDFLAGS
837     CFLAGS
838     CC
839     MAINT
840     MAINTAINER_MODE_FALSE
841     MAINTAINER_MODE_TRUE
842     am__untar
843     am__tar
844     AMTAR
845     am__leading_dot
846     SET_MAKE
847     AWK
848     mkdir_p
849     MKDIR_P
850     INSTALL_STRIP_PROGRAM
851     STRIP
852     install_sh
853     MAKEINFO
854     AUTOHEADER
855     AUTOMAKE
856     AUTOCONF
857     ACLOCAL
858     VERSION
859     PACKAGE
860     CYGPATH_W
861     am__isrc
862     INSTALL_DATA
863     INSTALL_SCRIPT
864     INSTALL_PROGRAM
865     target_alias
866     host_alias
867     build_alias
868     LIBS
869     ECHO_T
870     ECHO_N
871     ECHO_C
872     DEFS
873     mandir
874     localedir
875     libdir
876     psdir
877     pdfdir
878     dvidir
879     htmldir
880     infodir
881     docdir
882     oldincludedir
883     includedir
884     localstatedir
885     sharedstatedir
886     sysconfdir
887     datadir
888     datarootdir
889     libexecdir
890     sbindir
891     bindir
892     program_transform_name
893     prefix
894     exec_prefix
895 michael 967 PACKAGE_URL
896 michael 942 PACKAGE_BUGREPORT
897     PACKAGE_STRING
898     PACKAGE_VERSION
899     PACKAGE_TARNAME
900     PACKAGE_NAME
901 michael 912 PATH_SEPARATOR
902 michael 942 SHELL'
903 michael 912 ac_subst_files=''
904 db 941 ac_user_opts='
905     enable_option_checking
906     enable_maintainer_mode
907 michael 945 enable_dependency_tracking
908 michael 977 enable_static
909 michael 945 enable_shared
910     with_pic
911 db 941 enable_fast_install
912     with_gnu_ld
913     enable_libtool_lock
914 michael 945 with_included_ltdl
915     with_ltdl_include
916     with_ltdl_lib
917     enable_ltdl_install
918 db 941 with_zlib_path
919     enable_zlib
920 michael 1009 with_libpcre_path
921     enable_libpcre
922 db 941 enable_openssl
923     enable_assert
924     enable_small_net
925     enable_kqueue
926     enable_epoll
927     enable_devpoll
928     enable_rtsigio
929     enable_poll
930     enable_select
931     with_nicklen
932     with_topiclen
933     with_syslog_facility
934     enable_efnet
935     enable_halfops
936     enable_debugging
937     enable_warnings
938     enable_syslog
939     '
940 michael 912 ac_precious_vars='build_alias
941     host_alias
942     target_alias
943     CC
944     CFLAGS
945     LDFLAGS
946     LIBS
947     CPPFLAGS
948     YACC
949     YFLAGS
950 michael 945 CPP'
951 michael 912 ac_subdirs_all='libltdl'
952    
953     # Initialize some variables set by options.
954     ac_init_help=
955     ac_init_version=false
956 db 941 ac_unrecognized_opts=
957     ac_unrecognized_sep=
958 michael 912 # The variables have the same names as the options, with
959     # dashes changed to underlines.
960     cache_file=/dev/null
961     exec_prefix=NONE
962     no_create=
963     no_recursion=
964     prefix=NONE
965     program_prefix=NONE
966     program_suffix=NONE
967     program_transform_name=s,x,x,
968     silent=
969     site=
970     srcdir=
971     verbose=
972     x_includes=NONE
973     x_libraries=NONE
974    
975     # Installation directory options.
976     # These are left unexpanded so users can "make install exec_prefix=/foo"
977     # and all the variables that are supposed to be based on exec_prefix
978     # by default will actually change.
979     # Use braces instead of parens because sh, perl, etc. also accept them.
980     # (The list follows the same order as the GNU Coding Standards.)
981     bindir='${exec_prefix}/bin'
982     sbindir='${exec_prefix}/sbin'
983     libexecdir='${exec_prefix}/libexec'
984     datarootdir='${prefix}/share'
985     datadir='${datarootdir}'
986     sysconfdir='${prefix}/etc'
987     sharedstatedir='${prefix}/com'
988     localstatedir='${prefix}/var'
989     includedir='${prefix}/include'
990     oldincludedir='/usr/include'
991     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
992     infodir='${datarootdir}/info'
993     htmldir='${docdir}'
994     dvidir='${docdir}'
995     pdfdir='${docdir}'
996     psdir='${docdir}'
997     libdir='${exec_prefix}/lib'
998     localedir='${datarootdir}/locale'
999     mandir='${datarootdir}/man'
1000    
1001     ac_prev=
1002     ac_dashdash=
1003     for ac_option
1004     do
1005     # If the previous option needs an argument, assign it.
1006     if test -n "$ac_prev"; then
1007     eval $ac_prev=\$ac_option
1008     ac_prev=
1009     continue
1010     fi
1011    
1012     case $ac_option in
1013     *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1014     *) ac_optarg=yes ;;
1015     esac
1016    
1017     # Accept the important Cygnus configure options, so we can diagnose typos.
1018    
1019     case $ac_dashdash$ac_option in
1020     --)
1021     ac_dashdash=yes ;;
1022    
1023     -bindir | --bindir | --bindi | --bind | --bin | --bi)
1024     ac_prev=bindir ;;
1025     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1026     bindir=$ac_optarg ;;
1027    
1028     -build | --build | --buil | --bui | --bu)
1029     ac_prev=build_alias ;;
1030     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1031     build_alias=$ac_optarg ;;
1032    
1033     -cache-file | --cache-file | --cache-fil | --cache-fi \
1034     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1035     ac_prev=cache_file ;;
1036     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1037     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1038     cache_file=$ac_optarg ;;
1039    
1040     --config-cache | -C)
1041     cache_file=config.cache ;;
1042    
1043     -datadir | --datadir | --datadi | --datad)
1044     ac_prev=datadir ;;
1045     -datadir=* | --datadir=* | --datadi=* | --datad=*)
1046     datadir=$ac_optarg ;;
1047    
1048     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1049     | --dataroo | --dataro | --datar)
1050     ac_prev=datarootdir ;;
1051     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1052     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1053     datarootdir=$ac_optarg ;;
1054    
1055     -disable-* | --disable-*)
1056 db 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1057 michael 912 # Reject names that are not valid shell variable names.
1058 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1059 michael 967 as_fn_error "invalid feature name: $ac_useropt"
1060 db 941 ac_useropt_orig=$ac_useropt
1061     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1062     case $ac_user_opts in
1063     *"
1064     "enable_$ac_useropt"
1065     "*) ;;
1066     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1067     ac_unrecognized_sep=', ';;
1068     esac
1069     eval enable_$ac_useropt=no ;;
1070 michael 912
1071     -docdir | --docdir | --docdi | --doc | --do)
1072     ac_prev=docdir ;;
1073     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1074     docdir=$ac_optarg ;;
1075    
1076     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1077     ac_prev=dvidir ;;
1078     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1079     dvidir=$ac_optarg ;;
1080    
1081     -enable-* | --enable-*)
1082 db 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1083 michael 912 # Reject names that are not valid shell variable names.
1084 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1085 michael 967 as_fn_error "invalid feature name: $ac_useropt"
1086 db 941 ac_useropt_orig=$ac_useropt
1087     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1088     case $ac_user_opts in
1089     *"
1090     "enable_$ac_useropt"
1091     "*) ;;
1092     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1093     ac_unrecognized_sep=', ';;
1094     esac
1095     eval enable_$ac_useropt=\$ac_optarg ;;
1096 michael 912
1097     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1098     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1099     | --exec | --exe | --ex)
1100     ac_prev=exec_prefix ;;
1101     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1102     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1103     | --exec=* | --exe=* | --ex=*)
1104     exec_prefix=$ac_optarg ;;
1105    
1106     -gas | --gas | --ga | --g)
1107     # Obsolete; use --with-gas.
1108     with_gas=yes ;;
1109    
1110     -help | --help | --hel | --he | -h)
1111     ac_init_help=long ;;
1112     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1113     ac_init_help=recursive ;;
1114     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1115     ac_init_help=short ;;
1116    
1117     -host | --host | --hos | --ho)
1118     ac_prev=host_alias ;;
1119     -host=* | --host=* | --hos=* | --ho=*)
1120     host_alias=$ac_optarg ;;
1121    
1122     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1123     ac_prev=htmldir ;;
1124     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1125     | --ht=*)
1126     htmldir=$ac_optarg ;;
1127    
1128     -includedir | --includedir | --includedi | --included | --include \
1129     | --includ | --inclu | --incl | --inc)
1130     ac_prev=includedir ;;
1131     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1132     | --includ=* | --inclu=* | --incl=* | --inc=*)
1133     includedir=$ac_optarg ;;
1134    
1135     -infodir | --infodir | --infodi | --infod | --info | --inf)
1136     ac_prev=infodir ;;
1137     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1138     infodir=$ac_optarg ;;
1139    
1140     -libdir | --libdir | --libdi | --libd)
1141     ac_prev=libdir ;;
1142     -libdir=* | --libdir=* | --libdi=* | --libd=*)
1143     libdir=$ac_optarg ;;
1144    
1145     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1146     | --libexe | --libex | --libe)
1147     ac_prev=libexecdir ;;
1148     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1149     | --libexe=* | --libex=* | --libe=*)
1150     libexecdir=$ac_optarg ;;
1151    
1152     -localedir | --localedir | --localedi | --localed | --locale)
1153     ac_prev=localedir ;;
1154     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1155     localedir=$ac_optarg ;;
1156    
1157     -localstatedir | --localstatedir | --localstatedi | --localstated \
1158     | --localstate | --localstat | --localsta | --localst | --locals)
1159     ac_prev=localstatedir ;;
1160     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1161     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1162     localstatedir=$ac_optarg ;;
1163    
1164     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1165     ac_prev=mandir ;;
1166     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1167     mandir=$ac_optarg ;;
1168    
1169     -nfp | --nfp | --nf)
1170     # Obsolete; use --without-fp.
1171     with_fp=no ;;
1172    
1173     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1174     | --no-cr | --no-c | -n)
1175     no_create=yes ;;
1176    
1177     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1178     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1179     no_recursion=yes ;;
1180    
1181     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1182     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1183     | --oldin | --oldi | --old | --ol | --o)
1184     ac_prev=oldincludedir ;;
1185     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1186     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1187     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1188     oldincludedir=$ac_optarg ;;
1189    
1190     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1191     ac_prev=prefix ;;
1192     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1193     prefix=$ac_optarg ;;
1194    
1195     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1196     | --program-pre | --program-pr | --program-p)
1197     ac_prev=program_prefix ;;
1198     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1199     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1200     program_prefix=$ac_optarg ;;
1201    
1202     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1203     | --program-suf | --program-su | --program-s)
1204     ac_prev=program_suffix ;;
1205     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1206     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1207     program_suffix=$ac_optarg ;;
1208    
1209     -program-transform-name | --program-transform-name \
1210     | --program-transform-nam | --program-transform-na \
1211     | --program-transform-n | --program-transform- \
1212     | --program-transform | --program-transfor \
1213     | --program-transfo | --program-transf \
1214     | --program-trans | --program-tran \
1215     | --progr-tra | --program-tr | --program-t)
1216     ac_prev=program_transform_name ;;
1217     -program-transform-name=* | --program-transform-name=* \
1218     | --program-transform-nam=* | --program-transform-na=* \
1219     | --program-transform-n=* | --program-transform-=* \
1220     | --program-transform=* | --program-transfor=* \
1221     | --program-transfo=* | --program-transf=* \
1222     | --program-trans=* | --program-tran=* \
1223     | --progr-tra=* | --program-tr=* | --program-t=*)
1224     program_transform_name=$ac_optarg ;;
1225    
1226     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1227     ac_prev=pdfdir ;;
1228     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1229     pdfdir=$ac_optarg ;;
1230    
1231     -psdir | --psdir | --psdi | --psd | --ps)
1232     ac_prev=psdir ;;
1233     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1234     psdir=$ac_optarg ;;
1235    
1236     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1237     | -silent | --silent | --silen | --sile | --sil)
1238     silent=yes ;;
1239    
1240     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1241     ac_prev=sbindir ;;
1242     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1243     | --sbi=* | --sb=*)
1244     sbindir=$ac_optarg ;;
1245    
1246     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1247     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1248     | --sharedst | --shareds | --shared | --share | --shar \
1249     | --sha | --sh)
1250     ac_prev=sharedstatedir ;;
1251     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1252     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1253     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1254     | --sha=* | --sh=*)
1255     sharedstatedir=$ac_optarg ;;
1256    
1257     -site | --site | --sit)
1258     ac_prev=site ;;
1259     -site=* | --site=* | --sit=*)
1260     site=$ac_optarg ;;
1261    
1262     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1263     ac_prev=srcdir ;;
1264     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1265     srcdir=$ac_optarg ;;
1266    
1267     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1268     | --syscon | --sysco | --sysc | --sys | --sy)
1269     ac_prev=sysconfdir ;;
1270     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1271     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1272     sysconfdir=$ac_optarg ;;
1273    
1274     -target | --target | --targe | --targ | --tar | --ta | --t)
1275     ac_prev=target_alias ;;
1276     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1277     target_alias=$ac_optarg ;;
1278    
1279     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1280     verbose=yes ;;
1281    
1282     -version | --version | --versio | --versi | --vers | -V)
1283     ac_init_version=: ;;
1284    
1285     -with-* | --with-*)
1286 db 941 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1287 michael 912 # Reject names that are not valid shell variable names.
1288 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1289 michael 967 as_fn_error "invalid package name: $ac_useropt"
1290 db 941 ac_useropt_orig=$ac_useropt
1291     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1292     case $ac_user_opts in
1293     *"
1294     "with_$ac_useropt"
1295     "*) ;;
1296     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1297     ac_unrecognized_sep=', ';;
1298     esac
1299     eval with_$ac_useropt=\$ac_optarg ;;
1300 michael 912
1301     -without-* | --without-*)
1302 db 941 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1303 michael 912 # Reject names that are not valid shell variable names.
1304 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1305 michael 967 as_fn_error "invalid package name: $ac_useropt"
1306 db 941 ac_useropt_orig=$ac_useropt
1307     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308     case $ac_user_opts in
1309     *"
1310     "with_$ac_useropt"
1311     "*) ;;
1312     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1313     ac_unrecognized_sep=', ';;
1314     esac
1315     eval with_$ac_useropt=no ;;
1316 michael 912
1317     --x)
1318     # Obsolete; use --with-x.
1319     with_x=yes ;;
1320    
1321     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1322     | --x-incl | --x-inc | --x-in | --x-i)
1323     ac_prev=x_includes ;;
1324     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1325     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1326     x_includes=$ac_optarg ;;
1327    
1328     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1329     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1330     ac_prev=x_libraries ;;
1331     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1332     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1333     x_libraries=$ac_optarg ;;
1334    
1335 michael 967 -*) as_fn_error "unrecognized option: \`$ac_option'
1336     Try \`$0 --help' for more information."
1337 michael 912 ;;
1338    
1339     *=*)
1340     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1341     # Reject names that are not valid shell variable names.
1342 michael 967 case $ac_envvar in #(
1343     '' | [0-9]* | *[!_$as_cr_alnum]* )
1344     as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1345     esac
1346 michael 912 eval $ac_envvar=\$ac_optarg
1347     export $ac_envvar ;;
1348    
1349     *)
1350     # FIXME: should be removed in autoconf 3.0.
1351 db 941 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1352 michael 912 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1353 db 941 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1354 michael 912 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1355     ;;
1356    
1357     esac
1358     done
1359    
1360     if test -n "$ac_prev"; then
1361     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1362 michael 967 as_fn_error "missing argument to $ac_option"
1363 michael 912 fi
1364    
1365 db 941 if test -n "$ac_unrecognized_opts"; then
1366     case $enable_option_checking in
1367     no) ;;
1368 michael 967 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1369 michael 942 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1370 db 941 esac
1371     fi
1372    
1373     # Check all directory arguments for consistency.
1374 michael 912 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1375     datadir sysconfdir sharedstatedir localstatedir includedir \
1376     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1377     libdir localedir mandir
1378     do
1379     eval ac_val=\$$ac_var
1380 db 941 # Remove trailing slashes.
1381 michael 912 case $ac_val in
1382 db 941 */ )
1383     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1384     eval $ac_var=\$ac_val;;
1385     esac
1386     # Be sure to have absolute directory names.
1387     case $ac_val in
1388 michael 912 [\\/$]* | ?:[\\/]* ) continue;;
1389     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1390     esac
1391 michael 967 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1392 michael 912 done
1393    
1394     # There might be people who depend on the old broken behavior: `$host'
1395     # used to hold the argument of --host etc.
1396     # FIXME: To remove some day.
1397     build=$build_alias
1398     host=$host_alias
1399     target=$target_alias
1400    
1401     # FIXME: To remove some day.
1402     if test "x$host_alias" != x; then
1403     if test "x$build_alias" = x; then
1404     cross_compiling=maybe
1405 db 941 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1406 michael 912 If a cross compiler is detected then cross compile mode will be used." >&2
1407     elif test "x$build_alias" != "x$host_alias"; then
1408     cross_compiling=yes
1409     fi
1410     fi
1411    
1412     ac_tool_prefix=
1413     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1414    
1415     test "$silent" = yes && exec 6>/dev/null
1416    
1417    
1418     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1419     ac_ls_di=`ls -di .` &&
1420     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1421 michael 967 as_fn_error "working directory cannot be determined"
1422 michael 912 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1423 michael 967 as_fn_error "pwd does not report name of working directory"
1424 michael 912
1425    
1426     # Find the source files, if location was not specified.
1427     if test -z "$srcdir"; then
1428     ac_srcdir_defaulted=yes
1429     # Try the directory containing this script, then the parent directory.
1430 db 941 ac_confdir=`$as_dirname -- "$as_myself" ||
1431     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1432     X"$as_myself" : 'X\(//\)[^/]' \| \
1433     X"$as_myself" : 'X\(//\)$' \| \
1434     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1435     $as_echo X"$as_myself" |
1436 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1437     s//\1/
1438     q
1439     }
1440     /^X\(\/\/\)[^/].*/{
1441     s//\1/
1442     q
1443     }
1444     /^X\(\/\/\)$/{
1445     s//\1/
1446     q
1447     }
1448     /^X\(\/\).*/{
1449     s//\1/
1450     q
1451     }
1452     s/.*/./; q'`
1453     srcdir=$ac_confdir
1454     if test ! -r "$srcdir/$ac_unique_file"; then
1455     srcdir=..
1456     fi
1457     else
1458     ac_srcdir_defaulted=no
1459     fi
1460     if test ! -r "$srcdir/$ac_unique_file"; then
1461     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1462 michael 967 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1463 michael 912 fi
1464     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1465     ac_abs_confdir=`(
1466 michael 967 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1467 michael 912 pwd)`
1468     # When building in place, set srcdir=.
1469     if test "$ac_abs_confdir" = "$ac_pwd"; then
1470     srcdir=.
1471     fi
1472     # Remove unnecessary trailing slashes from srcdir.
1473     # Double slashes in file names in object file debugging info
1474     # mess up M-x gdb in Emacs.
1475     case $srcdir in
1476     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1477     esac
1478     for ac_var in $ac_precious_vars; do
1479     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1480     eval ac_env_${ac_var}_value=\$${ac_var}
1481     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1482     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1483     done
1484    
1485     #
1486     # Report the --help message.
1487     #
1488     if test "$ac_init_help" = "long"; then
1489     # Omit some internal or obsolete options to make the list less imposing.
1490     # This message is too long to be a string in the A/UX 3.1 sh.
1491     cat <<_ACEOF
1492 michael 1039 \`configure' configures ircd-hybrid 7.3-rc1 to adapt to many kinds of systems.
1493 michael 912
1494     Usage: $0 [OPTION]... [VAR=VALUE]...
1495    
1496     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1497     VAR=VALUE. See below for descriptions of some of the useful variables.
1498    
1499     Defaults for the options are specified in brackets.
1500    
1501     Configuration:
1502     -h, --help display this help and exit
1503     --help=short display options specific to this package
1504     --help=recursive display the short help of all the included packages
1505     -V, --version display version information and exit
1506     -q, --quiet, --silent do not print \`checking...' messages
1507     --cache-file=FILE cache test results in FILE [disabled]
1508     -C, --config-cache alias for \`--cache-file=config.cache'
1509     -n, --no-create do not create output files
1510     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1511    
1512     Installation directories:
1513     --prefix=PREFIX install architecture-independent files in PREFIX
1514 db 941 [$ac_default_prefix]
1515 michael 912 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1516 db 941 [PREFIX]
1517 michael 912
1518     By default, \`make install' will install all the files in
1519     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1520     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1521     for instance \`--prefix=\$HOME'.
1522    
1523     For better control, use the options below.
1524    
1525     Fine tuning of the installation directories:
1526 db 941 --bindir=DIR user executables [EPREFIX/bin]
1527     --sbindir=DIR system admin executables [EPREFIX/sbin]
1528     --libexecdir=DIR program executables [EPREFIX/libexec]
1529     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1530     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1531     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1532     --libdir=DIR object code libraries [EPREFIX/lib]
1533     --includedir=DIR C header files [PREFIX/include]
1534     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1535     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1536     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1537     --infodir=DIR info documentation [DATAROOTDIR/info]
1538     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1539     --mandir=DIR man documentation [DATAROOTDIR/man]
1540     --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1541     --htmldir=DIR html documentation [DOCDIR]
1542     --dvidir=DIR dvi documentation [DOCDIR]
1543     --pdfdir=DIR pdf documentation [DOCDIR]
1544     --psdir=DIR ps documentation [DOCDIR]
1545 michael 912 _ACEOF
1546    
1547     cat <<\_ACEOF
1548    
1549     Program names:
1550     --program-prefix=PREFIX prepend PREFIX to installed program names
1551     --program-suffix=SUFFIX append SUFFIX to installed program names
1552     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1553    
1554     System types:
1555     --build=BUILD configure for building on BUILD [guessed]
1556     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1557     _ACEOF
1558     fi
1559    
1560     if test -n "$ac_init_help"; then
1561     case $ac_init_help in
1562 michael 1039 short | recursive ) echo "Configuration of ircd-hybrid 7.3-rc1:";;
1563 michael 912 esac
1564     cat <<\_ACEOF
1565    
1566     Optional Features:
1567 db 941 --disable-option-checking ignore unrecognized --enable/--with options
1568 michael 912 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1569     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1570     --enable-maintainer-mode enable make rules and dependencies not useful
1571     (and sometimes confusing) to the casual installer
1572     --disable-dependency-tracking speeds up one-time build
1573     --enable-dependency-tracking do not reject slow dependency extractors
1574 michael 977 --enable-static[=PKGS] build static libraries [default=no]
1575 michael 945 --enable-shared[=PKGS] build shared libraries [default=yes]
1576 michael 912 --enable-fast-install[=PKGS]
1577     optimize for fast installation [default=yes]
1578     --disable-libtool-lock avoid locking (might break parallel builds)
1579 michael 945 --enable-ltdl-install install libltdl
1580 michael 923 --disable-zlib Disable ziplinks support
1581 michael 1009 --disable-libpcre Disable PCRE support
1582 michael 912 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1583     --disable-openssl Disable OpenSSL support.
1584 michael 924 --enable-assert Enable assert() statements
1585 michael 925 --enable-small-net Enable small network support.
1586 michael 912 --enable-kqueue Force kqueue usage.
1587     --enable-epoll Force epoll usage.
1588     --enable-devpoll Force devpoll usage.
1589     --enable-rtsigio Force rtsigio usage.
1590     --enable-poll Force poll usage.
1591     --enable-select Force select usage.
1592     --enable-efnet For IRCDs running on EFnet.
1593     --enable-halfops Enable halfops support.
1594     --enable-debugging Enable debugging.
1595     --enable-warnings Enable compiler warnings.
1596     --enable-syslog="EVENTS"
1597     Enable syslog for events: users oper (space
1598     separated in quotes; default: disabled).
1599    
1600     Optional Packages:
1601     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1602     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1603     --with-pic try to use only PIC/non-PIC objects [default=use
1604     both]
1605 michael 945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1606     --with-included-ltdl use the GNU ltdl sources included here
1607     --with-ltdl-include=DIR use the ltdl headers installed in DIR
1608     --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1609 michael 923 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1610 michael 1009 --with-libpcre-path=DIR Path to libpcre.so for PCRE support.
1611 michael 912 --with-nicklen=<value> Set nickname length (default 9).
1612     --with-topiclen=<value> Set topic length (default 160).
1613     --with-syslog-facility=LOG
1614     Define the syslog facility to use (default:
1615     LOG_LOCAL4)
1616    
1617     Some influential environment variables:
1618     CC C compiler command
1619     CFLAGS C compiler flags
1620     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1621     nonstandard directory <lib dir>
1622     LIBS libraries to pass to the linker, e.g. -l<library>
1623 michael 1033 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1624 michael 912 you have headers in a nonstandard directory <include dir>
1625     YACC The `Yet Another C Compiler' implementation to use. Defaults to
1626     the first program found out of: `bison -y', `byacc', `yacc'.
1627     YFLAGS The list of arguments that will be passed by default to $YACC.
1628     This script will default YFLAGS to the empty string to avoid a
1629     default value of `-d' given by some make applications.
1630     CPP C preprocessor
1631    
1632     Use these variables to override the choices made by `configure' or to help
1633     it to find libraries and programs with nonstandard names/locations.
1634    
1635 michael 1039 Report bugs to <bugs@ircd-hybrid.org>.
1636 michael 912 _ACEOF
1637     ac_status=$?
1638     fi
1639    
1640     if test "$ac_init_help" = "recursive"; then
1641     # If there are subdirs, report their specific --help.
1642     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1643 db 941 test -d "$ac_dir" ||
1644     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1645     continue
1646 michael 912 ac_builddir=.
1647    
1648     case "$ac_dir" in
1649     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1650     *)
1651 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1652 michael 912 # A ".." for each directory in $ac_dir_suffix.
1653 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1654 michael 912 case $ac_top_builddir_sub in
1655     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1656     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1657     esac ;;
1658     esac
1659     ac_abs_top_builddir=$ac_pwd
1660     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1661     # for backward compatibility:
1662     ac_top_builddir=$ac_top_build_prefix
1663    
1664     case $srcdir in
1665     .) # We are building in place.
1666     ac_srcdir=.
1667     ac_top_srcdir=$ac_top_builddir_sub
1668     ac_abs_top_srcdir=$ac_pwd ;;
1669     [\\/]* | ?:[\\/]* ) # Absolute name.
1670     ac_srcdir=$srcdir$ac_dir_suffix;
1671     ac_top_srcdir=$srcdir
1672     ac_abs_top_srcdir=$srcdir ;;
1673     *) # Relative name.
1674     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1675     ac_top_srcdir=$ac_top_build_prefix$srcdir
1676     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1677     esac
1678     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1679    
1680     cd "$ac_dir" || { ac_status=$?; continue; }
1681     # Check for guested configure.
1682     if test -f "$ac_srcdir/configure.gnu"; then
1683     echo &&
1684     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1685     elif test -f "$ac_srcdir/configure"; then
1686     echo &&
1687     $SHELL "$ac_srcdir/configure" --help=recursive
1688     else
1689 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1690 michael 912 fi || ac_status=$?
1691     cd "$ac_pwd" || { ac_status=$?; break; }
1692     done
1693     fi
1694    
1695     test -n "$ac_init_help" && exit $ac_status
1696     if $ac_init_version; then
1697     cat <<\_ACEOF
1698 michael 1039 ircd-hybrid configure 7.3-rc1
1699 michael 1033 generated by GNU Autoconf 2.65
1700 michael 912
1701 michael 967 Copyright (C) 2009 Free Software Foundation, Inc.
1702 michael 912 This configure script is free software; the Free Software Foundation
1703     gives unlimited permission to copy, distribute and modify it.
1704     _ACEOF
1705     exit
1706     fi
1707 michael 967
1708     ## ------------------------ ##
1709     ## Autoconf initialization. ##
1710     ## ------------------------ ##
1711    
1712     # ac_fn_c_try_compile LINENO
1713     # --------------------------
1714     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1715     ac_fn_c_try_compile ()
1716     {
1717     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718     rm -f conftest.$ac_objext
1719     if { { ac_try="$ac_compile"
1720     case "(($ac_try" in
1721     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722     *) ac_try_echo=$ac_try;;
1723     esac
1724     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725     $as_echo "$ac_try_echo"; } >&5
1726     (eval "$ac_compile") 2>conftest.err
1727     ac_status=$?
1728     if test -s conftest.err; then
1729     grep -v '^ *+' conftest.err >conftest.er1
1730     cat conftest.er1 >&5
1731     mv -f conftest.er1 conftest.err
1732     fi
1733     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734     test $ac_status = 0; } && {
1735     test -z "$ac_c_werror_flag" ||
1736     test ! -s conftest.err
1737     } && test -s conftest.$ac_objext; then :
1738     ac_retval=0
1739     else
1740     $as_echo "$as_me: failed program was:" >&5
1741     sed 's/^/| /' conftest.$ac_ext >&5
1742    
1743     ac_retval=1
1744     fi
1745     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1746 michael 1033 as_fn_set_status $ac_retval
1747 michael 967
1748     } # ac_fn_c_try_compile
1749    
1750     # ac_fn_c_try_link LINENO
1751     # -----------------------
1752     # Try to link conftest.$ac_ext, and return whether this succeeded.
1753     ac_fn_c_try_link ()
1754     {
1755     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1756     rm -f conftest.$ac_objext conftest$ac_exeext
1757     if { { ac_try="$ac_link"
1758     case "(($ac_try" in
1759     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1760     *) ac_try_echo=$ac_try;;
1761     esac
1762     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1763     $as_echo "$ac_try_echo"; } >&5
1764     (eval "$ac_link") 2>conftest.err
1765     ac_status=$?
1766     if test -s conftest.err; then
1767     grep -v '^ *+' conftest.err >conftest.er1
1768     cat conftest.er1 >&5
1769     mv -f conftest.er1 conftest.err
1770     fi
1771     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1772     test $ac_status = 0; } && {
1773     test -z "$ac_c_werror_flag" ||
1774     test ! -s conftest.err
1775     } && test -s conftest$ac_exeext && {
1776     test "$cross_compiling" = yes ||
1777     $as_test_x conftest$ac_exeext
1778     }; then :
1779     ac_retval=0
1780     else
1781     $as_echo "$as_me: failed program was:" >&5
1782     sed 's/^/| /' conftest.$ac_ext >&5
1783    
1784     ac_retval=1
1785     fi
1786     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1787     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1788     # interfere with the next link command; also delete a directory that is
1789     # left behind by Apple's compiler. We do this before executing the actions.
1790     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1791     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1792 michael 1033 as_fn_set_status $ac_retval
1793 michael 967
1794     } # ac_fn_c_try_link
1795    
1796     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1797     # -------------------------------------------------------
1798     # Tests whether HEADER exists and can be compiled using the include files in
1799     # INCLUDES, setting the cache variable VAR accordingly.
1800     ac_fn_c_check_header_compile ()
1801     {
1802     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1804     $as_echo_n "checking for $2... " >&6; }
1805     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1806     $as_echo_n "(cached) " >&6
1807     else
1808     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1809     /* end confdefs.h. */
1810     $4
1811     #include <$2>
1812     _ACEOF
1813     if ac_fn_c_try_compile "$LINENO"; then :
1814     eval "$3=yes"
1815     else
1816     eval "$3=no"
1817     fi
1818     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1819     fi
1820     eval ac_res=\$$3
1821     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1822     $as_echo "$ac_res" >&6; }
1823     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824    
1825     } # ac_fn_c_check_header_compile
1826    
1827     # ac_fn_c_try_cpp LINENO
1828     # ----------------------
1829     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1830     ac_fn_c_try_cpp ()
1831     {
1832     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833     if { { ac_try="$ac_cpp conftest.$ac_ext"
1834     case "(($ac_try" in
1835     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836     *) ac_try_echo=$ac_try;;
1837     esac
1838     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839     $as_echo "$ac_try_echo"; } >&5
1840     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1841     ac_status=$?
1842     if test -s conftest.err; then
1843     grep -v '^ *+' conftest.err >conftest.er1
1844     cat conftest.er1 >&5
1845     mv -f conftest.er1 conftest.err
1846     fi
1847     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848     test $ac_status = 0; } >/dev/null && {
1849     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1850     test ! -s conftest.err
1851     }; then :
1852     ac_retval=0
1853     else
1854     $as_echo "$as_me: failed program was:" >&5
1855     sed 's/^/| /' conftest.$ac_ext >&5
1856    
1857     ac_retval=1
1858     fi
1859     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1860 michael 1033 as_fn_set_status $ac_retval
1861 michael 967
1862     } # ac_fn_c_try_cpp
1863    
1864     # ac_fn_c_try_run LINENO
1865     # ----------------------
1866     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1867     # that executables *can* be run.
1868     ac_fn_c_try_run ()
1869     {
1870     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1871     if { { ac_try="$ac_link"
1872     case "(($ac_try" in
1873     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874     *) ac_try_echo=$ac_try;;
1875     esac
1876     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877     $as_echo "$ac_try_echo"; } >&5
1878     (eval "$ac_link") 2>&5
1879     ac_status=$?
1880     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1882     { { case "(($ac_try" in
1883     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884     *) ac_try_echo=$ac_try;;
1885     esac
1886     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887     $as_echo "$ac_try_echo"; } >&5
1888     (eval "$ac_try") 2>&5
1889     ac_status=$?
1890     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1891     test $ac_status = 0; }; }; then :
1892     ac_retval=0
1893     else
1894     $as_echo "$as_me: program exited with status $ac_status" >&5
1895     $as_echo "$as_me: failed program was:" >&5
1896     sed 's/^/| /' conftest.$ac_ext >&5
1897    
1898     ac_retval=$ac_status
1899     fi
1900     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1901     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1902 michael 1033 as_fn_set_status $ac_retval
1903 michael 967
1904     } # ac_fn_c_try_run
1905    
1906     # ac_fn_c_check_func LINENO FUNC VAR
1907     # ----------------------------------
1908     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1909     ac_fn_c_check_func ()
1910     {
1911     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1913     $as_echo_n "checking for $2... " >&6; }
1914     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1915     $as_echo_n "(cached) " >&6
1916     else
1917     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1918     /* end confdefs.h. */
1919     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1920     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1921     #define $2 innocuous_$2
1922    
1923     /* System header to define __stub macros and hopefully few prototypes,
1924     which can conflict with char $2 (); below.
1925     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1926     <limits.h> exists even on freestanding compilers. */
1927    
1928     #ifdef __STDC__
1929     # include <limits.h>
1930     #else
1931     # include <assert.h>
1932     #endif
1933    
1934     #undef $2
1935    
1936     /* Override any GCC internal prototype to avoid an error.
1937     Use char because int might match the return type of a GCC
1938     builtin and then its argument prototype would still apply. */
1939     #ifdef __cplusplus
1940     extern "C"
1941     #endif
1942     char $2 ();
1943     /* The GNU C library defines this for functions which it implements
1944     to always fail with ENOSYS. Some functions are actually named
1945     something starting with __ and the normal name is an alias. */
1946     #if defined __stub_$2 || defined __stub___$2
1947     choke me
1948     #endif
1949    
1950     int
1951     main ()
1952     {
1953     return $2 ();
1954     ;
1955     return 0;
1956     }
1957     _ACEOF
1958     if ac_fn_c_try_link "$LINENO"; then :
1959     eval "$3=yes"
1960     else
1961     eval "$3=no"
1962     fi
1963     rm -f core conftest.err conftest.$ac_objext \
1964     conftest$ac_exeext conftest.$ac_ext
1965     fi
1966     eval ac_res=\$$3
1967     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1968     $as_echo "$ac_res" >&6; }
1969     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1970    
1971     } # ac_fn_c_check_func
1972    
1973     # ac_fn_c_check_decl LINENO SYMBOL VAR
1974     # ------------------------------------
1975     # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1976     ac_fn_c_check_decl ()
1977     {
1978     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1980     $as_echo_n "checking whether $2 is declared... " >&6; }
1981     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1982     $as_echo_n "(cached) " >&6
1983     else
1984     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1985     /* end confdefs.h. */
1986     $4
1987     int
1988     main ()
1989     {
1990     #ifndef $2
1991     (void) $2;
1992     #endif
1993    
1994     ;
1995     return 0;
1996     }
1997     _ACEOF
1998     if ac_fn_c_try_compile "$LINENO"; then :
1999     eval "$3=yes"
2000     else
2001     eval "$3=no"
2002     fi
2003     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004     fi
2005     eval ac_res=\$$3
2006     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007     $as_echo "$ac_res" >&6; }
2008     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009    
2010     } # ac_fn_c_check_decl
2011    
2012     # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2013     # -------------------------------------------
2014     # Tests whether TYPE exists after having included INCLUDES, setting cache
2015     # variable VAR accordingly.
2016     ac_fn_c_check_type ()
2017     {
2018     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020     $as_echo_n "checking for $2... " >&6; }
2021     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2022     $as_echo_n "(cached) " >&6
2023     else
2024     eval "$3=no"
2025     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026     /* end confdefs.h. */
2027     $4
2028     int
2029     main ()
2030     {
2031     if (sizeof ($2))
2032     return 0;
2033     ;
2034     return 0;
2035     }
2036     _ACEOF
2037     if ac_fn_c_try_compile "$LINENO"; then :
2038     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039     /* end confdefs.h. */
2040     $4
2041     int
2042     main ()
2043     {
2044     if (sizeof (($2)))
2045     return 0;
2046     ;
2047     return 0;
2048     }
2049     _ACEOF
2050     if ac_fn_c_try_compile "$LINENO"; then :
2051    
2052     else
2053     eval "$3=yes"
2054     fi
2055     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2056     fi
2057     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2058     fi
2059     eval ac_res=\$$3
2060     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2061     $as_echo "$ac_res" >&6; }
2062     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2063    
2064     } # ac_fn_c_check_type
2065    
2066     # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2067     # ----------------------------------------------------
2068     # Tries to find if the field MEMBER exists in type AGGR, after including
2069     # INCLUDES, setting cache variable VAR accordingly.
2070     ac_fn_c_check_member ()
2071     {
2072     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2073     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2074     $as_echo_n "checking for $2.$3... " >&6; }
2075     if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2076     $as_echo_n "(cached) " >&6
2077     else
2078     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079     /* end confdefs.h. */
2080     $5
2081     int
2082     main ()
2083     {
2084     static $2 ac_aggr;
2085     if (ac_aggr.$3)
2086     return 0;
2087     ;
2088     return 0;
2089     }
2090     _ACEOF
2091     if ac_fn_c_try_compile "$LINENO"; then :
2092     eval "$4=yes"
2093     else
2094     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095     /* end confdefs.h. */
2096     $5
2097     int
2098     main ()
2099     {
2100     static $2 ac_aggr;
2101     if (sizeof ac_aggr.$3)
2102     return 0;
2103     ;
2104     return 0;
2105     }
2106     _ACEOF
2107     if ac_fn_c_try_compile "$LINENO"; then :
2108     eval "$4=yes"
2109     else
2110     eval "$4=no"
2111     fi
2112     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113     fi
2114     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115     fi
2116     eval ac_res=\$$4
2117     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2118     $as_echo "$ac_res" >&6; }
2119     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2120    
2121     } # ac_fn_c_check_member
2122    
2123     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2124     # -------------------------------------------------------
2125     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2126     # the include files in INCLUDES and setting the cache variable VAR
2127     # accordingly.
2128     ac_fn_c_check_header_mongrel ()
2129     {
2130     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2131     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2132     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133     $as_echo_n "checking for $2... " >&6; }
2134     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2135     $as_echo_n "(cached) " >&6
2136     fi
2137     eval ac_res=\$$3
2138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2139     $as_echo "$ac_res" >&6; }
2140     else
2141     # Is the header compilable?
2142     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2143     $as_echo_n "checking $2 usability... " >&6; }
2144     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145     /* end confdefs.h. */
2146     $4
2147     #include <$2>
2148     _ACEOF
2149     if ac_fn_c_try_compile "$LINENO"; then :
2150     ac_header_compiler=yes
2151     else
2152     ac_header_compiler=no
2153     fi
2154     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2156     $as_echo "$ac_header_compiler" >&6; }
2157    
2158     # Is the header present?
2159     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2160     $as_echo_n "checking $2 presence... " >&6; }
2161     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2162     /* end confdefs.h. */
2163     #include <$2>
2164     _ACEOF
2165     if ac_fn_c_try_cpp "$LINENO"; then :
2166     ac_header_preproc=yes
2167     else
2168     ac_header_preproc=no
2169     fi
2170     rm -f conftest.err conftest.$ac_ext
2171     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2172     $as_echo "$ac_header_preproc" >&6; }
2173    
2174     # So? What about this header?
2175     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2176     yes:no: )
2177     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2178     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2179     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2180     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2181     ;;
2182     no:yes:* )
2183     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2184     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2185     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2186     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2187     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2188     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2189     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2190     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2191     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2192     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2193 michael 1039 ( cat <<\_ASBOX
2194     ## ----------------------------------- ##
2195     ## Report this to bugs@ircd-hybrid.org ##
2196     ## ----------------------------------- ##
2197     _ASBOX
2198     ) | sed "s/^/$as_me: WARNING: /" >&2
2199 michael 967 ;;
2200     esac
2201     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202     $as_echo_n "checking for $2... " >&6; }
2203     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2204     $as_echo_n "(cached) " >&6
2205     else
2206     eval "$3=\$ac_header_compiler"
2207     fi
2208     eval ac_res=\$$3
2209     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210     $as_echo "$ac_res" >&6; }
2211     fi
2212     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2213    
2214     } # ac_fn_c_check_header_mongrel
2215 michael 912 cat >config.log <<_ACEOF
2216     This file contains any messages produced by compilers while
2217     running configure, to aid debugging if configure makes a mistake.
2218    
2219 michael 1039 It was created by ircd-hybrid $as_me 7.3-rc1, which was
2220 michael 1033 generated by GNU Autoconf 2.65. Invocation command line was
2221 michael 912
2222     $ $0 $@
2223    
2224     _ACEOF
2225     exec 5>>config.log
2226     {
2227     cat <<_ASUNAME
2228     ## --------- ##
2229     ## Platform. ##
2230     ## --------- ##
2231    
2232     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2233     uname -m = `(uname -m) 2>/dev/null || echo unknown`
2234     uname -r = `(uname -r) 2>/dev/null || echo unknown`
2235     uname -s = `(uname -s) 2>/dev/null || echo unknown`
2236     uname -v = `(uname -v) 2>/dev/null || echo unknown`
2237    
2238     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2239     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2240    
2241     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2242     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2243     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2244     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2245     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2246     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2247     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2248    
2249     _ASUNAME
2250    
2251     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252     for as_dir in $PATH
2253     do
2254     IFS=$as_save_IFS
2255     test -z "$as_dir" && as_dir=.
2256 michael 967 $as_echo "PATH: $as_dir"
2257     done
2258 michael 912 IFS=$as_save_IFS
2259    
2260     } >&5
2261    
2262     cat >&5 <<_ACEOF
2263    
2264    
2265     ## ----------- ##
2266     ## Core tests. ##
2267     ## ----------- ##
2268    
2269     _ACEOF
2270    
2271    
2272     # Keep a trace of the command line.
2273     # Strip out --no-create and --no-recursion so they do not pile up.
2274     # Strip out --silent because we don't want to record it for future runs.
2275     # Also quote any args containing shell meta-characters.
2276     # Make two passes to allow for proper duplicate-argument suppression.
2277     ac_configure_args=
2278     ac_configure_args0=
2279     ac_configure_args1=
2280     ac_must_keep_next=false
2281     for ac_pass in 1 2
2282     do
2283     for ac_arg
2284     do
2285     case $ac_arg in
2286     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2287     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2288     | -silent | --silent | --silen | --sile | --sil)
2289     continue ;;
2290     *\'*)
2291 db 941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 michael 912 esac
2293     case $ac_pass in
2294 michael 967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2295 michael 912 2)
2296 michael 967 as_fn_append ac_configure_args1 " '$ac_arg'"
2297 michael 912 if test $ac_must_keep_next = true; then
2298     ac_must_keep_next=false # Got value, back to normal.
2299     else
2300     case $ac_arg in
2301     *=* | --config-cache | -C | -disable-* | --disable-* \
2302     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2303     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2304     | -with-* | --with-* | -without-* | --without-* | --x)
2305     case "$ac_configure_args0 " in
2306     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2307     esac
2308     ;;
2309     -* ) ac_must_keep_next=true ;;
2310     esac
2311     fi
2312 michael 967 as_fn_append ac_configure_args " '$ac_arg'"
2313 michael 912 ;;
2314     esac
2315     done
2316     done
2317 michael 967 { ac_configure_args0=; unset ac_configure_args0;}
2318     { ac_configure_args1=; unset ac_configure_args1;}
2319 michael 912
2320     # When interrupted or exit'd, cleanup temporary files, and complete
2321     # config.log. We remove comments because anyway the quotes in there
2322     # would cause problems or look ugly.
2323     # WARNING: Use '\'' to represent an apostrophe within the trap.
2324     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2325     trap 'exit_status=$?
2326     # Save into config.log some information that might help in debugging.
2327     {
2328     echo
2329    
2330     cat <<\_ASBOX
2331     ## ---------------- ##
2332     ## Cache variables. ##
2333     ## ---------------- ##
2334     _ASBOX
2335     echo
2336     # The following way of writing the cache mishandles newlines in values,
2337     (
2338     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2339     eval ac_val=\$$ac_var
2340     case $ac_val in #(
2341     *${as_nl}*)
2342     case $ac_var in #(
2343 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2344 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2345 michael 912 esac
2346     case $ac_var in #(
2347     _ | IFS | as_nl) ;; #(
2348 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2349 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
2350 michael 912 esac ;;
2351     esac
2352     done
2353     (set) 2>&1 |
2354     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2355     *${as_nl}ac_space=\ *)
2356     sed -n \
2357     "s/'\''/'\''\\\\'\'''\''/g;
2358     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2359     ;; #(
2360     *)
2361     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2362     ;;
2363     esac |
2364     sort
2365     )
2366     echo
2367    
2368     cat <<\_ASBOX
2369     ## ----------------- ##
2370     ## Output variables. ##
2371     ## ----------------- ##
2372     _ASBOX
2373     echo
2374     for ac_var in $ac_subst_vars
2375     do
2376     eval ac_val=\$$ac_var
2377     case $ac_val in
2378 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2379 michael 912 esac
2380 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2381 michael 912 done | sort
2382     echo
2383    
2384     if test -n "$ac_subst_files"; then
2385     cat <<\_ASBOX
2386     ## ------------------- ##
2387     ## File substitutions. ##
2388     ## ------------------- ##
2389     _ASBOX
2390     echo
2391     for ac_var in $ac_subst_files
2392     do
2393     eval ac_val=\$$ac_var
2394     case $ac_val in
2395 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2396 michael 912 esac
2397 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2398 michael 912 done | sort
2399     echo
2400     fi
2401    
2402     if test -s confdefs.h; then
2403     cat <<\_ASBOX
2404     ## ----------- ##
2405     ## confdefs.h. ##
2406     ## ----------- ##
2407     _ASBOX
2408     echo
2409     cat confdefs.h
2410     echo
2411     fi
2412     test "$ac_signal" != 0 &&
2413 db 941 $as_echo "$as_me: caught signal $ac_signal"
2414     $as_echo "$as_me: exit $exit_status"
2415 michael 912 } >&5
2416     rm -f core *.core core.conftest.* &&
2417     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2418     exit $exit_status
2419     ' 0
2420     for ac_signal in 1 2 13 15; do
2421 michael 967 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2422 michael 912 done
2423     ac_signal=0
2424    
2425     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2426     rm -f -r conftest* confdefs.h
2427    
2428 michael 967 $as_echo "/* confdefs.h */" > confdefs.h
2429    
2430 michael 912 # Predefined preprocessor variables.
2431    
2432     cat >>confdefs.h <<_ACEOF
2433     #define PACKAGE_NAME "$PACKAGE_NAME"
2434     _ACEOF
2435    
2436     cat >>confdefs.h <<_ACEOF
2437     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2438     _ACEOF
2439    
2440     cat >>confdefs.h <<_ACEOF
2441     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2442     _ACEOF
2443    
2444     cat >>confdefs.h <<_ACEOF
2445     #define PACKAGE_STRING "$PACKAGE_STRING"
2446     _ACEOF
2447    
2448     cat >>confdefs.h <<_ACEOF
2449     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2450     _ACEOF
2451    
2452 michael 967 cat >>confdefs.h <<_ACEOF
2453     #define PACKAGE_URL "$PACKAGE_URL"
2454     _ACEOF
2455 michael 912
2456 michael 967
2457 michael 912 # Let the site file select an alternate cache file if it wants to.
2458 db 941 # Prefer an explicitly selected file to automatically selected ones.
2459     ac_site_file1=NONE
2460     ac_site_file2=NONE
2461 michael 912 if test -n "$CONFIG_SITE"; then
2462 db 941 ac_site_file1=$CONFIG_SITE
2463 michael 912 elif test "x$prefix" != xNONE; then
2464 db 941 ac_site_file1=$prefix/share/config.site
2465     ac_site_file2=$prefix/etc/config.site
2466 michael 912 else
2467 db 941 ac_site_file1=$ac_default_prefix/share/config.site
2468     ac_site_file2=$ac_default_prefix/etc/config.site
2469 michael 912 fi
2470 db 941 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2471 michael 912 do
2472 db 941 test "x$ac_site_file" = xNONE && continue
2473 michael 1033 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2474 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2475 db 941 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2476 michael 912 sed 's/^/| /' "$ac_site_file" >&5
2477     . "$ac_site_file"
2478     fi
2479     done
2480    
2481     if test -r "$cache_file"; then
2482 michael 1033 # Some versions of bash will fail to source /dev/null (special files
2483     # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2484     if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2485 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2486 db 941 $as_echo "$as_me: loading cache $cache_file" >&6;}
2487 michael 912 case $cache_file in
2488     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2489     *) . "./$cache_file";;
2490     esac
2491     fi
2492     else
2493 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2494 db 941 $as_echo "$as_me: creating cache $cache_file" >&6;}
2495 michael 912 >$cache_file
2496     fi
2497    
2498 michael 967 as_fn_append ac_func_list " mmap"
2499     as_fn_append ac_func_list " strtok_r"
2500     as_fn_append ac_func_list " usleep"
2501     as_fn_append ac_func_list " strlcat"
2502     as_fn_append ac_func_list " strlcpy"
2503     as_fn_append ac_header_list " crypt.h"
2504     as_fn_append ac_header_list " inttypes.h"
2505     as_fn_append ac_header_list " stdint.h"
2506     as_fn_append ac_header_list " sys/resource.h"
2507     as_fn_append ac_header_list " sys/param.h"
2508     as_fn_append ac_header_list " errno.h"
2509     as_fn_append ac_header_list " sys/syslog.h"
2510     as_fn_append ac_header_list " types.h"
2511     as_fn_append ac_header_list " socket.h"
2512     as_fn_append ac_header_list " sys/wait.h"
2513     as_fn_append ac_header_list " wait.h"
2514     as_fn_append ac_header_list " link.h"
2515 michael 912 # Check that the precious variables saved in the cache have kept the same
2516     # value.
2517     ac_cache_corrupted=false
2518     for ac_var in $ac_precious_vars; do
2519     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2520     eval ac_new_set=\$ac_env_${ac_var}_set
2521     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2522     eval ac_new_val=\$ac_env_${ac_var}_value
2523     case $ac_old_set,$ac_new_set in
2524     set,)
2525 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2526 db 941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2527 michael 912 ac_cache_corrupted=: ;;
2528     ,set)
2529 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2530 db 941 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2531 michael 912 ac_cache_corrupted=: ;;
2532     ,);;
2533     *)
2534     if test "x$ac_old_val" != "x$ac_new_val"; then
2535 db 941 # differences in whitespace do not lead to failure.
2536     ac_old_val_w=`echo x $ac_old_val`
2537     ac_new_val_w=`echo x $ac_new_val`
2538     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2539 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2540 db 941 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2541     ac_cache_corrupted=:
2542     else
2543 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2544 db 941 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2545     eval $ac_var=\$ac_old_val
2546     fi
2547 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2548 db 941 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2549 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2550 db 941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2551 michael 912 fi;;
2552     esac
2553     # Pass precious variables to config.status.
2554     if test "$ac_new_set" = set; then
2555     case $ac_new_val in
2556 db 941 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2557 michael 912 *) ac_arg=$ac_var=$ac_new_val ;;
2558     esac
2559     case " $ac_configure_args " in
2560     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2561 michael 967 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2562 michael 912 esac
2563     fi
2564     done
2565     if $ac_cache_corrupted; then
2566 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2567 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2568 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2569 db 941 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2570 michael 967 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2571 michael 912 fi
2572 michael 967 ## -------------------- ##
2573     ## Main body of script. ##
2574     ## -------------------- ##
2575 michael 912
2576     ac_ext=c
2577     ac_cpp='$CPP $CPPFLAGS'
2578     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581    
2582    
2583 michael 945 am__api_version='1.11'
2584 michael 912
2585     ac_aux_dir=
2586     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2587 michael 967 for ac_t in install-sh install.sh shtool; do
2588     if test -f "$ac_dir/$ac_t"; then
2589     ac_aux_dir=$ac_dir
2590     ac_install_sh="$ac_aux_dir/$ac_t -c"
2591     break 2
2592     fi
2593     done
2594 michael 912 done
2595     if test -z "$ac_aux_dir"; then
2596 michael 967 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2597 michael 912 fi
2598    
2599     # These three variables are undocumented and unsupported,
2600     # and are intended to be withdrawn in a future Autoconf release.
2601     # They can cause serious problems if a builder's source tree is in a directory
2602     # whose full name contains unusual characters.
2603     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2604     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2605     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2606    
2607    
2608     # Find a good install program. We prefer a C program (faster),
2609     # so one script is as good as another. But avoid the broken or
2610     # incompatible versions:
2611     # SysV /etc/install, /usr/sbin/install
2612     # SunOS /usr/etc/install
2613     # IRIX /sbin/install
2614     # AIX /bin/install
2615     # AmigaOS /C/install, which installs bootblocks on floppy discs
2616     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2617     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2618     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2619     # OS/2's system install, which has a completely different semantic
2620     # ./install, which can be erroneously created by make from ./install.sh.
2621 db 941 # Reject install programs that cannot install multiple files.
2622 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2623 db 941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2624 michael 912 if test -z "$INSTALL"; then
2625 michael 967 if test "${ac_cv_path_install+set}" = set; then :
2626 db 941 $as_echo_n "(cached) " >&6
2627 michael 912 else
2628     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2629     for as_dir in $PATH
2630     do
2631     IFS=$as_save_IFS
2632     test -z "$as_dir" && as_dir=.
2633 michael 967 # Account for people who put trailing slashes in PATH elements.
2634     case $as_dir/ in #((
2635     ./ | .// | /[cC]/* | \
2636 michael 912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2637 michael 967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2638 michael 912 /usr/ucb/* ) ;;
2639     *)
2640     # OSF1 and SCO ODT 3.0 have their own names for install.
2641     # Don't use installbsd from OSF since it installs stuff as root
2642     # by default.
2643     for ac_prog in ginstall scoinst install; do
2644     for ac_exec_ext in '' $ac_executable_extensions; do
2645     if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2646     if test $ac_prog = install &&
2647     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2648     # AIX install. It has an incompatible calling convention.
2649     :
2650     elif test $ac_prog = install &&
2651     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2652     # program-specific install script used by HP pwplus--don't use.
2653     :
2654     else
2655 db 941 rm -rf conftest.one conftest.two conftest.dir
2656     echo one > conftest.one
2657     echo two > conftest.two
2658     mkdir conftest.dir
2659     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2660     test -s conftest.one && test -s conftest.two &&
2661     test -s conftest.dir/conftest.one &&
2662     test -s conftest.dir/conftest.two
2663     then
2664     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2665     break 3
2666     fi
2667 michael 912 fi
2668     fi
2669     done
2670     done
2671     ;;
2672     esac
2673 db 941
2674 michael 967 done
2675 michael 912 IFS=$as_save_IFS
2676    
2677 db 941 rm -rf conftest.one conftest.two conftest.dir
2678 michael 912
2679     fi
2680     if test "${ac_cv_path_install+set}" = set; then
2681     INSTALL=$ac_cv_path_install
2682     else
2683     # As a last resort, use the slow shell script. Don't cache a
2684     # value for INSTALL within a source directory, because that will
2685     # break other packages using the cache if that directory is
2686     # removed, or if the value is a relative name.
2687     INSTALL=$ac_install_sh
2688     fi
2689     fi
2690 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2691 db 941 $as_echo "$INSTALL" >&6; }
2692 michael 912
2693     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2694     # It thinks the first close brace ends the variable substitution.
2695     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2696    
2697     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2698    
2699     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2700    
2701 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2702 db 941 $as_echo_n "checking whether build environment is sane... " >&6; }
2703 michael 912 # Just in case
2704     sleep 1
2705     echo timestamp > conftest.file
2706 michael 945 # Reject unsafe characters in $srcdir or the absolute working directory
2707     # name. Accept space and tab only in the latter.
2708     am_lf='
2709     '
2710     case `pwd` in
2711     *[\\\"\#\$\&\'\`$am_lf]*)
2712 michael 967 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2713 michael 945 esac
2714     case $srcdir in
2715     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2716 michael 967 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2717 michael 945 esac
2718    
2719 michael 912 # Do `set' in a subshell so we don't clobber the current shell's
2720     # arguments. Must try -L first in case configure is actually a
2721     # symlink; some systems play weird games with the mod time of symlinks
2722     # (eg FreeBSD returns the mod time of the symlink's containing
2723     # directory).
2724     if (
2725 michael 945 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2726 michael 912 if test "$*" = "X"; then
2727     # -L didn't work.
2728 michael 945 set X `ls -t "$srcdir/configure" conftest.file`
2729 michael 912 fi
2730     rm -f conftest.file
2731     if test "$*" != "X $srcdir/configure conftest.file" \
2732     && test "$*" != "X conftest.file $srcdir/configure"; then
2733    
2734     # If neither matched, then we have a broken ls. This can happen
2735     # if, for instance, CONFIG_SHELL is bash and it inherits a
2736     # broken ls alias from the environment. This has actually
2737     # happened. Such a system could not be considered "sane".
2738 michael 967 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2739     alias in your environment" "$LINENO" 5
2740 michael 912 fi
2741    
2742     test "$2" = conftest.file
2743     )
2744     then
2745     # Ok.
2746     :
2747     else
2748 michael 967 as_fn_error "newly created file is older than distributed files!
2749     Check your system clock" "$LINENO" 5
2750 michael 912 fi
2751 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2752 db 941 $as_echo "yes" >&6; }
2753 michael 912 test "$program_prefix" != NONE &&
2754     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2755     # Use a double $ so make ignores it.
2756     test "$program_suffix" != NONE &&
2757     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2758 db 941 # Double any \ or $.
2759 michael 912 # By default was `s,x,x', remove it if useless.
2760 db 941 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2761     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2762 michael 912
2763     # expand $ac_aux_dir to an absolute path
2764     am_aux_dir=`cd $ac_aux_dir && pwd`
2765    
2766 michael 945 if test x"${MISSING+set}" != xset; then
2767     case $am_aux_dir in
2768     *\ * | *\ *)
2769     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2770     *)
2771     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2772     esac
2773     fi
2774 michael 912 # Use eval to expand $SHELL
2775     if eval "$MISSING --run true"; then
2776     am_missing_run="$MISSING --run "
2777     else
2778     am_missing_run=
2779 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2780 db 941 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2781 michael 912 fi
2782    
2783 michael 945 if test x"${install_sh}" != xset; then
2784     case $am_aux_dir in
2785     *\ * | *\ *)
2786     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2787     *)
2788     install_sh="\${SHELL} $am_aux_dir/install-sh"
2789     esac
2790     fi
2791    
2792     # Installed binaries are usually stripped using `strip' when the user
2793     # run `make install-strip'. However `strip' might not be the right
2794     # tool to use in cross-compilation environments, therefore Automake
2795     # will honor the `STRIP' environment variable to overrule this program.
2796     if test "$cross_compiling" != no; then
2797     if test -n "$ac_tool_prefix"; then
2798     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2799     set dummy ${ac_tool_prefix}strip; ac_word=$2
2800 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2801 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2802 michael 967 if test "${ac_cv_prog_STRIP+set}" = set; then :
2803 michael 945 $as_echo_n "(cached) " >&6
2804     else
2805     if test -n "$STRIP"; then
2806     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2807     else
2808     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2809     for as_dir in $PATH
2810     do
2811     IFS=$as_save_IFS
2812     test -z "$as_dir" && as_dir=.
2813 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2814 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2815     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2816 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2817 michael 945 break 2
2818     fi
2819     done
2820 michael 967 done
2821 michael 945 IFS=$as_save_IFS
2822    
2823     fi
2824     fi
2825     STRIP=$ac_cv_prog_STRIP
2826     if test -n "$STRIP"; then
2827 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2828 michael 945 $as_echo "$STRIP" >&6; }
2829     else
2830 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2831 michael 945 $as_echo "no" >&6; }
2832     fi
2833    
2834    
2835     fi
2836     if test -z "$ac_cv_prog_STRIP"; then
2837     ac_ct_STRIP=$STRIP
2838     # Extract the first word of "strip", so it can be a program name with args.
2839     set dummy strip; ac_word=$2
2840 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2841 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2842 michael 967 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2843 michael 945 $as_echo_n "(cached) " >&6
2844     else
2845     if test -n "$ac_ct_STRIP"; then
2846     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2847     else
2848     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2849     for as_dir in $PATH
2850     do
2851     IFS=$as_save_IFS
2852     test -z "$as_dir" && as_dir=.
2853 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2854 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2855     ac_cv_prog_ac_ct_STRIP="strip"
2856 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2857 michael 945 break 2
2858     fi
2859     done
2860 michael 967 done
2861 michael 945 IFS=$as_save_IFS
2862    
2863     fi
2864     fi
2865     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2866     if test -n "$ac_ct_STRIP"; then
2867 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2868 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
2869     else
2870 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2871 michael 945 $as_echo "no" >&6; }
2872     fi
2873    
2874     if test "x$ac_ct_STRIP" = x; then
2875     STRIP=":"
2876     else
2877     case $cross_compiling:$ac_tool_warned in
2878     yes:)
2879 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2880 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2881     ac_tool_warned=yes ;;
2882     esac
2883     STRIP=$ac_ct_STRIP
2884     fi
2885     else
2886     STRIP="$ac_cv_prog_STRIP"
2887     fi
2888    
2889     fi
2890     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2891    
2892 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2893 db 941 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2894 michael 912 if test -z "$MKDIR_P"; then
2895 michael 967 if test "${ac_cv_path_mkdir+set}" = set; then :
2896 db 941 $as_echo_n "(cached) " >&6
2897 michael 912 else
2898     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2900     do
2901     IFS=$as_save_IFS
2902     test -z "$as_dir" && as_dir=.
2903 michael 967 for ac_prog in mkdir gmkdir; do
2904 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
2905     { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2906     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2907     'mkdir (GNU coreutils) '* | \
2908     'mkdir (coreutils) '* | \
2909     'mkdir (fileutils) '4.1*)
2910     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2911     break 3;;
2912     esac
2913     done
2914     done
2915 michael 967 done
2916 michael 912 IFS=$as_save_IFS
2917    
2918     fi
2919    
2920 michael 1033 test -d ./--version && rmdir ./--version
2921 michael 912 if test "${ac_cv_path_mkdir+set}" = set; then
2922     MKDIR_P="$ac_cv_path_mkdir -p"
2923     else
2924     # As a last resort, use the slow shell script. Don't cache a
2925     # value for MKDIR_P within a source directory, because that will
2926     # break other packages using the cache if that directory is
2927     # removed, or if the value is a relative name.
2928     MKDIR_P="$ac_install_sh -d"
2929     fi
2930     fi
2931 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2932 db 941 $as_echo "$MKDIR_P" >&6; }
2933 michael 912
2934     mkdir_p="$MKDIR_P"
2935     case $mkdir_p in
2936     [\\/$]* | ?:[\\/]*) ;;
2937     */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2938     esac
2939    
2940     for ac_prog in gawk mawk nawk awk
2941     do
2942     # Extract the first word of "$ac_prog", so it can be a program name with args.
2943     set dummy $ac_prog; ac_word=$2
2944 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2945 db 941 $as_echo_n "checking for $ac_word... " >&6; }
2946 michael 967 if test "${ac_cv_prog_AWK+set}" = set; then :
2947 db 941 $as_echo_n "(cached) " >&6
2948 michael 912 else
2949     if test -n "$AWK"; then
2950     ac_cv_prog_AWK="$AWK" # Let the user override the test.
2951     else
2952     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953     for as_dir in $PATH
2954     do
2955     IFS=$as_save_IFS
2956     test -z "$as_dir" && as_dir=.
2957 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2958 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2959     ac_cv_prog_AWK="$ac_prog"
2960 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2961 michael 912 break 2
2962     fi
2963     done
2964 michael 967 done
2965 michael 912 IFS=$as_save_IFS
2966    
2967     fi
2968     fi
2969     AWK=$ac_cv_prog_AWK
2970     if test -n "$AWK"; then
2971 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2972 db 941 $as_echo "$AWK" >&6; }
2973 michael 912 else
2974 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2975 db 941 $as_echo "no" >&6; }
2976 michael 912 fi
2977    
2978    
2979     test -n "$AWK" && break
2980     done
2981    
2982 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2983 db 941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2984     set x ${MAKE-make}
2985     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2986 michael 967 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2987 db 941 $as_echo_n "(cached) " >&6
2988 michael 912 else
2989     cat >conftest.make <<\_ACEOF
2990     SHELL = /bin/sh
2991     all:
2992     @echo '@@@%%%=$(MAKE)=@@@%%%'
2993     _ACEOF
2994     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2995     case `${MAKE-make} -f conftest.make 2>/dev/null` in
2996     *@@@%%%=?*=@@@%%%*)
2997     eval ac_cv_prog_make_${ac_make}_set=yes;;
2998     *)
2999     eval ac_cv_prog_make_${ac_make}_set=no;;
3000     esac
3001     rm -f conftest.make
3002     fi
3003     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3004 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 db 941 $as_echo "yes" >&6; }
3006 michael 912 SET_MAKE=
3007     else
3008 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3009 db 941 $as_echo "no" >&6; }
3010 michael 912 SET_MAKE="MAKE=${MAKE-make}"
3011     fi
3012    
3013     rm -rf .tst 2>/dev/null
3014     mkdir .tst 2>/dev/null
3015     if test -d .tst; then
3016     am__leading_dot=.
3017     else
3018     am__leading_dot=_
3019     fi
3020     rmdir .tst 2>/dev/null
3021    
3022     if test "`cd $srcdir && pwd`" != "`pwd`"; then
3023     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3024     # is not polluted with repeated "-I."
3025     am__isrc=' -I$(srcdir)'
3026     # test to see if srcdir already configured
3027     if test -f $srcdir/config.status; then
3028 michael 967 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3029 michael 912 fi
3030     fi
3031    
3032     # test whether we have cygpath
3033     if test -z "$CYGPATH_W"; then
3034     if (cygpath --version) >/dev/null 2>/dev/null; then
3035     CYGPATH_W='cygpath -w'
3036     else
3037     CYGPATH_W=echo
3038     fi
3039     fi
3040    
3041    
3042     # Define the identity of the package.
3043     PACKAGE='ircd-hybrid'
3044 michael 1039 VERSION='7.3-rc1'
3045 michael 912
3046    
3047     cat >>confdefs.h <<_ACEOF
3048     #define PACKAGE "$PACKAGE"
3049     _ACEOF
3050    
3051    
3052     cat >>confdefs.h <<_ACEOF
3053     #define VERSION "$VERSION"
3054     _ACEOF
3055    
3056     # Some tools Automake needs.
3057    
3058     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3059    
3060    
3061     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3062    
3063    
3064     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3065    
3066    
3067     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3068    
3069    
3070     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3071    
3072     # We need awk for the "check" target. The system "awk" is bad on
3073     # some platforms.
3074     # Always define AMTAR for backward compatibility.
3075    
3076     AMTAR=${AMTAR-"${am_missing_run}tar"}
3077    
3078     am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3079    
3080    
3081    
3082    
3083    
3084 michael 945
3085 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3086 db 941 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3087 michael 912 # Check whether --enable-maintainer-mode was given.
3088 michael 967 if test "${enable_maintainer_mode+set}" = set; then :
3089 michael 912 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3090     else
3091     USE_MAINTAINER_MODE=no
3092     fi
3093    
3094 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3095 db 941 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3096 michael 912 if test $USE_MAINTAINER_MODE = yes; then
3097     MAINTAINER_MODE_TRUE=
3098     MAINTAINER_MODE_FALSE='#'
3099     else
3100     MAINTAINER_MODE_TRUE='#'
3101     MAINTAINER_MODE_FALSE=
3102     fi
3103    
3104     MAINT=$MAINTAINER_MODE_TRUE
3105    
3106    
3107     ac_config_headers="$ac_config_headers config.h"
3108    
3109    
3110    
3111 michael 1010 # Checks for programs.
3112     DEPDIR="${am__leading_dot}deps"
3113 michael 923
3114 michael 1010 ac_config_commands="$ac_config_commands depfiles"
3115    
3116    
3117     am_make=${MAKE-make}
3118     cat > confinc << 'END'
3119     am__doit:
3120     @echo this is the am__doit target
3121     .PHONY: am__doit
3122     END
3123     # If we don't find an include directive, just comment out the code.
3124     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3125     $as_echo_n "checking for style of include used by $am_make... " >&6; }
3126     am__include="#"
3127     am__quote=
3128     _am_result=none
3129     # First try GNU make style include.
3130     echo "include confinc" > confmf
3131     # Ignore all kinds of additional output from `make'.
3132     case `$am_make -s -f confmf 2> /dev/null` in #(
3133     *the\ am__doit\ target*)
3134     am__include=include
3135     am__quote=
3136     _am_result=GNU
3137     ;;
3138     esac
3139     # Now try BSD make style include.
3140     if test "$am__include" = "#"; then
3141     echo '.include "confinc"' > confmf
3142     case `$am_make -s -f confmf 2> /dev/null` in #(
3143     *the\ am__doit\ target*)
3144     am__include=.include
3145     am__quote="\""
3146     _am_result=BSD
3147     ;;
3148     esac
3149     fi
3150    
3151    
3152     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3153     $as_echo "$_am_result" >&6; }
3154     rm -f confinc confmf
3155    
3156     # Check whether --enable-dependency-tracking was given.
3157     if test "${enable_dependency_tracking+set}" = set; then :
3158     enableval=$enable_dependency_tracking;
3159     fi
3160    
3161     if test "x$enable_dependency_tracking" != xno; then
3162     am_depcomp="$ac_aux_dir/depcomp"
3163     AMDEPBACKSLASH='\'
3164     fi
3165     if test "x$enable_dependency_tracking" != xno; then
3166     AMDEP_TRUE=
3167     AMDEP_FALSE='#'
3168     else
3169     AMDEP_TRUE='#'
3170     AMDEP_FALSE=
3171     fi
3172    
3173    
3174 michael 912 ac_ext=c
3175     ac_cpp='$CPP $CPPFLAGS'
3176     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3177     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3178     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3179     if test -n "$ac_tool_prefix"; then
3180     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3181     set dummy ${ac_tool_prefix}gcc; ac_word=$2
3182 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3183 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3184 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3185 db 941 $as_echo_n "(cached) " >&6
3186 michael 912 else
3187     if test -n "$CC"; then
3188     ac_cv_prog_CC="$CC" # Let the user override the test.
3189     else
3190     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3191     for as_dir in $PATH
3192     do
3193     IFS=$as_save_IFS
3194     test -z "$as_dir" && as_dir=.
3195 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3196 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3197     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3198 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3199 michael 912 break 2
3200     fi
3201     done
3202 michael 967 done
3203 michael 912 IFS=$as_save_IFS
3204    
3205     fi
3206     fi
3207     CC=$ac_cv_prog_CC
3208     if test -n "$CC"; then
3209 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3210 db 941 $as_echo "$CC" >&6; }
3211 michael 912 else
3212 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3213 db 941 $as_echo "no" >&6; }
3214 michael 912 fi
3215    
3216    
3217     fi
3218     if test -z "$ac_cv_prog_CC"; then
3219     ac_ct_CC=$CC
3220     # Extract the first word of "gcc", so it can be a program name with args.
3221     set dummy gcc; ac_word=$2
3222 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3223 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3224 michael 967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3225 db 941 $as_echo_n "(cached) " >&6
3226 michael 912 else
3227     if test -n "$ac_ct_CC"; then
3228     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3229     else
3230     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231     for as_dir in $PATH
3232     do
3233     IFS=$as_save_IFS
3234     test -z "$as_dir" && as_dir=.
3235 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3236 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3237     ac_cv_prog_ac_ct_CC="gcc"
3238 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3239 michael 912 break 2
3240     fi
3241     done
3242 michael 967 done
3243 michael 912 IFS=$as_save_IFS
3244    
3245     fi
3246     fi
3247     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3248     if test -n "$ac_ct_CC"; then
3249 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3250 db 941 $as_echo "$ac_ct_CC" >&6; }
3251 michael 912 else
3252 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3253 db 941 $as_echo "no" >&6; }
3254 michael 912 fi
3255    
3256     if test "x$ac_ct_CC" = x; then
3257     CC=""
3258     else
3259     case $cross_compiling:$ac_tool_warned in
3260     yes:)
3261 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3262 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3263 michael 912 ac_tool_warned=yes ;;
3264     esac
3265     CC=$ac_ct_CC
3266     fi
3267     else
3268     CC="$ac_cv_prog_CC"
3269     fi
3270    
3271     if test -z "$CC"; then
3272     if test -n "$ac_tool_prefix"; then
3273     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3274     set dummy ${ac_tool_prefix}cc; ac_word=$2
3275 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3276 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3277 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3278 db 941 $as_echo_n "(cached) " >&6
3279 michael 912 else
3280     if test -n "$CC"; then
3281     ac_cv_prog_CC="$CC" # Let the user override the test.
3282     else
3283     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3284     for as_dir in $PATH
3285     do
3286     IFS=$as_save_IFS
3287     test -z "$as_dir" && as_dir=.
3288 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3289 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3290     ac_cv_prog_CC="${ac_tool_prefix}cc"
3291 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3292 michael 912 break 2
3293     fi
3294     done
3295 michael 967 done
3296 michael 912 IFS=$as_save_IFS
3297    
3298     fi
3299     fi
3300     CC=$ac_cv_prog_CC
3301     if test -n "$CC"; then
3302 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3303 db 941 $as_echo "$CC" >&6; }
3304 michael 912 else
3305 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 db 941 $as_echo "no" >&6; }
3307 michael 912 fi
3308    
3309    
3310     fi
3311     fi
3312     if test -z "$CC"; then
3313     # Extract the first word of "cc", so it can be a program name with args.
3314     set dummy cc; ac_word=$2
3315 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3316 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3317 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3318 db 941 $as_echo_n "(cached) " >&6
3319 michael 912 else
3320     if test -n "$CC"; then
3321     ac_cv_prog_CC="$CC" # Let the user override the test.
3322     else
3323     ac_prog_rejected=no
3324     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3325     for as_dir in $PATH
3326     do
3327     IFS=$as_save_IFS
3328     test -z "$as_dir" && as_dir=.
3329 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3330 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3331     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3332     ac_prog_rejected=yes
3333     continue
3334     fi
3335     ac_cv_prog_CC="cc"
3336 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3337 michael 912 break 2
3338     fi
3339     done
3340 michael 967 done
3341 michael 912 IFS=$as_save_IFS
3342    
3343     if test $ac_prog_rejected = yes; then
3344     # We found a bogon in the path, so make sure we never use it.
3345     set dummy $ac_cv_prog_CC
3346     shift
3347     if test $# != 0; then
3348     # We chose a different compiler from the bogus one.
3349     # However, it has the same basename, so the bogon will be chosen
3350     # first if we set CC to just the basename; use the full file name.
3351     shift
3352     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3353     fi
3354     fi
3355     fi
3356     fi
3357     CC=$ac_cv_prog_CC
3358     if test -n "$CC"; then
3359 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3360 db 941 $as_echo "$CC" >&6; }
3361 michael 912 else
3362 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 db 941 $as_echo "no" >&6; }
3364 michael 912 fi
3365    
3366    
3367     fi
3368     if test -z "$CC"; then
3369     if test -n "$ac_tool_prefix"; then
3370     for ac_prog in cl.exe
3371     do
3372     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3373     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3374 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3375 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3376 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3377 db 941 $as_echo_n "(cached) " >&6
3378 michael 912 else
3379     if test -n "$CC"; then
3380     ac_cv_prog_CC="$CC" # Let the user override the test.
3381     else
3382     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3383     for as_dir in $PATH
3384     do
3385     IFS=$as_save_IFS
3386     test -z "$as_dir" && as_dir=.
3387 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3388 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3389     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3390 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3391 michael 912 break 2
3392     fi
3393     done
3394 michael 967 done
3395 michael 912 IFS=$as_save_IFS
3396    
3397     fi
3398     fi
3399     CC=$ac_cv_prog_CC
3400     if test -n "$CC"; then
3401 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3402 db 941 $as_echo "$CC" >&6; }
3403 michael 912 else
3404 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 db 941 $as_echo "no" >&6; }
3406 michael 912 fi
3407    
3408    
3409     test -n "$CC" && break
3410     done
3411     fi
3412     if test -z "$CC"; then
3413     ac_ct_CC=$CC
3414     for ac_prog in cl.exe
3415     do
3416     # Extract the first word of "$ac_prog", so it can be a program name with args.
3417     set dummy $ac_prog; ac_word=$2
3418 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3419 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3420 michael 967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3421 db 941 $as_echo_n "(cached) " >&6
3422 michael 912 else
3423     if test -n "$ac_ct_CC"; then
3424     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3425     else
3426     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427     for as_dir in $PATH
3428     do
3429     IFS=$as_save_IFS
3430     test -z "$as_dir" && as_dir=.
3431 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3432 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3433     ac_cv_prog_ac_ct_CC="$ac_prog"
3434 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3435 michael 912 break 2
3436     fi
3437     done
3438 michael 967 done
3439 michael 912 IFS=$as_save_IFS
3440    
3441     fi
3442     fi
3443     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3444     if test -n "$ac_ct_CC"; then
3445 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3446 db 941 $as_echo "$ac_ct_CC" >&6; }
3447 michael 912 else
3448 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 db 941 $as_echo "no" >&6; }
3450 michael 912 fi
3451    
3452    
3453     test -n "$ac_ct_CC" && break
3454     done
3455    
3456     if test "x$ac_ct_CC" = x; then
3457     CC=""
3458     else
3459     case $cross_compiling:$ac_tool_warned in
3460     yes:)
3461 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3462 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3463 michael 912 ac_tool_warned=yes ;;
3464     esac
3465     CC=$ac_ct_CC
3466     fi
3467     fi
3468    
3469     fi
3470    
3471    
3472 michael 967 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3473 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3474 michael 967 as_fn_error "no acceptable C compiler found in \$PATH
3475     See \`config.log' for more details." "$LINENO" 5; }
3476 michael 912
3477     # Provide some information about the compiler.
3478 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3479 db 941 set X $ac_compile
3480     ac_compiler=$2
3481 michael 967 for ac_option in --version -v -V -qversion; do
3482     { { ac_try="$ac_compiler $ac_option >&5"
3483 michael 912 case "(($ac_try" in
3484     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3485     *) ac_try_echo=$ac_try;;
3486     esac
3487 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3488     $as_echo "$ac_try_echo"; } >&5
3489     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3490 michael 912 ac_status=$?
3491 michael 967 if test -s conftest.err; then
3492     sed '10a\
3493     ... rest of stderr output deleted ...
3494     10q' conftest.err >conftest.er1
3495     cat conftest.er1 >&5
3496     fi
3497 michael 1033 rm -f conftest.er1 conftest.err
3498 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3499     test $ac_status = 0; }
3500     done
3501 michael 912
3502 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 michael 912 /* end confdefs.h. */
3504 michael 1033
3505 michael 912 int
3506     main ()
3507     {
3508    
3509     ;
3510     return 0;
3511     }
3512     _ACEOF
3513     ac_clean_files_save=$ac_clean_files
3514 michael 1033 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3515 michael 912 # Try to create an executable without -o first, disregard a.out.
3516     # It will help us diagnose broken compilers, and finding out an intuition
3517     # of exeext.
3518 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3519     $as_echo_n "checking whether the C compiler works... " >&6; }
3520 db 941 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3521    
3522     # The possible output files:
3523     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3524    
3525 michael 912 ac_rmfiles=
3526     for ac_file in $ac_files
3527     do
3528     case $ac_file in
3529 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3530 michael 912 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3531     esac
3532     done
3533     rm -f $ac_rmfiles
3534    
3535 michael 967 if { { ac_try="$ac_link_default"
3536 michael 912 case "(($ac_try" in
3537     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3538     *) ac_try_echo=$ac_try;;
3539     esac
3540 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3541     $as_echo "$ac_try_echo"; } >&5
3542 michael 912 (eval "$ac_link_default") 2>&5
3543     ac_status=$?
3544 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3545     test $ac_status = 0; }; then :
3546 michael 912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3547     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3548     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3549     # so that the user can short-circuit this test for compilers unknown to
3550     # Autoconf.
3551     for ac_file in $ac_files ''
3552     do
3553     test -f "$ac_file" || continue
3554     case $ac_file in
3555 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3556 michael 912 ;;
3557     [ab].out )
3558     # We found the default executable, but exeext='' is most
3559     # certainly right.
3560     break;;
3561     *.* )
3562 michael 967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3563 michael 912 then :; else
3564     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3565     fi
3566     # We set ac_cv_exeext here because the later test for it is not
3567     # safe: cross compilers may not add the suffix if given an `-o'
3568     # argument, so we may need to know it at that point already.
3569     # Even if this section looks crufty: it has the advantage of
3570     # actually working.
3571     break;;
3572     * )
3573     break;;
3574     esac
3575     done
3576     test "$ac_cv_exeext" = no && ac_cv_exeext=
3577    
3578     else
3579     ac_file=''
3580     fi
3581 michael 967 if test -z "$ac_file"; then :
3582 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3583     $as_echo "no" >&6; }
3584     $as_echo "$as_me: failed program was:" >&5
3585 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3586    
3587 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3588 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3589 michael 967 { as_fn_set_status 77
3590     as_fn_error "C compiler cannot create executables
3591     See \`config.log' for more details." "$LINENO" 5; }; }
3592 michael 1033 else
3593     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3594     $as_echo "yes" >&6; }
3595 michael 912 fi
3596 michael 1033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3597     $as_echo_n "checking for C compiler default output file name... " >&6; }
3598     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3599     $as_echo "$ac_file" >&6; }
3600 michael 912 ac_exeext=$ac_cv_exeext
3601    
3602 michael 1033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3603 michael 912 ac_clean_files=$ac_clean_files_save
3604 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3605 db 941 $as_echo_n "checking for suffix of executables... " >&6; }
3606 michael 967 if { { ac_try="$ac_link"
3607 michael 912 case "(($ac_try" in
3608     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609     *) ac_try_echo=$ac_try;;
3610     esac
3611 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612     $as_echo "$ac_try_echo"; } >&5
3613 michael 912 (eval "$ac_link") 2>&5
3614     ac_status=$?
3615 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616     test $ac_status = 0; }; then :
3617 michael 912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3618     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3619     # work properly (i.e., refer to `conftest.exe'), while it won't with
3620     # `rm'.
3621     for ac_file in conftest.exe conftest conftest.*; do
3622     test -f "$ac_file" || continue
3623     case $ac_file in
3624 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3625 michael 912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3626     break;;
3627     * ) break;;
3628     esac
3629     done
3630     else
3631 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 michael 967 as_fn_error "cannot compute suffix of executables: cannot compile and link
3634     See \`config.log' for more details." "$LINENO" 5; }
3635 michael 912 fi
3636 michael 1033 rm -f conftest conftest$ac_cv_exeext
3637 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3638 db 941 $as_echo "$ac_cv_exeext" >&6; }
3639 michael 912
3640     rm -f conftest.$ac_ext
3641     EXEEXT=$ac_cv_exeext
3642     ac_exeext=$EXEEXT
3643 michael 1033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644     /* end confdefs.h. */
3645     #include <stdio.h>
3646     int
3647     main ()
3648     {
3649     FILE *f = fopen ("conftest.out", "w");
3650     return ferror (f) || fclose (f) != 0;
3651    
3652     ;
3653     return 0;
3654     }
3655     _ACEOF
3656     ac_clean_files="$ac_clean_files conftest.out"
3657     # Check that the compiler produces executables we can run. If not, either
3658     # the compiler is broken, or we cross compile.
3659     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3660     $as_echo_n "checking whether we are cross compiling... " >&6; }
3661     if test "$cross_compiling" != yes; then
3662     { { ac_try="$ac_link"
3663     case "(($ac_try" in
3664     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3665     *) ac_try_echo=$ac_try;;
3666     esac
3667     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3668     $as_echo "$ac_try_echo"; } >&5
3669     (eval "$ac_link") 2>&5
3670     ac_status=$?
3671     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3672     test $ac_status = 0; }
3673     if { ac_try='./conftest$ac_cv_exeext'
3674     { { case "(($ac_try" in
3675     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676     *) ac_try_echo=$ac_try;;
3677     esac
3678     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3679     $as_echo "$ac_try_echo"; } >&5
3680     (eval "$ac_try") 2>&5
3681     ac_status=$?
3682     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3683     test $ac_status = 0; }; }; then
3684     cross_compiling=no
3685     else
3686     if test "$cross_compiling" = maybe; then
3687     cross_compiling=yes
3688     else
3689     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3690     $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3691     as_fn_error "cannot run C compiled programs.
3692     If you meant to cross compile, use \`--host'.
3693     See \`config.log' for more details." "$LINENO" 5; }
3694     fi
3695     fi
3696     fi
3697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3698     $as_echo "$cross_compiling" >&6; }
3699    
3700     rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3701     ac_clean_files=$ac_clean_files_save
3702 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3703 db 941 $as_echo_n "checking for suffix of object files... " >&6; }
3704 michael 967 if test "${ac_cv_objext+set}" = set; then :
3705 db 941 $as_echo_n "(cached) " >&6
3706 michael 912 else
3707 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 michael 912 /* end confdefs.h. */
3709    
3710     int
3711     main ()
3712     {
3713    
3714     ;
3715     return 0;
3716     }
3717     _ACEOF
3718     rm -f conftest.o conftest.obj
3719 michael 967 if { { ac_try="$ac_compile"
3720 michael 912 case "(($ac_try" in
3721     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3722     *) ac_try_echo=$ac_try;;
3723     esac
3724 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3725     $as_echo "$ac_try_echo"; } >&5
3726 michael 912 (eval "$ac_compile") 2>&5
3727     ac_status=$?
3728 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3729     test $ac_status = 0; }; then :
3730 michael 912 for ac_file in conftest.o conftest.obj conftest.*; do
3731     test -f "$ac_file" || continue;
3732     case $ac_file in
3733 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3734 michael 912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3735     break;;
3736     esac
3737     done
3738     else
3739 db 941 $as_echo "$as_me: failed program was:" >&5
3740 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3741    
3742 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3743 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3744 michael 967 as_fn_error "cannot compute suffix of object files: cannot compile
3745     See \`config.log' for more details." "$LINENO" 5; }
3746 michael 912 fi
3747     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3748     fi
3749 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3750 db 941 $as_echo "$ac_cv_objext" >&6; }
3751 michael 912 OBJEXT=$ac_cv_objext
3752     ac_objext=$OBJEXT
3753 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3754 db 941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3755 michael 967 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3756 db 941 $as_echo_n "(cached) " >&6
3757 michael 912 else
3758 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 michael 912 /* end confdefs.h. */
3760    
3761     int
3762     main ()
3763     {
3764     #ifndef __GNUC__
3765     choke me
3766     #endif
3767    
3768     ;
3769     return 0;
3770     }
3771     _ACEOF
3772 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3773 michael 912 ac_compiler_gnu=yes
3774     else
3775 michael 967 ac_compiler_gnu=no
3776 michael 912 fi
3777     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3778     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3779    
3780     fi
3781 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3782 db 941 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3783     if test $ac_compiler_gnu = yes; then
3784     GCC=yes
3785     else
3786     GCC=
3787     fi
3788 michael 912 ac_test_CFLAGS=${CFLAGS+set}
3789     ac_save_CFLAGS=$CFLAGS
3790 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3791 db 941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3792 michael 967 if test "${ac_cv_prog_cc_g+set}" = set; then :
3793 db 941 $as_echo_n "(cached) " >&6
3794 michael 912 else
3795     ac_save_c_werror_flag=$ac_c_werror_flag
3796     ac_c_werror_flag=yes
3797     ac_cv_prog_cc_g=no
3798     CFLAGS="-g"
3799 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3800 michael 912 /* end confdefs.h. */
3801    
3802     int
3803     main ()
3804     {
3805    
3806     ;
3807     return 0;
3808     }
3809     _ACEOF
3810 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3811 michael 912 ac_cv_prog_cc_g=yes
3812     else
3813 michael 967 CFLAGS=""
3814     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3815 michael 912 /* end confdefs.h. */
3816    
3817     int
3818     main ()
3819     {
3820    
3821     ;
3822     return 0;
3823     }
3824     _ACEOF
3825 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3826    
3827 michael 912 else
3828 michael 967 ac_c_werror_flag=$ac_save_c_werror_flag
3829 michael 912 CFLAGS="-g"
3830 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 michael 912 /* end confdefs.h. */
3832    
3833     int
3834     main ()
3835     {
3836    
3837     ;
3838     return 0;
3839     }
3840     _ACEOF
3841 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3842 michael 912 ac_cv_prog_cc_g=yes
3843     fi
3844     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845     fi
3846     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3847     fi
3848     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3849     ac_c_werror_flag=$ac_save_c_werror_flag
3850     fi
3851 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3852 db 941 $as_echo "$ac_cv_prog_cc_g" >&6; }
3853 michael 912 if test "$ac_test_CFLAGS" = set; then
3854     CFLAGS=$ac_save_CFLAGS
3855     elif test $ac_cv_prog_cc_g = yes; then
3856     if test "$GCC" = yes; then
3857     CFLAGS="-g -O2"
3858     else
3859     CFLAGS="-g"
3860     fi
3861     else
3862     if test "$GCC" = yes; then
3863     CFLAGS="-O2"
3864     else
3865     CFLAGS=
3866     fi
3867     fi
3868 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3869 db 941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3870 michael 967 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3871 db 941 $as_echo_n "(cached) " >&6
3872 michael 912 else
3873     ac_cv_prog_cc_c89=no
3874     ac_save_CC=$CC
3875 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 michael 912 /* end confdefs.h. */
3877     #include <stdarg.h>
3878     #include <stdio.h>
3879     #include <sys/types.h>
3880     #include <sys/stat.h>
3881     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3882     struct buf { int x; };
3883     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3884     static char *e (p, i)
3885     char **p;
3886     int i;
3887     {
3888     return p[i];
3889     }
3890     static char *f (char * (*g) (char **, int), char **p, ...)
3891     {
3892     char *s;
3893     va_list v;
3894     va_start (v,p);
3895     s = g (p, va_arg (v,int));
3896     va_end (v);
3897     return s;
3898     }
3899    
3900     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3901     function prototypes and stuff, but not '\xHH' hex character constants.
3902     These don't provoke an error unfortunately, instead are silently treated
3903     as 'x'. The following induces an error, until -std is added to get
3904     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3905     array size at least. It's necessary to write '\x00'==0 to get something
3906     that's true only with -std. */
3907     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3908    
3909     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3910     inside strings and character constants. */
3911     #define FOO(x) 'x'
3912     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3913    
3914     int test (int i, double x);
3915     struct s1 {int (*f) (int a);};
3916     struct s2 {int (*f) (double a);};
3917     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3918     int argc;
3919     char **argv;
3920     int
3921     main ()
3922     {
3923     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3924     ;
3925     return 0;
3926     }
3927     _ACEOF
3928     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3929     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3930     do
3931     CC="$ac_save_CC $ac_arg"
3932 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3933 michael 912 ac_cv_prog_cc_c89=$ac_arg
3934     fi
3935     rm -f core conftest.err conftest.$ac_objext
3936     test "x$ac_cv_prog_cc_c89" != "xno" && break
3937     done
3938     rm -f conftest.$ac_ext
3939     CC=$ac_save_CC
3940    
3941     fi
3942     # AC_CACHE_VAL
3943     case "x$ac_cv_prog_cc_c89" in
3944     x)
3945 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3946 db 941 $as_echo "none needed" >&6; } ;;
3947 michael 912 xno)
3948 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3949 db 941 $as_echo "unsupported" >&6; } ;;
3950 michael 912 *)
3951     CC="$CC $ac_cv_prog_cc_c89"
3952 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3953 db 941 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3954 michael 912 esac
3955 michael 967 if test "x$ac_cv_prog_cc_c89" != xno; then :
3956 michael 912
3957 michael 967 fi
3958 michael 912
3959     ac_ext=c
3960     ac_cpp='$CPP $CPPFLAGS'
3961     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3962     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3963     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3964    
3965     depcc="$CC" am_compiler_list=
3966    
3967 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3968 db 941 $as_echo_n "checking dependency style of $depcc... " >&6; }
3969 michael 967 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3970 db 941 $as_echo_n "(cached) " >&6
3971 michael 912 else
3972     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3973     # We make a subdir and do the tests there. Otherwise we can end up
3974     # making bogus files that we don't know about and never remove. For
3975     # instance it was reported that on HP-UX the gcc test will end up
3976     # making a dummy file named `D' -- because `-MD' means `put the output
3977     # in D'.
3978     mkdir conftest.dir
3979     # Copy depcomp to subdir because otherwise we won't find it if we're
3980     # using a relative directory.
3981     cp "$am_depcomp" conftest.dir
3982     cd conftest.dir
3983     # We will build objects and dependencies in a subdirectory because
3984     # it helps to detect inapplicable dependency modes. For instance
3985     # both Tru64's cc and ICC support -MD to output dependencies as a
3986     # side effect of compilation, but ICC will put the dependencies in
3987     # the current directory while Tru64 will put them in the object
3988     # directory.
3989     mkdir sub
3990    
3991     am_cv_CC_dependencies_compiler_type=none
3992     if test "$am_compiler_list" = ""; then
3993     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3994     fi
3995 michael 945 am__universal=false
3996     case " $depcc " in #(
3997     *\ -arch\ *\ -arch\ *) am__universal=true ;;
3998     esac
3999    
4000 michael 912 for depmode in $am_compiler_list; do
4001     # Setup a source with many dependencies, because some compilers
4002     # like to wrap large dependency lists on column 80 (with \), and
4003     # we should not choose a depcomp mode which is confused by this.
4004     #
4005     # We need to recreate these files for each test, as the compiler may
4006     # overwrite some of them when testing with obscure command lines.
4007     # This happens at least with the AIX C compiler.
4008     : > sub/conftest.c
4009     for i in 1 2 3 4 5 6; do
4010     echo '#include "conftst'$i'.h"' >> sub/conftest.c
4011     # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4012     # Solaris 8's {/usr,}/bin/sh.
4013     touch sub/conftst$i.h
4014     done
4015     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4016    
4017 michael 945 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4018     # mode. It turns out that the SunPro C++ compiler does not properly
4019     # handle `-M -o', and we need to detect this. Also, some Intel
4020     # versions had trouble with output in subdirs
4021     am__obj=sub/conftest.${OBJEXT-o}
4022     am__minus_obj="-o $am__obj"
4023 michael 912 case $depmode in
4024 michael 945 gcc)
4025     # This depmode causes a compiler race in universal mode.
4026     test "$am__universal" = false || continue
4027     ;;
4028 michael 912 nosideeffect)
4029     # after this tag, mechanisms are not by side-effect, so they'll
4030     # only be used when explicitly requested
4031     if test "x$enable_dependency_tracking" = xyes; then
4032     continue
4033     else
4034     break
4035     fi
4036     ;;
4037 michael 945 msvisualcpp | msvcmsys)
4038     # This compiler won't grok `-c -o', but also, the minuso test has
4039     # not run yet. These depmodes are late enough in the game, and
4040     # so weak that their functioning should not be impacted.
4041     am__obj=conftest.${OBJEXT-o}
4042     am__minus_obj=
4043     ;;
4044 michael 912 none) break ;;
4045     esac
4046     if depmode=$depmode \
4047 michael 945 source=sub/conftest.c object=$am__obj \
4048 michael 912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4049 michael 945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4050 michael 912 >/dev/null 2>conftest.err &&
4051     grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4052     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4053 michael 945 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4054 michael 912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4055     # icc doesn't choke on unknown options, it will just issue warnings
4056     # or remarks (even with -Werror). So we grep stderr for any message
4057     # that says an option was ignored or not supported.
4058     # When given -MP, icc 7.0 and 7.1 complain thusly:
4059     # icc: Command line warning: ignoring option '-M'; no argument required
4060     # The diagnosis changed in icc 8.0:
4061     # icc: Command line remark: option '-MP' not supported
4062     if (grep 'ignoring option' conftest.err ||
4063     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4064     am_cv_CC_dependencies_compiler_type=$depmode
4065     break
4066     fi
4067     fi
4068     done
4069    
4070     cd ..
4071     rm -rf conftest.dir
4072     else
4073     am_cv_CC_dependencies_compiler_type=none
4074     fi
4075    
4076     fi
4077 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4078 db 941 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4079 michael 912 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4080    
4081     if
4082     test "x$enable_dependency_tracking" != xno \
4083     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4084     am__fastdepCC_TRUE=
4085     am__fastdepCC_FALSE='#'
4086     else
4087     am__fastdepCC_TRUE='#'
4088     am__fastdepCC_FALSE=
4089     fi
4090    
4091    
4092 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4093     $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4094     if test "${ac_cv_prog_cc_c99+set}" = set; then :
4095     $as_echo_n "(cached) " >&6
4096     else
4097     ac_cv_prog_cc_c99=no
4098     ac_save_CC=$CC
4099     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100     /* end confdefs.h. */
4101     #include <stdarg.h>
4102     #include <stdbool.h>
4103     #include <stdlib.h>
4104     #include <wchar.h>
4105     #include <stdio.h>
4106    
4107     // Check varargs macros. These examples are taken from C99 6.10.3.5.
4108     #define debug(...) fprintf (stderr, __VA_ARGS__)
4109     #define showlist(...) puts (#__VA_ARGS__)
4110     #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4111     static void
4112     test_varargs_macros (void)
4113     {
4114     int x = 1234;
4115     int y = 5678;
4116     debug ("Flag");
4117     debug ("X = %d\n", x);
4118     showlist (The first, second, and third items.);
4119     report (x>y, "x is %d but y is %d", x, y);
4120     }
4121    
4122     // Check long long types.
4123     #define BIG64 18446744073709551615ull
4124     #define BIG32 4294967295ul
4125     #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4126     #if !BIG_OK
4127     your preprocessor is broken;
4128     #endif
4129     #if BIG_OK
4130     #else
4131     your preprocessor is broken;
4132     #endif
4133     static long long int bignum = -9223372036854775807LL;
4134     static unsigned long long int ubignum = BIG64;
4135    
4136     struct incomplete_array
4137     {
4138     int datasize;
4139     double data[];
4140     };
4141    
4142     struct named_init {
4143     int number;
4144     const wchar_t *name;
4145     double average;
4146     };
4147    
4148     typedef const char *ccp;
4149    
4150     static inline int
4151     test_restrict (ccp restrict text)
4152     {
4153     // See if C++-style comments work.
4154     // Iterate through items via the restricted pointer.
4155     // Also check for declarations in for loops.
4156     for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4157     continue;
4158     return 0;
4159     }
4160    
4161     // Check varargs and va_copy.
4162     static void
4163     test_varargs (const char *format, ...)
4164     {
4165     va_list args;
4166     va_start (args, format);
4167     va_list args_copy;
4168     va_copy (args_copy, args);
4169    
4170     const char *str;
4171     int number;
4172     float fnumber;
4173    
4174     while (*format)
4175     {
4176     switch (*format++)
4177     {
4178     case 's': // string
4179     str = va_arg (args_copy, const char *);
4180     break;
4181     case 'd': // int
4182     number = va_arg (args_copy, int);
4183     break;
4184     case 'f': // float
4185     fnumber = va_arg (args_copy, double);
4186     break;
4187     default:
4188     break;
4189     }
4190     }
4191     va_end (args_copy);
4192     va_end (args);
4193     }
4194    
4195     int
4196     main ()
4197     {
4198    
4199     // Check bool.
4200     _Bool success = false;
4201    
4202     // Check restrict.
4203     if (test_restrict ("String literal") == 0)
4204     success = true;
4205     char *restrict newvar = "Another string";
4206    
4207     // Check varargs.
4208     test_varargs ("s, d' f .", "string", 65, 34.234);
4209     test_varargs_macros ();
4210    
4211     // Check flexible array members.
4212     struct incomplete_array *ia =
4213     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4214     ia->datasize = 10;
4215     for (int i = 0; i < ia->datasize; ++i)
4216     ia->data[i] = i * 1.234;
4217    
4218     // Check named initializers.
4219     struct named_init ni = {
4220     .number = 34,
4221     .name = L"Test wide string",
4222     .average = 543.34343,
4223     };
4224    
4225     ni.number = 58;
4226    
4227     int dynamic_array[ni.number];
4228     dynamic_array[ni.number - 1] = 543;
4229    
4230     // work around unused variable warnings
4231     return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4232     || dynamic_array[ni.number - 1] != 543);
4233    
4234     ;
4235     return 0;
4236     }
4237     _ACEOF
4238     for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
4239     do
4240     CC="$ac_save_CC $ac_arg"
4241     if ac_fn_c_try_compile "$LINENO"; then :
4242     ac_cv_prog_cc_c99=$ac_arg
4243     fi
4244     rm -f core conftest.err conftest.$ac_objext
4245     test "x$ac_cv_prog_cc_c99" != "xno" && break
4246     done
4247     rm -f conftest.$ac_ext
4248     CC=$ac_save_CC
4249    
4250     fi
4251     # AC_CACHE_VAL
4252     case "x$ac_cv_prog_cc_c99" in
4253     x)
4254     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4255     $as_echo "none needed" >&6; } ;;
4256     xno)
4257     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4258     $as_echo "unsupported" >&6; } ;;
4259     *)
4260     CC="$CC $ac_cv_prog_cc_c99"
4261     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4262     $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4263     esac
4264     if test "x$ac_cv_prog_cc_c99" != xno; then :
4265    
4266     fi
4267    
4268    
4269     if test "$ac_cv_prog_cc_c99" = "no"; then :
4270     as_fn_error "no C99 compiler found. Aborting." "$LINENO" 5
4271     fi
4272 michael 912 for ac_prog in 'bison -y' byacc
4273     do
4274     # Extract the first word of "$ac_prog", so it can be a program name with args.
4275     set dummy $ac_prog; ac_word=$2
4276 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4278 michael 967 if test "${ac_cv_prog_YACC+set}" = set; then :
4279 db 941 $as_echo_n "(cached) " >&6
4280 michael 912 else
4281     if test -n "$YACC"; then
4282     ac_cv_prog_YACC="$YACC" # Let the user override the test.
4283     else
4284     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285     for as_dir in $PATH
4286     do
4287     IFS=$as_save_IFS
4288     test -z "$as_dir" && as_dir=.
4289 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4290 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4291     ac_cv_prog_YACC="$ac_prog"
4292 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4293 michael 912 break 2
4294     fi
4295     done
4296 michael 967 done
4297 michael 912 IFS=$as_save_IFS
4298    
4299     fi
4300     fi
4301     YACC=$ac_cv_prog_YACC
4302     if test -n "$YACC"; then
4303 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4304 db 941 $as_echo "$YACC" >&6; }
4305 michael 912 else
4306 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4307 db 941 $as_echo "no" >&6; }
4308 michael 912 fi
4309    
4310    
4311     test -n "$YACC" && break
4312     done
4313     test -n "$YACC" || YACC="yacc"
4314    
4315    
4316     for ac_prog in flex lex
4317     do
4318     # Extract the first word of "$ac_prog", so it can be a program name with args.
4319     set dummy $ac_prog; ac_word=$2
4320 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4321 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4322 michael 967 if test "${ac_cv_prog_LEX+set}" = set; then :
4323 db 941 $as_echo_n "(cached) " >&6
4324 michael 912 else
4325     if test -n "$LEX"; then
4326     ac_cv_prog_LEX="$LEX" # Let the user override the test.
4327     else
4328     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4329     for as_dir in $PATH
4330     do
4331     IFS=$as_save_IFS
4332     test -z "$as_dir" && as_dir=.
4333 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4334 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4335     ac_cv_prog_LEX="$ac_prog"
4336 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 michael 912 break 2
4338     fi
4339     done
4340 michael 967 done
4341 michael 912 IFS=$as_save_IFS
4342    
4343     fi
4344     fi
4345     LEX=$ac_cv_prog_LEX
4346     if test -n "$LEX"; then
4347 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4348 db 941 $as_echo "$LEX" >&6; }
4349 michael 912 else
4350 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4351 db 941 $as_echo "no" >&6; }
4352 michael 912 fi
4353    
4354    
4355     test -n "$LEX" && break
4356     done
4357     test -n "$LEX" || LEX=":"
4358    
4359     if test "x$LEX" != "x:"; then
4360     cat >conftest.l <<_ACEOF
4361     %%
4362     a { ECHO; }
4363     b { REJECT; }
4364     c { yymore (); }
4365     d { yyless (1); }
4366     e { yyless (input () != 0); }
4367     f { unput (yytext[0]); }
4368     . { BEGIN INITIAL; }
4369     %%
4370     #ifdef YYTEXT_POINTER
4371     extern char *yytext;
4372     #endif
4373     int
4374     main (void)
4375     {
4376     return ! yylex () + ! yywrap ();
4377     }
4378     _ACEOF
4379 michael 967 { { ac_try="$LEX conftest.l"
4380 michael 912 case "(($ac_try" in
4381     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382     *) ac_try_echo=$ac_try;;
4383     esac
4384 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385     $as_echo "$ac_try_echo"; } >&5
4386 michael 912 (eval "$LEX conftest.l") 2>&5
4387     ac_status=$?
4388 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389     test $ac_status = 0; }
4390     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4391 db 941 $as_echo_n "checking lex output file root... " >&6; }
4392 michael 967 if test "${ac_cv_prog_lex_root+set}" = set; then :
4393 db 941 $as_echo_n "(cached) " >&6
4394 michael 912 else
4395    
4396     if test -f lex.yy.c; then
4397     ac_cv_prog_lex_root=lex.yy
4398     elif test -f lexyy.c; then
4399     ac_cv_prog_lex_root=lexyy
4400     else
4401 michael 967 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4402 michael 912 fi
4403     fi
4404 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4405 db 941 $as_echo "$ac_cv_prog_lex_root" >&6; }
4406 michael 912 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4407    
4408     if test -z "${LEXLIB+set}"; then
4409 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4410 db 941 $as_echo_n "checking lex library... " >&6; }
4411 michael 967 if test "${ac_cv_lib_lex+set}" = set; then :
4412 db 941 $as_echo_n "(cached) " >&6
4413 michael 912 else
4414    
4415     ac_save_LIBS=$LIBS
4416     ac_cv_lib_lex='none needed'
4417     for ac_lib in '' -lfl -ll; do
4418     LIBS="$ac_lib $ac_save_LIBS"
4419 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420     /* end confdefs.h. */
4421 michael 912 `cat $LEX_OUTPUT_ROOT.c`
4422     _ACEOF
4423 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4424 michael 912 ac_cv_lib_lex=$ac_lib
4425     fi
4426 michael 967 rm -f core conftest.err conftest.$ac_objext \
4427     conftest$ac_exeext conftest.$ac_ext
4428 michael 912 test "$ac_cv_lib_lex" != 'none needed' && break
4429     done
4430     LIBS=$ac_save_LIBS
4431    
4432     fi
4433 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4434 db 941 $as_echo "$ac_cv_lib_lex" >&6; }
4435 michael 912 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4436     fi
4437    
4438    
4439 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4440 db 941 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4441 michael 967 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4442 db 941 $as_echo_n "(cached) " >&6
4443 michael 912 else
4444     # POSIX says lex can declare yytext either as a pointer or an array; the
4445     # default is implementation-dependent. Figure out which it is, since
4446     # not all implementations provide the %pointer and %array declarations.
4447     ac_cv_prog_lex_yytext_pointer=no
4448     ac_save_LIBS=$LIBS
4449     LIBS="$LEXLIB $ac_save_LIBS"
4450 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451     /* end confdefs.h. */
4452 michael 912 #define YYTEXT_POINTER 1
4453     `cat $LEX_OUTPUT_ROOT.c`
4454     _ACEOF
4455 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4456 michael 912 ac_cv_prog_lex_yytext_pointer=yes
4457     fi
4458 michael 967 rm -f core conftest.err conftest.$ac_objext \
4459     conftest$ac_exeext conftest.$ac_ext
4460 michael 912 LIBS=$ac_save_LIBS
4461    
4462     fi
4463 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4464 db 941 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4465 michael 912 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4466    
4467 michael 967 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4468 michael 912
4469     fi
4470     rm -f conftest.l $LEX_OUTPUT_ROOT.c
4471    
4472     fi
4473     if test "$LEX" = :; then
4474     LEX=${am_missing_run}flex
4475     fi
4476 db 941
4477 michael 912
4478 michael 1015 # Initializing libtool.
4479 michael 945 case `pwd` in
4480     *\ * | *\ *)
4481 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4482 michael 945 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4483     esac
4484    
4485    
4486    
4487     macro_version='2.2.6'
4488     macro_revision='1.3012'
4489    
4490    
4491    
4492    
4493    
4494    
4495    
4496    
4497    
4498    
4499    
4500    
4501    
4502     ltmain="$ac_aux_dir/ltmain.sh"
4503    
4504 michael 912 # Make sure we can run config.sub.
4505     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4506 michael 967 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4507 michael 912
4508 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4509 db 941 $as_echo_n "checking build system type... " >&6; }
4510 michael 967 if test "${ac_cv_build+set}" = set; then :
4511 db 941 $as_echo_n "(cached) " >&6
4512 michael 912 else
4513     ac_build_alias=$build_alias
4514     test "x$ac_build_alias" = x &&
4515     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4516     test "x$ac_build_alias" = x &&
4517 michael 967 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4518 michael 912 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4519 michael 967 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4520 michael 912
4521     fi
4522 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4523 db 941 $as_echo "$ac_cv_build" >&6; }
4524 michael 912 case $ac_cv_build in
4525     *-*-*) ;;
4526 michael 967 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4527 michael 912 esac
4528     build=$ac_cv_build
4529     ac_save_IFS=$IFS; IFS='-'
4530     set x $ac_cv_build
4531     shift
4532     build_cpu=$1
4533     build_vendor=$2
4534     shift; shift
4535     # Remember, the first character of IFS is used to create $*,
4536     # except with old shells:
4537     build_os=$*
4538     IFS=$ac_save_IFS
4539     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4540    
4541    
4542 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4543 db 941 $as_echo_n "checking host system type... " >&6; }
4544 michael 967 if test "${ac_cv_host+set}" = set; then :
4545 db 941 $as_echo_n "(cached) " >&6
4546 michael 912 else
4547     if test "x$host_alias" = x; then
4548     ac_cv_host=$ac_cv_build
4549     else
4550     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4551 michael 967 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4552 michael 912 fi
4553    
4554     fi
4555 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4556 db 941 $as_echo "$ac_cv_host" >&6; }
4557 michael 912 case $ac_cv_host in
4558     *-*-*) ;;
4559 michael 967 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4560 michael 912 esac
4561     host=$ac_cv_host
4562     ac_save_IFS=$IFS; IFS='-'
4563     set x $ac_cv_host
4564     shift
4565     host_cpu=$1
4566     host_vendor=$2
4567     shift; shift
4568     # Remember, the first character of IFS is used to create $*,
4569     # except with old shells:
4570     host_os=$*
4571     IFS=$ac_save_IFS
4572     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4573    
4574    
4575 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4576 db 941 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4577 michael 967 if test "${ac_cv_path_SED+set}" = set; then :
4578 db 941 $as_echo_n "(cached) " >&6
4579 michael 912 else
4580 michael 945 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4581     for ac_i in 1 2 3 4 5 6 7; do
4582     ac_script="$ac_script$as_nl$ac_script"
4583     done
4584     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4585 michael 967 { ac_script=; unset ac_script;}
4586 michael 945 if test -z "$SED"; then
4587     ac_path_SED_found=false
4588     # Loop through the user's path and test for each of PROGNAME-LIST
4589     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4590 michael 912 for as_dir in $PATH
4591     do
4592     IFS=$as_save_IFS
4593     test -z "$as_dir" && as_dir=.
4594 michael 967 for ac_prog in sed gsed; do
4595 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
4596 michael 945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4597     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4598     # Check for GNU ac_path_SED and select it if it is found.
4599     # Check for GNU $ac_path_SED
4600     case `"$ac_path_SED" --version 2>&1` in
4601     *GNU*)
4602     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4603     *)
4604     ac_count=0
4605     $as_echo_n 0123456789 >"conftest.in"
4606     while :
4607     do
4608     cat "conftest.in" "conftest.in" >"conftest.tmp"
4609     mv "conftest.tmp" "conftest.in"
4610     cp "conftest.in" "conftest.nl"
4611     $as_echo '' >> "conftest.nl"
4612     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4613     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4614 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4615 michael 945 if test $ac_count -gt ${ac_path_SED_max-0}; then
4616     # Best one so far, save it but keep looking for a better one
4617     ac_cv_path_SED="$ac_path_SED"
4618     ac_path_SED_max=$ac_count
4619     fi
4620     # 10*(2^10) chars as input seems more than enough
4621     test $ac_count -gt 10 && break
4622     done
4623     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4624     esac
4625    
4626     $ac_path_SED_found && break 3
4627 michael 912 done
4628     done
4629 michael 967 done
4630 michael 912 IFS=$as_save_IFS
4631 michael 945 if test -z "$ac_cv_path_SED"; then
4632 michael 967 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4633 michael 912 fi
4634 michael 945 else
4635     ac_cv_path_SED=$SED
4636     fi
4637 michael 912
4638     fi
4639 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4640 michael 945 $as_echo "$ac_cv_path_SED" >&6; }
4641     SED="$ac_cv_path_SED"
4642     rm -f conftest.sed
4643 michael 912
4644 michael 945 test -z "$SED" && SED=sed
4645     Xsed="$SED -e 1s/^X//"
4646 michael 912
4647    
4648 michael 945
4649    
4650    
4651    
4652    
4653    
4654    
4655    
4656    
4657 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4658 db 941 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4659 michael 967 if test "${ac_cv_path_GREP+set}" = set; then :
4660 db 941 $as_echo_n "(cached) " >&6
4661 michael 912 else
4662 db 941 if test -z "$GREP"; then
4663 michael 912 ac_path_GREP_found=false
4664 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4665     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4666 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4667     do
4668     IFS=$as_save_IFS
4669     test -z "$as_dir" && as_dir=.
4670 michael 967 for ac_prog in grep ggrep; do
4671 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4672     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4673     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4674     # Check for GNU ac_path_GREP and select it if it is found.
4675 michael 912 # Check for GNU $ac_path_GREP
4676     case `"$ac_path_GREP" --version 2>&1` in
4677     *GNU*)
4678     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4679     *)
4680     ac_count=0
4681 db 941 $as_echo_n 0123456789 >"conftest.in"
4682 michael 912 while :
4683     do
4684     cat "conftest.in" "conftest.in" >"conftest.tmp"
4685     mv "conftest.tmp" "conftest.in"
4686     cp "conftest.in" "conftest.nl"
4687 db 941 $as_echo 'GREP' >> "conftest.nl"
4688 michael 912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4689     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4690 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4691 michael 912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4692     # Best one so far, save it but keep looking for a better one
4693     ac_cv_path_GREP="$ac_path_GREP"
4694     ac_path_GREP_max=$ac_count
4695     fi
4696     # 10*(2^10) chars as input seems more than enough
4697     test $ac_count -gt 10 && break
4698     done
4699     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4700     esac
4701    
4702 db 941 $ac_path_GREP_found && break 3
4703     done
4704 michael 912 done
4705 michael 967 done
4706 michael 912 IFS=$as_save_IFS
4707 db 941 if test -z "$ac_cv_path_GREP"; then
4708 michael 967 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4709 db 941 fi
4710 michael 912 else
4711     ac_cv_path_GREP=$GREP
4712     fi
4713    
4714     fi
4715 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4716 db 941 $as_echo "$ac_cv_path_GREP" >&6; }
4717 michael 912 GREP="$ac_cv_path_GREP"
4718    
4719    
4720 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4721 db 941 $as_echo_n "checking for egrep... " >&6; }
4722 michael 967 if test "${ac_cv_path_EGREP+set}" = set; then :
4723 db 941 $as_echo_n "(cached) " >&6
4724 michael 912 else
4725     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4726     then ac_cv_path_EGREP="$GREP -E"
4727     else
4728 db 941 if test -z "$EGREP"; then
4729 michael 912 ac_path_EGREP_found=false
4730 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4731     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4733     do
4734     IFS=$as_save_IFS
4735     test -z "$as_dir" && as_dir=.
4736 michael 967 for ac_prog in egrep; do
4737 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4738     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4739     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4740     # Check for GNU ac_path_EGREP and select it if it is found.
4741 michael 912 # Check for GNU $ac_path_EGREP
4742     case `"$ac_path_EGREP" --version 2>&1` in
4743     *GNU*)
4744     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4745     *)
4746     ac_count=0
4747 db 941 $as_echo_n 0123456789 >"conftest.in"
4748 michael 912 while :
4749     do
4750     cat "conftest.in" "conftest.in" >"conftest.tmp"
4751     mv "conftest.tmp" "conftest.in"
4752     cp "conftest.in" "conftest.nl"
4753 db 941 $as_echo 'EGREP' >> "conftest.nl"
4754 michael 912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4755     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4756 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4757 michael 912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4758     # Best one so far, save it but keep looking for a better one
4759     ac_cv_path_EGREP="$ac_path_EGREP"
4760     ac_path_EGREP_max=$ac_count
4761     fi
4762     # 10*(2^10) chars as input seems more than enough
4763     test $ac_count -gt 10 && break
4764     done
4765     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4766     esac
4767    
4768 db 941 $ac_path_EGREP_found && break 3
4769     done
4770 michael 912 done
4771 michael 967 done
4772 michael 912 IFS=$as_save_IFS
4773 db 941 if test -z "$ac_cv_path_EGREP"; then
4774 michael 967 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4775 db 941 fi
4776 michael 912 else
4777     ac_cv_path_EGREP=$EGREP
4778     fi
4779    
4780     fi
4781     fi
4782 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4783 db 941 $as_echo "$ac_cv_path_EGREP" >&6; }
4784 michael 912 EGREP="$ac_cv_path_EGREP"
4785    
4786    
4787 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4788 michael 945 $as_echo_n "checking for fgrep... " >&6; }
4789 michael 967 if test "${ac_cv_path_FGREP+set}" = set; then :
4790 michael 945 $as_echo_n "(cached) " >&6
4791     else
4792     if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4793     then ac_cv_path_FGREP="$GREP -F"
4794     else
4795     if test -z "$FGREP"; then
4796     ac_path_FGREP_found=false
4797     # Loop through the user's path and test for each of PROGNAME-LIST
4798     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4800     do
4801     IFS=$as_save_IFS
4802     test -z "$as_dir" && as_dir=.
4803 michael 967 for ac_prog in fgrep; do
4804 michael 945 for ac_exec_ext in '' $ac_executable_extensions; do
4805     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4806     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4807     # Check for GNU ac_path_FGREP and select it if it is found.
4808     # Check for GNU $ac_path_FGREP
4809     case `"$ac_path_FGREP" --version 2>&1` in
4810     *GNU*)
4811     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4812     *)
4813     ac_count=0
4814     $as_echo_n 0123456789 >"conftest.in"
4815     while :
4816     do
4817     cat "conftest.in" "conftest.in" >"conftest.tmp"
4818     mv "conftest.tmp" "conftest.in"
4819     cp "conftest.in" "conftest.nl"
4820     $as_echo 'FGREP' >> "conftest.nl"
4821     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4822     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4823 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4824 michael 945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4825     # Best one so far, save it but keep looking for a better one
4826     ac_cv_path_FGREP="$ac_path_FGREP"
4827     ac_path_FGREP_max=$ac_count
4828     fi
4829     # 10*(2^10) chars as input seems more than enough
4830     test $ac_count -gt 10 && break
4831     done
4832     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4833     esac
4834 michael 912
4835 michael 945 $ac_path_FGREP_found && break 3
4836     done
4837     done
4838 michael 967 done
4839 michael 945 IFS=$as_save_IFS
4840     if test -z "$ac_cv_path_FGREP"; then
4841 michael 967 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4842 michael 945 fi
4843     else
4844     ac_cv_path_FGREP=$FGREP
4845     fi
4846    
4847     fi
4848     fi
4849 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4850 michael 945 $as_echo "$ac_cv_path_FGREP" >&6; }
4851     FGREP="$ac_cv_path_FGREP"
4852    
4853    
4854     test -z "$GREP" && GREP=grep
4855    
4856    
4857    
4858    
4859    
4860    
4861    
4862    
4863    
4864    
4865    
4866    
4867    
4868    
4869    
4870    
4871    
4872    
4873    
4874 michael 912 # Check whether --with-gnu-ld was given.
4875 michael 967 if test "${with_gnu_ld+set}" = set; then :
4876 michael 912 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4877     else
4878     with_gnu_ld=no
4879     fi
4880    
4881     ac_prog=ld
4882     if test "$GCC" = yes; then
4883     # Check if gcc -print-prog-name=ld gives a path.
4884 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4885 db 941 $as_echo_n "checking for ld used by $CC... " >&6; }
4886 michael 912 case $host in
4887     *-*-mingw*)
4888     # gcc leaves a trailing carriage return which upsets mingw
4889     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4890     *)
4891     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4892     esac
4893     case $ac_prog in
4894     # Accept absolute paths.
4895     [\\/]* | ?:[\\/]*)
4896     re_direlt='/[^/][^/]*/\.\./'
4897     # Canonicalize the pathname of ld
4898 michael 945 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4899     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4900     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4901 michael 912 done
4902     test -z "$LD" && LD="$ac_prog"
4903     ;;
4904     "")
4905     # If it fails, then pretend we aren't using GCC.
4906     ac_prog=ld
4907     ;;
4908     *)
4909     # If it is relative, then search for the first ld in PATH.
4910     with_gnu_ld=unknown
4911     ;;
4912     esac
4913     elif test "$with_gnu_ld" = yes; then
4914 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4915 db 941 $as_echo_n "checking for GNU ld... " >&6; }
4916 michael 912 else
4917 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4918 db 941 $as_echo_n "checking for non-GNU ld... " >&6; }
4919 michael 912 fi
4920 michael 967 if test "${lt_cv_path_LD+set}" = set; then :
4921 db 941 $as_echo_n "(cached) " >&6
4922 michael 912 else
4923     if test -z "$LD"; then
4924     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4925     for ac_dir in $PATH; do
4926     IFS="$lt_save_ifs"
4927     test -z "$ac_dir" && ac_dir=.
4928     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4929     lt_cv_path_LD="$ac_dir/$ac_prog"
4930     # Check to see if the program is GNU ld. I'd rather use --version,
4931     # but apparently some variants of GNU ld only accept -v.
4932     # Break only if it was the GNU/non-GNU ld that we prefer.
4933     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4934     *GNU* | *'with BFD'*)
4935     test "$with_gnu_ld" != no && break
4936     ;;
4937     *)
4938     test "$with_gnu_ld" != yes && break
4939     ;;
4940     esac
4941     fi
4942     done
4943     IFS="$lt_save_ifs"
4944     else
4945     lt_cv_path_LD="$LD" # Let the user override the test with a path.
4946     fi
4947     fi
4948    
4949     LD="$lt_cv_path_LD"
4950     if test -n "$LD"; then
4951 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4952 db 941 $as_echo "$LD" >&6; }
4953 michael 912 else
4954 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955 db 941 $as_echo "no" >&6; }
4956 michael 912 fi
4957 michael 967 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4958     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4959 db 941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4960 michael 967 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4961 db 941 $as_echo_n "(cached) " >&6
4962 michael 912 else
4963     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4964     case `$LD -v 2>&1 </dev/null` in
4965     *GNU* | *'with BFD'*)
4966     lt_cv_prog_gnu_ld=yes
4967     ;;
4968     *)
4969     lt_cv_prog_gnu_ld=no
4970     ;;
4971     esac
4972     fi
4973 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4974 db 941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4975 michael 912 with_gnu_ld=$lt_cv_prog_gnu_ld
4976    
4977    
4978    
4979 michael 945
4980    
4981    
4982    
4983    
4984    
4985 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4986 michael 945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4987 michael 967 if test "${lt_cv_path_NM+set}" = set; then :
4988 db 941 $as_echo_n "(cached) " >&6
4989 michael 912 else
4990     if test -n "$NM"; then
4991     # Let the user override the test.
4992     lt_cv_path_NM="$NM"
4993     else
4994     lt_nm_to_check="${ac_tool_prefix}nm"
4995     if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4996     lt_nm_to_check="$lt_nm_to_check nm"
4997     fi
4998     for lt_tmp_nm in $lt_nm_to_check; do
4999     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5000     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5001     IFS="$lt_save_ifs"
5002     test -z "$ac_dir" && ac_dir=.
5003     tmp_nm="$ac_dir/$lt_tmp_nm"
5004     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5005     # Check to see if the nm accepts a BSD-compat flag.
5006     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5007     # nm: unknown option "B" ignored
5008     # Tru64's nm complains that /dev/null is an invalid object file
5009     case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5010     */dev/null* | *'Invalid file or object type'*)
5011     lt_cv_path_NM="$tmp_nm -B"
5012     break
5013     ;;
5014     *)
5015     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5016     */dev/null*)
5017     lt_cv_path_NM="$tmp_nm -p"
5018     break
5019     ;;
5020     *)
5021     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5022     continue # so that we can try to find one that supports BSD flags
5023     ;;
5024     esac
5025     ;;
5026     esac
5027     fi
5028     done
5029     IFS="$lt_save_ifs"
5030     done
5031 michael 945 : ${lt_cv_path_NM=no}
5032 michael 912 fi
5033     fi
5034 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5035 db 941 $as_echo "$lt_cv_path_NM" >&6; }
5036 michael 945 if test "$lt_cv_path_NM" != "no"; then
5037     NM="$lt_cv_path_NM"
5038     else
5039     # Didn't find any BSD compatible name lister, look for dumpbin.
5040     if test -n "$ac_tool_prefix"; then
5041     for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5042     do
5043     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5044     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5045 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5046 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5047 michael 967 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5048 michael 945 $as_echo_n "(cached) " >&6
5049     else
5050     if test -n "$DUMPBIN"; then
5051     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5052     else
5053     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054     for as_dir in $PATH
5055     do
5056     IFS=$as_save_IFS
5057     test -z "$as_dir" && as_dir=.
5058 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5059 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5061 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 michael 945 break 2
5063     fi
5064     done
5065 michael 967 done
5066 michael 945 IFS=$as_save_IFS
5067 michael 912
5068 michael 945 fi
5069     fi
5070     DUMPBIN=$ac_cv_prog_DUMPBIN
5071     if test -n "$DUMPBIN"; then
5072 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5073 michael 945 $as_echo "$DUMPBIN" >&6; }
5074     else
5075 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5076 michael 945 $as_echo "no" >&6; }
5077     fi
5078    
5079    
5080     test -n "$DUMPBIN" && break
5081     done
5082     fi
5083     if test -z "$DUMPBIN"; then
5084     ac_ct_DUMPBIN=$DUMPBIN
5085     for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5086     do
5087     # Extract the first word of "$ac_prog", so it can be a program name with args.
5088     set dummy $ac_prog; ac_word=$2
5089 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5090 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5091 michael 967 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5092 michael 945 $as_echo_n "(cached) " >&6
5093     else
5094     if test -n "$ac_ct_DUMPBIN"; then
5095     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5096     else
5097     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5098     for as_dir in $PATH
5099     do
5100     IFS=$as_save_IFS
5101     test -z "$as_dir" && as_dir=.
5102 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5103 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5105 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5106 michael 945 break 2
5107     fi
5108     done
5109 michael 967 done
5110 michael 945 IFS=$as_save_IFS
5111    
5112     fi
5113     fi
5114     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5115     if test -n "$ac_ct_DUMPBIN"; then
5116 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5117 michael 945 $as_echo "$ac_ct_DUMPBIN" >&6; }
5118     else
5119 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 michael 945 $as_echo "no" >&6; }
5121     fi
5122    
5123    
5124     test -n "$ac_ct_DUMPBIN" && break
5125     done
5126    
5127     if test "x$ac_ct_DUMPBIN" = x; then
5128     DUMPBIN=":"
5129     else
5130     case $cross_compiling:$ac_tool_warned in
5131     yes:)
5132 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5133 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5134     ac_tool_warned=yes ;;
5135     esac
5136     DUMPBIN=$ac_ct_DUMPBIN
5137     fi
5138     fi
5139    
5140    
5141     if test "$DUMPBIN" != ":"; then
5142     NM="$DUMPBIN"
5143     fi
5144     fi
5145     test -z "$NM" && NM=nm
5146    
5147    
5148    
5149    
5150    
5151    
5152 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5153 michael 945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5154 michael 967 if test "${lt_cv_nm_interface+set}" = set; then :
5155 michael 945 $as_echo_n "(cached) " >&6
5156     else
5157     lt_cv_nm_interface="BSD nm"
5158     echo "int some_variable = 0;" > conftest.$ac_ext
5159 michael 1039 (eval echo "\"\$as_me:5159: $ac_compile\"" >&5)
5160 michael 945 (eval "$ac_compile" 2>conftest.err)
5161     cat conftest.err >&5
5162 michael 1039 (eval echo "\"\$as_me:5162: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5163 michael 945 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5164     cat conftest.err >&5
5165 michael 1039 (eval echo "\"\$as_me:5165: output\"" >&5)
5166 michael 945 cat conftest.out >&5
5167     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5168     lt_cv_nm_interface="MS dumpbin"
5169     fi
5170     rm -f conftest*
5171     fi
5172 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5173 michael 945 $as_echo "$lt_cv_nm_interface" >&6; }
5174    
5175 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5176 db 941 $as_echo_n "checking whether ln -s works... " >&6; }
5177 michael 912 LN_S=$as_ln_s
5178     if test "$LN_S" = "ln -s"; then
5179 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5180 db 941 $as_echo "yes" >&6; }
5181 michael 912 else
5182 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5183 db 941 $as_echo "no, using $LN_S" >&6; }
5184 michael 912 fi
5185    
5186 michael 945 # find the maximum length of command line arguments
5187 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5188 michael 945 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5189 michael 967 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5190 michael 945 $as_echo_n "(cached) " >&6
5191     else
5192     i=0
5193     teststring="ABCD"
5194    
5195     case $build_os in
5196     msdosdjgpp*)
5197     # On DJGPP, this test can blow up pretty badly due to problems in libc
5198     # (any single argument exceeding 2000 bytes causes a buffer overrun
5199     # during glob expansion). Even if it were fixed, the result of this
5200     # check would be larger than it should be.
5201     lt_cv_sys_max_cmd_len=12288; # 12K is about right
5202     ;;
5203    
5204     gnu*)
5205     # Under GNU Hurd, this test is not required because there is
5206     # no limit to the length of command line arguments.
5207     # Libtool will interpret -1 as no limit whatsoever
5208     lt_cv_sys_max_cmd_len=-1;
5209     ;;
5210    
5211     cygwin* | mingw* | cegcc*)
5212     # On Win9x/ME, this test blows up -- it succeeds, but takes
5213     # about 5 minutes as the teststring grows exponentially.
5214     # Worse, since 9x/ME are not pre-emptively multitasking,
5215     # you end up with a "frozen" computer, even though with patience
5216     # the test eventually succeeds (with a max line length of 256k).
5217     # Instead, let's just punt: use the minimum linelength reported by
5218     # all of the supported platforms: 8192 (on NT/2K/XP).
5219     lt_cv_sys_max_cmd_len=8192;
5220     ;;
5221    
5222     amigaos*)
5223     # On AmigaOS with pdksh, this test takes hours, literally.
5224     # So we just punt and use a minimum line length of 8192.
5225     lt_cv_sys_max_cmd_len=8192;
5226     ;;
5227    
5228     netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5229     # This has been around since 386BSD, at least. Likely further.
5230     if test -x /sbin/sysctl; then
5231     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5232     elif test -x /usr/sbin/sysctl; then
5233     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5234     else
5235     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5236     fi
5237     # And add a safety zone
5238     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5239     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5240     ;;
5241    
5242     interix*)
5243     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5244     lt_cv_sys_max_cmd_len=196608
5245     ;;
5246    
5247     osf*)
5248     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5249     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5250     # nice to cause kernel panics so lets avoid the loop below.
5251     # First set a reasonable default.
5252     lt_cv_sys_max_cmd_len=16384
5253     #
5254     if test -x /sbin/sysconfig; then
5255     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5256     *1*) lt_cv_sys_max_cmd_len=-1 ;;
5257     esac
5258     fi
5259     ;;
5260     sco3.2v5*)
5261     lt_cv_sys_max_cmd_len=102400
5262     ;;
5263     sysv5* | sco5v6* | sysv4.2uw2*)
5264     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5265     if test -n "$kargmax"; then
5266     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5267     else
5268     lt_cv_sys_max_cmd_len=32768
5269     fi
5270     ;;
5271     *)
5272     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5273     if test -n "$lt_cv_sys_max_cmd_len"; then
5274     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5275     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5276     else
5277     # Make teststring a little bigger before we do anything with it.
5278     # a 1K string should be a reasonable start.
5279     for i in 1 2 3 4 5 6 7 8 ; do
5280     teststring=$teststring$teststring
5281     done
5282     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5283     # If test is not a shell built-in, we'll probably end up computing a
5284     # maximum length that is only half of the actual maximum length, but
5285     # we can't tell.
5286     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5287     = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5288     test $i != 17 # 1/2 MB should be enough
5289     do
5290     i=`expr $i + 1`
5291     teststring=$teststring$teststring
5292     done
5293     # Only check the string length outside the loop.
5294     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5295     teststring=
5296     # Add a significant safety factor because C++ compilers can tack on
5297     # massive amounts of additional arguments before passing them to the
5298     # linker. It appears as though 1/2 is a usable value.
5299     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5300     fi
5301     ;;
5302     esac
5303    
5304     fi
5305    
5306     if test -n $lt_cv_sys_max_cmd_len ; then
5307 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5308 michael 945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5309     else
5310 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5311 michael 945 $as_echo "none" >&6; }
5312     fi
5313     max_cmd_len=$lt_cv_sys_max_cmd_len
5314    
5315    
5316    
5317    
5318    
5319    
5320     : ${CP="cp -f"}
5321     : ${MV="mv -f"}
5322     : ${RM="rm -f"}
5323    
5324 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5325 michael 945 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5326     # Try some XSI features
5327     xsi_shell=no
5328     ( _lt_dummy="a/b/c"
5329     test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5330     = c,a/b,, \
5331     && eval 'test $(( 1 + 1 )) -eq 2 \
5332     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5333     && xsi_shell=yes
5334 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5335 michael 945 $as_echo "$xsi_shell" >&6; }
5336    
5337    
5338 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5339 michael 945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5340     lt_shell_append=no
5341     ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5342     >/dev/null 2>&1 \
5343     && lt_shell_append=yes
5344 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5345 michael 945 $as_echo "$lt_shell_append" >&6; }
5346    
5347    
5348     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5349     lt_unset=unset
5350     else
5351     lt_unset=false
5352     fi
5353    
5354    
5355    
5356    
5357    
5358     # test EBCDIC or ASCII
5359     case `echo X|tr X '\101'` in
5360     A) # ASCII based system
5361     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5362     lt_SP2NL='tr \040 \012'
5363     lt_NL2SP='tr \015\012 \040\040'
5364     ;;
5365     *) # EBCDIC based system
5366     lt_SP2NL='tr \100 \n'
5367     lt_NL2SP='tr \r\n \100\100'
5368     ;;
5369     esac
5370    
5371    
5372    
5373    
5374    
5375    
5376    
5377    
5378    
5379 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5380 michael 945 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5381 michael 967 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5382 michael 945 $as_echo_n "(cached) " >&6
5383     else
5384     lt_cv_ld_reload_flag='-r'
5385     fi
5386 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5387 michael 945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5388     reload_flag=$lt_cv_ld_reload_flag
5389     case $reload_flag in
5390     "" | " "*) ;;
5391     *) reload_flag=" $reload_flag" ;;
5392     esac
5393     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5394     case $host_os in
5395     darwin*)
5396     if test "$GCC" = yes; then
5397     reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5398     else
5399     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5400     fi
5401     ;;
5402     esac
5403    
5404    
5405    
5406    
5407    
5408    
5409    
5410    
5411    
5412     if test -n "$ac_tool_prefix"; then
5413     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5414     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5415 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5416 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5417 michael 967 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5418 michael 945 $as_echo_n "(cached) " >&6
5419     else
5420     if test -n "$OBJDUMP"; then
5421     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5422     else
5423     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424     for as_dir in $PATH
5425     do
5426     IFS=$as_save_IFS
5427     test -z "$as_dir" && as_dir=.
5428 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5429 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5431 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432 michael 945 break 2
5433     fi
5434     done
5435 michael 967 done
5436 michael 945 IFS=$as_save_IFS
5437    
5438     fi
5439     fi
5440     OBJDUMP=$ac_cv_prog_OBJDUMP
5441     if test -n "$OBJDUMP"; then
5442 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5443 michael 945 $as_echo "$OBJDUMP" >&6; }
5444     else
5445 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5446 michael 945 $as_echo "no" >&6; }
5447     fi
5448    
5449    
5450     fi
5451     if test -z "$ac_cv_prog_OBJDUMP"; then
5452     ac_ct_OBJDUMP=$OBJDUMP
5453     # Extract the first word of "objdump", so it can be a program name with args.
5454     set dummy objdump; ac_word=$2
5455 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5457 michael 967 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5458 michael 945 $as_echo_n "(cached) " >&6
5459     else
5460     if test -n "$ac_ct_OBJDUMP"; then
5461     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5462     else
5463     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464     for as_dir in $PATH
5465     do
5466     IFS=$as_save_IFS
5467     test -z "$as_dir" && as_dir=.
5468 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5469 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5470     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5471 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 michael 945 break 2
5473     fi
5474     done
5475 michael 967 done
5476 michael 945 IFS=$as_save_IFS
5477    
5478     fi
5479     fi
5480     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5481     if test -n "$ac_ct_OBJDUMP"; then
5482 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5483 michael 945 $as_echo "$ac_ct_OBJDUMP" >&6; }
5484     else
5485 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 michael 945 $as_echo "no" >&6; }
5487     fi
5488    
5489     if test "x$ac_ct_OBJDUMP" = x; then
5490     OBJDUMP="false"
5491     else
5492     case $cross_compiling:$ac_tool_warned in
5493     yes:)
5494 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5495 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5496     ac_tool_warned=yes ;;
5497     esac
5498     OBJDUMP=$ac_ct_OBJDUMP
5499     fi
5500     else
5501     OBJDUMP="$ac_cv_prog_OBJDUMP"
5502     fi
5503    
5504     test -z "$OBJDUMP" && OBJDUMP=objdump
5505    
5506    
5507    
5508    
5509    
5510    
5511    
5512    
5513    
5514 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5515 db 941 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5516 michael 967 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5517 db 941 $as_echo_n "(cached) " >&6
5518 michael 912 else
5519     lt_cv_file_magic_cmd='$MAGIC_CMD'
5520     lt_cv_file_magic_test_file=
5521     lt_cv_deplibs_check_method='unknown'
5522     # Need to set the preceding variable on all platforms that support
5523     # interlibrary dependencies.
5524     # 'none' -- dependencies not supported.
5525     # `unknown' -- same as none, but documents that we really don't know.
5526     # 'pass_all' -- all dependencies passed with no checks.
5527     # 'test_compile' -- check by making test program.
5528     # 'file_magic [[regex]]' -- check by looking for files in library path
5529     # which responds to the $file_magic_cmd with a given extended regex.
5530     # If you have `file' or equivalent on your system and you're not sure
5531     # whether `pass_all' will *always* work, you probably want this one.
5532    
5533     case $host_os in
5534 db 941 aix[4-9]*)
5535 michael 912 lt_cv_deplibs_check_method=pass_all
5536     ;;
5537    
5538     beos*)
5539     lt_cv_deplibs_check_method=pass_all
5540     ;;
5541    
5542     bsdi[45]*)
5543     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5544     lt_cv_file_magic_cmd='/usr/bin/file -L'
5545     lt_cv_file_magic_test_file=/shlib/libc.so
5546     ;;
5547    
5548     cygwin*)
5549     # func_win32_libid is a shell function defined in ltmain.sh
5550     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5551     lt_cv_file_magic_cmd='func_win32_libid'
5552     ;;
5553    
5554     mingw* | pw32*)
5555     # Base MSYS/MinGW do not provide the 'file' command needed by
5556     # func_win32_libid shell function, so use a weaker test based on 'objdump',
5557     # unless we find 'file', for example because we are cross-compiling.
5558     if ( file / ) >/dev/null 2>&1; then
5559     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5560     lt_cv_file_magic_cmd='func_win32_libid'
5561     else
5562     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5563     lt_cv_file_magic_cmd='$OBJDUMP -f'
5564     fi
5565     ;;
5566    
5567 michael 945 cegcc)
5568     # use the weaker test based on 'objdump'. See mingw*.
5569     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5570     lt_cv_file_magic_cmd='$OBJDUMP -f'
5571     ;;
5572    
5573 michael 912 darwin* | rhapsody*)
5574     lt_cv_deplibs_check_method=pass_all
5575     ;;
5576    
5577     freebsd* | dragonfly*)
5578 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5579 michael 912 case $host_cpu in
5580     i*86 )
5581     # Not sure whether the presence of OpenBSD here was a mistake.
5582     # Let's accept both of them until this is cleared up.
5583     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5584     lt_cv_file_magic_cmd=/usr/bin/file
5585     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5586     ;;
5587     esac
5588     else
5589     lt_cv_deplibs_check_method=pass_all
5590     fi
5591     ;;
5592    
5593     gnu*)
5594     lt_cv_deplibs_check_method=pass_all
5595     ;;
5596    
5597     hpux10.20* | hpux11*)
5598     lt_cv_file_magic_cmd=/usr/bin/file
5599     case $host_cpu in
5600     ia64*)
5601     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5602     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5603     ;;
5604     hppa*64*)
5605     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
5606     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5607     ;;
5608     *)
5609     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5610     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5611     ;;
5612     esac
5613     ;;
5614    
5615     interix[3-9]*)
5616     # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5617     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5618     ;;
5619    
5620     irix5* | irix6* | nonstopux*)
5621     case $LD in
5622     *-32|*"-32 ") libmagic=32-bit;;
5623     *-n32|*"-n32 ") libmagic=N32;;
5624     *-64|*"-64 ") libmagic=64-bit;;
5625     *) libmagic=never-match;;
5626     esac
5627     lt_cv_deplibs_check_method=pass_all
5628     ;;
5629    
5630     # This must be Linux ELF.
5631     linux* | k*bsd*-gnu)
5632     lt_cv_deplibs_check_method=pass_all
5633     ;;
5634    
5635     netbsd*)
5636 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5637 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5638     else
5639     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5640     fi
5641     ;;
5642    
5643     newos6*)
5644     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5645     lt_cv_file_magic_cmd=/usr/bin/file
5646     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5647     ;;
5648    
5649 michael 945 *nto* | *qnx*)
5650     lt_cv_deplibs_check_method=pass_all
5651 michael 912 ;;
5652    
5653     openbsd*)
5654 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5655 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5656     else
5657     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5658     fi
5659     ;;
5660    
5661     osf3* | osf4* | osf5*)
5662     lt_cv_deplibs_check_method=pass_all
5663     ;;
5664    
5665     rdos*)
5666     lt_cv_deplibs_check_method=pass_all
5667     ;;
5668    
5669     solaris*)
5670     lt_cv_deplibs_check_method=pass_all
5671     ;;
5672    
5673 michael 945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5674     lt_cv_deplibs_check_method=pass_all
5675     ;;
5676    
5677 michael 912 sysv4 | sysv4.3*)
5678     case $host_vendor in
5679     motorola)
5680     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]'
5681     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5682     ;;
5683     ncr)
5684     lt_cv_deplibs_check_method=pass_all
5685     ;;
5686     sequent)
5687     lt_cv_file_magic_cmd='/bin/file'
5688     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5689     ;;
5690     sni)
5691     lt_cv_file_magic_cmd='/bin/file'
5692     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5693     lt_cv_file_magic_test_file=/lib/libc.so
5694     ;;
5695     siemens)
5696     lt_cv_deplibs_check_method=pass_all
5697     ;;
5698     pc)
5699     lt_cv_deplibs_check_method=pass_all
5700     ;;
5701     esac
5702     ;;
5703    
5704 michael 945 tpf*)
5705 michael 912 lt_cv_deplibs_check_method=pass_all
5706     ;;
5707     esac
5708    
5709     fi
5710 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5711 db 941 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5712 michael 912 file_magic_cmd=$lt_cv_file_magic_cmd
5713     deplibs_check_method=$lt_cv_deplibs_check_method
5714     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5715    
5716    
5717    
5718    
5719 michael 945
5720    
5721    
5722    
5723    
5724    
5725    
5726    
5727     if test -n "$ac_tool_prefix"; then
5728     # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5729     set dummy ${ac_tool_prefix}ar; ac_word=$2
5730 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5731 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5732 michael 967 if test "${ac_cv_prog_AR+set}" = set; then :
5733 michael 945 $as_echo_n "(cached) " >&6
5734     else
5735     if test -n "$AR"; then
5736     ac_cv_prog_AR="$AR" # Let the user override the test.
5737     else
5738     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5739     for as_dir in $PATH
5740     do
5741     IFS=$as_save_IFS
5742     test -z "$as_dir" && as_dir=.
5743 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5744 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5745     ac_cv_prog_AR="${ac_tool_prefix}ar"
5746 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5747 michael 945 break 2
5748     fi
5749     done
5750 michael 967 done
5751 michael 945 IFS=$as_save_IFS
5752    
5753     fi
5754     fi
5755     AR=$ac_cv_prog_AR
5756     if test -n "$AR"; then
5757 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5758 michael 945 $as_echo "$AR" >&6; }
5759     else
5760 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5761 michael 945 $as_echo "no" >&6; }
5762     fi
5763    
5764    
5765     fi
5766     if test -z "$ac_cv_prog_AR"; then
5767     ac_ct_AR=$AR
5768     # Extract the first word of "ar", so it can be a program name with args.
5769     set dummy ar; ac_word=$2
5770 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5772 michael 967 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5773 michael 945 $as_echo_n "(cached) " >&6
5774     else
5775     if test -n "$ac_ct_AR"; then
5776     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5777     else
5778     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779     for as_dir in $PATH
5780     do
5781     IFS=$as_save_IFS
5782     test -z "$as_dir" && as_dir=.
5783 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5784 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5785     ac_cv_prog_ac_ct_AR="ar"
5786 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 michael 945 break 2
5788     fi
5789     done
5790 michael 967 done
5791 michael 945 IFS=$as_save_IFS
5792    
5793     fi
5794     fi
5795     ac_ct_AR=$ac_cv_prog_ac_ct_AR
5796     if test -n "$ac_ct_AR"; then
5797 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5798 michael 945 $as_echo "$ac_ct_AR" >&6; }
5799     else
5800 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 michael 945 $as_echo "no" >&6; }
5802     fi
5803    
5804     if test "x$ac_ct_AR" = x; then
5805     AR="false"
5806     else
5807     case $cross_compiling:$ac_tool_warned in
5808     yes:)
5809 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5810 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5811     ac_tool_warned=yes ;;
5812     esac
5813     AR=$ac_ct_AR
5814     fi
5815     else
5816     AR="$ac_cv_prog_AR"
5817     fi
5818    
5819     test -z "$AR" && AR=ar
5820     test -z "$AR_FLAGS" && AR_FLAGS=cru
5821    
5822    
5823    
5824    
5825    
5826    
5827    
5828    
5829    
5830    
5831    
5832     if test -n "$ac_tool_prefix"; then
5833     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5834     set dummy ${ac_tool_prefix}strip; ac_word=$2
5835 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5836 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5837 michael 967 if test "${ac_cv_prog_STRIP+set}" = set; then :
5838 michael 945 $as_echo_n "(cached) " >&6
5839     else
5840     if test -n "$STRIP"; then
5841     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5842     else
5843     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5844     for as_dir in $PATH
5845     do
5846     IFS=$as_save_IFS
5847     test -z "$as_dir" && as_dir=.
5848 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5849 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5850     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5851 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5852 michael 945 break 2
5853     fi
5854     done
5855 michael 967 done
5856 michael 945 IFS=$as_save_IFS
5857    
5858     fi
5859     fi
5860     STRIP=$ac_cv_prog_STRIP
5861     if test -n "$STRIP"; then
5862 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5863 michael 945 $as_echo "$STRIP" >&6; }
5864     else
5865 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5866 michael 945 $as_echo "no" >&6; }
5867     fi
5868    
5869    
5870     fi
5871     if test -z "$ac_cv_prog_STRIP"; then
5872     ac_ct_STRIP=$STRIP
5873     # Extract the first word of "strip", so it can be a program name with args.
5874     set dummy strip; ac_word=$2
5875 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5876 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5877 michael 967 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5878 michael 945 $as_echo_n "(cached) " >&6
5879     else
5880     if test -n "$ac_ct_STRIP"; then
5881     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5882     else
5883     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5884     for as_dir in $PATH
5885     do
5886     IFS=$as_save_IFS
5887     test -z "$as_dir" && as_dir=.
5888 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5889 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5890     ac_cv_prog_ac_ct_STRIP="strip"
5891 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 michael 945 break 2
5893     fi
5894     done
5895 michael 967 done
5896 michael 945 IFS=$as_save_IFS
5897    
5898     fi
5899     fi
5900     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5901     if test -n "$ac_ct_STRIP"; then
5902 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5903 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
5904     else
5905 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 michael 945 $as_echo "no" >&6; }
5907     fi
5908    
5909     if test "x$ac_ct_STRIP" = x; then
5910     STRIP=":"
5911     else
5912     case $cross_compiling:$ac_tool_warned in
5913     yes:)
5914 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5915 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5916     ac_tool_warned=yes ;;
5917     esac
5918     STRIP=$ac_ct_STRIP
5919     fi
5920     else
5921     STRIP="$ac_cv_prog_STRIP"
5922     fi
5923    
5924     test -z "$STRIP" && STRIP=:
5925    
5926    
5927    
5928    
5929    
5930    
5931     if test -n "$ac_tool_prefix"; then
5932     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5933     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5934 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5935 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5936 michael 967 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5937 michael 945 $as_echo_n "(cached) " >&6
5938     else
5939     if test -n "$RANLIB"; then
5940     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5941     else
5942     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5943     for as_dir in $PATH
5944     do
5945     IFS=$as_save_IFS
5946     test -z "$as_dir" && as_dir=.
5947 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5948 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5949     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5950 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 michael 945 break 2
5952     fi
5953     done
5954 michael 967 done
5955 michael 945 IFS=$as_save_IFS
5956    
5957     fi
5958     fi
5959     RANLIB=$ac_cv_prog_RANLIB
5960     if test -n "$RANLIB"; then
5961 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5962 michael 945 $as_echo "$RANLIB" >&6; }
5963     else
5964 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5965 michael 945 $as_echo "no" >&6; }
5966     fi
5967    
5968    
5969     fi
5970     if test -z "$ac_cv_prog_RANLIB"; then
5971     ac_ct_RANLIB=$RANLIB
5972     # Extract the first word of "ranlib", so it can be a program name with args.
5973     set dummy ranlib; ac_word=$2
5974 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5975 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5976 michael 967 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5977 michael 945 $as_echo_n "(cached) " >&6
5978     else
5979     if test -n "$ac_ct_RANLIB"; then
5980     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5981     else
5982     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5983     for as_dir in $PATH
5984     do
5985     IFS=$as_save_IFS
5986     test -z "$as_dir" && as_dir=.
5987 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5988 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5989     ac_cv_prog_ac_ct_RANLIB="ranlib"
5990 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 michael 945 break 2
5992     fi
5993     done
5994 michael 967 done
5995 michael 945 IFS=$as_save_IFS
5996    
5997     fi
5998     fi
5999     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6000     if test -n "$ac_ct_RANLIB"; then
6001 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6002 michael 945 $as_echo "$ac_ct_RANLIB" >&6; }
6003     else
6004 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 michael 945 $as_echo "no" >&6; }
6006     fi
6007    
6008     if test "x$ac_ct_RANLIB" = x; then
6009     RANLIB=":"
6010     else
6011     case $cross_compiling:$ac_tool_warned in
6012     yes:)
6013 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6014 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6015     ac_tool_warned=yes ;;
6016     esac
6017     RANLIB=$ac_ct_RANLIB
6018     fi
6019     else
6020     RANLIB="$ac_cv_prog_RANLIB"
6021     fi
6022    
6023     test -z "$RANLIB" && RANLIB=:
6024    
6025    
6026    
6027    
6028    
6029    
6030     # Determine commands to create old-style static archives.
6031     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6032     old_postinstall_cmds='chmod 644 $oldlib'
6033     old_postuninstall_cmds=
6034    
6035     if test -n "$RANLIB"; then
6036     case $host_os in
6037     openbsd*)
6038     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6039     ;;
6040     *)
6041     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6042     ;;
6043     esac
6044     old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6045     fi
6046    
6047    
6048    
6049    
6050    
6051    
6052    
6053    
6054    
6055    
6056    
6057    
6058    
6059    
6060    
6061    
6062    
6063    
6064    
6065    
6066    
6067    
6068    
6069    
6070    
6071    
6072    
6073    
6074    
6075    
6076    
6077    
6078    
6079    
6080 michael 912 # If no C compiler was specified, use CC.
6081     LTCC=${LTCC-"$CC"}
6082    
6083     # If no C compiler flags were specified, use CFLAGS.
6084     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6085    
6086     # Allow CC to be a program name with arguments.
6087     compiler=$CC
6088    
6089 michael 945
6090     # Check for command to grab the raw symbol name followed by C symbol from nm.
6091 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6092 michael 945 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6093 michael 967 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6094 michael 945 $as_echo_n "(cached) " >&6
6095     else
6096    
6097     # These are sane defaults that work on at least a few old systems.
6098     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6099    
6100     # Character class describing NM global symbol codes.
6101     symcode='[BCDEGRST]'
6102    
6103     # Regexp to match symbols that can be accessed directly from C.
6104     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6105    
6106     # Define system-specific variables.
6107     case $host_os in
6108     aix*)
6109     symcode='[BCDT]'
6110     ;;
6111     cygwin* | mingw* | pw32* | cegcc*)
6112     symcode='[ABCDGISTW]'
6113     ;;
6114     hpux*)
6115     if test "$host_cpu" = ia64; then
6116     symcode='[ABCDEGRST]'
6117     fi
6118     ;;
6119     irix* | nonstopux*)
6120     symcode='[BCDEGRST]'
6121     ;;
6122     osf*)
6123     symcode='[BCDEGQRST]'
6124     ;;
6125     solaris*)
6126     symcode='[BDRT]'
6127     ;;
6128     sco3.2v5*)
6129     symcode='[DT]'
6130     ;;
6131     sysv4.2uw2*)
6132     symcode='[DT]'
6133     ;;
6134     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6135     symcode='[ABDT]'
6136     ;;
6137     sysv4)
6138     symcode='[DFNSTU]'
6139     ;;
6140     esac
6141    
6142     # If we're using GNU nm, then use its standard symbol codes.
6143     case `$NM -V 2>&1` in
6144     *GNU* | *'with BFD'*)
6145     symcode='[ABCDGIRSTW]' ;;
6146     esac
6147    
6148     # Transform an extracted symbol line into a proper C declaration.
6149     # Some systems (esp. on ia64) link data and code symbols differently,
6150     # so use this general approach.
6151     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6152    
6153     # Transform an extracted symbol line into symbol name and symbol address
6154     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6155     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'"
6156    
6157     # Handle CRLF in mingw tool chain
6158     opt_cr=
6159     case $build_os in
6160     mingw*)
6161     opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6162     ;;
6163     esac
6164    
6165     # Try without a prefix underscore, then with it.
6166     for ac_symprfx in "" "_"; do
6167    
6168     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6169     symxfrm="\\1 $ac_symprfx\\2 \\2"
6170    
6171     # Write the raw and C identifiers.
6172     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6173     # Fake it for dumpbin and say T for any non-static function
6174     # and D for any global variable.
6175     # Also find C++ and __fastcall symbols from MSVC++,
6176     # which start with @ or ?.
6177     lt_cv_sys_global_symbol_pipe="$AWK '"\
6178     " {last_section=section; section=\$ 3};"\
6179     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6180     " \$ 0!~/External *\|/{next};"\
6181     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6182     " {if(hide[section]) next};"\
6183     " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6184     " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6185     " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6186     " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6187     " ' prfx=^$ac_symprfx"
6188     else
6189     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6190     fi
6191    
6192     # Check to see that the pipe works correctly.
6193     pipe_works=no
6194    
6195     rm -f conftest*
6196     cat > conftest.$ac_ext <<_LT_EOF
6197     #ifdef __cplusplus
6198     extern "C" {
6199     #endif
6200     char nm_test_var;
6201     void nm_test_func(void);
6202     void nm_test_func(void){}
6203     #ifdef __cplusplus
6204     }
6205     #endif
6206     int main(){nm_test_var='a';nm_test_func();return(0);}
6207     _LT_EOF
6208    
6209 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6210 michael 945 (eval $ac_compile) 2>&5
6211     ac_status=$?
6212 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6213     test $ac_status = 0; }; then
6214 michael 945 # Now try to grab the symbols.
6215     nlist=conftest.nm
6216 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6217 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6218     ac_status=$?
6219 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6220     test $ac_status = 0; } && test -s "$nlist"; then
6221 michael 945 # Try sorting and uniquifying the output.
6222     if sort "$nlist" | uniq > "$nlist"T; then
6223     mv -f "$nlist"T "$nlist"
6224     else
6225     rm -f "$nlist"T
6226     fi
6227    
6228     # Make sure that we snagged all the symbols we need.
6229     if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6230     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6231     cat <<_LT_EOF > conftest.$ac_ext
6232     #ifdef __cplusplus
6233     extern "C" {
6234     #endif
6235    
6236     _LT_EOF
6237     # Now generate the symbol file.
6238     eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6239    
6240     cat <<_LT_EOF >> conftest.$ac_ext
6241    
6242     /* The mapping between symbol names and symbols. */
6243     const struct {
6244     const char *name;
6245     void *address;
6246     }
6247     lt__PROGRAM__LTX_preloaded_symbols[] =
6248     {
6249     { "@PROGRAM@", (void *) 0 },
6250     _LT_EOF
6251     $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6252     cat <<\_LT_EOF >> conftest.$ac_ext
6253     {0, (void *) 0}
6254     };
6255    
6256     /* This works around a problem in FreeBSD linker */
6257     #ifdef FREEBSD_WORKAROUND
6258     static const void *lt_preloaded_setup() {
6259     return lt__PROGRAM__LTX_preloaded_symbols;
6260     }
6261     #endif
6262    
6263     #ifdef __cplusplus
6264     }
6265     #endif
6266     _LT_EOF
6267     # Now try linking the two files.
6268     mv conftest.$ac_objext conftstm.$ac_objext
6269     lt_save_LIBS="$LIBS"
6270     lt_save_CFLAGS="$CFLAGS"
6271     LIBS="conftstm.$ac_objext"
6272     CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6273 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6274 michael 945 (eval $ac_link) 2>&5
6275     ac_status=$?
6276 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6277     test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6278 michael 945 pipe_works=yes
6279     fi
6280     LIBS="$lt_save_LIBS"
6281     CFLAGS="$lt_save_CFLAGS"
6282     else
6283     echo "cannot find nm_test_func in $nlist" >&5
6284     fi
6285     else
6286     echo "cannot find nm_test_var in $nlist" >&5
6287     fi
6288     else
6289     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6290     fi
6291     else
6292     echo "$progname: failed program was:" >&5
6293     cat conftest.$ac_ext >&5
6294     fi
6295     rm -rf conftest* conftst*
6296    
6297     # Do not use the global_symbol_pipe unless it works.
6298     if test "$pipe_works" = yes; then
6299     break
6300     else
6301     lt_cv_sys_global_symbol_pipe=
6302     fi
6303     done
6304    
6305     fi
6306    
6307     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6308     lt_cv_sys_global_symbol_to_cdecl=
6309     fi
6310     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6311 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6312 michael 945 $as_echo "failed" >&6; }
6313     else
6314 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6315 michael 945 $as_echo "ok" >&6; }
6316     fi
6317    
6318    
6319    
6320    
6321    
6322    
6323    
6324    
6325    
6326    
6327    
6328    
6329    
6330    
6331    
6332    
6333    
6334    
6335    
6336    
6337    
6338    
6339 michael 912 # Check whether --enable-libtool-lock was given.
6340 michael 967 if test "${enable_libtool_lock+set}" = set; then :
6341 michael 912 enableval=$enable_libtool_lock;
6342     fi
6343    
6344     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6345    
6346     # Some flags need to be propagated to the compiler or linker for good
6347     # libtool support.
6348     case $host in
6349     ia64-*-hpux*)
6350     # Find out which ABI we are using.
6351     echo 'int i;' > conftest.$ac_ext
6352 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6353 michael 912 (eval $ac_compile) 2>&5
6354     ac_status=$?
6355 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6356     test $ac_status = 0; }; then
6357 michael 912 case `/usr/bin/file conftest.$ac_objext` in
6358 michael 945 *ELF-32*)
6359     HPUX_IA64_MODE="32"
6360     ;;
6361     *ELF-64*)
6362     HPUX_IA64_MODE="64"
6363     ;;
6364 michael 912 esac
6365     fi
6366     rm -rf conftest*
6367     ;;
6368     *-*-irix6*)
6369     # Find out which ABI we are using.
6370 michael 1039 echo '#line 6370 "configure"' > conftest.$ac_ext
6371 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6372 michael 912 (eval $ac_compile) 2>&5
6373     ac_status=$?
6374 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6375     test $ac_status = 0; }; then
6376 michael 945 if test "$lt_cv_prog_gnu_ld" = yes; then
6377     case `/usr/bin/file conftest.$ac_objext` in
6378     *32-bit*)
6379     LD="${LD-ld} -melf32bsmip"
6380     ;;
6381     *N32*)
6382     LD="${LD-ld} -melf32bmipn32"
6383     ;;
6384     *64-bit*)
6385     LD="${LD-ld} -melf64bmip"
6386     ;;
6387     esac
6388     else
6389     case `/usr/bin/file conftest.$ac_objext` in
6390     *32-bit*)
6391     LD="${LD-ld} -32"
6392     ;;
6393     *N32*)
6394     LD="${LD-ld} -n32"
6395     ;;
6396     *64-bit*)
6397     LD="${LD-ld} -64"
6398     ;;
6399     esac
6400     fi
6401 michael 912 fi
6402     rm -rf conftest*
6403     ;;
6404    
6405     x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6406 michael 945 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6407 michael 912 # Find out which ABI we are using.
6408     echo 'int i;' > conftest.$ac_ext
6409 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6410 michael 912 (eval $ac_compile) 2>&5
6411     ac_status=$?
6412 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6413     test $ac_status = 0; }; then
6414 michael 912 case `/usr/bin/file conftest.o` in
6415 michael 945 *32-bit*)
6416     case $host in
6417     x86_64-*kfreebsd*-gnu)
6418     LD="${LD-ld} -m elf_i386_fbsd"
6419     ;;
6420     x86_64-*linux*)
6421     LD="${LD-ld} -m elf_i386"
6422     ;;
6423     ppc64-*linux*|powerpc64-*linux*)
6424     LD="${LD-ld} -m elf32ppclinux"
6425     ;;
6426     s390x-*linux*)
6427     LD="${LD-ld} -m elf_s390"
6428     ;;
6429     sparc64-*linux*)
6430     LD="${LD-ld} -m elf32_sparc"
6431     ;;
6432     esac
6433     ;;
6434     *64-bit*)
6435     case $host in
6436     x86_64-*kfreebsd*-gnu)
6437     LD="${LD-ld} -m elf_x86_64_fbsd"
6438     ;;
6439     x86_64-*linux*)
6440     LD="${LD-ld} -m elf_x86_64"
6441     ;;
6442     ppc*-*linux*|powerpc*-*linux*)
6443     LD="${LD-ld} -m elf64ppc"
6444     ;;
6445     s390*-*linux*|s390*-*tpf*)
6446     LD="${LD-ld} -m elf64_s390"
6447     ;;
6448     sparc*-*linux*)
6449     LD="${LD-ld} -m elf64_sparc"
6450     ;;
6451     esac
6452     ;;
6453 michael 912 esac
6454     fi
6455     rm -rf conftest*
6456     ;;
6457    
6458     *-*-sco3.2v5*)
6459     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6460     SAVE_CFLAGS="$CFLAGS"
6461     CFLAGS="$CFLAGS -belf"
6462 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6463 db 941 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6464 michael 967 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6465 db 941 $as_echo_n "(cached) " >&6
6466 michael 912 else
6467     ac_ext=c
6468     ac_cpp='$CPP $CPPFLAGS'
6469     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6470     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6471     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6472    
6473 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6474 michael 912 /* end confdefs.h. */
6475    
6476     int
6477     main ()
6478     {
6479    
6480     ;
6481     return 0;
6482     }
6483     _ACEOF
6484 michael 967 if ac_fn_c_try_link "$LINENO"; then :
6485 michael 912 lt_cv_cc_needs_belf=yes
6486     else
6487 michael 967 lt_cv_cc_needs_belf=no
6488 michael 912 fi
6489 michael 967 rm -f core conftest.err conftest.$ac_objext \
6490     conftest$ac_exeext conftest.$ac_ext
6491 michael 912 ac_ext=c
6492     ac_cpp='$CPP $CPPFLAGS'
6493     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6494     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6495     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6496    
6497     fi
6498 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6499 db 941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6500 michael 912 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6501     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6502     CFLAGS="$SAVE_CFLAGS"
6503     fi
6504     ;;
6505     sparc*-*solaris*)
6506     # Find out which ABI we are using.
6507     echo 'int i;' > conftest.$ac_ext
6508 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6509 michael 912 (eval $ac_compile) 2>&5
6510     ac_status=$?
6511 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6512     test $ac_status = 0; }; then
6513 michael 912 case `/usr/bin/file conftest.o` in
6514     *64-bit*)
6515     case $lt_cv_prog_gnu_ld in
6516     yes*) LD="${LD-ld} -m elf64_sparc" ;;
6517 db 941 *)
6518 michael 945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6519 db 941 LD="${LD-ld} -64"
6520     fi
6521     ;;
6522 michael 912 esac
6523     ;;
6524     esac
6525     fi
6526     rm -rf conftest*
6527     ;;
6528 michael 945 esac
6529 michael 912
6530 michael 945 need_locks="$enable_libtool_lock"
6531 michael 912
6532 michael 945
6533     case $host_os in
6534     rhapsody* | darwin*)
6535     if test -n "$ac_tool_prefix"; then
6536     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6537     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6538 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6539 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6540 michael 967 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6541 michael 945 $as_echo_n "(cached) " >&6
6542     else
6543     if test -n "$DSYMUTIL"; then
6544     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6545     else
6546     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6547     for as_dir in $PATH
6548     do
6549     IFS=$as_save_IFS
6550     test -z "$as_dir" && as_dir=.
6551 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6552 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6553     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6554 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6555 michael 945 break 2
6556     fi
6557     done
6558 michael 967 done
6559 michael 945 IFS=$as_save_IFS
6560    
6561     fi
6562     fi
6563     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6564     if test -n "$DSYMUTIL"; then
6565 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6566 michael 945 $as_echo "$DSYMUTIL" >&6; }
6567     else
6568 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6569 michael 945 $as_echo "no" >&6; }
6570     fi
6571    
6572    
6573     fi
6574     if test -z "$ac_cv_prog_DSYMUTIL"; then
6575     ac_ct_DSYMUTIL=$DSYMUTIL
6576     # Extract the first word of "dsymutil", so it can be a program name with args.
6577     set dummy dsymutil; ac_word=$2
6578 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6579 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6580 michael 967 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6581 michael 945 $as_echo_n "(cached) " >&6
6582     else
6583     if test -n "$ac_ct_DSYMUTIL"; then
6584     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6585     else
6586     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587     for as_dir in $PATH
6588     do
6589     IFS=$as_save_IFS
6590     test -z "$as_dir" && as_dir=.
6591 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6592 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6593     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6594 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6595 michael 945 break 2
6596     fi
6597     done
6598 michael 967 done
6599 michael 945 IFS=$as_save_IFS
6600    
6601     fi
6602     fi
6603     ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6604     if test -n "$ac_ct_DSYMUTIL"; then
6605 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6606 michael 945 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6607     else
6608 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6609 michael 945 $as_echo "no" >&6; }
6610     fi
6611    
6612     if test "x$ac_ct_DSYMUTIL" = x; then
6613     DSYMUTIL=":"
6614     else
6615     case $cross_compiling:$ac_tool_warned in
6616     yes:)
6617 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6618 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6619     ac_tool_warned=yes ;;
6620 michael 912 esac
6621 michael 945 DSYMUTIL=$ac_ct_DSYMUTIL
6622     fi
6623     else
6624     DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6625     fi
6626 michael 912
6627 michael 945 if test -n "$ac_tool_prefix"; then
6628     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6629     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6630 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6632 michael 967 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6633 michael 945 $as_echo_n "(cached) " >&6
6634     else
6635     if test -n "$NMEDIT"; then
6636     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6637     else
6638     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6639     for as_dir in $PATH
6640     do
6641     IFS=$as_save_IFS
6642     test -z "$as_dir" && as_dir=.
6643 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6644 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6645     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6646 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6647 michael 945 break 2
6648     fi
6649     done
6650 michael 967 done
6651 michael 945 IFS=$as_save_IFS
6652 michael 912
6653 michael 945 fi
6654     fi
6655     NMEDIT=$ac_cv_prog_NMEDIT
6656     if test -n "$NMEDIT"; then
6657 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6658 michael 945 $as_echo "$NMEDIT" >&6; }
6659     else
6660 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6661 michael 945 $as_echo "no" >&6; }
6662     fi
6663 michael 912
6664 michael 945
6665     fi
6666     if test -z "$ac_cv_prog_NMEDIT"; then
6667     ac_ct_NMEDIT=$NMEDIT
6668     # Extract the first word of "nmedit", so it can be a program name with args.
6669     set dummy nmedit; ac_word=$2
6670 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6671 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6672 michael 967 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6673 michael 945 $as_echo_n "(cached) " >&6
6674     else
6675     if test -n "$ac_ct_NMEDIT"; then
6676     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6677     else
6678     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6679     for as_dir in $PATH
6680     do
6681     IFS=$as_save_IFS
6682     test -z "$as_dir" && as_dir=.
6683 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6684 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6685     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6686 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6687 michael 945 break 2
6688     fi
6689     done
6690 michael 967 done
6691 michael 945 IFS=$as_save_IFS
6692    
6693     fi
6694     fi
6695     ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6696     if test -n "$ac_ct_NMEDIT"; then
6697 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6698 michael 945 $as_echo "$ac_ct_NMEDIT" >&6; }
6699     else
6700 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6701 michael 945 $as_echo "no" >&6; }
6702     fi
6703    
6704     if test "x$ac_ct_NMEDIT" = x; then
6705     NMEDIT=":"
6706     else
6707     case $cross_compiling:$ac_tool_warned in
6708     yes:)
6709 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6710 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6711     ac_tool_warned=yes ;;
6712     esac
6713     NMEDIT=$ac_ct_NMEDIT
6714     fi
6715     else
6716     NMEDIT="$ac_cv_prog_NMEDIT"
6717     fi
6718    
6719     if test -n "$ac_tool_prefix"; then
6720     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6721     set dummy ${ac_tool_prefix}lipo; ac_word=$2
6722 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6723 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6724 michael 967 if test "${ac_cv_prog_LIPO+set}" = set; then :
6725 michael 945 $as_echo_n "(cached) " >&6
6726     else
6727     if test -n "$LIPO"; then
6728     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6729     else
6730     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6731     for as_dir in $PATH
6732     do
6733     IFS=$as_save_IFS
6734     test -z "$as_dir" && as_dir=.
6735 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6736 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6737     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6738 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6739 michael 945 break 2
6740     fi
6741     done
6742 michael 967 done
6743 michael 945 IFS=$as_save_IFS
6744    
6745     fi
6746     fi
6747     LIPO=$ac_cv_prog_LIPO
6748     if test -n "$LIPO"; then
6749 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6750 michael 945 $as_echo "$LIPO" >&6; }
6751     else
6752 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6753 michael 945 $as_echo "no" >&6; }
6754     fi
6755    
6756    
6757     fi
6758     if test -z "$ac_cv_prog_LIPO"; then
6759     ac_ct_LIPO=$LIPO
6760     # Extract the first word of "lipo", so it can be a program name with args.
6761     set dummy lipo; ac_word=$2
6762 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6763 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6764 michael 967 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6765 michael 945 $as_echo_n "(cached) " >&6
6766     else
6767     if test -n "$ac_ct_LIPO"; then
6768     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6769     else
6770     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771     for as_dir in $PATH
6772     do
6773     IFS=$as_save_IFS
6774     test -z "$as_dir" && as_dir=.
6775 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6776 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777     ac_cv_prog_ac_ct_LIPO="lipo"
6778 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 michael 945 break 2
6780     fi
6781     done
6782 michael 967 done
6783 michael 945 IFS=$as_save_IFS
6784    
6785     fi
6786     fi
6787     ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6788     if test -n "$ac_ct_LIPO"; then
6789 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6790 michael 945 $as_echo "$ac_ct_LIPO" >&6; }
6791     else
6792 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6793 michael 945 $as_echo "no" >&6; }
6794     fi
6795    
6796     if test "x$ac_ct_LIPO" = x; then
6797     LIPO=":"
6798     else
6799     case $cross_compiling:$ac_tool_warned in
6800     yes:)
6801 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6802 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6803     ac_tool_warned=yes ;;
6804     esac
6805     LIPO=$ac_ct_LIPO
6806     fi
6807     else
6808     LIPO="$ac_cv_prog_LIPO"
6809     fi
6810    
6811     if test -n "$ac_tool_prefix"; then
6812     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6813     set dummy ${ac_tool_prefix}otool; ac_word=$2
6814 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6815 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6816 michael 967 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6817 michael 945 $as_echo_n "(cached) " >&6
6818     else
6819     if test -n "$OTOOL"; then
6820     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6821     else
6822     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823     for as_dir in $PATH
6824     do
6825     IFS=$as_save_IFS
6826     test -z "$as_dir" && as_dir=.
6827 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6828 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6830 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6831 michael 945 break 2
6832     fi
6833     done
6834 michael 967 done
6835 michael 945 IFS=$as_save_IFS
6836    
6837     fi
6838     fi
6839     OTOOL=$ac_cv_prog_OTOOL
6840     if test -n "$OTOOL"; then
6841 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6842 michael 945 $as_echo "$OTOOL" >&6; }
6843     else
6844 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6845 michael 945 $as_echo "no" >&6; }
6846     fi
6847    
6848    
6849     fi
6850     if test -z "$ac_cv_prog_OTOOL"; then
6851     ac_ct_OTOOL=$OTOOL
6852     # Extract the first word of "otool", so it can be a program name with args.
6853     set dummy otool; ac_word=$2
6854 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6855 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6856 michael 967 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6857 michael 945 $as_echo_n "(cached) " >&6
6858     else
6859     if test -n "$ac_ct_OTOOL"; then
6860     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6861     else
6862     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863     for as_dir in $PATH
6864     do
6865     IFS=$as_save_IFS
6866     test -z "$as_dir" && as_dir=.
6867 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6868 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869     ac_cv_prog_ac_ct_OTOOL="otool"
6870 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6871 michael 945 break 2
6872     fi
6873     done
6874 michael 967 done
6875 michael 945 IFS=$as_save_IFS
6876    
6877     fi
6878     fi
6879     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6880     if test -n "$ac_ct_OTOOL"; then
6881 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6882 michael 945 $as_echo "$ac_ct_OTOOL" >&6; }
6883     else
6884 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6885 michael 945 $as_echo "no" >&6; }
6886     fi
6887    
6888     if test "x$ac_ct_OTOOL" = x; then
6889     OTOOL=":"
6890     else
6891     case $cross_compiling:$ac_tool_warned in
6892     yes:)
6893 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6894 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6895     ac_tool_warned=yes ;;
6896     esac
6897     OTOOL=$ac_ct_OTOOL
6898     fi
6899     else
6900     OTOOL="$ac_cv_prog_OTOOL"
6901     fi
6902    
6903     if test -n "$ac_tool_prefix"; then
6904     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6905     set dummy ${ac_tool_prefix}otool64; ac_word=$2
6906 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6907 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6908 michael 967 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6909 michael 945 $as_echo_n "(cached) " >&6
6910     else
6911     if test -n "$OTOOL64"; then
6912     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6913     else
6914     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915     for as_dir in $PATH
6916     do
6917     IFS=$as_save_IFS
6918     test -z "$as_dir" && as_dir=.
6919 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6920 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6921     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6922 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6923 michael 945 break 2
6924     fi
6925     done
6926 michael 967 done
6927 michael 945 IFS=$as_save_IFS
6928    
6929     fi
6930     fi
6931     OTOOL64=$ac_cv_prog_OTOOL64
6932     if test -n "$OTOOL64"; then
6933 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6934 michael 945 $as_echo "$OTOOL64" >&6; }
6935     else
6936 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6937 michael 945 $as_echo "no" >&6; }
6938     fi
6939    
6940    
6941     fi
6942     if test -z "$ac_cv_prog_OTOOL64"; then
6943     ac_ct_OTOOL64=$OTOOL64
6944     # Extract the first word of "otool64", so it can be a program name with args.
6945     set dummy otool64; ac_word=$2
6946 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6947 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6948 michael 967 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6949 michael 945 $as_echo_n "(cached) " >&6
6950     else
6951     if test -n "$ac_ct_OTOOL64"; then
6952     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6953     else
6954     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6955     for as_dir in $PATH
6956     do
6957     IFS=$as_save_IFS
6958     test -z "$as_dir" && as_dir=.
6959 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6960 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6961     ac_cv_prog_ac_ct_OTOOL64="otool64"
6962 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 michael 945 break 2
6964     fi
6965     done
6966 michael 967 done
6967 michael 945 IFS=$as_save_IFS
6968    
6969     fi
6970     fi
6971     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6972     if test -n "$ac_ct_OTOOL64"; then
6973 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6974 michael 945 $as_echo "$ac_ct_OTOOL64" >&6; }
6975     else
6976 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6977 michael 945 $as_echo "no" >&6; }
6978     fi
6979    
6980     if test "x$ac_ct_OTOOL64" = x; then
6981     OTOOL64=":"
6982     else
6983     case $cross_compiling:$ac_tool_warned in
6984     yes:)
6985 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6986 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6987     ac_tool_warned=yes ;;
6988     esac
6989     OTOOL64=$ac_ct_OTOOL64
6990     fi
6991     else
6992     OTOOL64="$ac_cv_prog_OTOOL64"
6993     fi
6994    
6995    
6996    
6997    
6998    
6999    
7000    
7001    
7002    
7003    
7004    
7005    
7006    
7007    
7008    
7009    
7010    
7011    
7012    
7013    
7014    
7015    
7016    
7017    
7018    
7019    
7020    
7021 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7022 michael 945 $as_echo_n "checking for -single_module linker flag... " >&6; }
7023 michael 967 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7024 michael 945 $as_echo_n "(cached) " >&6
7025     else
7026     lt_cv_apple_cc_single_mod=no
7027     if test -z "${LT_MULTI_MODULE}"; then
7028     # By default we will add the -single_module flag. You can override
7029     # by either setting the environment variable LT_MULTI_MODULE
7030     # non-empty at configure time, or by adding -multi_module to the
7031     # link flags.
7032     rm -rf libconftest.dylib*
7033     echo "int foo(void){return 1;}" > conftest.c
7034     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7035     -dynamiclib -Wl,-single_module conftest.c" >&5
7036     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7037     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7038     _lt_result=$?
7039     if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7040     lt_cv_apple_cc_single_mod=yes
7041     else
7042     cat conftest.err >&5
7043     fi
7044     rm -rf libconftest.dylib*
7045     rm -f conftest.*
7046     fi
7047     fi
7048 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7049 michael 945 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7050 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7051 michael 945 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7052 michael 967 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7053 michael 945 $as_echo_n "(cached) " >&6
7054     else
7055     lt_cv_ld_exported_symbols_list=no
7056     save_LDFLAGS=$LDFLAGS
7057     echo "_main" > conftest.sym
7058     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7059 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 michael 945 /* end confdefs.h. */
7061    
7062     int
7063     main ()
7064     {
7065    
7066     ;
7067     return 0;
7068     }
7069     _ACEOF
7070 michael 967 if ac_fn_c_try_link "$LINENO"; then :
7071 michael 945 lt_cv_ld_exported_symbols_list=yes
7072     else
7073 michael 967 lt_cv_ld_exported_symbols_list=no
7074 michael 945 fi
7075 michael 967 rm -f core conftest.err conftest.$ac_objext \
7076     conftest$ac_exeext conftest.$ac_ext
7077 michael 945 LDFLAGS="$save_LDFLAGS"
7078    
7079     fi
7080 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7081 michael 945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7082     case $host_os in
7083     rhapsody* | darwin1.[012])
7084     _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7085     darwin1.*)
7086     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7087     darwin*) # darwin 5.x on
7088     # if running on 10.5 or later, the deployment target defaults
7089     # to the OS version, if on x86, and 10.4, the deployment
7090     # target defaults to 10.4. Don't you love it?
7091     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7092     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7093     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7094     10.[012]*)
7095     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7096     10.*)
7097     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7098     esac
7099     ;;
7100     esac
7101     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7102     _lt_dar_single_mod='$single_module'
7103     fi
7104     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7105     _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7106     else
7107     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7108     fi
7109     if test "$DSYMUTIL" != ":"; then
7110     _lt_dsymutil='~$DSYMUTIL $lib || :'
7111     else
7112     _lt_dsymutil=
7113     fi
7114     ;;
7115     esac
7116    
7117 michael 912 ac_ext=c
7118     ac_cpp='$CPP $CPPFLAGS'
7119     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7120     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7121     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7122 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7123 db 941 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7124 michael 912 # On Suns, sometimes $CPP names a directory.
7125     if test -n "$CPP" && test -d "$CPP"; then
7126     CPP=
7127     fi
7128     if test -z "$CPP"; then
7129 michael 967 if test "${ac_cv_prog_CPP+set}" = set; then :
7130 db 941 $as_echo_n "(cached) " >&6
7131 michael 912 else
7132     # Double quotes because CPP needs to be expanded
7133     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7134     do
7135     ac_preproc_ok=false
7136     for ac_c_preproc_warn_flag in '' yes
7137     do
7138     # Use a header file that comes with gcc, so configuring glibc
7139     # with a fresh cross-compiler works.
7140     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7141     # <limits.h> exists even on freestanding compilers.
7142     # On the NeXT, cc -E runs the code through the compiler's parser,
7143     # not just through cpp. "Syntax error" is here to catch this case.
7144 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7145 michael 912 /* end confdefs.h. */
7146     #ifdef __STDC__
7147     # include <limits.h>
7148     #else
7149     # include <assert.h>
7150     #endif
7151     Syntax error
7152     _ACEOF
7153 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7154    
7155 michael 912 else
7156     # Broken: fails on valid input.
7157     continue
7158     fi
7159     rm -f conftest.err conftest.$ac_ext
7160    
7161     # OK, works on sane cases. Now check whether nonexistent headers
7162     # can be detected and how.
7163 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7164 michael 912 /* end confdefs.h. */
7165     #include <ac_nonexistent.h>
7166     _ACEOF
7167 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7168 michael 912 # Broken: success on invalid input.
7169     continue
7170     else
7171     # Passes both tests.
7172     ac_preproc_ok=:
7173     break
7174     fi
7175     rm -f conftest.err conftest.$ac_ext
7176    
7177     done
7178     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7179     rm -f conftest.err conftest.$ac_ext
7180 michael 967 if $ac_preproc_ok; then :
7181 michael 912 break
7182     fi
7183    
7184     done
7185     ac_cv_prog_CPP=$CPP
7186    
7187     fi
7188     CPP=$ac_cv_prog_CPP
7189     else
7190     ac_cv_prog_CPP=$CPP
7191     fi
7192 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7193 db 941 $as_echo "$CPP" >&6; }
7194 michael 912 ac_preproc_ok=false
7195     for ac_c_preproc_warn_flag in '' yes
7196     do
7197     # Use a header file that comes with gcc, so configuring glibc
7198     # with a fresh cross-compiler works.
7199     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7200     # <limits.h> exists even on freestanding compilers.
7201     # On the NeXT, cc -E runs the code through the compiler's parser,
7202     # not just through cpp. "Syntax error" is here to catch this case.
7203 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7204 michael 912 /* end confdefs.h. */
7205     #ifdef __STDC__
7206     # include <limits.h>
7207     #else
7208     # include <assert.h>
7209     #endif
7210     Syntax error
7211     _ACEOF
7212 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7213    
7214 michael 912 else
7215     # Broken: fails on valid input.
7216     continue
7217     fi
7218     rm -f conftest.err conftest.$ac_ext
7219    
7220     # OK, works on sane cases. Now check whether nonexistent headers
7221     # can be detected and how.
7222 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 michael 912 /* end confdefs.h. */
7224     #include <ac_nonexistent.h>
7225     _ACEOF
7226 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7227 michael 912 # Broken: success on invalid input.
7228     continue
7229     else
7230     # Passes both tests.
7231     ac_preproc_ok=:
7232     break
7233     fi
7234     rm -f conftest.err conftest.$ac_ext
7235    
7236     done
7237     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7238     rm -f conftest.err conftest.$ac_ext
7239 michael 967 if $ac_preproc_ok; then :
7240    
7241 michael 912 else
7242 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7243 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7244 michael 967 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7245     See \`config.log' for more details." "$LINENO" 5; }
7246 michael 912 fi
7247    
7248     ac_ext=c
7249     ac_cpp='$CPP $CPPFLAGS'
7250     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7251     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7252     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7253    
7254    
7255 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7256 db 941 $as_echo_n "checking for ANSI C header files... " >&6; }
7257 michael 967 if test "${ac_cv_header_stdc+set}" = set; then :
7258 db 941 $as_echo_n "(cached) " >&6
7259 michael 912 else
7260 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 michael 912 /* end confdefs.h. */
7262     #include <stdlib.h>
7263     #include <stdarg.h>
7264     #include <string.h>
7265     #include <float.h>
7266    
7267     int
7268     main ()
7269     {
7270    
7271     ;
7272     return 0;
7273     }
7274     _ACEOF
7275 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
7276 michael 912 ac_cv_header_stdc=yes
7277     else
7278 michael 967 ac_cv_header_stdc=no
7279 michael 912 fi
7280     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7281    
7282     if test $ac_cv_header_stdc = yes; then
7283     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7284 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7285 michael 912 /* end confdefs.h. */
7286     #include <string.h>
7287    
7288     _ACEOF
7289     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7290 michael 967 $EGREP "memchr" >/dev/null 2>&1; then :
7291    
7292 michael 912 else
7293     ac_cv_header_stdc=no
7294     fi
7295     rm -f conftest*
7296    
7297     fi
7298    
7299     if test $ac_cv_header_stdc = yes; then
7300     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7301 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7302 michael 912 /* end confdefs.h. */
7303     #include <stdlib.h>
7304    
7305     _ACEOF
7306     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7307 michael 967 $EGREP "free" >/dev/null 2>&1; then :
7308    
7309 michael 912 else
7310     ac_cv_header_stdc=no
7311     fi
7312     rm -f conftest*
7313    
7314     fi
7315    
7316     if test $ac_cv_header_stdc = yes; then
7317     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7318 michael 967 if test "$cross_compiling" = yes; then :
7319 michael 912 :
7320     else
7321 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 michael 912 /* end confdefs.h. */
7323     #include <ctype.h>
7324     #include <stdlib.h>
7325     #if ((' ' & 0x0FF) == 0x020)
7326     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7327     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7328     #else
7329     # define ISLOWER(c) \
7330     (('a' <= (c) && (c) <= 'i') \
7331     || ('j' <= (c) && (c) <= 'r') \
7332     || ('s' <= (c) && (c) <= 'z'))
7333     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7334     #endif
7335    
7336     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7337     int
7338     main ()
7339     {
7340     int i;
7341     for (i = 0; i < 256; i++)
7342     if (XOR (islower (i), ISLOWER (i))
7343     || toupper (i) != TOUPPER (i))
7344     return 2;
7345     return 0;
7346     }
7347     _ACEOF
7348 michael 967 if ac_fn_c_try_run "$LINENO"; then :
7349    
7350 michael 912 else
7351 michael 967 ac_cv_header_stdc=no
7352 michael 912 fi
7353 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7354     conftest.$ac_objext conftest.beam conftest.$ac_ext
7355 michael 912 fi
7356    
7357     fi
7358     fi
7359 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7360 db 941 $as_echo "$ac_cv_header_stdc" >&6; }
7361 michael 912 if test $ac_cv_header_stdc = yes; then
7362    
7363 michael 967 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7364 michael 912
7365     fi
7366    
7367     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7368     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7369     inttypes.h stdint.h unistd.h
7370 michael 967 do :
7371     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7372     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7373     "
7374     eval as_val=\$$as_ac_Header
7375     if test "x$as_val" = x""yes; then :
7376 michael 912 cat >>confdefs.h <<_ACEOF
7377 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7378 michael 912 _ACEOF
7379    
7380     fi
7381    
7382     done
7383    
7384    
7385     for ac_header in dlfcn.h
7386 michael 967 do :
7387     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7388     "
7389     if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7390 michael 912 cat >>confdefs.h <<_ACEOF
7391 michael 967 #define HAVE_DLFCN_H 1
7392 michael 912 _ACEOF
7393    
7394     fi
7395    
7396     done
7397    
7398    
7399    
7400 michael 945 # Set options
7401     enable_dlopen=yes
7402 michael 977 # Check whether --enable-static was given.
7403     if test "${enable_static+set}" = set; then :
7404     enableval=$enable_static; p=${PACKAGE-default}
7405 michael 945 case $enableval in
7406 michael 977 yes) enable_static=yes ;;
7407     no) enable_static=no ;;
7408 michael 945 *)
7409 michael 977 enable_static=no
7410 michael 945 # Look at the argument we got. We use all the common list separators.
7411     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7412     for pkg in $enableval; do
7413     IFS="$lt_save_ifs"
7414     if test "X$pkg" = "X$p"; then
7415 michael 977 enable_static=yes
7416 michael 945 fi
7417     done
7418     IFS="$lt_save_ifs"
7419     ;;
7420     esac
7421 michael 912 else
7422 michael 977 enable_static=no
7423 michael 912 fi
7424    
7425    
7426    
7427    
7428    
7429    
7430    
7431    
7432    
7433 michael 977
7434    
7435     enable_win32_dll=no
7436    
7437    
7438     # Check whether --enable-shared was given.
7439     if test "${enable_shared+set}" = set; then :
7440     enableval=$enable_shared; p=${PACKAGE-default}
7441 michael 945 case $enableval in
7442 michael 977 yes) enable_shared=yes ;;
7443     no) enable_shared=no ;;
7444 michael 945 *)
7445 michael 977 enable_shared=no
7446 michael 945 # Look at the argument we got. We use all the common list separators.
7447     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7448     for pkg in $enableval; do
7449     IFS="$lt_save_ifs"
7450     if test "X$pkg" = "X$p"; then
7451 michael 977 enable_shared=yes
7452 michael 945 fi
7453     done
7454     IFS="$lt_save_ifs"
7455 michael 912 ;;
7456     esac
7457     else
7458 michael 977 enable_shared=yes
7459 michael 912 fi
7460    
7461    
7462    
7463    
7464    
7465    
7466    
7467    
7468    
7469    
7470 michael 977
7471 michael 945 # Check whether --with-pic was given.
7472 michael 967 if test "${with_pic+set}" = set; then :
7473 michael 945 withval=$with_pic; pic_mode="$withval"
7474 michael 912 else
7475 michael 945 pic_mode=default
7476 michael 912 fi
7477    
7478    
7479 michael 945 test -z "$pic_mode" && pic_mode=default
7480 michael 912
7481    
7482    
7483    
7484    
7485    
7486    
7487 michael 945 # Check whether --enable-fast-install was given.
7488 michael 967 if test "${enable_fast_install+set}" = set; then :
7489 michael 945 enableval=$enable_fast_install; p=${PACKAGE-default}
7490     case $enableval in
7491     yes) enable_fast_install=yes ;;
7492     no) enable_fast_install=no ;;
7493     *)
7494     enable_fast_install=no
7495     # Look at the argument we got. We use all the common list separators.
7496     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7497     for pkg in $enableval; do
7498     IFS="$lt_save_ifs"
7499     if test "X$pkg" = "X$p"; then
7500     enable_fast_install=yes
7501     fi
7502     done
7503     IFS="$lt_save_ifs"
7504     ;;
7505     esac
7506 michael 912 else
7507 michael 945 enable_fast_install=yes
7508 michael 912 fi
7509    
7510    
7511    
7512    
7513    
7514    
7515    
7516    
7517    
7518    
7519    
7520 michael 945 # This can be used to rebuild libtool when needed
7521     LIBTOOL_DEPS="$ltmain"
7522 michael 912
7523 michael 945 # Always use our own libtool.
7524     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7525 michael 912
7526    
7527    
7528    
7529    
7530    
7531    
7532    
7533    
7534    
7535    
7536    
7537    
7538    
7539    
7540    
7541    
7542    
7543    
7544    
7545    
7546    
7547    
7548    
7549    
7550 michael 945 test -z "$LN_S" && LN_S="ln -s"
7551 michael 912
7552    
7553    
7554    
7555    
7556    
7557    
7558    
7559    
7560    
7561    
7562    
7563    
7564    
7565 michael 945 if test -n "${ZSH_VERSION+set}" ; then
7566     setopt NO_GLOB_SUBST
7567 michael 912 fi
7568    
7569 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7570 db 941 $as_echo_n "checking for objdir... " >&6; }
7571 michael 967 if test "${lt_cv_objdir+set}" = set; then :
7572 db 941 $as_echo_n "(cached) " >&6
7573 michael 912 else
7574     rm -f .libs 2>/dev/null
7575     mkdir .libs 2>/dev/null
7576     if test -d .libs; then
7577     lt_cv_objdir=.libs
7578     else
7579     # MS-DOS does not allow filenames that begin with a dot.
7580     lt_cv_objdir=_libs
7581     fi
7582     rmdir .libs 2>/dev/null
7583     fi
7584 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7585 db 941 $as_echo "$lt_cv_objdir" >&6; }
7586 michael 912 objdir=$lt_cv_objdir
7587    
7588    
7589    
7590    
7591    
7592 michael 945 cat >>confdefs.h <<_ACEOF
7593     #define LT_OBJDIR "$lt_cv_objdir/"
7594     _ACEOF
7595    
7596    
7597    
7598    
7599    
7600    
7601    
7602    
7603    
7604    
7605    
7606    
7607    
7608    
7609    
7610    
7611    
7612 michael 912 case $host_os in
7613     aix3*)
7614     # AIX sometimes has problems with the GCC collect2 program. For some
7615     # reason, if we set the COLLECT_NAMES environment variable, the problems
7616     # vanish in a puff of smoke.
7617     if test "X${COLLECT_NAMES+set}" != Xset; then
7618     COLLECT_NAMES=
7619     export COLLECT_NAMES
7620     fi
7621     ;;
7622     esac
7623    
7624     # Sed substitution that helps us do robust quoting. It backslashifies
7625     # metacharacters that are still active within double-quoted strings.
7626 michael 945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7627 michael 912
7628     # Same as above, but do not quote variable references.
7629 michael 945 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7630 michael 912
7631     # Sed substitution to delay expansion of an escaped shell variable in a
7632     # double_quote_subst'ed string.
7633     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7634    
7635 michael 945 # Sed substitution to delay expansion of an escaped single quote.
7636     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7637    
7638 michael 912 # Sed substitution to avoid accidental globbing in evaled expressions
7639     no_glob_subst='s/\*/\\\*/g'
7640    
7641     # Global variables:
7642 michael 945 ofile=libtool
7643 michael 912 can_build_shared=yes
7644    
7645     # All known linkers require a `.a' archive for static linking (except MSVC,
7646     # which needs '.lib').
7647     libext=a
7648 michael 945
7649 michael 912 with_gnu_ld="$lt_cv_prog_gnu_ld"
7650    
7651     old_CC="$CC"
7652     old_CFLAGS="$CFLAGS"
7653    
7654     # Set sane defaults for various variables
7655     test -z "$CC" && CC=cc
7656     test -z "$LTCC" && LTCC=$CC
7657     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7658     test -z "$LD" && LD=ld
7659     test -z "$ac_objext" && ac_objext=o
7660    
7661     for cc_temp in $compiler""; do
7662     case $cc_temp in
7663     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7664     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7665     \-*) ;;
7666     *) break;;
7667     esac
7668     done
7669 michael 945 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7670 michael 912
7671    
7672     # Only perform the check for file, if the check method requires it
7673 michael 945 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7674 michael 912 case $deplibs_check_method in
7675     file_magic*)
7676     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7677 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7678 db 941 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7679 michael 967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7680 db 941 $as_echo_n "(cached) " >&6
7681 michael 912 else
7682     case $MAGIC_CMD in
7683     [\\/*] | ?:[\\/]*)
7684     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7685     ;;
7686     *)
7687     lt_save_MAGIC_CMD="$MAGIC_CMD"
7688     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7689     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7690     for ac_dir in $ac_dummy; do
7691     IFS="$lt_save_ifs"
7692     test -z "$ac_dir" && ac_dir=.
7693     if test -f $ac_dir/${ac_tool_prefix}file; then
7694     lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7695     if test -n "$file_magic_test_file"; then
7696     case $deplibs_check_method in
7697     "file_magic "*)
7698     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7699     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7700     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7701     $EGREP "$file_magic_regex" > /dev/null; then
7702     :
7703     else
7704 michael 945 cat <<_LT_EOF 1>&2
7705 michael 912
7706     *** Warning: the command libtool uses to detect shared libraries,
7707     *** $file_magic_cmd, produces output that libtool cannot recognize.
7708     *** The result is that libtool may fail to recognize shared libraries
7709     *** as such. This will affect the creation of libtool libraries that
7710     *** depend on shared libraries, but programs linked with such libtool
7711     *** libraries will work regardless of this problem. Nevertheless, you
7712     *** may want to report the problem to your system manager and/or to
7713     *** bug-libtool@gnu.org
7714    
7715 michael 945 _LT_EOF
7716 michael 912 fi ;;
7717     esac
7718     fi
7719     break
7720     fi
7721     done
7722     IFS="$lt_save_ifs"
7723     MAGIC_CMD="$lt_save_MAGIC_CMD"
7724     ;;
7725     esac
7726     fi
7727    
7728     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7729     if test -n "$MAGIC_CMD"; then
7730 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7731 db 941 $as_echo "$MAGIC_CMD" >&6; }
7732 michael 912 else
7733 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7734 db 941 $as_echo "no" >&6; }
7735 michael 912 fi
7736    
7737 michael 945
7738    
7739    
7740    
7741 michael 912 if test -z "$lt_cv_path_MAGIC_CMD"; then
7742     if test -n "$ac_tool_prefix"; then
7743 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7744 db 941 $as_echo_n "checking for file... " >&6; }
7745 michael 967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7746 db 941 $as_echo_n "(cached) " >&6
7747 michael 912 else
7748     case $MAGIC_CMD in
7749     [\\/*] | ?:[\\/]*)
7750     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7751     ;;
7752     *)
7753     lt_save_MAGIC_CMD="$MAGIC_CMD"
7754     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7755     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7756     for ac_dir in $ac_dummy; do
7757     IFS="$lt_save_ifs"
7758     test -z "$ac_dir" && ac_dir=.
7759     if test -f $ac_dir/file; then
7760     lt_cv_path_MAGIC_CMD="$ac_dir/file"
7761     if test -n "$file_magic_test_file"; then
7762     case $deplibs_check_method in
7763     "file_magic "*)
7764     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7765     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7766     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7767     $EGREP "$file_magic_regex" > /dev/null; then
7768     :
7769     else
7770 michael 945 cat <<_LT_EOF 1>&2
7771 michael 912
7772     *** Warning: the command libtool uses to detect shared libraries,
7773     *** $file_magic_cmd, produces output that libtool cannot recognize.
7774     *** The result is that libtool may fail to recognize shared libraries
7775     *** as such. This will affect the creation of libtool libraries that
7776     *** depend on shared libraries, but programs linked with such libtool
7777     *** libraries will work regardless of this problem. Nevertheless, you
7778     *** may want to report the problem to your system manager and/or to
7779     *** bug-libtool@gnu.org
7780    
7781 michael 945 _LT_EOF
7782 michael 912 fi ;;
7783     esac
7784     fi
7785     break
7786     fi
7787     done
7788     IFS="$lt_save_ifs"
7789     MAGIC_CMD="$lt_save_MAGIC_CMD"
7790     ;;
7791     esac
7792     fi
7793    
7794     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7795     if test -n "$MAGIC_CMD"; then
7796 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7797 db 941 $as_echo "$MAGIC_CMD" >&6; }
7798 michael 912 else
7799 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7800 db 941 $as_echo "no" >&6; }
7801 michael 912 fi
7802    
7803 michael 945
7804 michael 912 else
7805     MAGIC_CMD=:
7806     fi
7807     fi
7808    
7809     fi
7810     ;;
7811     esac
7812    
7813 michael 945 # Use C for the default configuration in the libtool script
7814 db 941
7815 michael 912 lt_save_CC="$CC"
7816     ac_ext=c
7817     ac_cpp='$CPP $CPPFLAGS'
7818     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7819     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7820     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7821    
7822    
7823     # Source file extension for C test sources.
7824     ac_ext=c
7825    
7826     # Object file extension for compiled C test sources.
7827     objext=o
7828     objext=$objext
7829    
7830     # Code to be used in simple compile tests
7831     lt_simple_compile_test_code="int some_variable = 0;"
7832    
7833     # Code to be used in simple link tests
7834     lt_simple_link_test_code='int main(){return(0);}'
7835    
7836    
7837 michael 945
7838    
7839    
7840    
7841    
7842 michael 912 # If no C compiler was specified, use CC.
7843     LTCC=${LTCC-"$CC"}
7844    
7845     # If no C compiler flags were specified, use CFLAGS.
7846     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7847    
7848     # Allow CC to be a program name with arguments.
7849     compiler=$CC
7850    
7851 michael 945 # Save the default compiler, since it gets overwritten when the other
7852     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7853     compiler_DEFAULT=$CC
7854 michael 912
7855     # save warnings/boilerplate of simple test code
7856     ac_outfile=conftest.$ac_objext
7857     echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7858     eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7859     _lt_compiler_boilerplate=`cat conftest.err`
7860 michael 945 $RM conftest*
7861 michael 912
7862     ac_outfile=conftest.$ac_objext
7863     echo "$lt_simple_link_test_code" >conftest.$ac_ext
7864     eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7865     _lt_linker_boilerplate=`cat conftest.err`
7866 michael 945 $RM -r conftest*
7867 michael 912
7868    
7869 michael 945 if test -n "$compiler"; then
7870 michael 912
7871     lt_prog_compiler_no_builtin_flag=
7872    
7873     if test "$GCC" = yes; then
7874     lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7875    
7876 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7877 db 941 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7878 michael 967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7879 db 941 $as_echo_n "(cached) " >&6
7880 michael 912 else
7881     lt_cv_prog_compiler_rtti_exceptions=no
7882 michael 945 ac_outfile=conftest.$ac_objext
7883 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7884     lt_compiler_flag="-fno-rtti -fno-exceptions"
7885     # Insert the option either (1) after the last *FLAGS variable, or
7886     # (2) before a word containing "conftest.", or (3) at the end.
7887     # Note that $ac_compile itself does not contain backslashes and begins
7888     # with a dollar sign (not a hyphen), so the echo should work correctly.
7889     # The option is referenced via a variable to avoid confusing sed.
7890     lt_compile=`echo "$ac_compile" | $SED \
7891     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7892     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7893     -e 's:$: $lt_compiler_flag:'`
7894 michael 1039 (eval echo "\"\$as_me:7894: $lt_compile\"" >&5)
7895 michael 912 (eval "$lt_compile" 2>conftest.err)
7896     ac_status=$?
7897     cat conftest.err >&5
7898 michael 1039 echo "$as_me:7898: \$? = $ac_status" >&5
7899 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
7900     # The compiler can only warn and ignore the option if not recognized
7901     # So say no if there are warnings other than the usual output.
7902 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7903 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7904     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7905     lt_cv_prog_compiler_rtti_exceptions=yes
7906     fi
7907     fi
7908 michael 945 $RM conftest*
7909 michael 912
7910     fi
7911 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7912 db 941 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7913 michael 912
7914     if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7915     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7916     else
7917     :
7918     fi
7919    
7920     fi
7921    
7922 michael 945
7923    
7924    
7925    
7926    
7927     lt_prog_compiler_wl=
7928 michael 912 lt_prog_compiler_pic=
7929     lt_prog_compiler_static=
7930    
7931 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7932 db 941 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7933 michael 912
7934     if test "$GCC" = yes; then
7935     lt_prog_compiler_wl='-Wl,'
7936     lt_prog_compiler_static='-static'
7937    
7938     case $host_os in
7939     aix*)
7940     # All AIX code is PIC.
7941     if test "$host_cpu" = ia64; then
7942     # AIX 5 now supports IA64 processor
7943     lt_prog_compiler_static='-Bstatic'
7944     fi
7945     ;;
7946    
7947     amigaos*)
7948 michael 945 case $host_cpu in
7949     powerpc)
7950     # see comment about AmigaOS4 .so support
7951     lt_prog_compiler_pic='-fPIC'
7952     ;;
7953     m68k)
7954     # FIXME: we need at least 68020 code to build shared libraries, but
7955     # adding the `-m68020' flag to GCC prevents building anything better,
7956     # like `-m68040'.
7957     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7958     ;;
7959     esac
7960 michael 912 ;;
7961    
7962     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7963     # PIC is the default for these OSes.
7964     ;;
7965    
7966 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
7967 michael 912 # This hack is so that the source file can tell whether it is being
7968     # built for inclusion in a dll (and should export symbols for example).
7969     # Although the cygwin gcc ignores -fPIC, still need this for old-style
7970     # (--disable-auto-import) libraries
7971     lt_prog_compiler_pic='-DDLL_EXPORT'
7972     ;;
7973    
7974     darwin* | rhapsody*)
7975     # PIC is the default on this platform
7976     # Common symbols not allowed in MH_DYLIB files
7977     lt_prog_compiler_pic='-fno-common'
7978     ;;
7979    
7980 michael 945 hpux*)
7981     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7982     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7983     # sets the default TLS model and affects inlining.
7984     case $host_cpu in
7985     hppa*64*)
7986     # +Z the default
7987     ;;
7988     *)
7989     lt_prog_compiler_pic='-fPIC'
7990     ;;
7991     esac
7992     ;;
7993    
7994 michael 912 interix[3-9]*)
7995     # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7996     # Instead, we relocate shared libraries at runtime.
7997     ;;
7998    
7999     msdosdjgpp*)
8000     # Just because we use GCC doesn't mean we suddenly get shared libraries
8001     # on systems that don't support them.
8002     lt_prog_compiler_can_build_shared=no
8003     enable_shared=no
8004     ;;
8005    
8006 michael 945 *nto* | *qnx*)
8007     # QNX uses GNU C++, but need to define -shared option too, otherwise
8008     # it will coredump.
8009     lt_prog_compiler_pic='-fPIC -shared'
8010     ;;
8011    
8012 michael 912 sysv4*MP*)
8013     if test -d /usr/nec; then
8014     lt_prog_compiler_pic=-Kconform_pic
8015     fi
8016     ;;
8017    
8018     *)
8019     lt_prog_compiler_pic='-fPIC'
8020     ;;
8021     esac
8022     else
8023     # PORTME Check for flag to pass linker flags through the system compiler.
8024     case $host_os in
8025     aix*)
8026     lt_prog_compiler_wl='-Wl,'
8027     if test "$host_cpu" = ia64; then
8028     # AIX 5 now supports IA64 processor
8029     lt_prog_compiler_static='-Bstatic'
8030     else
8031     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8032     fi
8033     ;;
8034    
8035 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
8036 michael 912 # This hack is so that the source file can tell whether it is being
8037     # built for inclusion in a dll (and should export symbols for example).
8038     lt_prog_compiler_pic='-DDLL_EXPORT'
8039     ;;
8040    
8041     hpux9* | hpux10* | hpux11*)
8042     lt_prog_compiler_wl='-Wl,'
8043     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8044     # not for PA HP-UX.
8045     case $host_cpu in
8046     hppa*64*|ia64*)
8047     # +Z the default
8048     ;;
8049     *)
8050     lt_prog_compiler_pic='+Z'
8051     ;;
8052     esac
8053     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8054     lt_prog_compiler_static='${wl}-a ${wl}archive'
8055     ;;
8056    
8057     irix5* | irix6* | nonstopux*)
8058     lt_prog_compiler_wl='-Wl,'
8059     # PIC (with -KPIC) is the default.
8060     lt_prog_compiler_static='-non_shared'
8061     ;;
8062    
8063     linux* | k*bsd*-gnu)
8064     case $cc_basename in
8065 michael 945 # old Intel for x86_64 which still supported -KPIC.
8066     ecc*)
8067 michael 912 lt_prog_compiler_wl='-Wl,'
8068     lt_prog_compiler_pic='-KPIC'
8069     lt_prog_compiler_static='-static'
8070     ;;
8071 michael 945 # icc used to be incompatible with GCC.
8072     # ICC 10 doesn't accept -KPIC any more.
8073     icc* | ifort*)
8074     lt_prog_compiler_wl='-Wl,'
8075     lt_prog_compiler_pic='-fPIC'
8076     lt_prog_compiler_static='-static'
8077     ;;
8078     # Lahey Fortran 8.1.
8079     lf95*)
8080     lt_prog_compiler_wl='-Wl,'
8081     lt_prog_compiler_pic='--shared'
8082     lt_prog_compiler_static='--static'
8083     ;;
8084 michael 912 pgcc* | pgf77* | pgf90* | pgf95*)
8085     # Portland Group compilers (*not* the Pentium gcc compiler,
8086     # which looks to be a dead project)
8087     lt_prog_compiler_wl='-Wl,'
8088     lt_prog_compiler_pic='-fpic'
8089     lt_prog_compiler_static='-Bstatic'
8090     ;;
8091     ccc*)
8092     lt_prog_compiler_wl='-Wl,'
8093     # All Alpha code is PIC.
8094     lt_prog_compiler_static='-non_shared'
8095     ;;
8096 michael 945 xl*)
8097     # IBM XL C 8.0/Fortran 10.1 on PPC
8098     lt_prog_compiler_wl='-Wl,'
8099     lt_prog_compiler_pic='-qpic'
8100     lt_prog_compiler_static='-qstaticlink'
8101     ;;
8102 michael 912 *)
8103 michael 945 case `$CC -V 2>&1 | sed 5q` in
8104 michael 912 *Sun\ C*)
8105     # Sun C 5.9
8106     lt_prog_compiler_pic='-KPIC'
8107     lt_prog_compiler_static='-Bstatic'
8108     lt_prog_compiler_wl='-Wl,'
8109     ;;
8110     *Sun\ F*)
8111     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8112     lt_prog_compiler_pic='-KPIC'
8113     lt_prog_compiler_static='-Bstatic'
8114     lt_prog_compiler_wl=''
8115     ;;
8116     esac
8117     ;;
8118     esac
8119     ;;
8120    
8121 michael 945 newsos6)
8122     lt_prog_compiler_pic='-KPIC'
8123     lt_prog_compiler_static='-Bstatic'
8124     ;;
8125    
8126     *nto* | *qnx*)
8127     # QNX uses GNU C++, but need to define -shared option too, otherwise
8128     # it will coredump.
8129     lt_prog_compiler_pic='-fPIC -shared'
8130     ;;
8131    
8132 michael 912 osf3* | osf4* | osf5*)
8133     lt_prog_compiler_wl='-Wl,'
8134     # All OSF/1 code is PIC.
8135     lt_prog_compiler_static='-non_shared'
8136     ;;
8137    
8138     rdos*)
8139     lt_prog_compiler_static='-non_shared'
8140     ;;
8141    
8142     solaris*)
8143     lt_prog_compiler_pic='-KPIC'
8144     lt_prog_compiler_static='-Bstatic'
8145     case $cc_basename in
8146     f77* | f90* | f95*)
8147     lt_prog_compiler_wl='-Qoption ld ';;
8148     *)
8149     lt_prog_compiler_wl='-Wl,';;
8150     esac
8151     ;;
8152    
8153     sunos4*)
8154     lt_prog_compiler_wl='-Qoption ld '
8155     lt_prog_compiler_pic='-PIC'
8156     lt_prog_compiler_static='-Bstatic'
8157     ;;
8158    
8159     sysv4 | sysv4.2uw2* | sysv4.3*)
8160     lt_prog_compiler_wl='-Wl,'
8161     lt_prog_compiler_pic='-KPIC'
8162     lt_prog_compiler_static='-Bstatic'
8163     ;;
8164    
8165     sysv4*MP*)
8166     if test -d /usr/nec ;then
8167     lt_prog_compiler_pic='-Kconform_pic'
8168     lt_prog_compiler_static='-Bstatic'
8169     fi
8170     ;;
8171    
8172     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8173     lt_prog_compiler_wl='-Wl,'
8174     lt_prog_compiler_pic='-KPIC'
8175     lt_prog_compiler_static='-Bstatic'
8176     ;;
8177    
8178     unicos*)
8179     lt_prog_compiler_wl='-Wl,'
8180     lt_prog_compiler_can_build_shared=no
8181     ;;
8182    
8183     uts4*)
8184     lt_prog_compiler_pic='-pic'
8185     lt_prog_compiler_static='-Bstatic'
8186     ;;
8187    
8188     *)
8189     lt_prog_compiler_can_build_shared=no
8190     ;;
8191     esac
8192     fi
8193    
8194 michael 945 case $host_os in
8195     # For platforms which do not support PIC, -DPIC is meaningless:
8196     *djgpp*)
8197     lt_prog_compiler_pic=
8198     ;;
8199     *)
8200     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8201     ;;
8202     esac
8203 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8204 db 941 $as_echo "$lt_prog_compiler_pic" >&6; }
8205 michael 912
8206 michael 945
8207    
8208    
8209    
8210    
8211 michael 912 #
8212     # Check to make sure the PIC flag actually works.
8213     #
8214     if test -n "$lt_prog_compiler_pic"; then
8215 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8216 db 941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8217 michael 967 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8218 db 941 $as_echo_n "(cached) " >&6
8219 michael 912 else
8220 db 941 lt_cv_prog_compiler_pic_works=no
8221 michael 945 ac_outfile=conftest.$ac_objext
8222 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8223     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8224     # Insert the option either (1) after the last *FLAGS variable, or
8225     # (2) before a word containing "conftest.", or (3) at the end.
8226     # Note that $ac_compile itself does not contain backslashes and begins
8227     # with a dollar sign (not a hyphen), so the echo should work correctly.
8228     # The option is referenced via a variable to avoid confusing sed.
8229     lt_compile=`echo "$ac_compile" | $SED \
8230     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8231     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8232     -e 's:$: $lt_compiler_flag:'`
8233 michael 1039 (eval echo "\"\$as_me:8233: $lt_compile\"" >&5)
8234 michael 912 (eval "$lt_compile" 2>conftest.err)
8235     ac_status=$?
8236     cat conftest.err >&5
8237 michael 1039 echo "$as_me:8237: \$? = $ac_status" >&5
8238 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
8239     # The compiler can only warn and ignore the option if not recognized
8240     # So say no if there are warnings other than the usual output.
8241 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8242 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8243     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8244 db 941 lt_cv_prog_compiler_pic_works=yes
8245 michael 912 fi
8246     fi
8247 michael 945 $RM conftest*
8248 michael 912
8249     fi
8250 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8251 db 941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8252 michael 912
8253 db 941 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8254 michael 912 case $lt_prog_compiler_pic in
8255     "" | " "*) ;;
8256     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8257     esac
8258     else
8259     lt_prog_compiler_pic=
8260     lt_prog_compiler_can_build_shared=no
8261     fi
8262    
8263     fi
8264    
8265 michael 945
8266    
8267    
8268    
8269    
8270 michael 912 #
8271     # Check to make sure the static flag actually works.
8272     #
8273     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8274 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8275 db 941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8276 michael 967 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8277 db 941 $as_echo_n "(cached) " >&6
8278 michael 912 else
8279 db 941 lt_cv_prog_compiler_static_works=no
8280 michael 912 save_LDFLAGS="$LDFLAGS"
8281     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8282     echo "$lt_simple_link_test_code" > conftest.$ac_ext
8283     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8284     # The linker can only warn and ignore the option if not recognized
8285     # So say no if there are warnings
8286     if test -s conftest.err; then
8287     # Append any errors to the config.log.
8288     cat conftest.err 1>&5
8289 michael 945 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8290 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8291     if diff conftest.exp conftest.er2 >/dev/null; then
8292 db 941 lt_cv_prog_compiler_static_works=yes
8293 michael 912 fi
8294     else
8295 db 941 lt_cv_prog_compiler_static_works=yes
8296 michael 912 fi
8297     fi
8298 michael 945 $RM -r conftest*
8299 michael 912 LDFLAGS="$save_LDFLAGS"
8300    
8301     fi
8302 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8303 db 941 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8304 michael 912
8305 db 941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8306 michael 912 :
8307     else
8308     lt_prog_compiler_static=
8309     fi
8310    
8311    
8312 michael 945
8313    
8314    
8315    
8316    
8317 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8318 db 941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8319 michael 967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8320 db 941 $as_echo_n "(cached) " >&6
8321 michael 912 else
8322     lt_cv_prog_compiler_c_o=no
8323 michael 945 $RM -r conftest 2>/dev/null
8324 michael 912 mkdir conftest
8325     cd conftest
8326     mkdir out
8327     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8328    
8329     lt_compiler_flag="-o out/conftest2.$ac_objext"
8330     # Insert the option either (1) after the last *FLAGS variable, or
8331     # (2) before a word containing "conftest.", or (3) at the end.
8332     # Note that $ac_compile itself does not contain backslashes and begins
8333     # with a dollar sign (not a hyphen), so the echo should work correctly.
8334     lt_compile=`echo "$ac_compile" | $SED \
8335     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8336     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8337     -e 's:$: $lt_compiler_flag:'`
8338 michael 1039 (eval echo "\"\$as_me:8338: $lt_compile\"" >&5)
8339 michael 912 (eval "$lt_compile" 2>out/conftest.err)
8340     ac_status=$?
8341     cat out/conftest.err >&5
8342 michael 1039 echo "$as_me:8342: \$? = $ac_status" >&5
8343 michael 912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8344     then
8345     # The compiler can only warn and ignore the option if not recognized
8346     # So say no if there are warnings
8347 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8348 michael 912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8349     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8350     lt_cv_prog_compiler_c_o=yes
8351     fi
8352     fi
8353     chmod u+w . 2>&5
8354 michael 945 $RM conftest*
8355 michael 912 # SGI C++ compiler will create directory out/ii_files/ for
8356     # template instantiation
8357 michael 945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8358     $RM out/* && rmdir out
8359 michael 912 cd ..
8360 michael 945 $RM -r conftest
8361     $RM conftest*
8362 michael 912
8363     fi
8364 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8365 db 941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8366 michael 912
8367    
8368 michael 945
8369    
8370    
8371    
8372 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8373 michael 945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8374 michael 967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8375 michael 945 $as_echo_n "(cached) " >&6
8376     else
8377     lt_cv_prog_compiler_c_o=no
8378     $RM -r conftest 2>/dev/null
8379     mkdir conftest
8380     cd conftest
8381     mkdir out
8382     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8383    
8384     lt_compiler_flag="-o out/conftest2.$ac_objext"
8385     # Insert the option either (1) after the last *FLAGS variable, or
8386     # (2) before a word containing "conftest.", or (3) at the end.
8387     # Note that $ac_compile itself does not contain backslashes and begins
8388     # with a dollar sign (not a hyphen), so the echo should work correctly.
8389     lt_compile=`echo "$ac_compile" | $SED \
8390     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8391     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8392     -e 's:$: $lt_compiler_flag:'`
8393 michael 1039 (eval echo "\"\$as_me:8393: $lt_compile\"" >&5)
8394 michael 945 (eval "$lt_compile" 2>out/conftest.err)
8395     ac_status=$?
8396     cat out/conftest.err >&5
8397 michael 1039 echo "$as_me:8397: \$? = $ac_status" >&5
8398 michael 945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8399     then
8400     # The compiler can only warn and ignore the option if not recognized
8401     # So say no if there are warnings
8402     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8403     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8404     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8405     lt_cv_prog_compiler_c_o=yes
8406     fi
8407     fi
8408     chmod u+w . 2>&5
8409     $RM conftest*
8410     # SGI C++ compiler will create directory out/ii_files/ for
8411     # template instantiation
8412     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8413     $RM out/* && rmdir out
8414     cd ..
8415     $RM -r conftest
8416     $RM conftest*
8417    
8418     fi
8419 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8420 michael 945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8421    
8422    
8423    
8424    
8425 michael 912 hard_links="nottested"
8426     if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8427     # do not overwrite the value of need_locks provided by the user
8428 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8429 db 941 $as_echo_n "checking if we can lock with hard links... " >&6; }
8430 michael 912 hard_links=yes
8431 michael 945 $RM conftest*
8432 michael 912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8433     touch conftest.a
8434     ln conftest.a conftest.b 2>&5 || hard_links=no
8435     ln conftest.a conftest.b 2>/dev/null && hard_links=no
8436 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8437 db 941 $as_echo "$hard_links" >&6; }
8438 michael 912 if test "$hard_links" = no; then
8439 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8440 db 941 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8441 michael 912 need_locks=warn
8442     fi
8443     else
8444     need_locks=no
8445     fi
8446    
8447 michael 945
8448    
8449    
8450    
8451    
8452 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8453 db 941 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8454 michael 912
8455     runpath_var=
8456     allow_undefined_flag=
8457 michael 945 always_export_symbols=no
8458 michael 912 archive_cmds=
8459     archive_expsym_cmds=
8460 michael 945 compiler_needs_object=no
8461     enable_shared_with_static_runtimes=no
8462 michael 912 export_dynamic_flag_spec=
8463 michael 945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8464     hardcode_automatic=no
8465     hardcode_direct=no
8466     hardcode_direct_absolute=no
8467 michael 912 hardcode_libdir_flag_spec=
8468     hardcode_libdir_flag_spec_ld=
8469     hardcode_libdir_separator=
8470     hardcode_minus_L=no
8471     hardcode_shlibpath_var=unsupported
8472 michael 945 inherit_rpath=no
8473 michael 912 link_all_deplibs=unknown
8474     module_cmds=
8475     module_expsym_cmds=
8476 michael 945 old_archive_from_new_cmds=
8477     old_archive_from_expsyms_cmds=
8478     thread_safe_flag_spec=
8479     whole_archive_flag_spec=
8480 michael 912 # include_expsyms should be a list of space-separated symbols to be *always*
8481     # included in the symbol list
8482     include_expsyms=
8483     # exclude_expsyms can be an extended regexp of symbols to exclude
8484     # it will be wrapped by ` (' and `)$', so one must not match beginning or
8485     # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8486     # as well as any symbol that contains `d'.
8487 db 941 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8488 michael 912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8489     # platforms (ab)use it in PIC code, but their linkers get confused if
8490     # the symbol is explicitly referenced. Since portable code cannot
8491     # rely on this symbol name, it's probably fine to never include it in
8492     # preloaded symbol tables.
8493 db 941 # Exclude shared library initialization/finalization symbols.
8494 michael 912 extract_expsyms_cmds=
8495    
8496     case $host_os in
8497 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8498 michael 912 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8499     # When not using gcc, we currently assume that we are using
8500     # Microsoft Visual C++.
8501     if test "$GCC" != yes; then
8502     with_gnu_ld=no
8503     fi
8504     ;;
8505     interix*)
8506     # we just hope/assume this is gcc and not c89 (= MSVC++)
8507     with_gnu_ld=yes
8508     ;;
8509     openbsd*)
8510     with_gnu_ld=no
8511     ;;
8512     esac
8513    
8514     ld_shlibs=yes
8515     if test "$with_gnu_ld" = yes; then
8516     # If archive_cmds runs LD, not CC, wlarc should be empty
8517     wlarc='${wl}'
8518    
8519     # Set some defaults for GNU ld with shared library support. These
8520     # are reset later if shared libraries are not supported. Putting them
8521     # here allows them to be overridden if necessary.
8522     runpath_var=LD_RUN_PATH
8523 michael 945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8524 michael 912 export_dynamic_flag_spec='${wl}--export-dynamic'
8525     # ancient GNU ld didn't support --whole-archive et. al.
8526 michael 945 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8527     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8528     else
8529     whole_archive_flag_spec=
8530 michael 912 fi
8531     supports_anon_versioning=no
8532 michael 945 case `$LD -v 2>&1` in
8533 michael 912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8534     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8535     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8536     *\ 2.11.*) ;; # other 2.11 versions
8537     *) supports_anon_versioning=yes ;;
8538     esac
8539    
8540     # See if GNU ld supports shared libraries.
8541     case $host_os in
8542 db 941 aix[3-9]*)
8543 michael 912 # On AIX/PPC, the GNU linker is very broken
8544     if test "$host_cpu" != ia64; then
8545     ld_shlibs=no
8546 michael 945 cat <<_LT_EOF 1>&2
8547 michael 912
8548     *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8549     *** to be unable to reliably create shared libraries on AIX.
8550     *** Therefore, libtool is disabling shared libraries support. If you
8551     *** really care for shared libraries, you may want to modify your PATH
8552     *** so that a non-GNU linker is found, and then restart.
8553    
8554 michael 945 _LT_EOF
8555 michael 912 fi
8556     ;;
8557    
8558     amigaos*)
8559 michael 945 case $host_cpu in
8560     powerpc)
8561     # see comment about AmigaOS4 .so support
8562     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8563     archive_expsym_cmds=''
8564     ;;
8565     m68k)
8566     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)'
8567     hardcode_libdir_flag_spec='-L$libdir'
8568     hardcode_minus_L=yes
8569     ;;
8570     esac
8571 michael 912 ;;
8572    
8573     beos*)
8574 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8575 michael 912 allow_undefined_flag=unsupported
8576     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8577     # support --undefined. This deserves some investigation. FIXME
8578     archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8579     else
8580     ld_shlibs=no
8581     fi
8582     ;;
8583    
8584 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8585     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8586 michael 912 # as there is no search path for DLLs.
8587     hardcode_libdir_flag_spec='-L$libdir'
8588     allow_undefined_flag=unsupported
8589     always_export_symbols=no
8590     enable_shared_with_static_runtimes=yes
8591 michael 945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8592 michael 912
8593 michael 945 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8594 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8595     # If the export-symbols file already is a .def file (1st line
8596     # is EXPORTS), use it as is; otherwise, prepend...
8597     archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8598     cp $export_symbols $output_objdir/$soname.def;
8599     else
8600     echo EXPORTS > $output_objdir/$soname.def;
8601     cat $export_symbols >> $output_objdir/$soname.def;
8602     fi~
8603     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8604     else
8605     ld_shlibs=no
8606     fi
8607     ;;
8608    
8609     interix[3-9]*)
8610     hardcode_direct=no
8611     hardcode_shlibpath_var=no
8612     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8613     export_dynamic_flag_spec='${wl}-E'
8614     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8615     # Instead, shared libraries are loaded at an image base (0x10000000 by
8616     # default) and relocated if they conflict, which is a slow very memory
8617     # consuming and fragmenting process. To avoid this, we pick a random,
8618     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8619     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8620     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8621     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'
8622     ;;
8623    
8624 michael 945 gnu* | linux* | tpf* | k*bsd*-gnu)
8625     tmp_diet=no
8626     if test "$host_os" = linux-dietlibc; then
8627     case $cc_basename in
8628     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8629     esac
8630     fi
8631     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8632     && test "$tmp_diet" = no
8633     then
8634 michael 912 tmp_addflag=
8635 michael 945 tmp_sharedflag='-shared'
8636 michael 912 case $cc_basename,$host_cpu in
8637 michael 945 pgcc*) # Portland Group C compiler
8638     whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8639 michael 912 tmp_addflag=' $pic_flag'
8640     ;;
8641     pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8642 michael 945 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8643 michael 912 tmp_addflag=' $pic_flag -Mnomain' ;;
8644 michael 945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8645 michael 912 tmp_addflag=' -i_dynamic' ;;
8646     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8647     tmp_addflag=' -i_dynamic -nofor_main' ;;
8648     ifc* | ifort*) # Intel Fortran compiler
8649     tmp_addflag=' -nofor_main' ;;
8650 michael 945 lf95*) # Lahey Fortran 8.1
8651     whole_archive_flag_spec=
8652     tmp_sharedflag='--shared' ;;
8653     xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8654     tmp_sharedflag='-qmkshrobj'
8655     tmp_addflag= ;;
8656 michael 912 esac
8657     case `$CC -V 2>&1 | sed 5q` in
8658     *Sun\ C*) # Sun C 5.9
8659 michael 945 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
8660     compiler_needs_object=yes
8661 michael 912 tmp_sharedflag='-G' ;;
8662     *Sun\ F*) # Sun Fortran 8.3
8663     tmp_sharedflag='-G' ;;
8664     esac
8665     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8666    
8667 michael 945 if test "x$supports_anon_versioning" = xyes; then
8668     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8669     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8670     echo "local: *; };" >> $output_objdir/$libname.ver~
8671     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8672     fi
8673    
8674     case $cc_basename in
8675     xlf*)
8676     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8677     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8678     hardcode_libdir_flag_spec=
8679     hardcode_libdir_flag_spec_ld='-rpath $libdir'
8680     archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8681     if test "x$supports_anon_versioning" = xyes; then
8682     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8683     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8684     echo "local: *; };" >> $output_objdir/$libname.ver~
8685     $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8686     fi
8687     ;;
8688     esac
8689 michael 912 else
8690 michael 945 ld_shlibs=no
8691 michael 912 fi
8692     ;;
8693    
8694     netbsd*)
8695 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8696 michael 912 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8697     wlarc=
8698     else
8699     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8700     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8701     fi
8702     ;;
8703    
8704     solaris*)
8705 michael 945 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8706 michael 912 ld_shlibs=no
8707 michael 945 cat <<_LT_EOF 1>&2
8708 michael 912
8709     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8710     *** create shared libraries on Solaris systems. Therefore, libtool
8711     *** is disabling shared libraries support. We urge you to upgrade GNU
8712     *** binutils to release 2.9.1 or newer. Another option is to modify
8713     *** your PATH or compiler configuration so that the native linker is
8714     *** used, and then restart.
8715    
8716 michael 945 _LT_EOF
8717     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8718 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8720     else
8721     ld_shlibs=no
8722     fi
8723     ;;
8724    
8725     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8726     case `$LD -v 2>&1` in
8727     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8728     ld_shlibs=no
8729     cat <<_LT_EOF 1>&2
8730    
8731     *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8732     *** reliably create shared libraries on SCO systems. Therefore, libtool
8733     *** is disabling shared libraries support. We urge you to upgrade GNU
8734     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8735     *** your PATH or compiler configuration so that the native linker is
8736     *** used, and then restart.
8737    
8738     _LT_EOF
8739     ;;
8740     *)
8741 michael 945 # For security reasons, it is highly recommended that you always
8742     # use absolute paths for naming shared libraries, and exclude the
8743     # DT_RUNPATH tag from executables and libraries. But doing so
8744     # requires that you compile everything twice, which is a pain.
8745     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8746     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8747     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8748     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8749 michael 912 else
8750     ld_shlibs=no
8751     fi
8752     ;;
8753     esac
8754     ;;
8755    
8756     sunos4*)
8757     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8758     wlarc=
8759     hardcode_direct=yes
8760     hardcode_shlibpath_var=no
8761     ;;
8762    
8763     *)
8764 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8765 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8766     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8767     else
8768     ld_shlibs=no
8769     fi
8770     ;;
8771     esac
8772    
8773     if test "$ld_shlibs" = no; then
8774     runpath_var=
8775     hardcode_libdir_flag_spec=
8776     export_dynamic_flag_spec=
8777     whole_archive_flag_spec=
8778     fi
8779     else
8780     # PORTME fill in a description of your system's linker (not GNU ld)
8781     case $host_os in
8782     aix3*)
8783     allow_undefined_flag=unsupported
8784     always_export_symbols=yes
8785     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'
8786     # Note: this linker hardcodes the directories in LIBPATH if there
8787     # are no directories specified by -L.
8788     hardcode_minus_L=yes
8789     if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8790     # Neither direct hardcoding nor static linking is supported with a
8791     # broken collect2.
8792     hardcode_direct=unsupported
8793     fi
8794     ;;
8795    
8796 db 941 aix[4-9]*)
8797 michael 912 if test "$host_cpu" = ia64; then
8798     # On IA64, the linker does run time linking by default, so we don't
8799     # have to do anything special.
8800     aix_use_runtimelinking=no
8801     exp_sym_flag='-Bexport'
8802     no_entry_flag=""
8803     else
8804     # If we're using GNU nm, then we don't want the "-C" option.
8805     # -C means demangle to AIX nm, but means don't demangle with GNU nm
8806 michael 945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8807     export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8808 michael 912 else
8809 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'
8810 michael 912 fi
8811     aix_use_runtimelinking=no
8812    
8813     # Test if we are trying to use run time linking or normal
8814     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8815     # need to do runtime linking.
8816 db 941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8817 michael 912 for ld_flag in $LDFLAGS; do
8818 michael 945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8819     aix_use_runtimelinking=yes
8820     break
8821     fi
8822 michael 912 done
8823     ;;
8824     esac
8825    
8826     exp_sym_flag='-bexport'
8827     no_entry_flag='-bnoentry'
8828     fi
8829    
8830     # When large executables or shared objects are built, AIX ld can
8831     # have problems creating the table of contents. If linking a library
8832     # or program results in "error TOC overflow" add -mminimal-toc to
8833     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8834     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8835    
8836     archive_cmds=''
8837     hardcode_direct=yes
8838 michael 945 hardcode_direct_absolute=yes
8839 michael 912 hardcode_libdir_separator=':'
8840     link_all_deplibs=yes
8841 michael 945 file_list_spec='${wl}-f,'
8842 michael 912
8843     if test "$GCC" = yes; then
8844     case $host_os in aix4.[012]|aix4.[012].*)
8845     # We only want to do this on AIX 4.2 and lower, the check
8846     # below for broken collect2 doesn't work under 4.3+
8847     collect2name=`${CC} -print-prog-name=collect2`
8848 michael 945 if test -f "$collect2name" &&
8849     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8850 michael 912 then
8851 michael 945 # We have reworked collect2
8852     :
8853 michael 912 else
8854 michael 945 # We have old collect2
8855     hardcode_direct=unsupported
8856     # It fails to find uninstalled libraries when the uninstalled
8857     # path is not listed in the libpath. Setting hardcode_minus_L
8858     # to unsupported forces relinking
8859     hardcode_minus_L=yes
8860     hardcode_libdir_flag_spec='-L$libdir'
8861     hardcode_libdir_separator=
8862 michael 912 fi
8863     ;;
8864     esac
8865     shared_flag='-shared'
8866     if test "$aix_use_runtimelinking" = yes; then
8867     shared_flag="$shared_flag "'${wl}-G'
8868     fi
8869 michael 945 link_all_deplibs=no
8870 michael 912 else
8871     # not using gcc
8872     if test "$host_cpu" = ia64; then
8873 michael 945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8874     # chokes on -Wl,-G. The following line is correct:
8875 michael 912 shared_flag='-G'
8876     else
8877     if test "$aix_use_runtimelinking" = yes; then
8878     shared_flag='${wl}-G'
8879     else
8880     shared_flag='${wl}-bM:SRE'
8881     fi
8882     fi
8883     fi
8884    
8885 michael 945 export_dynamic_flag_spec='${wl}-bexpall'
8886 michael 912 # It seems that -bexpall does not export symbols beginning with
8887     # underscore (_), so it is better to generate a list of symbols to export.
8888     always_export_symbols=yes
8889     if test "$aix_use_runtimelinking" = yes; then
8890     # Warning - without using the other runtime loading flags (-brtl),
8891     # -berok will link without error, but may produce a broken library.
8892     allow_undefined_flag='-berok'
8893 michael 945 # Determine the default libpath from the value encoded in an
8894     # empty executable.
8895 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8896 michael 912 /* end confdefs.h. */
8897    
8898     int
8899     main ()
8900     {
8901    
8902     ;
8903     return 0;
8904     }
8905     _ACEOF
8906 michael 967 if ac_fn_c_try_link "$LINENO"; then :
8907 michael 912
8908     lt_aix_libpath_sed='
8909     /Import File Strings/,/^$/ {
8910     /^0/ {
8911     s/^0 *\(.*\)$/\1/
8912     p
8913     }
8914     }'
8915     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8916     # Check for a 64-bit object if we didn't find anything.
8917     if test -z "$aix_libpath"; then
8918     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8919     fi
8920     fi
8921 michael 967 rm -f core conftest.err conftest.$ac_objext \
8922     conftest$ac_exeext conftest.$ac_ext
8923 michael 912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8924    
8925 michael 945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8926     archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8927     else
8928 michael 912 if test "$host_cpu" = ia64; then
8929     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8930     allow_undefined_flag="-z nodefs"
8931     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"
8932     else
8933 michael 945 # Determine the default libpath from the value encoded in an
8934     # empty executable.
8935 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8936 michael 912 /* end confdefs.h. */
8937    
8938     int
8939     main ()
8940     {
8941    
8942     ;
8943     return 0;
8944     }
8945     _ACEOF
8946 michael 967 if ac_fn_c_try_link "$LINENO"; then :
8947 michael 912
8948     lt_aix_libpath_sed='
8949     /Import File Strings/,/^$/ {
8950     /^0/ {
8951     s/^0 *\(.*\)$/\1/
8952     p
8953     }
8954     }'
8955     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8956     # Check for a 64-bit object if we didn't find anything.
8957     if test -z "$aix_libpath"; then
8958     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8959     fi
8960     fi
8961 michael 967 rm -f core conftest.err conftest.$ac_objext \
8962     conftest$ac_exeext conftest.$ac_ext
8963 michael 912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8964    
8965     hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8966     # Warning - without using the other run time loading flags,
8967     # -berok will link without error, but may produce a broken library.
8968     no_undefined_flag=' ${wl}-bernotok'
8969     allow_undefined_flag=' ${wl}-berok'
8970     # Exported symbols can be pulled into shared objects from archives
8971     whole_archive_flag_spec='$convenience'
8972     archive_cmds_need_lc=yes
8973     # This is similar to how AIX traditionally builds its shared libraries.
8974     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'
8975     fi
8976     fi
8977     ;;
8978    
8979     amigaos*)
8980 michael 945 case $host_cpu in
8981     powerpc)
8982     # see comment about AmigaOS4 .so support
8983     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8984     archive_expsym_cmds=''
8985     ;;
8986     m68k)
8987     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)'
8988     hardcode_libdir_flag_spec='-L$libdir'
8989     hardcode_minus_L=yes
8990     ;;
8991     esac
8992 michael 912 ;;
8993    
8994     bsdi[45]*)
8995     export_dynamic_flag_spec=-rdynamic
8996     ;;
8997    
8998 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8999 michael 912 # When not using gcc, we currently assume that we are using
9000     # Microsoft Visual C++.
9001     # hardcode_libdir_flag_spec is actually meaningless, as there is
9002     # no search path for DLLs.
9003     hardcode_libdir_flag_spec=' '
9004     allow_undefined_flag=unsupported
9005     # Tell ltmain to make .lib files, not .a files.
9006     libext=lib
9007     # Tell ltmain to make .dll files, not .so files.
9008     shrext_cmds=".dll"
9009     # FIXME: Setting linknames here is a bad hack.
9010 michael 945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9011 michael 912 # The linker will automatically build a .lib file if we build a DLL.
9012 michael 945 old_archive_from_new_cmds='true'
9013 michael 912 # FIXME: Should let the user specify the lib program.
9014     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9015     fix_srcfile_path='`cygpath -w "$srcfile"`'
9016     enable_shared_with_static_runtimes=yes
9017     ;;
9018    
9019     darwin* | rhapsody*)
9020 michael 945
9021    
9022     archive_cmds_need_lc=no
9023     hardcode_direct=no
9024     hardcode_automatic=yes
9025     hardcode_shlibpath_var=unsupported
9026     whole_archive_flag_spec=''
9027     link_all_deplibs=yes
9028     allow_undefined_flag="$_lt_dar_allow_undefined"
9029     case $cc_basename in
9030     ifort*) _lt_dar_can_shared=yes ;;
9031     *) _lt_dar_can_shared=$GCC ;;
9032     esac
9033     if test "$_lt_dar_can_shared" = "yes"; then
9034     output_verbose_link_cmd=echo
9035     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9036     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9037     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}"
9038     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}"
9039    
9040     else
9041     ld_shlibs=no
9042     fi
9043    
9044 michael 912 ;;
9045    
9046     dgux*)
9047     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9048     hardcode_libdir_flag_spec='-L$libdir'
9049     hardcode_shlibpath_var=no
9050     ;;
9051    
9052     freebsd1*)
9053     ld_shlibs=no
9054     ;;
9055    
9056     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9057     # support. Future versions do this automatically, but an explicit c++rt0.o
9058     # does not break anything, and helps significantly (at the cost of a little
9059     # extra space).
9060     freebsd2.2*)
9061     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9062     hardcode_libdir_flag_spec='-R$libdir'
9063     hardcode_direct=yes
9064     hardcode_shlibpath_var=no
9065     ;;
9066    
9067     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9068     freebsd2*)
9069     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9070     hardcode_direct=yes
9071     hardcode_minus_L=yes
9072     hardcode_shlibpath_var=no
9073     ;;
9074    
9075     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9076     freebsd* | dragonfly*)
9077     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9078     hardcode_libdir_flag_spec='-R$libdir'
9079     hardcode_direct=yes
9080     hardcode_shlibpath_var=no
9081     ;;
9082    
9083     hpux9*)
9084     if test "$GCC" = yes; then
9085 michael 945 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9086 michael 912 else
9087 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'
9088 michael 912 fi
9089     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9090     hardcode_libdir_separator=:
9091     hardcode_direct=yes
9092    
9093     # hardcode_minus_L: Not really in the search PATH,
9094     # but as the default location of the library.
9095     hardcode_minus_L=yes
9096     export_dynamic_flag_spec='${wl}-E'
9097     ;;
9098    
9099     hpux10*)
9100     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9101     archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9102     else
9103     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9104     fi
9105     if test "$with_gnu_ld" = no; then
9106     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9107 michael 945 hardcode_libdir_flag_spec_ld='+b $libdir'
9108 michael 912 hardcode_libdir_separator=:
9109     hardcode_direct=yes
9110 michael 945 hardcode_direct_absolute=yes
9111 michael 912 export_dynamic_flag_spec='${wl}-E'
9112     # hardcode_minus_L: Not really in the search PATH,
9113     # but as the default location of the library.
9114     hardcode_minus_L=yes
9115     fi
9116     ;;
9117    
9118     hpux11*)
9119     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9120     case $host_cpu in
9121     hppa*64*)
9122     archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9123     ;;
9124     ia64*)
9125 michael 945 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9126 michael 912 ;;
9127     *)
9128     archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9129     ;;
9130     esac
9131     else
9132     case $host_cpu in
9133     hppa*64*)
9134     archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9135     ;;
9136     ia64*)
9137     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9138     ;;
9139     *)
9140     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9141     ;;
9142     esac
9143     fi
9144     if test "$with_gnu_ld" = no; then
9145     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146     hardcode_libdir_separator=:
9147    
9148     case $host_cpu in
9149     hppa*64*|ia64*)
9150     hardcode_direct=no
9151     hardcode_shlibpath_var=no
9152     ;;
9153     *)
9154     hardcode_direct=yes
9155 michael 945 hardcode_direct_absolute=yes
9156 michael 912 export_dynamic_flag_spec='${wl}-E'
9157    
9158     # hardcode_minus_L: Not really in the search PATH,
9159     # but as the default location of the library.
9160     hardcode_minus_L=yes
9161     ;;
9162     esac
9163     fi
9164     ;;
9165    
9166     irix5* | irix6* | nonstopux*)
9167     if test "$GCC" = yes; then
9168 michael 945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9169     # Try to use the -exported_symbol ld option, if it does not
9170     # work, assume that -exports_file does not work either and
9171     # implicitly export all symbols.
9172     save_LDFLAGS="$LDFLAGS"
9173     LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9174 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9175     /* end confdefs.h. */
9176 michael 945 int foo(void) {}
9177     _ACEOF
9178 michael 967 if ac_fn_c_try_link "$LINENO"; then :
9179 michael 945 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9180    
9181     fi
9182 michael 967 rm -f core conftest.err conftest.$ac_objext \
9183     conftest$ac_exeext conftest.$ac_ext
9184 michael 945 LDFLAGS="$save_LDFLAGS"
9185 michael 912 else
9186 michael 945 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9187     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9188 michael 912 fi
9189 michael 945 archive_cmds_need_lc='no'
9190 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9191     hardcode_libdir_separator=:
9192 michael 945 inherit_rpath=yes
9193 michael 912 link_all_deplibs=yes
9194     ;;
9195    
9196     netbsd*)
9197 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9198 michael 912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9199     else
9200     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9201     fi
9202     hardcode_libdir_flag_spec='-R$libdir'
9203     hardcode_direct=yes
9204     hardcode_shlibpath_var=no
9205     ;;
9206    
9207     newsos6)
9208     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9209     hardcode_direct=yes
9210     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211     hardcode_libdir_separator=:
9212     hardcode_shlibpath_var=no
9213     ;;
9214    
9215 michael 945 *nto* | *qnx*)
9216     ;;
9217    
9218 michael 912 openbsd*)
9219     if test -f /usr/libexec/ld.so; then
9220     hardcode_direct=yes
9221     hardcode_shlibpath_var=no
9222 michael 945 hardcode_direct_absolute=yes
9223     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9224 michael 912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9225     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9226     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9227     export_dynamic_flag_spec='${wl}-E'
9228     else
9229     case $host_os in
9230     openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9231     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9232     hardcode_libdir_flag_spec='-R$libdir'
9233     ;;
9234     *)
9235     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9236     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9237     ;;
9238     esac
9239 michael 945 fi
9240 michael 912 else
9241     ld_shlibs=no
9242     fi
9243     ;;
9244    
9245     os2*)
9246     hardcode_libdir_flag_spec='-L$libdir'
9247     hardcode_minus_L=yes
9248     allow_undefined_flag=unsupported
9249 michael 945 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'
9250     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9251 michael 912 ;;
9252    
9253     osf3*)
9254     if test "$GCC" = yes; then
9255     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9256 michael 945 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9257 michael 912 else
9258     allow_undefined_flag=' -expect_unresolved \*'
9259 michael 945 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9260 michael 912 fi
9261 michael 945 archive_cmds_need_lc='no'
9262 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9263     hardcode_libdir_separator=:
9264     ;;
9265    
9266     osf4* | osf5*) # as osf3* with the addition of -msym flag
9267     if test "$GCC" = yes; then
9268     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9269 michael 945 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9270 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9271     else
9272     allow_undefined_flag=' -expect_unresolved \*'
9273 michael 945 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9274     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~
9275     $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9276 michael 912
9277     # Both c and cxx compiler support -rpath directly
9278     hardcode_libdir_flag_spec='-rpath $libdir'
9279     fi
9280 michael 945 archive_cmds_need_lc='no'
9281 michael 912 hardcode_libdir_separator=:
9282     ;;
9283    
9284     solaris*)
9285 michael 945 no_undefined_flag=' -z defs'
9286 michael 912 if test "$GCC" = yes; then
9287     wlarc='${wl}'
9288 michael 945 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9289     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9290     $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9291 michael 912 else
9292 michael 945 case `$CC -V 2>&1` in
9293     *"Compilers 5.0"*)
9294     wlarc=''
9295     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9296     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9297     $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9298     ;;
9299     *)
9300     wlarc='${wl}'
9301     archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9302     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9303     $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9304     ;;
9305     esac
9306 michael 912 fi
9307     hardcode_libdir_flag_spec='-R$libdir'
9308     hardcode_shlibpath_var=no
9309     case $host_os in
9310     solaris2.[0-5] | solaris2.[0-5].*) ;;
9311     *)
9312     # The compiler driver will combine and reorder linker options,
9313     # but understands `-z linker_flag'. GCC discards it without `$wl',
9314     # but is careful enough not to reorder.
9315 michael 945 # Supported since Solaris 2.6 (maybe 2.5.1?)
9316 michael 912 if test "$GCC" = yes; then
9317     whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9318     else
9319     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9320     fi
9321     ;;
9322     esac
9323     link_all_deplibs=yes
9324     ;;
9325    
9326     sunos4*)
9327     if test "x$host_vendor" = xsequent; then
9328     # Use $CC to link under sequent, because it throws in some extra .o
9329     # files that make .init and .fini sections work.
9330     archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9331     else
9332     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9333     fi
9334     hardcode_libdir_flag_spec='-L$libdir'
9335     hardcode_direct=yes
9336     hardcode_minus_L=yes
9337     hardcode_shlibpath_var=no
9338     ;;
9339    
9340     sysv4)
9341     case $host_vendor in
9342     sni)
9343     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344     hardcode_direct=yes # is this really true???
9345     ;;
9346     siemens)
9347     ## LD is ld it makes a PLAMLIB
9348     ## CC just makes a GrossModule.
9349     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9350     reload_cmds='$CC -r -o $output$reload_objs'
9351     hardcode_direct=no
9352     ;;
9353     motorola)
9354     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9355     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9356     ;;
9357     esac
9358     runpath_var='LD_RUN_PATH'
9359     hardcode_shlibpath_var=no
9360     ;;
9361    
9362     sysv4.3*)
9363     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364     hardcode_shlibpath_var=no
9365     export_dynamic_flag_spec='-Bexport'
9366     ;;
9367    
9368     sysv4*MP*)
9369     if test -d /usr/nec; then
9370     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371     hardcode_shlibpath_var=no
9372     runpath_var=LD_RUN_PATH
9373     hardcode_runpath_var=yes
9374     ld_shlibs=yes
9375     fi
9376     ;;
9377    
9378     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9379     no_undefined_flag='${wl}-z,text'
9380     archive_cmds_need_lc=no
9381     hardcode_shlibpath_var=no
9382     runpath_var='LD_RUN_PATH'
9383    
9384     if test "$GCC" = yes; then
9385     archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9386     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9387     else
9388     archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390     fi
9391     ;;
9392    
9393     sysv5* | sco3.2v5* | sco5v6*)
9394     # Note: We can NOT use -z defs as we might desire, because we do not
9395     # link with -lc, and that would cause any symbols used from libc to
9396     # always be unresolved, which means just about no library would
9397     # ever link correctly. If we're not using GNU ld we use -z text
9398     # though, which does catch some bad symbols but isn't as heavy-handed
9399     # as -z defs.
9400     no_undefined_flag='${wl}-z,text'
9401     allow_undefined_flag='${wl}-z,nodefs'
9402     archive_cmds_need_lc=no
9403     hardcode_shlibpath_var=no
9404 michael 945 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9405 michael 912 hardcode_libdir_separator=':'
9406     link_all_deplibs=yes
9407     export_dynamic_flag_spec='${wl}-Bexport'
9408     runpath_var='LD_RUN_PATH'
9409    
9410     if test "$GCC" = yes; then
9411 michael 945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9412     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 michael 912 else
9414 michael 945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9415     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9416 michael 912 fi
9417     ;;
9418    
9419     uts4*)
9420     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421     hardcode_libdir_flag_spec='-L$libdir'
9422     hardcode_shlibpath_var=no
9423     ;;
9424    
9425     *)
9426     ld_shlibs=no
9427     ;;
9428     esac
9429 michael 945
9430     if test x$host_vendor = xsni; then
9431     case $host in
9432     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9433     export_dynamic_flag_spec='${wl}-Blargedynsym'
9434     ;;
9435     esac
9436     fi
9437 michael 912 fi
9438    
9439 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9440 db 941 $as_echo "$ld_shlibs" >&6; }
9441 michael 912 test "$ld_shlibs" = no && can_build_shared=no
9442    
9443 michael 945 with_gnu_ld=$with_gnu_ld
9444    
9445    
9446    
9447    
9448    
9449    
9450    
9451    
9452    
9453    
9454    
9455    
9456    
9457    
9458    
9459 michael 912 #
9460     # Do we need to explicitly link libc?
9461     #
9462     case "x$archive_cmds_need_lc" in
9463     x|xyes)
9464     # Assume -lc should be added
9465     archive_cmds_need_lc=yes
9466    
9467     if test "$enable_shared" = yes && test "$GCC" = yes; then
9468     case $archive_cmds in
9469     *'~'*)
9470     # FIXME: we may have to deal with multi-command sequences.
9471     ;;
9472     '$CC '*)
9473     # Test whether the compiler implicitly links with -lc since on some
9474     # systems, -lgcc has to come before -lc. If gcc already passes -lc
9475     # to ld, don't add -lc before -lgcc.
9476 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9477 db 941 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9478 michael 945 $RM conftest*
9479 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9480    
9481 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9482 michael 912 (eval $ac_compile) 2>&5
9483     ac_status=$?
9484 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9485     test $ac_status = 0; } 2>conftest.err; then
9486 michael 912 soname=conftest
9487     lib=conftest
9488     libobjs=conftest.$ac_objext
9489     deplibs=
9490     wl=$lt_prog_compiler_wl
9491     pic_flag=$lt_prog_compiler_pic
9492     compiler_flags=-v
9493     linker_flags=-v
9494     verstring=
9495     output_objdir=.
9496     libname=conftest
9497     lt_save_allow_undefined_flag=$allow_undefined_flag
9498     allow_undefined_flag=
9499 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9500 michael 945 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9501 michael 912 ac_status=$?
9502 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9503     test $ac_status = 0; }
9504 michael 912 then
9505     archive_cmds_need_lc=no
9506     else
9507     archive_cmds_need_lc=yes
9508     fi
9509     allow_undefined_flag=$lt_save_allow_undefined_flag
9510     else
9511     cat conftest.err 1>&5
9512     fi
9513 michael 945 $RM conftest*
9514 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9515 db 941 $as_echo "$archive_cmds_need_lc" >&6; }
9516 michael 912 ;;
9517     esac
9518     fi
9519     ;;
9520     esac
9521    
9522 michael 945
9523    
9524    
9525    
9526    
9527    
9528    
9529    
9530    
9531    
9532    
9533    
9534    
9535    
9536    
9537    
9538    
9539    
9540    
9541    
9542    
9543    
9544    
9545    
9546    
9547    
9548    
9549    
9550    
9551    
9552    
9553    
9554    
9555    
9556    
9557    
9558    
9559    
9560    
9561    
9562    
9563    
9564    
9565    
9566    
9567    
9568    
9569    
9570    
9571    
9572    
9573    
9574    
9575    
9576    
9577    
9578    
9579    
9580    
9581    
9582    
9583    
9584    
9585    
9586    
9587    
9588    
9589    
9590    
9591    
9592    
9593    
9594    
9595    
9596    
9597    
9598    
9599    
9600    
9601    
9602    
9603    
9604    
9605    
9606    
9607    
9608    
9609    
9610    
9611    
9612    
9613    
9614    
9615    
9616    
9617    
9618    
9619    
9620    
9621    
9622    
9623    
9624    
9625    
9626    
9627    
9628    
9629    
9630    
9631    
9632    
9633    
9634    
9635    
9636    
9637    
9638    
9639    
9640    
9641    
9642    
9643    
9644    
9645    
9646    
9647    
9648    
9649    
9650    
9651    
9652    
9653    
9654    
9655    
9656    
9657    
9658    
9659    
9660    
9661    
9662    
9663    
9664    
9665    
9666    
9667    
9668    
9669    
9670    
9671    
9672    
9673    
9674    
9675    
9676    
9677    
9678 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9679 db 941 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9680 michael 912
9681     if test "$GCC" = yes; then
9682     case $host_os in
9683     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9684     *) lt_awk_arg="/^libraries:/" ;;
9685     esac
9686     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9687 michael 945 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9688 michael 912 # if the path contains ";" then we assume it to be the separator
9689     # otherwise default to the standard path separator (i.e. ":") - it is
9690     # assumed that no part of a normal pathname contains ";" but that should
9691     # okay in the real world where ";" in dirpaths is itself problematic.
9692 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9693 michael 912 else
9694 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9695 michael 912 fi
9696     # Ok, now we have the path, separated by spaces, we can step through it
9697     # and add multilib dir if necessary.
9698     lt_tmp_lt_search_path_spec=
9699     lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9700     for lt_sys_path in $lt_search_path_spec; do
9701     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9702     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9703     else
9704     test -d "$lt_sys_path" && \
9705     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9706     fi
9707     done
9708 michael 945 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9709 michael 912 BEGIN {RS=" "; FS="/|\n";} {
9710     lt_foo="";
9711     lt_count=0;
9712     for (lt_i = NF; lt_i > 0; lt_i--) {
9713     if ($lt_i != "" && $lt_i != ".") {
9714     if ($lt_i == "..") {
9715     lt_count++;
9716     } else {
9717     if (lt_count == 0) {
9718     lt_foo="/" $lt_i lt_foo;
9719     } else {
9720     lt_count--;
9721     }
9722     }
9723     }
9724     }
9725     if (lt_foo != "") { lt_freq[lt_foo]++; }
9726     if (lt_freq[lt_foo] == 1) { print lt_foo; }
9727     }'`
9728 michael 945 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9729 michael 912 else
9730     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9731     fi
9732 michael 945 library_names_spec=
9733     libname_spec='lib$name'
9734     soname_spec=
9735     shrext_cmds=".so"
9736     postinstall_cmds=
9737     postuninstall_cmds=
9738     finish_cmds=
9739     finish_eval=
9740     shlibpath_var=
9741     shlibpath_overrides_runpath=unknown
9742     version_type=none
9743     dynamic_linker="$host_os ld.so"
9744     sys_lib_dlsearch_path_spec="/lib /usr/lib"
9745 michael 912 need_lib_prefix=unknown
9746     hardcode_into_libs=no
9747    
9748     # when you set need_version to no, make sure it does not cause -set_version
9749     # flags to be left without arguments
9750     need_version=unknown
9751    
9752     case $host_os in
9753     aix3*)
9754     version_type=linux
9755     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9756     shlibpath_var=LIBPATH
9757    
9758     # AIX 3 has no versioning support, so we append a major version to the name.
9759     soname_spec='${libname}${release}${shared_ext}$major'
9760     ;;
9761    
9762 db 941 aix[4-9]*)
9763 michael 912 version_type=linux
9764     need_lib_prefix=no
9765     need_version=no
9766     hardcode_into_libs=yes
9767     if test "$host_cpu" = ia64; then
9768     # AIX 5 supports IA64
9769     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9770     shlibpath_var=LD_LIBRARY_PATH
9771     else
9772     # With GCC up to 2.95.x, collect2 would create an import file
9773     # for dependence libraries. The import file would start with
9774     # the line `#! .'. This would cause the generated library to
9775     # depend on `.', always an invalid library. This was fixed in
9776     # development snapshots of GCC prior to 3.0.
9777     case $host_os in
9778     aix4 | aix4.[01] | aix4.[01].*)
9779     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9780     echo ' yes '
9781 michael 945 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9782 michael 912 :
9783     else
9784     can_build_shared=no
9785     fi
9786     ;;
9787     esac
9788     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9789     # soname into executable. Probably we can add versioning support to
9790     # collect2, so additional links can be useful in future.
9791     if test "$aix_use_runtimelinking" = yes; then
9792     # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9793     # instead of lib<name>.a to let people know that these are not
9794     # typical AIX shared libraries.
9795     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796     else
9797     # We preserve .a as extension for shared libraries through AIX4.2
9798     # and later when we are not doing run time linking.
9799     library_names_spec='${libname}${release}.a $libname.a'
9800     soname_spec='${libname}${release}${shared_ext}$major'
9801     fi
9802     shlibpath_var=LIBPATH
9803     fi
9804     ;;
9805    
9806     amigaos*)
9807 michael 945 case $host_cpu in
9808     powerpc)
9809     # Since July 2007 AmigaOS4 officially supports .so libraries.
9810     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9811     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9812     ;;
9813     m68k)
9814     library_names_spec='$libname.ixlibrary $libname.a'
9815     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9816     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
9817     ;;
9818     esac
9819 michael 912 ;;
9820    
9821     beos*)
9822     library_names_spec='${libname}${shared_ext}'
9823     dynamic_linker="$host_os ld.so"
9824     shlibpath_var=LIBRARY_PATH
9825     ;;
9826    
9827     bsdi[45]*)
9828     version_type=linux
9829     need_version=no
9830     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831     soname_spec='${libname}${release}${shared_ext}$major'
9832     finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9833     shlibpath_var=LD_LIBRARY_PATH
9834     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9835     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9836     # the default ld.so.conf also contains /usr/contrib/lib and
9837     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9838     # libtool to hard-code these into programs
9839     ;;
9840    
9841 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9842 michael 912 version_type=windows
9843     shrext_cmds=".dll"
9844     need_version=no
9845     need_lib_prefix=no
9846    
9847     case $GCC,$host_os in
9848 michael 945 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9849 michael 912 library_names_spec='$libname.dll.a'
9850     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9851     postinstall_cmds='base_file=`basename \${file}`~
9852 michael 945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9853 michael 912 dldir=$destdir/`dirname \$dlpath`~
9854     test -d \$dldir || mkdir -p \$dldir~
9855     $install_prog $dir/$dlname \$dldir/$dlname~
9856 michael 945 chmod a+x \$dldir/$dlname~
9857     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9858     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9859     fi'
9860 michael 912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9861     dlpath=$dir/\$dldll~
9862 michael 945 $RM \$dlpath'
9863 michael 912 shlibpath_overrides_runpath=yes
9864    
9865     case $host_os in
9866     cygwin*)
9867     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9868     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9869     sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9870     ;;
9871 michael 945 mingw* | cegcc*)
9872 michael 912 # MinGW DLLs use traditional 'lib' prefix
9873     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9874 michael 945 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9875     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9876 michael 912 # It is most probably a Windows format PATH printed by
9877     # mingw gcc, but we are running on Cygwin. Gcc prints its search
9878     # path with ; separators, and with drive letters. We can handle the
9879     # drive letters (cygwin fileutils understands them), so leave them,
9880     # especially as we might pass files found there to a mingw objdump,
9881     # which wouldn't understand a cygwinified path. Ahh.
9882 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9883 michael 912 else
9884 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9885 michael 912 fi
9886     ;;
9887     pw32*)
9888     # pw32 DLLs use 'pw' prefix rather than 'lib'
9889     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9890     ;;
9891     esac
9892     ;;
9893    
9894     *)
9895     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9896     ;;
9897     esac
9898     dynamic_linker='Win32 ld.exe'
9899     # FIXME: first we should search . and the directory the executable is in
9900     shlibpath_var=PATH
9901     ;;
9902    
9903     darwin* | rhapsody*)
9904     dynamic_linker="$host_os dyld"
9905     version_type=darwin
9906     need_lib_prefix=no
9907     need_version=no
9908 michael 945 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9909 michael 912 soname_spec='${libname}${release}${major}$shared_ext'
9910     shlibpath_overrides_runpath=yes
9911     shlibpath_var=DYLD_LIBRARY_PATH
9912     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9913    
9914     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9915     sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9916     ;;
9917    
9918     dgux*)
9919     version_type=linux
9920     need_lib_prefix=no
9921     need_version=no
9922     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9923     soname_spec='${libname}${release}${shared_ext}$major'
9924     shlibpath_var=LD_LIBRARY_PATH
9925     ;;
9926    
9927     freebsd1*)
9928     dynamic_linker=no
9929     ;;
9930    
9931     freebsd* | dragonfly*)
9932     # DragonFly does not have aout. When/if they implement a new
9933     # versioning mechanism, adjust this.
9934     if test -x /usr/bin/objformat; then
9935     objformat=`/usr/bin/objformat`
9936     else
9937     case $host_os in
9938     freebsd[123]*) objformat=aout ;;
9939     *) objformat=elf ;;
9940     esac
9941     fi
9942     version_type=freebsd-$objformat
9943     case $version_type in
9944     freebsd-elf*)
9945     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9946     need_version=no
9947     need_lib_prefix=no
9948     ;;
9949     freebsd-*)
9950     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9951     need_version=yes
9952     ;;
9953     esac
9954     shlibpath_var=LD_LIBRARY_PATH
9955     case $host_os in
9956     freebsd2*)
9957     shlibpath_overrides_runpath=yes
9958     ;;
9959     freebsd3.[01]* | freebsdelf3.[01]*)
9960     shlibpath_overrides_runpath=yes
9961     hardcode_into_libs=yes
9962     ;;
9963     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9964     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9965     shlibpath_overrides_runpath=no
9966     hardcode_into_libs=yes
9967     ;;
9968     *) # from 4.6 on, and DragonFly
9969     shlibpath_overrides_runpath=yes
9970     hardcode_into_libs=yes
9971     ;;
9972     esac
9973     ;;
9974    
9975     gnu*)
9976     version_type=linux
9977     need_lib_prefix=no
9978     need_version=no
9979     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9980     soname_spec='${libname}${release}${shared_ext}$major'
9981     shlibpath_var=LD_LIBRARY_PATH
9982     hardcode_into_libs=yes
9983     ;;
9984    
9985     hpux9* | hpux10* | hpux11*)
9986     # Give a soname corresponding to the major version so that dld.sl refuses to
9987     # link against other versions.
9988     version_type=sunos
9989     need_lib_prefix=no
9990     need_version=no
9991     case $host_cpu in
9992     ia64*)
9993     shrext_cmds='.so'
9994     hardcode_into_libs=yes
9995     dynamic_linker="$host_os dld.so"
9996     shlibpath_var=LD_LIBRARY_PATH
9997     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999     soname_spec='${libname}${release}${shared_ext}$major'
10000     if test "X$HPUX_IA64_MODE" = X32; then
10001     sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10002     else
10003     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10004     fi
10005     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10006     ;;
10007 michael 945 hppa*64*)
10008 michael 912 shrext_cmds='.sl'
10009 michael 945 hardcode_into_libs=yes
10010 michael 912 dynamic_linker="$host_os dld.sl"
10011 michael 945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10012     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014     soname_spec='${libname}${release}${shared_ext}$major'
10015     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10016     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10017     ;;
10018     *)
10019     shrext_cmds='.sl'
10020     dynamic_linker="$host_os dld.sl"
10021 michael 912 shlibpath_var=SHLIB_PATH
10022     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024     soname_spec='${libname}${release}${shared_ext}$major'
10025     ;;
10026     esac
10027     # HP-UX runs *really* slowly unless shared libraries are mode 555.
10028     postinstall_cmds='chmod 555 $lib'
10029     ;;
10030    
10031     interix[3-9]*)
10032     version_type=linux
10033     need_lib_prefix=no
10034     need_version=no
10035     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036     soname_spec='${libname}${release}${shared_ext}$major'
10037     dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10038     shlibpath_var=LD_LIBRARY_PATH
10039     shlibpath_overrides_runpath=no
10040     hardcode_into_libs=yes
10041     ;;
10042    
10043     irix5* | irix6* | nonstopux*)
10044     case $host_os in
10045     nonstopux*) version_type=nonstopux ;;
10046     *)
10047     if test "$lt_cv_prog_gnu_ld" = yes; then
10048     version_type=linux
10049     else
10050     version_type=irix
10051     fi ;;
10052     esac
10053     need_lib_prefix=no
10054     need_version=no
10055     soname_spec='${libname}${release}${shared_ext}$major'
10056     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10057     case $host_os in
10058     irix5* | nonstopux*)
10059     libsuff= shlibsuff=
10060     ;;
10061     *)
10062     case $LD in # libtool.m4 will add one of these switches to LD
10063     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10064     libsuff= shlibsuff= libmagic=32-bit;;
10065     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10066     libsuff=32 shlibsuff=N32 libmagic=N32;;
10067     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10068     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10069     *) libsuff= shlibsuff= libmagic=never-match;;
10070     esac
10071     ;;
10072     esac
10073     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10074     shlibpath_overrides_runpath=no
10075     sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10076     sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10077     hardcode_into_libs=yes
10078     ;;
10079    
10080     # No shared lib support for Linux oldld, aout, or coff.
10081     linux*oldld* | linux*aout* | linux*coff*)
10082     dynamic_linker=no
10083     ;;
10084    
10085     # This must be Linux ELF.
10086     linux* | k*bsd*-gnu)
10087     version_type=linux
10088     need_lib_prefix=no
10089     need_version=no
10090     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091     soname_spec='${libname}${release}${shared_ext}$major'
10092     finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10093     shlibpath_var=LD_LIBRARY_PATH
10094     shlibpath_overrides_runpath=no
10095 michael 945 # Some binutils ld are patched to set DT_RUNPATH
10096     save_LDFLAGS=$LDFLAGS
10097     save_libdir=$libdir
10098     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10099     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10100 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10101 michael 945 /* end confdefs.h. */
10102    
10103     int
10104     main ()
10105     {
10106    
10107     ;
10108     return 0;
10109     }
10110     _ACEOF
10111 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10112     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10113 michael 945 shlibpath_overrides_runpath=yes
10114     fi
10115     fi
10116 michael 967 rm -f core conftest.err conftest.$ac_objext \
10117     conftest$ac_exeext conftest.$ac_ext
10118 michael 945 LDFLAGS=$save_LDFLAGS
10119     libdir=$save_libdir
10120    
10121 michael 912 # This implies no fast_install, which is unacceptable.
10122     # Some rework will be needed to allow for fast_install
10123     # before this can be enabled.
10124     hardcode_into_libs=yes
10125    
10126 michael 945 # find out which ABI we are using
10127     libsuff=
10128     case "$host_cpu" in
10129     x86_64*|s390x*|powerpc64*)
10130 michael 1039 echo '#line 10130 "configure"' > conftest.$ac_ext
10131 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10132 michael 945 (eval $ac_compile) 2>&5
10133     ac_status=$?
10134 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10135     test $ac_status = 0; }; then
10136 michael 945 case `/usr/bin/file conftest.$ac_objext` in
10137     *64-bit*)
10138     libsuff=64
10139     ;;
10140     esac
10141     fi
10142     rm -rf conftest*
10143     ;;
10144     esac
10145    
10146     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10147    
10148 michael 912 # Append ld.so.conf contents to the search path
10149     if test -f /etc/ld.so.conf; then
10150 michael 945 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;/^$/d' | tr '\n' ' '`
10151     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10152 michael 912 fi
10153    
10154     # We used to test for /lib/ld.so.1 and disable shared libraries on
10155     # powerpc, because MkLinux only supported shared libraries with the
10156     # GNU dynamic linker. Since this was broken with cross compilers,
10157     # most powerpc-linux boxes support dynamic linking these days and
10158     # people can always --disable-shared, the test was removed, and we
10159     # assume the GNU/Linux dynamic linker is in use.
10160     dynamic_linker='GNU/Linux ld.so'
10161     ;;
10162    
10163     netbsd*)
10164     version_type=sunos
10165     need_lib_prefix=no
10166     need_version=no
10167 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10168 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10169     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10170     dynamic_linker='NetBSD (a.out) ld.so'
10171     else
10172     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10173     soname_spec='${libname}${release}${shared_ext}$major'
10174     dynamic_linker='NetBSD ld.elf_so'
10175     fi
10176     shlibpath_var=LD_LIBRARY_PATH
10177     shlibpath_overrides_runpath=yes
10178     hardcode_into_libs=yes
10179     ;;
10180    
10181     newsos6)
10182     version_type=linux
10183     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10184     shlibpath_var=LD_LIBRARY_PATH
10185     shlibpath_overrides_runpath=yes
10186     ;;
10187    
10188 michael 945 *nto* | *qnx*)
10189     version_type=qnx
10190 michael 912 need_lib_prefix=no
10191     need_version=no
10192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10193     soname_spec='${libname}${release}${shared_ext}$major'
10194     shlibpath_var=LD_LIBRARY_PATH
10195 michael 945 shlibpath_overrides_runpath=no
10196     hardcode_into_libs=yes
10197     dynamic_linker='ldqnx.so'
10198 michael 912 ;;
10199    
10200     openbsd*)
10201     version_type=sunos
10202     sys_lib_dlsearch_path_spec="/usr/lib"
10203     need_lib_prefix=no
10204     # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10205     case $host_os in
10206 michael 945 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10207     *) need_version=no ;;
10208 michael 912 esac
10209     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10210     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10211     shlibpath_var=LD_LIBRARY_PATH
10212 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10213 michael 912 case $host_os in
10214     openbsd2.[89] | openbsd2.[89].*)
10215     shlibpath_overrides_runpath=no
10216     ;;
10217     *)
10218     shlibpath_overrides_runpath=yes
10219     ;;
10220     esac
10221     else
10222     shlibpath_overrides_runpath=yes
10223     fi
10224     ;;
10225    
10226     os2*)
10227     libname_spec='$name'
10228     shrext_cmds=".dll"
10229     need_lib_prefix=no
10230     library_names_spec='$libname${shared_ext} $libname.a'
10231     dynamic_linker='OS/2 ld.exe'
10232     shlibpath_var=LIBPATH
10233     ;;
10234    
10235     osf3* | osf4* | osf5*)
10236     version_type=osf
10237     need_lib_prefix=no
10238     need_version=no
10239     soname_spec='${libname}${release}${shared_ext}$major'
10240     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10241     shlibpath_var=LD_LIBRARY_PATH
10242     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10243     sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10244     ;;
10245    
10246     rdos*)
10247     dynamic_linker=no
10248     ;;
10249    
10250     solaris*)
10251     version_type=linux
10252     need_lib_prefix=no
10253     need_version=no
10254     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10255     soname_spec='${libname}${release}${shared_ext}$major'
10256     shlibpath_var=LD_LIBRARY_PATH
10257     shlibpath_overrides_runpath=yes
10258     hardcode_into_libs=yes
10259     # ldd complains unless libraries are executable
10260     postinstall_cmds='chmod +x $lib'
10261     ;;
10262    
10263     sunos4*)
10264     version_type=sunos
10265     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266     finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10267     shlibpath_var=LD_LIBRARY_PATH
10268     shlibpath_overrides_runpath=yes
10269     if test "$with_gnu_ld" = yes; then
10270     need_lib_prefix=no
10271     fi
10272     need_version=yes
10273     ;;
10274    
10275     sysv4 | sysv4.3*)
10276     version_type=linux
10277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10278     soname_spec='${libname}${release}${shared_ext}$major'
10279     shlibpath_var=LD_LIBRARY_PATH
10280     case $host_vendor in
10281     sni)
10282     shlibpath_overrides_runpath=no
10283     need_lib_prefix=no
10284     runpath_var=LD_RUN_PATH
10285     ;;
10286     siemens)
10287     need_lib_prefix=no
10288     ;;
10289     motorola)
10290     need_lib_prefix=no
10291     need_version=no
10292     shlibpath_overrides_runpath=no
10293     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10294     ;;
10295     esac
10296     ;;
10297    
10298     sysv4*MP*)
10299     if test -d /usr/nec ;then
10300     version_type=linux
10301     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10302     soname_spec='$libname${shared_ext}.$major'
10303     shlibpath_var=LD_LIBRARY_PATH
10304     fi
10305     ;;
10306    
10307     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10308     version_type=freebsd-elf
10309     need_lib_prefix=no
10310     need_version=no
10311     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10312     soname_spec='${libname}${release}${shared_ext}$major'
10313     shlibpath_var=LD_LIBRARY_PATH
10314 michael 945 shlibpath_overrides_runpath=yes
10315 michael 912 hardcode_into_libs=yes
10316     if test "$with_gnu_ld" = yes; then
10317     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10318     else
10319     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10320     case $host_os in
10321     sco3.2v5*)
10322     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10323     ;;
10324     esac
10325     fi
10326     sys_lib_dlsearch_path_spec='/usr/lib'
10327     ;;
10328    
10329 michael 945 tpf*)
10330     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10331     version_type=linux
10332     need_lib_prefix=no
10333     need_version=no
10334     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10335     shlibpath_var=LD_LIBRARY_PATH
10336     shlibpath_overrides_runpath=no
10337     hardcode_into_libs=yes
10338     ;;
10339    
10340 michael 912 uts4*)
10341     version_type=linux
10342     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10343     soname_spec='${libname}${release}${shared_ext}$major'
10344     shlibpath_var=LD_LIBRARY_PATH
10345     ;;
10346    
10347     *)
10348     dynamic_linker=no
10349     ;;
10350     esac
10351 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10352 db 941 $as_echo "$dynamic_linker" >&6; }
10353 michael 912 test "$dynamic_linker" = no && can_build_shared=no
10354    
10355 michael 945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10356     if test "$GCC" = yes; then
10357     variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10358     fi
10359    
10360 db 941 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10361 michael 945 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10362 db 941 fi
10363     if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10364 michael 945 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10365 db 941 fi
10366    
10367    
10368 michael 912
10369 michael 945
10370    
10371    
10372    
10373    
10374    
10375    
10376    
10377    
10378    
10379    
10380    
10381    
10382    
10383    
10384    
10385    
10386    
10387    
10388    
10389    
10390    
10391    
10392    
10393    
10394    
10395    
10396    
10397    
10398    
10399    
10400    
10401    
10402    
10403    
10404    
10405    
10406    
10407    
10408    
10409    
10410    
10411    
10412    
10413    
10414    
10415    
10416    
10417    
10418    
10419    
10420    
10421    
10422    
10423    
10424    
10425    
10426    
10427    
10428    
10429    
10430    
10431    
10432    
10433    
10434    
10435    
10436    
10437    
10438    
10439    
10440    
10441    
10442    
10443    
10444    
10445    
10446    
10447    
10448    
10449    
10450    
10451    
10452    
10453 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10454 db 941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10455 michael 912 hardcode_action=
10456 michael 945 if test -n "$hardcode_libdir_flag_spec" ||
10457     test -n "$runpath_var" ||
10458 michael 912 test "X$hardcode_automatic" = "Xyes" ; then
10459    
10460 michael 945 # We can hardcode non-existent directories.
10461 michael 912 if test "$hardcode_direct" != no &&
10462     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10463     # have to relink, otherwise we might link with an installed library
10464     # when we should be linking with a yet-to-be-installed one
10465 michael 945 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10466 michael 912 test "$hardcode_minus_L" != no; then
10467     # Linking always hardcodes the temporary library directory.
10468     hardcode_action=relink
10469     else
10470     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10471     hardcode_action=immediate
10472     fi
10473     else
10474     # We cannot hardcode anything, or else we can only hardcode existing
10475     # directories.
10476     hardcode_action=unsupported
10477     fi
10478 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10479 db 941 $as_echo "$hardcode_action" >&6; }
10480 michael 912
10481 michael 945 if test "$hardcode_action" = relink ||
10482     test "$inherit_rpath" = yes; then
10483 michael 912 # Fast installation is not supported
10484     enable_fast_install=no
10485     elif test "$shlibpath_overrides_runpath" = yes ||
10486     test "$enable_shared" = no; then
10487     # Fast installation is not necessary
10488     enable_fast_install=needless
10489     fi
10490    
10491    
10492 michael 945
10493    
10494    
10495    
10496     if test "x$enable_dlopen" != xyes; then
10497 michael 912 enable_dlopen=unknown
10498     enable_dlopen_self=unknown
10499     enable_dlopen_self_static=unknown
10500     else
10501     lt_cv_dlopen=no
10502     lt_cv_dlopen_libs=
10503    
10504     case $host_os in
10505     beos*)
10506     lt_cv_dlopen="load_add_on"
10507     lt_cv_dlopen_libs=
10508     lt_cv_dlopen_self=yes
10509     ;;
10510    
10511 michael 945 mingw* | pw32* | cegcc*)
10512 michael 912 lt_cv_dlopen="LoadLibrary"
10513     lt_cv_dlopen_libs=
10514 michael 945 ;;
10515 michael 912
10516     cygwin*)
10517     lt_cv_dlopen="dlopen"
10518     lt_cv_dlopen_libs=
10519 michael 945 ;;
10520 michael 912
10521     darwin*)
10522     # if libdl is installed we need to link against it
10523 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10524 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10525 michael 967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10526 db 941 $as_echo_n "(cached) " >&6
10527 michael 912 else
10528     ac_check_lib_save_LIBS=$LIBS
10529     LIBS="-ldl $LIBS"
10530 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531 michael 912 /* end confdefs.h. */
10532    
10533     /* Override any GCC internal prototype to avoid an error.
10534     Use char because int might match the return type of a GCC
10535     builtin and then its argument prototype would still apply. */
10536     #ifdef __cplusplus
10537     extern "C"
10538     #endif
10539     char dlopen ();
10540     int
10541     main ()
10542     {
10543     return dlopen ();
10544     ;
10545     return 0;
10546     }
10547     _ACEOF
10548 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10549 michael 912 ac_cv_lib_dl_dlopen=yes
10550     else
10551 michael 967 ac_cv_lib_dl_dlopen=no
10552 michael 912 fi
10553 michael 967 rm -f core conftest.err conftest.$ac_objext \
10554     conftest$ac_exeext conftest.$ac_ext
10555 michael 912 LIBS=$ac_check_lib_save_LIBS
10556     fi
10557 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10558 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10559 michael 967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10560 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10561     else
10562    
10563     lt_cv_dlopen="dyld"
10564     lt_cv_dlopen_libs=
10565     lt_cv_dlopen_self=yes
10566    
10567     fi
10568    
10569 michael 945 ;;
10570 michael 912
10571     *)
10572 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10573     if test "x$ac_cv_func_shl_load" = x""yes; then :
10574 michael 912 lt_cv_dlopen="shl_load"
10575     else
10576 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10577 db 941 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10578 michael 967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10579 db 941 $as_echo_n "(cached) " >&6
10580 michael 912 else
10581     ac_check_lib_save_LIBS=$LIBS
10582     LIBS="-ldld $LIBS"
10583 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10584 michael 912 /* end confdefs.h. */
10585    
10586     /* Override any GCC internal prototype to avoid an error.
10587     Use char because int might match the return type of a GCC
10588     builtin and then its argument prototype would still apply. */
10589     #ifdef __cplusplus
10590     extern "C"
10591     #endif
10592     char shl_load ();
10593     int
10594     main ()
10595     {
10596     return shl_load ();
10597     ;
10598     return 0;
10599     }
10600     _ACEOF
10601 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10602 michael 912 ac_cv_lib_dld_shl_load=yes
10603     else
10604 michael 967 ac_cv_lib_dld_shl_load=no
10605 michael 912 fi
10606 michael 967 rm -f core conftest.err conftest.$ac_objext \
10607     conftest$ac_exeext conftest.$ac_ext
10608 michael 912 LIBS=$ac_check_lib_save_LIBS
10609     fi
10610 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10611 db 941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10612 michael 967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10613 db 941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10614 michael 912 else
10615 michael 967 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10616     if test "x$ac_cv_func_dlopen" = x""yes; then :
10617 michael 912 lt_cv_dlopen="dlopen"
10618     else
10619 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10620 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10621 michael 967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10622 db 941 $as_echo_n "(cached) " >&6
10623 michael 912 else
10624     ac_check_lib_save_LIBS=$LIBS
10625     LIBS="-ldl $LIBS"
10626 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627 michael 912 /* end confdefs.h. */
10628    
10629     /* Override any GCC internal prototype to avoid an error.
10630     Use char because int might match the return type of a GCC
10631     builtin and then its argument prototype would still apply. */
10632     #ifdef __cplusplus
10633     extern "C"
10634     #endif
10635     char dlopen ();
10636     int
10637     main ()
10638     {
10639     return dlopen ();
10640     ;
10641     return 0;
10642     }
10643     _ACEOF
10644 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10645 michael 912 ac_cv_lib_dl_dlopen=yes
10646     else
10647 michael 967 ac_cv_lib_dl_dlopen=no
10648 michael 912 fi
10649 michael 967 rm -f core conftest.err conftest.$ac_objext \
10650     conftest$ac_exeext conftest.$ac_ext
10651 michael 912 LIBS=$ac_check_lib_save_LIBS
10652     fi
10653 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10654 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10655 michael 967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10656 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10657     else
10658 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10659 db 941 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10660 michael 967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10661 db 941 $as_echo_n "(cached) " >&6
10662 michael 912 else
10663     ac_check_lib_save_LIBS=$LIBS
10664     LIBS="-lsvld $LIBS"
10665 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10666 michael 912 /* end confdefs.h. */
10667    
10668     /* Override any GCC internal prototype to avoid an error.
10669     Use char because int might match the return type of a GCC
10670     builtin and then its argument prototype would still apply. */
10671     #ifdef __cplusplus
10672     extern "C"
10673     #endif
10674     char dlopen ();
10675     int
10676     main ()
10677     {
10678     return dlopen ();
10679     ;
10680     return 0;
10681     }
10682     _ACEOF
10683 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10684 michael 912 ac_cv_lib_svld_dlopen=yes
10685     else
10686 michael 967 ac_cv_lib_svld_dlopen=no
10687 michael 912 fi
10688 michael 967 rm -f core conftest.err conftest.$ac_objext \
10689     conftest$ac_exeext conftest.$ac_ext
10690 michael 912 LIBS=$ac_check_lib_save_LIBS
10691     fi
10692 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10693 db 941 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10694 michael 967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10695 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10696     else
10697 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10698 db 941 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10699 michael 967 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10700 db 941 $as_echo_n "(cached) " >&6
10701 michael 912 else
10702     ac_check_lib_save_LIBS=$LIBS
10703     LIBS="-ldld $LIBS"
10704 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 michael 912 /* end confdefs.h. */
10706    
10707     /* Override any GCC internal prototype to avoid an error.
10708     Use char because int might match the return type of a GCC
10709     builtin and then its argument prototype would still apply. */
10710     #ifdef __cplusplus
10711     extern "C"
10712     #endif
10713     char dld_link ();
10714     int
10715     main ()
10716     {
10717     return dld_link ();
10718     ;
10719     return 0;
10720     }
10721     _ACEOF
10722 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10723 michael 912 ac_cv_lib_dld_dld_link=yes
10724     else
10725 michael 967 ac_cv_lib_dld_dld_link=no
10726 michael 912 fi
10727 michael 967 rm -f core conftest.err conftest.$ac_objext \
10728     conftest$ac_exeext conftest.$ac_ext
10729 michael 912 LIBS=$ac_check_lib_save_LIBS
10730     fi
10731 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10732 db 941 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10733 michael 967 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10734 db 941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10735 michael 912 fi
10736    
10737    
10738     fi
10739    
10740    
10741     fi
10742    
10743    
10744     fi
10745    
10746    
10747     fi
10748    
10749    
10750     fi
10751    
10752     ;;
10753     esac
10754    
10755     if test "x$lt_cv_dlopen" != xno; then
10756     enable_dlopen=yes
10757     else
10758     enable_dlopen=no
10759     fi
10760    
10761     case $lt_cv_dlopen in
10762     dlopen)
10763     save_CPPFLAGS="$CPPFLAGS"
10764     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10765    
10766     save_LDFLAGS="$LDFLAGS"
10767     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10768    
10769     save_LIBS="$LIBS"
10770     LIBS="$lt_cv_dlopen_libs $LIBS"
10771    
10772 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10773 db 941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10774 michael 967 if test "${lt_cv_dlopen_self+set}" = set; then :
10775 db 941 $as_echo_n "(cached) " >&6
10776 michael 912 else
10777     if test "$cross_compiling" = yes; then :
10778     lt_cv_dlopen_self=cross
10779     else
10780     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10781     lt_status=$lt_dlunknown
10782 michael 945 cat > conftest.$ac_ext <<_LT_EOF
10783 michael 1039 #line 10783 "configure"
10784 michael 912 #include "confdefs.h"
10785    
10786     #if HAVE_DLFCN_H
10787     #include <dlfcn.h>
10788     #endif
10789    
10790     #include <stdio.h>
10791    
10792     #ifdef RTLD_GLOBAL
10793     # define LT_DLGLOBAL RTLD_GLOBAL
10794     #else
10795     # ifdef DL_GLOBAL
10796     # define LT_DLGLOBAL DL_GLOBAL
10797     # else
10798     # define LT_DLGLOBAL 0
10799     # endif
10800     #endif
10801    
10802     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10803     find out it does not work in some platform. */
10804     #ifndef LT_DLLAZY_OR_NOW
10805     # ifdef RTLD_LAZY
10806     # define LT_DLLAZY_OR_NOW RTLD_LAZY
10807     # else
10808     # ifdef DL_LAZY
10809     # define LT_DLLAZY_OR_NOW DL_LAZY
10810     # else
10811     # ifdef RTLD_NOW
10812     # define LT_DLLAZY_OR_NOW RTLD_NOW
10813     # else
10814     # ifdef DL_NOW
10815     # define LT_DLLAZY_OR_NOW DL_NOW
10816     # else
10817     # define LT_DLLAZY_OR_NOW 0
10818     # endif
10819     # endif
10820     # endif
10821     # endif
10822     #endif
10823    
10824     void fnord() { int i=42;}
10825     int main ()
10826     {
10827     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10828     int status = $lt_dlunknown;
10829    
10830     if (self)
10831     {
10832     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10833     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10834     /* dlclose (self); */
10835     }
10836     else
10837     puts (dlerror ());
10838    
10839 michael 945 return status;
10840 michael 912 }
10841 michael 945 _LT_EOF
10842 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10843 michael 912 (eval $ac_link) 2>&5
10844     ac_status=$?
10845 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10846     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10847 michael 912 (./conftest; exit; ) >&5 2>/dev/null
10848     lt_status=$?
10849     case x$lt_status in
10850     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10851     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10852     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10853     esac
10854     else :
10855     # compilation failed
10856     lt_cv_dlopen_self=no
10857     fi
10858     fi
10859     rm -fr conftest*
10860    
10861    
10862     fi
10863 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10864 db 941 $as_echo "$lt_cv_dlopen_self" >&6; }
10865 michael 912
10866     if test "x$lt_cv_dlopen_self" = xyes; then
10867     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10868 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10869 db 941 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10870 michael 967 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10871 db 941 $as_echo_n "(cached) " >&6
10872 michael 912 else
10873     if test "$cross_compiling" = yes; then :
10874     lt_cv_dlopen_self_static=cross
10875     else
10876     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10877     lt_status=$lt_dlunknown
10878 michael 945 cat > conftest.$ac_ext <<_LT_EOF
10879 michael 1039 #line 10879 "configure"
10880 michael 912 #include "confdefs.h"
10881    
10882     #if HAVE_DLFCN_H
10883     #include <dlfcn.h>
10884     #endif
10885    
10886     #include <stdio.h>
10887    
10888     #ifdef RTLD_GLOBAL
10889     # define LT_DLGLOBAL RTLD_GLOBAL
10890     #else
10891     # ifdef DL_GLOBAL
10892     # define LT_DLGLOBAL DL_GLOBAL
10893     # else
10894     # define LT_DLGLOBAL 0
10895     # endif
10896     #endif
10897    
10898     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10899     find out it does not work in some platform. */
10900     #ifndef LT_DLLAZY_OR_NOW
10901     # ifdef RTLD_LAZY
10902     # define LT_DLLAZY_OR_NOW RTLD_LAZY
10903     # else
10904     # ifdef DL_LAZY
10905     # define LT_DLLAZY_OR_NOW DL_LAZY
10906     # else
10907     # ifdef RTLD_NOW
10908     # define LT_DLLAZY_OR_NOW RTLD_NOW
10909     # else
10910     # ifdef DL_NOW
10911     # define LT_DLLAZY_OR_NOW DL_NOW
10912     # else
10913     # define LT_DLLAZY_OR_NOW 0
10914     # endif
10915     # endif
10916     # endif
10917     # endif
10918     #endif
10919    
10920     void fnord() { int i=42;}
10921     int main ()
10922     {
10923     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10924     int status = $lt_dlunknown;
10925    
10926     if (self)
10927     {
10928     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10929     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10930     /* dlclose (self); */
10931     }
10932     else
10933     puts (dlerror ());
10934    
10935 michael 945 return status;
10936 michael 912 }
10937 michael 945 _LT_EOF
10938 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10939 michael 912 (eval $ac_link) 2>&5
10940     ac_status=$?
10941 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10943 michael 912 (./conftest; exit; ) >&5 2>/dev/null
10944     lt_status=$?
10945     case x$lt_status in
10946     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10947     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10948     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10949     esac
10950     else :
10951     # compilation failed
10952     lt_cv_dlopen_self_static=no
10953     fi
10954     fi
10955     rm -fr conftest*
10956    
10957    
10958     fi
10959 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10960 db 941 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10961 michael 912 fi
10962    
10963     CPPFLAGS="$save_CPPFLAGS"
10964     LDFLAGS="$save_LDFLAGS"
10965     LIBS="$save_LIBS"
10966     ;;
10967     esac
10968    
10969     case $lt_cv_dlopen_self in
10970     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10971     *) enable_dlopen_self=unknown ;;
10972     esac
10973    
10974     case $lt_cv_dlopen_self_static in
10975     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10976     *) enable_dlopen_self_static=unknown ;;
10977     esac
10978     fi
10979    
10980    
10981    
10982    
10983    
10984    
10985    
10986    
10987    
10988    
10989    
10990    
10991    
10992    
10993    
10994    
10995    
10996 michael 945 striplib=
10997     old_striplib=
10998 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10999 michael 945 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11000     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11001     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11002     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11003 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11004 michael 945 $as_echo "yes" >&6; }
11005     else
11006     # FIXME - insert some real tests, host_os isn't really good enough
11007     case $host_os in
11008     darwin*)
11009     if test -n "$STRIP" ; then
11010     striplib="$STRIP -x"
11011     old_striplib="$STRIP -S"
11012 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11013 michael 945 $as_echo "yes" >&6; }
11014     else
11015 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 michael 945 $as_echo "no" >&6; }
11017     fi
11018     ;;
11019     *)
11020 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 michael 945 $as_echo "no" >&6; }
11022     ;;
11023     esac
11024     fi
11025 michael 912
11026    
11027    
11028    
11029    
11030    
11031    
11032    
11033    
11034    
11035    
11036    
11037 michael 945 # Report which library types will actually be built
11038 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11039 michael 945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11040 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11041 michael 945 $as_echo "$can_build_shared" >&6; }
11042 michael 912
11043 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11044 michael 945 $as_echo_n "checking whether to build shared libraries... " >&6; }
11045     test "$can_build_shared" = "no" && enable_shared=no
11046 michael 912
11047 michael 945 # On AIX, shared libraries and static libraries use the same namespace, and
11048     # are all built from PIC.
11049 michael 912 case $host_os in
11050     aix3*)
11051 michael 945 test "$enable_shared" = yes && enable_static=no
11052     if test -n "$RANLIB"; then
11053     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11054     postinstall_cmds='$RANLIB $lib'
11055     fi
11056     ;;
11057 michael 912
11058 michael 945 aix[4-9]*)
11059     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11060     test "$enable_shared" = yes && enable_static=no
11061     fi
11062 michael 912 ;;
11063     esac
11064 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11065 michael 945 $as_echo "$enable_shared" >&6; }
11066 michael 912
11067 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11068 michael 945 $as_echo_n "checking whether to build static libraries... " >&6; }
11069     # Make sure either enable_shared or enable_static is yes.
11070     test "$enable_shared" = yes || enable_static=yes
11071 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11072 michael 945 $as_echo "$enable_static" >&6; }
11073 michael 912
11074    
11075    
11076    
11077 michael 945 fi
11078 michael 912 ac_ext=c
11079     ac_cpp='$CPP $CPPFLAGS'
11080     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11081     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11082     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11083    
11084     CC="$lt_save_CC"
11085    
11086    
11087    
11088    
11089    
11090    
11091    
11092    
11093    
11094    
11095    
11096    
11097    
11098 michael 945 ac_config_commands="$ac_config_commands libtool"
11099 michael 912
11100    
11101    
11102    
11103 michael 945 # Only expand once:
11104 michael 912
11105    
11106 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11107 michael 945 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11108 michael 967 if test "${libltdl_cv_shlibext+set}" = set; then :
11109 michael 945 $as_echo_n "(cached) " >&6
11110 michael 912 else
11111    
11112 michael 945 module=yes
11113     eval libltdl_cv_shlibext=$shrext_cmds
11114 michael 912
11115     fi
11116 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11117 michael 945 $as_echo "$libltdl_cv_shlibext" >&6; }
11118     if test -n "$libltdl_cv_shlibext"; then
11119 michael 912
11120 michael 945 cat >>confdefs.h <<_ACEOF
11121     #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11122     _ACEOF
11123 michael 912
11124     fi
11125    
11126 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11127 michael 945 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11128 michael 967 if test "${lt_cv_module_path_var+set}" = set; then :
11129 db 941 $as_echo_n "(cached) " >&6
11130 michael 912 else
11131 michael 945 lt_cv_module_path_var="$shlibpath_var"
11132 michael 912 fi
11133 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11134 michael 945 $as_echo "$lt_cv_module_path_var" >&6; }
11135     if test -n "$lt_cv_module_path_var"; then
11136    
11137     cat >>confdefs.h <<_ACEOF
11138     #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11139     _ACEOF
11140    
11141 michael 912 fi
11142    
11143 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11144 michael 945 $as_echo_n "checking for the default library search path... " >&6; }
11145 michael 967 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11146 db 941 $as_echo_n "(cached) " >&6
11147 michael 912 else
11148 michael 945 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11149 michael 912 fi
11150 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11151 michael 945 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11152     if test -n "$lt_cv_sys_dlsearch_path"; then
11153     sys_dlsearch_path=
11154     for dir in $lt_cv_sys_dlsearch_path; do
11155     if test -z "$sys_dlsearch_path"; then
11156     sys_dlsearch_path="$dir"
11157 michael 912 else
11158 michael 945 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11159 michael 912 fi
11160 michael 945 done
11161 michael 912
11162 michael 945 cat >>confdefs.h <<_ACEOF
11163     #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11164     _ACEOF
11165 michael 912
11166     fi
11167    
11168    
11169 michael 945 LT_DLLOADERS=
11170 michael 912
11171    
11172 michael 945 ac_ext=c
11173     ac_cpp='$CPP $CPPFLAGS'
11174     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11175     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11176     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11177 michael 912
11178    
11179 michael 945 LIBADD_DLOPEN=
11180 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11181 michael 945 $as_echo_n "checking for library containing dlopen... " >&6; }
11182 michael 967 if test "${ac_cv_search_dlopen+set}" = set; then :
11183 michael 945 $as_echo_n "(cached) " >&6
11184     else
11185     ac_func_search_save_LIBS=$LIBS
11186 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11187 michael 912 /* end confdefs.h. */
11188    
11189 michael 945 /* Override any GCC internal prototype to avoid an error.
11190     Use char because int might match the return type of a GCC
11191     builtin and then its argument prototype would still apply. */
11192     #ifdef __cplusplus
11193     extern "C"
11194     #endif
11195     char dlopen ();
11196 michael 912 int
11197     main ()
11198     {
11199 michael 945 return dlopen ();
11200 michael 912 ;
11201     return 0;
11202     }
11203     _ACEOF
11204 michael 945 for ac_lib in '' dl; do
11205     if test -z "$ac_lib"; then
11206     ac_res="none required"
11207     else
11208     ac_res=-l$ac_lib
11209     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11210     fi
11211 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11212 michael 945 ac_cv_search_dlopen=$ac_res
11213 michael 912 fi
11214 michael 967 rm -f core conftest.err conftest.$ac_objext \
11215     conftest$ac_exeext
11216     if test "${ac_cv_search_dlopen+set}" = set; then :
11217 michael 945 break
11218     fi
11219     done
11220 michael 967 if test "${ac_cv_search_dlopen+set}" = set; then :
11221    
11222 michael 945 else
11223     ac_cv_search_dlopen=no
11224     fi
11225     rm conftest.$ac_ext
11226     LIBS=$ac_func_search_save_LIBS
11227     fi
11228 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11229 michael 945 $as_echo "$ac_cv_search_dlopen" >&6; }
11230     ac_res=$ac_cv_search_dlopen
11231 michael 967 if test "$ac_res" != no; then :
11232 michael 945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11233 michael 912
11234 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11235 michael 912
11236 michael 945 if test "$ac_cv_search_dlopen" != "none required" ; then
11237     LIBADD_DLOPEN="-ldl"
11238     fi
11239     libltdl_cv_lib_dl_dlopen="yes"
11240     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11241     else
11242 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11243 michael 912 /* end confdefs.h. */
11244 michael 945 #if HAVE_DLFCN_H
11245     # include <dlfcn.h>
11246     #endif
11247 michael 912
11248     int
11249     main ()
11250     {
11251 michael 945 dlopen(0, 0);
11252 michael 912 ;
11253     return 0;
11254     }
11255     _ACEOF
11256 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11257 michael 912
11258 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11259 michael 945
11260     libltdl_cv_func_dlopen="yes"
11261     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11262 michael 912 else
11263 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11264 michael 945 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11265 michael 967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11266 michael 945 $as_echo_n "(cached) " >&6
11267     else
11268     ac_check_lib_save_LIBS=$LIBS
11269     LIBS="-lsvld $LIBS"
11270 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11271 michael 945 /* end confdefs.h. */
11272 michael 912
11273 michael 945 /* Override any GCC internal prototype to avoid an error.
11274     Use char because int might match the return type of a GCC
11275     builtin and then its argument prototype would still apply. */
11276     #ifdef __cplusplus
11277     extern "C"
11278     #endif
11279     char dlopen ();
11280     int
11281     main ()
11282     {
11283     return dlopen ();
11284     ;
11285     return 0;
11286     }
11287     _ACEOF
11288 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11289 michael 945 ac_cv_lib_svld_dlopen=yes
11290 michael 912 else
11291 michael 967 ac_cv_lib_svld_dlopen=no
11292 db 941 fi
11293 michael 967 rm -f core conftest.err conftest.$ac_objext \
11294     conftest$ac_exeext conftest.$ac_ext
11295 michael 945 LIBS=$ac_check_lib_save_LIBS
11296 michael 912 fi
11297 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11298 michael 945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11299 michael 967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11300 michael 912
11301 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11302 michael 912
11303 michael 945 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11304     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11305 michael 912 fi
11306    
11307     fi
11308 michael 967 rm -f core conftest.err conftest.$ac_objext \
11309     conftest$ac_exeext conftest.$ac_ext
11310 michael 912 fi
11311    
11312 michael 945 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11313     then
11314     lt_save_LIBS="$LIBS"
11315     LIBS="$LIBS $LIBADD_DLOPEN"
11316 michael 967 for ac_func in dlerror
11317     do :
11318     ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11319     if test "x$ac_cv_func_dlerror" = x""yes; then :
11320 michael 945 cat >>confdefs.h <<_ACEOF
11321 michael 967 #define HAVE_DLERROR 1
11322 michael 945 _ACEOF
11323 michael 912
11324     fi
11325 michael 945 done
11326 michael 912
11327 michael 945 LIBS="$lt_save_LIBS"
11328 michael 912 fi
11329    
11330    
11331 michael 945 LIBADD_SHL_LOAD=
11332 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11333     if test "x$ac_cv_func_shl_load" = x""yes; then :
11334 michael 912
11335 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11336 michael 912
11337 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11338 michael 912 else
11339 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11340 michael 945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11341 michael 967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11342 db 941 $as_echo_n "(cached) " >&6
11343 michael 912 else
11344 michael 945 ac_check_lib_save_LIBS=$LIBS
11345     LIBS="-ldld $LIBS"
11346 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11347 michael 945 /* end confdefs.h. */
11348 michael 912
11349 michael 945 /* Override any GCC internal prototype to avoid an error.
11350     Use char because int might match the return type of a GCC
11351     builtin and then its argument prototype would still apply. */
11352     #ifdef __cplusplus
11353     extern "C"
11354     #endif
11355     char shl_load ();
11356     int
11357     main ()
11358     {
11359     return shl_load ();
11360     ;
11361     return 0;
11362     }
11363 michael 912 _ACEOF
11364 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11365 michael 945 ac_cv_lib_dld_shl_load=yes
11366 michael 912 else
11367 michael 967 ac_cv_lib_dld_shl_load=no
11368 michael 912 fi
11369 michael 967 rm -f core conftest.err conftest.$ac_objext \
11370     conftest$ac_exeext conftest.$ac_ext
11371 michael 945 LIBS=$ac_check_lib_save_LIBS
11372     fi
11373 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11374 michael 945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11375 michael 967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11376 michael 912
11377 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11378 michael 912
11379 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11380     LIBADD_SHL_LOAD="-ldld"
11381     fi
11382    
11383     fi
11384    
11385    
11386    
11387     case $host_os in
11388     darwin[1567].*)
11389     # We only want this for pre-Mac OS X 10.4.
11390 michael 967 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11391     if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11392 michael 945
11393 michael 967 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11394 michael 945
11395     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11396     fi
11397 michael 912
11398 michael 945 ;;
11399     beos*)
11400     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11401     ;;
11402     cygwin* | mingw* | os2* | pw32*)
11403 michael 967 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11404     "
11405     if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11406     ac_have_decl=1
11407 michael 945 else
11408 michael 967 ac_have_decl=0
11409 michael 945 fi
11410 michael 912
11411 michael 945 cat >>confdefs.h <<_ACEOF
11412 michael 967 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11413 michael 945 _ACEOF
11414 michael 912
11415 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11416     ;;
11417     esac
11418 michael 912
11419 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11420 michael 945 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11421 michael 967 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11422 michael 945 $as_echo_n "(cached) " >&6
11423     else
11424     ac_check_lib_save_LIBS=$LIBS
11425     LIBS="-ldld $LIBS"
11426 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11427 michael 945 /* end confdefs.h. */
11428 michael 912
11429 michael 945 /* Override any GCC internal prototype to avoid an error.
11430     Use char because int might match the return type of a GCC
11431     builtin and then its argument prototype would still apply. */
11432     #ifdef __cplusplus
11433     extern "C"
11434     #endif
11435     char dld_link ();
11436     int
11437     main ()
11438     {
11439     return dld_link ();
11440     ;
11441     return 0;
11442     }
11443     _ACEOF
11444 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11445 michael 945 ac_cv_lib_dld_dld_link=yes
11446     else
11447 michael 967 ac_cv_lib_dld_dld_link=no
11448 michael 945 fi
11449 michael 967 rm -f core conftest.err conftest.$ac_objext \
11450     conftest$ac_exeext conftest.$ac_ext
11451 michael 945 LIBS=$ac_check_lib_save_LIBS
11452     fi
11453 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11454 michael 945 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11455 michael 967 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11456 michael 912
11457 michael 967 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11458 michael 912
11459 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11460     fi
11461 michael 912
11462    
11463    
11464    
11465 michael 945 LT_DLPREOPEN=
11466     if test -n "$LT_DLLOADERS"
11467     then
11468     for lt_loader in $LT_DLLOADERS; do
11469     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11470     done
11471 michael 912
11472 michael 967 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11473 michael 912
11474 michael 945 fi
11475 michael 912
11476    
11477 michael 945 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11478 michael 912
11479    
11480 michael 945 ac_ext=c
11481     ac_cpp='$CPP $CPPFLAGS'
11482     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11483     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11484     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11485 michael 912
11486    
11487 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11488 michael 945 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11489 michael 967 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11490 michael 945 $as_echo_n "(cached) " >&6
11491     else
11492     lt_cv_sys_symbol_underscore=no
11493     cat > conftest.$ac_ext <<_LT_EOF
11494     void nm_test_func(){}
11495     int main(){nm_test_func;return 0;}
11496     _LT_EOF
11497 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11498 michael 912 (eval $ac_compile) 2>&5
11499     ac_status=$?
11500 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11501     test $ac_status = 0; }; then
11502 michael 945 # Now try to grab the symbols.
11503     ac_nlist=conftest.nm
11504 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11505 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11506 michael 912 ac_status=$?
11507 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508     test $ac_status = 0; } && test -s "$ac_nlist"; then
11509 michael 945 # See whether the symbols have a leading underscore.
11510     if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11511     lt_cv_sys_symbol_underscore=yes
11512     else
11513     if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11514     :
11515 michael 912 else
11516 michael 945 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11517 michael 912 fi
11518     fi
11519 michael 945 else
11520     echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11521     fi
11522     else
11523     echo "configure: failed program was:" >&5
11524     cat conftest.c >&5
11525 michael 912 fi
11526 michael 945 rm -rf conftest*
11527 michael 912
11528 michael 945 fi
11529 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11530 michael 945 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11531     sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11532 michael 912
11533    
11534 michael 945 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11535     if test x"$libltdl_cv_func_dlopen" = xyes ||
11536     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11537 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11538 michael 945 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11539 michael 967 if test "${libltdl_cv_need_uscore+set}" = set; then :
11540 michael 945 $as_echo_n "(cached) " >&6
11541     else
11542     libltdl_cv_need_uscore=unknown
11543     save_LIBS="$LIBS"
11544     LIBS="$LIBS $LIBADD_DLOPEN"
11545     if test "$cross_compiling" = yes; then :
11546     libltdl_cv_need_uscore=cross
11547     else
11548     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11549     lt_status=$lt_dlunknown
11550     cat > conftest.$ac_ext <<_LT_EOF
11551 michael 1039 #line 11551 "configure"
11552 michael 945 #include "confdefs.h"
11553 michael 912
11554 michael 945 #if HAVE_DLFCN_H
11555     #include <dlfcn.h>
11556     #endif
11557 michael 912
11558 michael 945 #include <stdio.h>
11559 michael 912
11560 michael 945 #ifdef RTLD_GLOBAL
11561     # define LT_DLGLOBAL RTLD_GLOBAL
11562     #else
11563     # ifdef DL_GLOBAL
11564     # define LT_DLGLOBAL DL_GLOBAL
11565     # else
11566     # define LT_DLGLOBAL 0
11567     # endif
11568     #endif
11569    
11570     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11571     find out it does not work in some platform. */
11572     #ifndef LT_DLLAZY_OR_NOW
11573     # ifdef RTLD_LAZY
11574     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11575     # else
11576     # ifdef DL_LAZY
11577     # define LT_DLLAZY_OR_NOW DL_LAZY
11578     # else
11579     # ifdef RTLD_NOW
11580     # define LT_DLLAZY_OR_NOW RTLD_NOW
11581     # else
11582     # ifdef DL_NOW
11583     # define LT_DLLAZY_OR_NOW DL_NOW
11584     # else
11585     # define LT_DLLAZY_OR_NOW 0
11586     # endif
11587     # endif
11588     # endif
11589     # endif
11590     #endif
11591    
11592     void fnord() { int i=42;}
11593     int main ()
11594     {
11595     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11596     int status = $lt_dlunknown;
11597    
11598     if (self)
11599     {
11600     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11601     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11602     /* dlclose (self); */
11603     }
11604 michael 912 else
11605 michael 945 puts (dlerror ());
11606    
11607     return status;
11608     }
11609     _LT_EOF
11610 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11611 michael 945 (eval $ac_link) 2>&5
11612     ac_status=$?
11613 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11615 michael 945 (./conftest; exit; ) >&5 2>/dev/null
11616     lt_status=$?
11617     case x$lt_status in
11618     x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11619     x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11620     x$lt_dlunknown|x*) ;;
11621 michael 912 esac
11622 michael 945 else :
11623     # compilation failed
11624    
11625 michael 912 fi
11626 michael 945 fi
11627     rm -fr conftest*
11628 michael 912
11629 michael 945 LIBS="$save_LIBS"
11630 michael 912
11631 michael 945 fi
11632 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11633 michael 945 $as_echo "$libltdl_cv_need_uscore" >&6; }
11634     fi
11635     fi
11636 michael 912
11637 michael 945 if test x"$libltdl_cv_need_uscore" = xyes; then
11638 michael 912
11639 michael 967 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11640 michael 912
11641 michael 945 fi
11642 michael 912
11643 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11644 michael 945 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11645 michael 967 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11646 michael 945 $as_echo_n "(cached) " >&6
11647     else
11648     # PORTME does your system automatically load deplibs for dlopen?
11649     # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11650     # For now, we just catch OSes we know something about -- in the
11651     # future, we'll try test this programmatically.
11652     lt_cv_sys_dlopen_deplibs=unknown
11653     case $host_os in
11654     aix3*|aix4.1.*|aix4.2.*)
11655     # Unknown whether this is true for these versions of AIX, but
11656     # we want this `case' here to explicitly catch those versions.
11657     lt_cv_sys_dlopen_deplibs=unknown
11658     ;;
11659     aix[4-9]*)
11660     lt_cv_sys_dlopen_deplibs=yes
11661     ;;
11662     amigaos*)
11663     case $host_cpu in
11664     powerpc)
11665     lt_cv_sys_dlopen_deplibs=no
11666 michael 912 ;;
11667     esac
11668     ;;
11669 michael 945 darwin*)
11670     # Assuming the user has installed a libdl from somewhere, this is true
11671     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11672     lt_cv_sys_dlopen_deplibs=yes
11673 michael 912 ;;
11674 michael 945 freebsd* | dragonfly*)
11675     lt_cv_sys_dlopen_deplibs=yes
11676 michael 912 ;;
11677 michael 945 gnu* | linux* | k*bsd*-gnu)
11678     # GNU and its variants, using gnu ld.so (Glibc)
11679     lt_cv_sys_dlopen_deplibs=yes
11680 michael 912 ;;
11681 michael 945 hpux10*|hpux11*)
11682     lt_cv_sys_dlopen_deplibs=yes
11683 michael 912 ;;
11684 michael 945 interix*)
11685     lt_cv_sys_dlopen_deplibs=yes
11686 michael 912 ;;
11687 michael 945 irix[12345]*|irix6.[01]*)
11688     # Catch all versions of IRIX before 6.2, and indicate that we don't
11689     # know how it worked for any of those versions.
11690     lt_cv_sys_dlopen_deplibs=unknown
11691 michael 912 ;;
11692 michael 945 irix*)
11693     # The case above catches anything before 6.2, and it's known that
11694     # at 6.2 and later dlopen does load deplibs.
11695     lt_cv_sys_dlopen_deplibs=yes
11696 michael 912 ;;
11697 michael 945 netbsd*)
11698     lt_cv_sys_dlopen_deplibs=yes
11699 michael 912 ;;
11700 michael 945 openbsd*)
11701     lt_cv_sys_dlopen_deplibs=yes
11702 michael 912 ;;
11703 michael 945 osf[1234]*)
11704     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11705     # it did *not* use an RPATH in a shared library to find objects the
11706     # library depends on, so we explicitly say `no'.
11707     lt_cv_sys_dlopen_deplibs=no
11708     ;;
11709     osf5.0|osf5.0a|osf5.1)
11710     # dlopen *does* load deplibs and with the right loader patch applied
11711     # it even uses RPATH in a shared library to search for shared objects
11712     # that the library depends on, but there's no easy way to know if that
11713     # patch is installed. Since this is the case, all we can really
11714     # say is unknown -- it depends on the patch being installed. If
11715     # it is, this changes to `yes'. Without it, it would be `no'.
11716     lt_cv_sys_dlopen_deplibs=unknown
11717     ;;
11718     osf*)
11719     # the two cases above should catch all versions of osf <= 5.1. Read
11720     # the comments above for what we know about them.
11721     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11722     # is used to find them so we can finally say `yes'.
11723     lt_cv_sys_dlopen_deplibs=yes
11724     ;;
11725     qnx*)
11726     lt_cv_sys_dlopen_deplibs=yes
11727     ;;
11728     solaris*)
11729     lt_cv_sys_dlopen_deplibs=yes
11730     ;;
11731     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11732     libltdl_cv_sys_dlopen_deplibs=yes
11733     ;;
11734 michael 912 esac
11735    
11736 michael 945 fi
11737 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11738 michael 945 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11739     if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11740 michael 912
11741 michael 967 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11742 michael 912
11743 michael 945 fi
11744 michael 912
11745 michael 945 :
11746 michael 912
11747 michael 945 for ac_header in argz.h
11748 michael 967 do :
11749     ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11750     "
11751     if test "x$ac_cv_header_argz_h" = x""yes; then :
11752 michael 945 cat >>confdefs.h <<_ACEOF
11753 michael 967 #define HAVE_ARGZ_H 1
11754 michael 945 _ACEOF
11755 michael 912
11756     fi
11757    
11758 michael 945 done
11759 michael 912
11760    
11761 michael 967 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11762 michael 945 # include <argz.h>
11763     #endif
11764 michael 967 "
11765     if test "x$ac_cv_type_error_t" = x""yes; then :
11766 michael 912
11767 michael 945 cat >>confdefs.h <<_ACEOF
11768     #define HAVE_ERROR_T 1
11769     _ACEOF
11770 michael 912
11771    
11772 michael 945 else
11773 michael 912
11774 michael 967 $as_echo "#define error_t int" >>confdefs.h
11775 michael 912
11776    
11777 michael 967 $as_echo "#define __error_t_defined 1" >>confdefs.h
11778 michael 912
11779 michael 945 fi
11780 michael 912
11781    
11782 michael 945 ARGZ_H=
11783     for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11784     argz_next argz_stringify
11785 michael 967 do :
11786     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11787     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11788     eval as_val=\$$as_ac_var
11789     if test "x$as_val" = x""yes; then :
11790 michael 945 cat >>confdefs.h <<_ACEOF
11791     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11792     _ACEOF
11793 michael 912
11794 michael 945 else
11795     ARGZ_H=argz.h;
11796 michael 912
11797 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11798 michael 912
11799 michael 945 fi
11800     done
11801 michael 912
11802    
11803 michael 967 if test -z "$ARGZ_H"; then :
11804     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11805 michael 945 $as_echo_n "checking if argz actually works... " >&6; }
11806 michael 967 if test "${lt_cv_sys_argz_works+set}" = set; then :
11807 michael 945 $as_echo_n "(cached) " >&6
11808 michael 912 else
11809 michael 945 case $host_os in #(
11810     *cygwin*)
11811     lt_cv_sys_argz_works=no
11812     if test "$cross_compiling" != no; then
11813     lt_cv_sys_argz_works="guessing no"
11814     else
11815     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11816     save_IFS=$IFS
11817     IFS=-.
11818     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11819     IFS=$save_IFS
11820     lt_os_major=${2-0}
11821     lt_os_minor=${3-0}
11822     lt_os_micro=${4-0}
11823     if test "$lt_os_major" -gt 1 \
11824     || { test "$lt_os_major" -eq 1 \
11825     && { test "$lt_os_minor" -gt 5 \
11826     || { test "$lt_os_minor" -eq 5 \
11827     && test "$lt_os_micro" -gt 24; }; }; }; then
11828     lt_cv_sys_argz_works=yes
11829     fi
11830     fi
11831     ;; #(
11832     *) lt_cv_sys_argz_works=yes ;;
11833     esac
11834 michael 912 fi
11835 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11836 michael 945 $as_echo "$lt_cv_sys_argz_works" >&6; }
11837 michael 967 if test $lt_cv_sys_argz_works = yes; then :
11838 michael 912
11839 michael 967 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11840 michael 912
11841 michael 945 else
11842     ARGZ_H=argz.h
11843 michael 912
11844    
11845 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11846 michael 912
11847 michael 945 fi
11848     fi
11849 michael 912
11850    
11851    
11852 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11853 michael 945 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11854 michael 967 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11855 db 941 $as_echo_n "(cached) " >&6
11856 michael 912 else
11857 michael 945 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11858     libltdl_cv_preloaded_symbols=yes
11859     else
11860     libltdl_cv_preloaded_symbols=no
11861     fi
11862 michael 912
11863     fi
11864 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11865 michael 945 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11866     if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11867 michael 912
11868 michael 967 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11869 michael 912
11870     fi
11871    
11872    
11873    
11874 michael 945 # Set options
11875 michael 912
11876    
11877    
11878    
11879 db 941
11880 michael 912
11881    
11882    
11883    
11884    
11885    
11886    
11887 michael 945 # Check whether --with-included_ltdl was given.
11888 michael 967 if test "${with_included_ltdl+set}" = set; then :
11889 michael 945 withval=$with_included_ltdl;
11890     fi
11891 db 941
11892 michael 912
11893 michael 945 if test "x$with_included_ltdl" != xyes; then
11894     # We are not being forced to use the included libltdl sources, so
11895     # decide whether there is a useful installed version we can use.
11896 michael 967 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
11897 michael 912
11898 michael 967 "
11899     if test "x$ac_cv_header_ltdl_h" = x""yes; then :
11900     ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
11901 michael 945 #include <ltdl.h>
11902 michael 967 "
11903     if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
11904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
11905 michael 945 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
11906 michael 967 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
11907 michael 945 $as_echo_n "(cached) " >&6
11908     else
11909     ac_check_lib_save_LIBS=$LIBS
11910     LIBS="-lltdl $LIBS"
11911 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11912 michael 912 /* end confdefs.h. */
11913    
11914 michael 945 /* Override any GCC internal prototype to avoid an error.
11915     Use char because int might match the return type of a GCC
11916     builtin and then its argument prototype would still apply. */
11917     #ifdef __cplusplus
11918     extern "C"
11919     #endif
11920     char lt_dladvise_preload ();
11921 michael 912 int
11922     main ()
11923     {
11924 michael 945 return lt_dladvise_preload ();
11925 michael 912 ;
11926     return 0;
11927     }
11928     _ACEOF
11929 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11930 michael 945 ac_cv_lib_ltdl_lt_dladvise_preload=yes
11931 michael 912 else
11932 michael 967 ac_cv_lib_ltdl_lt_dladvise_preload=no
11933 michael 912 fi
11934 michael 967 rm -f core conftest.err conftest.$ac_objext \
11935     conftest$ac_exeext conftest.$ac_ext
11936 michael 945 LIBS=$ac_check_lib_save_LIBS
11937     fi
11938 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
11939 michael 945 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
11940 michael 967 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
11941 michael 945 with_included_ltdl=no
11942     else
11943     with_included_ltdl=yes
11944     fi
11945 michael 912
11946 michael 945 else
11947     with_included_ltdl=yes
11948     fi
11949 michael 912
11950 michael 945 else
11951     with_included_ltdl=yes
11952     fi
11953 michael 912
11954    
11955 michael 945 fi
11956 michael 912
11957    
11958    
11959    
11960    
11961    
11962    
11963    
11964    
11965 michael 945 # Check whether --with-ltdl_include was given.
11966 michael 967 if test "${with_ltdl_include+set}" = set; then :
11967 michael 945 withval=$with_ltdl_include;
11968     fi
11969 michael 912
11970    
11971 michael 945 if test -n "$with_ltdl_include"; then
11972     if test -f "$with_ltdl_include/ltdl.h"; then :
11973 michael 912 else
11974 michael 967 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11975 michael 912 fi
11976 michael 945 else
11977     with_ltdl_include=no
11978     fi
11979 michael 912
11980    
11981 michael 945 # Check whether --with-ltdl_lib was given.
11982 michael 967 if test "${with_ltdl_lib+set}" = set; then :
11983 michael 945 withval=$with_ltdl_lib;
11984     fi
11985 michael 912
11986    
11987 michael 945 if test -n "$with_ltdl_lib"; then
11988     if test -f "$with_ltdl_lib/libltdl.la"; then :
11989 michael 912 else
11990 michael 967 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11991 michael 912 fi
11992 michael 945 else
11993     with_ltdl_lib=no
11994     fi
11995 michael 912
11996 michael 945 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11997     ,yes,no,no,)
11998     case $enable_ltdl_convenience in
11999 michael 967 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
12000 michael 945 "") enable_ltdl_convenience=yes
12001     ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12002     esac
12003     LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12004     LTDLDEPS=$LIBLTDL
12005     LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12006 michael 912
12007    
12008    
12009    
12010    
12011 michael 945 # For backwards non-gettext consistent compatibility...
12012     INCLTDL="$LTDLINCL"
12013 michael 912
12014    
12015 michael 945 ;;
12016     ,no,no,no,)
12017     # If the included ltdl is not to be used, then use the
12018     # preinstalled libltdl we found.
12019 michael 912
12020 michael 967 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12021 michael 912
12022 michael 945 LIBLTDL=-lltdl
12023     LTDLDEPS=
12024     LTDLINCL=
12025 michael 912 ;;
12026 michael 945 ,no*,no,*)
12027 michael 967 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12028 michael 912 ;;
12029 michael 945 *) with_included_ltdl=no
12030     LIBLTDL="-L$with_ltdl_lib -lltdl"
12031     LTDLDEPS=
12032     LTDLINCL="-I$with_ltdl_include"
12033     ;;
12034     esac
12035     INCLTDL="$LTDLINCL"
12036 michael 912
12037 michael 945 # Report our decision...
12038 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12039 michael 945 $as_echo_n "checking where to find libltdl headers... " >&6; }
12040 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12041 michael 945 $as_echo "$LTDLINCL" >&6; }
12042 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12043 michael 945 $as_echo_n "checking where to find libltdl library... " >&6; }
12044 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12045 michael 945 $as_echo "$LIBLTDL" >&6; }
12046 michael 912
12047    
12048    
12049 michael 945 # Check whether --enable-ltdl-install was given.
12050 michael 967 if test "${enable_ltdl_install+set}" = set; then :
12051 michael 945 enableval=$enable_ltdl_install;
12052     fi
12053 michael 912
12054    
12055 michael 945 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12056     *yes*) ;;
12057     *) enable_ltdl_convenience=yes ;;
12058 michael 912 esac
12059    
12060 michael 945 if test x"${enable_ltdl_install-no}" != xno; then
12061     INSTALL_LTDL_TRUE=
12062     INSTALL_LTDL_FALSE='#'
12063 db 941 else
12064 michael 945 INSTALL_LTDL_TRUE='#'
12065     INSTALL_LTDL_FALSE=
12066 db 941 fi
12067    
12068 michael 945 if test x"${enable_ltdl_convenience-no}" != xno; then
12069     CONVENIENCE_LTDL_TRUE=
12070     CONVENIENCE_LTDL_FALSE='#'
12071 db 941 else
12072 michael 945 CONVENIENCE_LTDL_TRUE='#'
12073     CONVENIENCE_LTDL_FALSE=
12074 db 941 fi
12075    
12076    
12077 michael 912
12078 michael 945 subdirs="$subdirs libltdl"
12079 michael 912
12080    
12081    
12082    
12083    
12084 michael 945 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12085     # the user used. This is so that ltdl.h can pick up the parent projects
12086     # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12087     # definitions required by ltdl.c.
12088     # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12089 michael 912
12090    
12091    
12092 michael 945 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12093 michael 967 do :
12094     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12095     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12096     "
12097     eval as_val=\$$as_ac_Header
12098     if test "x$as_val" = x""yes; then :
12099 michael 945 cat >>confdefs.h <<_ACEOF
12100     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12101     _ACEOF
12102 michael 912
12103 michael 945 fi
12104 michael 912
12105 michael 945 done
12106 michael 912
12107    
12108 michael 945 for ac_func in closedir opendir readdir
12109 michael 967 do :
12110     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12111     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12112     eval as_val=\$$as_ac_var
12113     if test "x$as_val" = x""yes; then :
12114 michael 945 cat >>confdefs.h <<_ACEOF
12115     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12116     _ACEOF
12117 michael 912
12118 michael 945 else
12119 michael 912
12120    
12121 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12122 michael 912
12123     fi
12124     done
12125    
12126 michael 945 for ac_func in strlcat strlcpy
12127 michael 967 do :
12128     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12129     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12130     eval as_val=\$$as_ac_var
12131     if test "x$as_val" = x""yes; then :
12132 michael 945 cat >>confdefs.h <<_ACEOF
12133     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12134     _ACEOF
12135 michael 912
12136     else
12137    
12138    
12139 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12140 michael 912
12141     fi
12142 michael 945 done
12143 michael 912
12144    
12145    
12146 michael 945 cat >>confdefs.h <<_ACEOF
12147     #define LT_LIBEXT "$libext"
12148     _ACEOF
12149 michael 912
12150    
12151 michael 945 name=ltdl
12152     LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12153 michael 912
12154    
12155    
12156    
12157    
12158    
12159    
12160    
12161 michael 945 # Only expand once:
12162 michael 912
12163    
12164 michael 1053 LIBTOOL="$LIBTOOL --silent"
12165 michael 912
12166     # Checks for libraries.
12167    
12168 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12169 db 941 $as_echo_n "checking for library containing socket... " >&6; }
12170 michael 967 if test "${ac_cv_search_socket+set}" = set; then :
12171 db 941 $as_echo_n "(cached) " >&6
12172 michael 912 else
12173     ac_func_search_save_LIBS=$LIBS
12174 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12175 michael 912 /* end confdefs.h. */
12176    
12177     /* Override any GCC internal prototype to avoid an error.
12178     Use char because int might match the return type of a GCC
12179     builtin and then its argument prototype would still apply. */
12180     #ifdef __cplusplus
12181     extern "C"
12182     #endif
12183     char socket ();
12184     int
12185     main ()
12186     {
12187     return socket ();
12188     ;
12189     return 0;
12190     }
12191     _ACEOF
12192     for ac_lib in '' socket; do
12193     if test -z "$ac_lib"; then
12194     ac_res="none required"
12195     else
12196     ac_res=-l$ac_lib
12197     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12198     fi
12199 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12200 michael 912 ac_cv_search_socket=$ac_res
12201     fi
12202 michael 967 rm -f core conftest.err conftest.$ac_objext \
12203     conftest$ac_exeext
12204     if test "${ac_cv_search_socket+set}" = set; then :
12205 michael 912 break
12206     fi
12207     done
12208 michael 967 if test "${ac_cv_search_socket+set}" = set; then :
12209    
12210 michael 912 else
12211     ac_cv_search_socket=no
12212     fi
12213     rm conftest.$ac_ext
12214     LIBS=$ac_func_search_save_LIBS
12215     fi
12216 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12217 db 941 $as_echo "$ac_cv_search_socket" >&6; }
12218 michael 912 ac_res=$ac_cv_search_socket
12219 michael 967 if test "$ac_res" != no; then :
12220 michael 912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12221    
12222     else
12223 michael 967 as_fn_error "socket library not found" "$LINENO" 5
12224 michael 912 fi
12225    
12226 michael 967 for ac_func in inet_aton inet_ntop inet_pton
12227     do :
12228     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12229     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12230     eval as_val=\$$as_ac_var
12231     if test "x$as_val" = x""yes; then :
12232 michael 912 cat >>confdefs.h <<_ACEOF
12233 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12234 michael 912 _ACEOF
12235    
12236     fi
12237     done
12238    
12239 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12240 db 941 #include <sys/socket.h>
12241     #include <netdb.h>
12242    
12243 michael 967 "
12244     if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12245 db 941
12246 michael 912 cat >>confdefs.h <<_ACEOF
12247     #define HAVE_STRUCT_SOCKADDR_IN 1
12248     _ACEOF
12249    
12250    
12251     fi
12252 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12253 db 941 #include <sys/socket.h>
12254     #include <netdb.h>
12255    
12256 michael 967 "
12257     if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12258 db 941
12259 michael 912 cat >>confdefs.h <<_ACEOF
12260     #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12261     _ACEOF
12262    
12263    
12264     fi
12265 michael 967 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12266 db 941 #include <sys/socket.h>
12267     #include <netdb.h>
12268    
12269 michael 967 "
12270     if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12271 db 941
12272 michael 912 cat >>confdefs.h <<_ACEOF
12273     #define HAVE_STRUCT_ADDRINFO 1
12274     _ACEOF
12275    
12276    
12277     fi
12278    
12279 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>
12280 db 941 <sys/socket.h>
12281 michael 967 "
12282     if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12283 michael 912
12284     cat >>confdefs.h <<_ACEOF
12285     #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12286     _ACEOF
12287    
12288    
12289     fi
12290    
12291    
12292    
12293 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12294     if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12295 michael 912
12296     cat >>confdefs.h <<_ACEOF
12297     #define HAVE_STRUCT_SOCKADDR_IN6 1
12298     _ACEOF
12299    
12300    
12301     else
12302    
12303 michael 967 $as_echo "#define IPV6 1" >>confdefs.h
12304 michael 912
12305     fi
12306    
12307    
12308    
12309     # Checks for typedefs, structures, and compiler characteristics.
12310 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12311 db 941 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12312 michael 967 if test "${ac_cv_c_bigendian+set}" = set; then :
12313 db 941 $as_echo_n "(cached) " >&6
12314 michael 912 else
12315 db 941 ac_cv_c_bigendian=unknown
12316 michael 942 # See if we're dealing with a universal compiler.
12317 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12318 michael 912 /* end confdefs.h. */
12319 michael 942 #ifndef __APPLE_CC__
12320     not a universal capable compiler
12321 db 941 #endif
12322     typedef int dummy;
12323    
12324     _ACEOF
12325 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12326 michael 942
12327     # Check for potential -arch flags. It is not universal unless
12328 michael 967 # there are at least two -arch flags with different values.
12329     ac_arch=
12330     ac_prev=
12331     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12332     if test -n "$ac_prev"; then
12333     case $ac_word in
12334     i?86 | x86_64 | ppc | ppc64)
12335     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12336     ac_arch=$ac_word
12337     else
12338     ac_cv_c_bigendian=universal
12339     break
12340     fi
12341     ;;
12342     esac
12343     ac_prev=
12344     elif test "x$ac_word" = "x-arch"; then
12345     ac_prev=arch
12346     fi
12347     done
12348 db 941 fi
12349     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12350     if test $ac_cv_c_bigendian = unknown; then
12351     # See if sys/param.h defines the BYTE_ORDER macro.
12352 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353 db 941 /* end confdefs.h. */
12354 michael 912 #include <sys/types.h>
12355 db 941 #include <sys/param.h>
12356 michael 912
12357     int
12358     main ()
12359     {
12360 db 941 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12361     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12362     && LITTLE_ENDIAN)
12363     bogus endian macros
12364     #endif
12365 michael 912
12366     ;
12367     return 0;
12368     }
12369     _ACEOF
12370 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12371 michael 912 # It does; now see whether it defined to BIG_ENDIAN or not.
12372 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12373 michael 912 /* end confdefs.h. */
12374     #include <sys/types.h>
12375 db 941 #include <sys/param.h>
12376 michael 912
12377     int
12378     main ()
12379     {
12380     #if BYTE_ORDER != BIG_ENDIAN
12381 db 941 not big endian
12382     #endif
12383 michael 912
12384     ;
12385     return 0;
12386     }
12387     _ACEOF
12388 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12389 michael 912 ac_cv_c_bigendian=yes
12390     else
12391 michael 967 ac_cv_c_bigendian=no
12392 michael 912 fi
12393     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12394 db 941 fi
12395     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12396     fi
12397     if test $ac_cv_c_bigendian = unknown; then
12398     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12399 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12400 michael 912 /* end confdefs.h. */
12401 db 941 #include <limits.h>
12402    
12403 michael 912 int
12404     main ()
12405     {
12406 db 941 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12407     bogus endian macros
12408     #endif
12409    
12410 michael 912 ;
12411     return 0;
12412     }
12413     _ACEOF
12414 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12415 db 941 # It does; now see whether it defined to _BIG_ENDIAN or not.
12416 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417 michael 912 /* end confdefs.h. */
12418 db 941 #include <limits.h>
12419    
12420 michael 912 int
12421     main ()
12422     {
12423 db 941 #ifndef _BIG_ENDIAN
12424     not big endian
12425     #endif
12426 michael 912
12427     ;
12428     return 0;
12429     }
12430     _ACEOF
12431 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12432 db 941 ac_cv_c_bigendian=yes
12433 michael 912 else
12434 michael 967 ac_cv_c_bigendian=no
12435 michael 912 fi
12436 db 941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437 michael 912 fi
12438     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12439 db 941 fi
12440     if test $ac_cv_c_bigendian = unknown; then
12441     # Compile a test program.
12442 michael 967 if test "$cross_compiling" = yes; then :
12443 db 941 # Try to guess by grepping values from an object file.
12444 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12445 michael 912 /* end confdefs.h. */
12446 db 941 short int ascii_mm[] =
12447     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12448     short int ascii_ii[] =
12449     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12450     int use_ascii (int i) {
12451     return ascii_mm[i] + ascii_ii[i];
12452     }
12453     short int ebcdic_ii[] =
12454     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12455     short int ebcdic_mm[] =
12456     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12457     int use_ebcdic (int i) {
12458     return ebcdic_mm[i] + ebcdic_ii[i];
12459     }
12460     extern int foo;
12461    
12462 michael 912 int
12463     main ()
12464     {
12465 db 941 return use_ascii (foo) == use_ebcdic (foo);
12466 michael 912 ;
12467     return 0;
12468     }
12469     _ACEOF
12470 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12471 db 941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12472     ac_cv_c_bigendian=yes
12473     fi
12474     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12475     if test "$ac_cv_c_bigendian" = unknown; then
12476     ac_cv_c_bigendian=no
12477     else
12478     # finding both strings is unlikely to happen, but who knows?
12479     ac_cv_c_bigendian=unknown
12480     fi
12481     fi
12482 michael 912 fi
12483     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484 db 941 else
12485 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 db 941 /* end confdefs.h. */
12487     $ac_includes_default
12488     int
12489     main ()
12490     {
12491    
12492     /* Are we little or big endian? From Harbison&Steele. */
12493     union
12494     {
12495     long int l;
12496     char c[sizeof (long int)];
12497     } u;
12498     u.l = 1;
12499     return u.c[sizeof (long int) - 1] == 1;
12500    
12501     ;
12502     return 0;
12503     }
12504     _ACEOF
12505 michael 967 if ac_fn_c_try_run "$LINENO"; then :
12506 db 941 ac_cv_c_bigendian=no
12507     else
12508 michael 967 ac_cv_c_bigendian=yes
12509 michael 912 fi
12510 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12511     conftest.$ac_objext conftest.beam conftest.$ac_ext
12512 db 941 fi
12513 michael 912
12514 db 941 fi
12515     fi
12516 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12517 db 941 $as_echo "$ac_cv_c_bigendian" >&6; }
12518     case $ac_cv_c_bigendian in #(
12519     yes)
12520 michael 967 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12521 db 941 ;; #(
12522     no)
12523     ;; #(
12524     universal)
12525 michael 942
12526 michael 967 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12527 michael 942
12528     ;; #(
12529 db 941 *)
12530 michael 967 as_fn_error "unknown endianness
12531     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12532 db 941 esac
12533    
12534    
12535 michael 912 # Checks for library functions.
12536    
12537    
12538    
12539 michael 967 for ac_func in $ac_func_list
12540     do :
12541     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12542     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12543     eval as_val=\$$as_ac_var
12544     if test "x$as_val" = x""yes; then :
12545 michael 912 cat >>confdefs.h <<_ACEOF
12546 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12547 michael 912 _ACEOF
12548    
12549     fi
12550     done
12551    
12552    
12553    
12554    
12555    
12556    
12557    
12558    
12559    
12560    
12561 michael 942
12562    
12563    
12564 michael 923 # Checks for header files.
12565 michael 912
12566    
12567    
12568 michael 967 for ac_header in $ac_header_list
12569     do :
12570     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12571     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12572     "
12573     eval as_val=\$$as_ac_Header
12574     if test "x$as_val" = x""yes; then :
12575 michael 912 cat >>confdefs.h <<_ACEOF
12576 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12577 michael 912 _ACEOF
12578    
12579     fi
12580    
12581     done
12582    
12583    
12584    
12585    
12586    
12587    
12588    
12589    
12590    
12591    
12592    
12593    
12594    
12595    
12596    
12597    
12598    
12599    
12600    
12601    
12602    
12603    
12604    
12605    
12606    
12607    
12608    
12609 michael 1015 # check for /dev/null so we can use it to hold evil fd's
12610 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12611 db 941 $as_echo_n "checking for /dev/null... " >&6; }
12612 michael 1010 if test -c /dev/null; then :
12613 michael 915
12614 michael 1010
12615 michael 967 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12616 michael 915
12617 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12618 db 941 $as_echo "yes" >&6; }
12619 michael 923 else
12620    
12621 michael 1010
12622 michael 967 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12623 michael 923
12624 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12625 db 941 $as_echo "no - using devnull.log" >&6; }
12626 michael 923 fi
12627    
12628    
12629 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12630 db 941 $as_echo_n "checking for library containing crypt... " >&6; }
12631 michael 967 if test "${ac_cv_search_crypt+set}" = set; then :
12632 db 941 $as_echo_n "(cached) " >&6
12633 michael 923 else
12634     ac_func_search_save_LIBS=$LIBS
12635 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12636 michael 923 /* end confdefs.h. */
12637    
12638     /* Override any GCC internal prototype to avoid an error.
12639     Use char because int might match the return type of a GCC
12640     builtin and then its argument prototype would still apply. */
12641     #ifdef __cplusplus
12642     extern "C"
12643     #endif
12644     char crypt ();
12645     int
12646     main ()
12647     {
12648     return crypt ();
12649     ;
12650     return 0;
12651     }
12652     _ACEOF
12653 michael 977 for ac_lib in '' crypt; do
12654 michael 923 if test -z "$ac_lib"; then
12655     ac_res="none required"
12656     else
12657     ac_res=-l$ac_lib
12658     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12659     fi
12660 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12661 michael 923 ac_cv_search_crypt=$ac_res
12662     fi
12663 michael 967 rm -f core conftest.err conftest.$ac_objext \
12664     conftest$ac_exeext
12665     if test "${ac_cv_search_crypt+set}" = set; then :
12666 michael 923 break
12667     fi
12668     done
12669 michael 967 if test "${ac_cv_search_crypt+set}" = set; then :
12670    
12671 michael 923 else
12672     ac_cv_search_crypt=no
12673     fi
12674     rm conftest.$ac_ext
12675     LIBS=$ac_func_search_save_LIBS
12676     fi
12677 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12678 db 941 $as_echo "$ac_cv_search_crypt" >&6; }
12679 michael 923 ac_res=$ac_cv_search_crypt
12680 michael 967 if test "$ac_res" != no; then :
12681 michael 923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12682    
12683     fi
12684    
12685    
12686    
12687    
12688     # Check whether --with-zlib-path was given.
12689 michael 967 if test "${with_zlib_path+set}" = set; then :
12690 michael 923 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12691     fi
12692    
12693    
12694     # Check whether --enable-zlib was given.
12695 michael 967 if test "${enable_zlib+set}" = set; then :
12696 michael 923 enableval=$enable_zlib; zlib=$enableval
12697     else
12698     zlib=yes
12699     fi
12700    
12701    
12702 michael 1010 if test "$zlib" = "yes"; then :
12703    
12704 michael 967 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12705     if test "x$ac_cv_header_zlib_h" = x""yes; then :
12706     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12707 db 941 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12708 michael 967 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12709 db 941 $as_echo_n "(cached) " >&6
12710 michael 923 else
12711     ac_check_lib_save_LIBS=$LIBS
12712     LIBS="-lz $LIBS"
12713 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12714 michael 923 /* end confdefs.h. */
12715    
12716     /* Override any GCC internal prototype to avoid an error.
12717     Use char because int might match the return type of a GCC
12718     builtin and then its argument prototype would still apply. */
12719     #ifdef __cplusplus
12720     extern "C"
12721     #endif
12722     char zlibVersion ();
12723     int
12724     main ()
12725     {
12726     return zlibVersion ();
12727     ;
12728     return 0;
12729     }
12730     _ACEOF
12731 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12732 michael 923 ac_cv_lib_z_zlibVersion=yes
12733     else
12734 michael 967 ac_cv_lib_z_zlibVersion=no
12735 michael 923 fi
12736 michael 967 rm -f core conftest.err conftest.$ac_objext \
12737     conftest$ac_exeext conftest.$ac_ext
12738 michael 923 LIBS=$ac_check_lib_save_LIBS
12739     fi
12740 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12741 db 941 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12742 michael 967 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12743 michael 923
12744     LIBS="-lz $LIBS"
12745    
12746 michael 967 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12747 michael 923
12748    
12749     else
12750     zlib=no
12751     fi
12752    
12753    
12754     else
12755     zlib=no
12756     fi
12757    
12758    
12759 michael 1010
12760 michael 923 fi
12761    
12762    
12763 michael 1009 # Check whether --with-libpcre-path was given.
12764     if test "${with_libpcre_path+set}" = set; then :
12765     withval=$with_libpcre_path; LDFLAGS="-L$withval $LDFLAGS"
12766     fi
12767    
12768    
12769     # Check whether --enable-libpcre was given.
12770     if test "${enable_libpcre+set}" = set; then :
12771     enableval=$enable_libpcre; libpcre=$enableval
12772     else
12773     libpcre=yes
12774     fi
12775    
12776    
12777 michael 1010 if test "$libpcre" = "yes"; then :
12778    
12779 michael 1009 ac_fn_c_check_header_mongrel "$LINENO" "pcre.h" "ac_cv_header_pcre_h" "$ac_includes_default"
12780     if test "x$ac_cv_header_pcre_h" = x""yes; then :
12781     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcre_study in -lpcre" >&5
12782     $as_echo_n "checking for pcre_study in -lpcre... " >&6; }
12783     if test "${ac_cv_lib_pcre_pcre_study+set}" = set; then :
12784     $as_echo_n "(cached) " >&6
12785     else
12786     ac_check_lib_save_LIBS=$LIBS
12787     LIBS="-lpcre $LIBS"
12788     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12789     /* end confdefs.h. */
12790    
12791     /* Override any GCC internal prototype to avoid an error.
12792     Use char because int might match the return type of a GCC
12793     builtin and then its argument prototype would still apply. */
12794     #ifdef __cplusplus
12795     extern "C"
12796     #endif
12797     char pcre_study ();
12798     int
12799     main ()
12800     {
12801     return pcre_study ();
12802     ;
12803     return 0;
12804     }
12805     _ACEOF
12806     if ac_fn_c_try_link "$LINENO"; then :
12807     ac_cv_lib_pcre_pcre_study=yes
12808     else
12809     ac_cv_lib_pcre_pcre_study=no
12810     fi
12811     rm -f core conftest.err conftest.$ac_objext \
12812     conftest$ac_exeext conftest.$ac_ext
12813     LIBS=$ac_check_lib_save_LIBS
12814     fi
12815     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcre_pcre_study" >&5
12816     $as_echo "$ac_cv_lib_pcre_pcre_study" >&6; }
12817     if test "x$ac_cv_lib_pcre_pcre_study" = x""yes; then :
12818    
12819     LIBS="-lpcre $LIBS"
12820    
12821     $as_echo "#define HAVE_LIBPCRE 1" >>confdefs.h
12822    
12823    
12824     else
12825     libpcre=no
12826     fi
12827    
12828    
12829     else
12830     libpcre=no
12831     fi
12832    
12833    
12834 michael 1010
12835 michael 1009 fi
12836     if test "$libpcre" = yes; then
12837     ENABLE_PCRE_TRUE=
12838     ENABLE_PCRE_FALSE='#'
12839     else
12840     ENABLE_PCRE_TRUE='#'
12841     ENABLE_PCRE_FALSE=
12842     fi
12843    
12844    
12845    
12846 michael 912 # Check whether --enable-openssl was given.
12847 michael 967 if test "${enable_openssl+set}" = set; then :
12848 michael 912 enableval=$enable_openssl; cf_enable_openssl=$enableval
12849     else
12850     cf_enable_openssl="auto"
12851     fi
12852    
12853 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12854 db 941 $as_echo_n "checking for OpenSSL... " >&6; }
12855 michael 912 if test "$cf_enable_openssl" != "no"; then
12856     cf_openssl_basedir=""
12857     if test "$cf_enable_openssl" != "auto" &&
12858     test "$cf_enable_openssl" != "yes"; then
12859     cf_openssl_basedir="${cf_enable_openssl}"
12860     else
12861     for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12862     /opt /opt/openssl /usr/local/openssl; do
12863     if test -f "${dirs}/include/openssl/opensslv.h"; then
12864     cf_openssl_basedir="${dirs}"
12865     break
12866     fi
12867     done
12868     unset dirs
12869     fi
12870    
12871     if test ! -z "$cf_openssl_basedir"; then
12872     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12873     CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12874     LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12875     else
12876     cf_openssl_basedir=""
12877     fi
12878     else
12879     if test -f "/usr/include/openssl/opensslv.h"; then
12880     cf_openssl_basedir="/usr"
12881     fi
12882     fi
12883    
12884     if test ! -z "$cf_openssl_basedir"; then
12885     LIBS="-lcrypto -lssl $LIBS"
12886 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
12887 db 941 $as_echo "$cf_openssl_basedir" >&6; }
12888 michael 912 cf_enable_openssl="yes"
12889 michael 924
12890 michael 967 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
12891 michael 912
12892     else
12893 michael 1010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
12894     $as_echo "not found. Please check your path." >&6; }
12895 michael 912 cf_enable_openssl="no"
12896     fi
12897     unset cf_openssl_basedir
12898     else
12899 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
12900 db 941 $as_echo "disabled" >&6; }
12901 michael 912 fi
12902 michael 1015
12903     if test "$cf_enable_openssl" != "no"; then :
12904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
12905     $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
12906     if test "$cross_compiling" = yes; then :
12907     cf_openssl_version_ok=no
12908     else
12909     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12910     /* end confdefs.h. */
12911    
12912     #include <openssl/opensslv.h>
12913     #include <stdlib.h>
12914     int
12915     main ()
12916     {
12917     exit(!(OPENSSL_VERSION_NUMBER >= 0x00907000));
12918     ;
12919     return 0;
12920     }
12921     _ACEOF
12922     if ac_fn_c_try_run "$LINENO"; then :
12923     cf_openssl_version_ok=yes
12924     else
12925     cf_openssl_version_ok=no
12926     fi
12927     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12928     conftest.$ac_objext conftest.beam conftest.$ac_ext
12929     fi
12930    
12931    
12932     if test "$cf_openssl_version_ok" = "yes"; then :
12933     { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
12934     $as_echo "found" >&6; }
12935    
12936     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSA_free in -lcrypto" >&5
12937     $as_echo_n "checking for RSA_free in -lcrypto... " >&6; }
12938     if test "${ac_cv_lib_crypto_RSA_free+set}" = set; then :
12939     $as_echo_n "(cached) " >&6
12940     else
12941     ac_check_lib_save_LIBS=$LIBS
12942     LIBS="-lcrypto $LIBS"
12943     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12944     /* end confdefs.h. */
12945    
12946     /* Override any GCC internal prototype to avoid an error.
12947     Use char because int might match the return type of a GCC
12948     builtin and then its argument prototype would still apply. */
12949     #ifdef __cplusplus
12950     extern "C"
12951     #endif
12952     char RSA_free ();
12953     int
12954     main ()
12955     {
12956     return RSA_free ();
12957     ;
12958     return 0;
12959     }
12960     _ACEOF
12961     if ac_fn_c_try_link "$LINENO"; then :
12962     ac_cv_lib_crypto_RSA_free=yes
12963     else
12964     ac_cv_lib_crypto_RSA_free=no
12965     fi
12966     rm -f core conftest.err conftest.$ac_objext \
12967     conftest$ac_exeext conftest.$ac_ext
12968     LIBS=$ac_check_lib_save_LIBS
12969     fi
12970     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RSA_free" >&5
12971     $as_echo "$ac_cv_lib_crypto_RSA_free" >&6; }
12972     if test "x$ac_cv_lib_crypto_RSA_free" = x""yes; then :
12973     cat >>confdefs.h <<_ACEOF
12974     #define HAVE_LIBCRYPTO 1
12975     _ACEOF
12976    
12977     LIBS="-lcrypto $LIBS"
12978    
12979     fi
12980    
12981     if test "$ac_cv_lib_crypto_RSA_free" = "yes"; then :
12982     for ac_func in EVP_bf_cfb \
12983     EVP_cast5_cfb \
12984     EVP_idea_cfb \
12985     EVP_rc5_32_12_16_cfb \
12986     EVP_des_ede3_cfb \
12987     EVP_des_cfb
12988     do :
12989     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12990     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12991     eval as_val=\$$as_ac_var
12992     if test "x$as_val" = x""yes; then :
12993     cat >>confdefs.h <<_ACEOF
12994     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12995     _ACEOF
12996    
12997     fi
12998     done
12999    
13000     fi
13001    
13002     else
13003     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
13004     $as_echo "no - OpenSSL support disabled" >&6; }
13005     cf_enable_openssl="no"
13006     fi
13007     fi
13008    
13009 michael 924 if test "$cf_enable_openssl" = yes; then
13010 michael 912 ENABLE_SSL_TRUE=
13011     ENABLE_SSL_FALSE='#'
13012     else
13013     ENABLE_SSL_TRUE='#'
13014     ENABLE_SSL_FALSE=
13015     fi
13016    
13017    
13018    
13019 michael 924 # Check whether --enable-assert was given.
13020 michael 967 if test "${enable_assert+set}" = set; then :
13021 michael 924 enableval=$enable_assert; assert=$enableval
13022     else
13023     assert=no
13024     fi
13025    
13026    
13027 michael 1010 if test "$assert" = "no"; then :
13028    
13029 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
13030 michael 925
13031 michael 924 fi
13032    
13033    
13034 michael 925 # Check whether --enable-small-net was given.
13035 michael 967 if test "${enable_small_net+set}" = set; then :
13036 michael 925 enableval=$enable_small_net; small_net=$enableval
13037     else
13038     small_net=no
13039     fi
13040    
13041    
13042 michael 1015 if test "$small_net" = "yes"; then :
13043 michael 925
13044 michael 1015
13045 michael 967 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13046 michael 925
13047    
13048 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13049 michael 925
13050    
13051 michael 967 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13052 michael 925
13053    
13054 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13055 michael 925
13056    
13057 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13058 michael 925
13059    
13060 michael 967 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13061 michael 925
13062    
13063 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13064 michael 925
13065    
13066 michael 967 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13067 michael 925
13068 michael 998
13069     $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13070    
13071    
13072     $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13073    
13074 michael 925 else
13075    
13076 michael 1015
13077    
13078 michael 967 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13079 michael 925
13080    
13081 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13082 michael 925
13083    
13084 michael 967 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13085 michael 925
13086    
13087 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13088 michael 925
13089    
13090 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13091 michael 925
13092    
13093 michael 967 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13094 michael 925
13095    
13096 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13097 michael 925
13098    
13099 michael 967 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13100 michael 925
13101 michael 998
13102     $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13103    
13104    
13105     $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13106    
13107 michael 925 fi
13108    
13109 db 941
13110 michael 912 # Argument processing.
13111    
13112     desired_iopoll_mechanism="none"
13113     # Check whether --enable-kqueue was given.
13114 michael 967 if test "${enable_kqueue+set}" = set; then :
13115 michael 912 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13116     fi
13117    
13118     # Check whether --enable-epoll was given.
13119 michael 967 if test "${enable_epoll+set}" = set; then :
13120 michael 912 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13121     fi
13122    
13123     # Check whether --enable-devpoll was given.
13124 michael 967 if test "${enable_devpoll+set}" = set; then :
13125 michael 912 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13126     fi
13127    
13128     # Check whether --enable-rtsigio was given.
13129 michael 967 if test "${enable_rtsigio+set}" = set; then :
13130 michael 912 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13131     fi
13132    
13133     # Check whether --enable-poll was given.
13134 michael 967 if test "${enable_poll+set}" = set; then :
13135 michael 912 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13136     fi
13137    
13138     # Check whether --enable-select was given.
13139 michael 967 if test "${enable_select+set}" = set; then :
13140 michael 912 enableval=$enable_select; desired_iopoll_mechanism="select"
13141     fi
13142    
13143 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13144 db 941 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13145 michael 912 iopoll_mechanism_none=0
13146    
13147     cat >>confdefs.h <<_ACEOF
13148     #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13149     _ACEOF
13150    
13151     iopoll_mechanism_kqueue=1
13152    
13153     cat >>confdefs.h <<_ACEOF
13154     #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13155     _ACEOF
13156    
13157 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 michael 912 /* end confdefs.h. */
13159     /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13160     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13161     #define kevent innocuous_kevent
13162    
13163     /* System header to define __stub macros and hopefully few prototypes,
13164     which can conflict with char kevent (); below.
13165     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13166     <limits.h> exists even on freestanding compilers. */
13167    
13168     #ifdef __STDC__
13169     # include <limits.h>
13170     #else
13171     # include <assert.h>
13172     #endif
13173    
13174     #undef kevent
13175    
13176     /* Override any GCC internal prototype to avoid an error.
13177     Use char because int might match the return type of a GCC
13178     builtin and then its argument prototype would still apply. */
13179     #ifdef __cplusplus
13180     extern "C"
13181     #endif
13182     char kevent ();
13183     /* The GNU C library defines this for functions which it implements
13184     to always fail with ENOSYS. Some functions are actually named
13185     something starting with __ and the normal name is an alias. */
13186     #if defined __stub_kevent || defined __stub___kevent
13187     choke me
13188     #endif
13189    
13190     int
13191     main ()
13192     {
13193     return kevent ();
13194     ;
13195     return 0;
13196     }
13197     _ACEOF
13198 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13199 michael 912 is_kqueue_mechanism_available="yes"
13200     else
13201 michael 967 is_kqueue_mechanism_available="no"
13202 michael 912 fi
13203 michael 967 rm -f core conftest.err conftest.$ac_objext \
13204     conftest$ac_exeext conftest.$ac_ext
13205 michael 912 iopoll_mechanism_epoll=2
13206    
13207     cat >>confdefs.h <<_ACEOF
13208     #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13209     _ACEOF
13210    
13211 michael 967 if test "$cross_compiling" = yes; then :
13212     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13213 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13214 michael 967 as_fn_error "cannot run test program while cross compiling
13215     See \`config.log' for more details." "$LINENO" 5; }
13216 michael 912 else
13217 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218     /* end confdefs.h. */
13219 michael 912
13220     #include <sys/epoll.h>
13221     #include <sys/syscall.h>
13222     #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13223     #if !defined(__NR_epoll_create)
13224     #if defined(__ia64__)
13225     #define __NR_epoll_create 1243
13226     #elif defined(__x86_64__)
13227     #define __NR_epoll_create 214
13228     #elif defined(__sparc64__) || defined(__sparc__)
13229     #define __NR_epoll_create 193
13230     #elif defined(__s390__) || defined(__m68k__)
13231     #define __NR_epoll_create 249
13232     #elif defined(__ppc64__) || defined(__ppc__)
13233     #define __NR_epoll_create 236
13234     #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13235     #define __NR_epoll_create 224
13236     #elif defined(__alpha__)
13237     #define __NR_epoll_create 407
13238     #elif defined(__sh64__)
13239     #define __NR_epoll_create 282
13240     #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13241     #define __NR_epoll_create 254
13242     #else
13243     #error No system call numbers defined for epoll family.
13244     #endif
13245     #endif
13246     _syscall1(int, epoll_create, int, size)
13247     #endif
13248     main() { return epoll_create(256) == -1 ? 1 : 0; }
13249    
13250     _ACEOF
13251 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13252 michael 912 is_epoll_mechanism_available="yes"
13253     else
13254 michael 967 is_epoll_mechanism_available="no"
13255 michael 912 fi
13256 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13257     conftest.$ac_objext conftest.beam conftest.$ac_ext
13258 michael 912 fi
13259    
13260     iopoll_mechanism_devpoll=3
13261    
13262     cat >>confdefs.h <<_ACEOF
13263     #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13264     _ACEOF
13265    
13266 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13267 michael 912 /* end confdefs.h. */
13268     #include <devpoll.h>
13269     int
13270     main ()
13271     {
13272    
13273     ;
13274     return 0;
13275     }
13276     _ACEOF
13277 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13278 michael 912 is_devpoll_mechanism_available="yes"
13279     else
13280 michael 967 is_devpoll_mechanism_available="no"
13281 michael 912 fi
13282     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13283     if test "$is_devpoll_mechanism_available" = "yes" ; then
13284    
13285 michael 967 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13286 michael 912
13287     fi
13288 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 michael 912 /* end confdefs.h. */
13290     #include <sys/devpoll.h>
13291     int
13292     main ()
13293     {
13294    
13295     ;
13296     return 0;
13297     }
13298     _ACEOF
13299 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13300 michael 912 is_devpoll_mechanism_available="yes"
13301     else
13302 michael 967 is_devpoll_mechanism_available="no"
13303 michael 912 fi
13304     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13305     if test "$is_devpoll_mechanism_available" = "yes" ; then
13306    
13307 michael 967 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13308 michael 912
13309     fi
13310     iopoll_mechanism_rtsigio=4
13311    
13312     cat >>confdefs.h <<_ACEOF
13313     #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13314     _ACEOF
13315    
13316 michael 967 if test "$cross_compiling" = yes; then :
13317     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13318 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13319 michael 967 as_fn_error "cannot run test program while cross compiling
13320     See \`config.log' for more details." "$LINENO" 5; }
13321 michael 912 else
13322 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13323 michael 912 /* end confdefs.h. */
13324    
13325     #include <fcntl.h>
13326     #ifdef F_SETSIG
13327     main () { return 0; } /* F_SETSIG defined */
13328     #else
13329     main () { return 1; } /* F_SETSIG not defined */
13330     #endif
13331    
13332     int
13333     main ()
13334     {
13335    
13336     ;
13337     return 0;
13338     }
13339     _ACEOF
13340 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13341 michael 912 is_rtsigio_mechanism_available="yes"
13342     else
13343 michael 967 is_rtsigio_mechanism_available="no"
13344 michael 912 fi
13345 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13346     conftest.$ac_objext conftest.beam conftest.$ac_ext
13347 michael 912 fi
13348    
13349     iopoll_mechanism_poll=5
13350    
13351     cat >>confdefs.h <<_ACEOF
13352     #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13353     _ACEOF
13354    
13355 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356 michael 912 /* end confdefs.h. */
13357     /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13358     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13359     #define poll innocuous_poll
13360    
13361     /* System header to define __stub macros and hopefully few prototypes,
13362     which can conflict with char poll (); below.
13363     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13364     <limits.h> exists even on freestanding compilers. */
13365    
13366     #ifdef __STDC__
13367     # include <limits.h>
13368     #else
13369     # include <assert.h>
13370     #endif
13371    
13372     #undef poll
13373    
13374     /* Override any GCC internal prototype to avoid an error.
13375     Use char because int might match the return type of a GCC
13376     builtin and then its argument prototype would still apply. */
13377     #ifdef __cplusplus
13378     extern "C"
13379     #endif
13380     char poll ();
13381     /* The GNU C library defines this for functions which it implements
13382     to always fail with ENOSYS. Some functions are actually named
13383     something starting with __ and the normal name is an alias. */
13384     #if defined __stub_poll || defined __stub___poll
13385     choke me
13386     #endif
13387    
13388     int
13389     main ()
13390     {
13391     return poll ();
13392     ;
13393     return 0;
13394     }
13395     _ACEOF
13396 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13397 michael 912 is_poll_mechanism_available="yes"
13398     else
13399 michael 967 is_poll_mechanism_available="no"
13400 michael 912 fi
13401 michael 967 rm -f core conftest.err conftest.$ac_objext \
13402     conftest$ac_exeext conftest.$ac_ext
13403 michael 912 iopoll_mechanism_select=6
13404    
13405     cat >>confdefs.h <<_ACEOF
13406     #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13407     _ACEOF
13408    
13409 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13410 michael 912 /* end confdefs.h. */
13411     /* Define select to an innocuous variant, in case <limits.h> declares select.
13412     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13413     #define select innocuous_select
13414    
13415     /* System header to define __stub macros and hopefully few prototypes,
13416     which can conflict with char select (); below.
13417     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13418     <limits.h> exists even on freestanding compilers. */
13419    
13420     #ifdef __STDC__
13421     # include <limits.h>
13422     #else
13423     # include <assert.h>
13424     #endif
13425    
13426     #undef select
13427    
13428     /* Override any GCC internal prototype to avoid an error.
13429     Use char because int might match the return type of a GCC
13430     builtin and then its argument prototype would still apply. */
13431     #ifdef __cplusplus
13432     extern "C"
13433     #endif
13434     char select ();
13435     /* The GNU C library defines this for functions which it implements
13436     to always fail with ENOSYS. Some functions are actually named
13437     something starting with __ and the normal name is an alias. */
13438     #if defined __stub_select || defined __stub___select
13439     choke me
13440     #endif
13441    
13442     int
13443     main ()
13444     {
13445     return select ();
13446     ;
13447     return 0;
13448     }
13449     _ACEOF
13450 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13451 michael 912 is_select_mechanism_available="yes"
13452     else
13453 michael 967 is_select_mechanism_available="no"
13454 michael 912 fi
13455 michael 967 rm -f core conftest.err conftest.$ac_objext \
13456     conftest$ac_exeext conftest.$ac_ext
13457 michael 912 optimal_iopoll_mechanism="none"
13458     for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13459     eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13460     if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13461     optimal_iopoll_mechanism="$mechanism"
13462     break
13463     fi
13464     done
13465     if test "$desired_iopoll_mechanism" = "none" ; then
13466     if test "$optimal_iopoll_mechanism" = "none" ; then
13467 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13468 db 941 $as_echo "none" >&6; }
13469 michael 967 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13470 michael 912 else
13471     selected_iopoll_mechanism=$optimal_iopoll_mechanism
13472 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13473 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
13474 michael 912 fi
13475     else
13476     eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13477     if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13478     selected_iopoll_mechanism=$desired_iopoll_mechanism
13479 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13480 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
13481 michael 912 else
13482 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13483 db 941 $as_echo "none" >&6; }
13484 michael 967 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13485 michael 912 fi
13486     fi
13487     eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13488    
13489     cat >>confdefs.h <<_ACEOF
13490     #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13491     _ACEOF
13492    
13493    
13494    
13495    
13496     # Check whether --with-nicklen was given.
13497 michael 967 if test "${with_nicklen+set}" = set; then :
13498 michael 912 withval=$with_nicklen; nicklen="$withval"
13499     else
13500     nicklen="9"
13501     fi
13502    
13503    
13504     cat >>confdefs.h <<_ACEOF
13505     #define NICKLEN ($nicklen+1)
13506     _ACEOF
13507    
13508    
13509    
13510    
13511     # Check whether --with-topiclen was given.
13512 michael 967 if test "${with_topiclen+set}" = set; then :
13513 michael 912 withval=$with_topiclen; topiclen="$withval"
13514     else
13515     topiclen="160"
13516     fi
13517    
13518    
13519     cat >>confdefs.h <<_ACEOF
13520 michael 1015 #define TOPICLEN ($topiclen)
13521 michael 912 _ACEOF
13522    
13523    
13524    
13525    
13526     # Check whether --with-syslog-facility was given.
13527 michael 967 if test "${with_syslog_facility+set}" = set; then :
13528 michael 912 withval=$with_syslog_facility; syslog_facility="$withval"
13529     else
13530     syslog_facility="LOG_LOCAL4"
13531     fi
13532    
13533    
13534     cat >>confdefs.h <<_ACEOF
13535     #define LOG_FACILITY $syslog_facility
13536     _ACEOF
13537    
13538    
13539    
13540     # Check whether --enable-efnet was given.
13541 michael 967 if test "${enable_efnet+set}" = set; then :
13542 michael 912 enableval=$enable_efnet; efnet="$enableval"
13543     else
13544     efnet="no"
13545     fi
13546    
13547     if test "$efnet" = "yes" ; then
13548     use_efnet="yes"
13549    
13550 michael 967 $as_echo "#define EFNET 1" >>confdefs.h
13551 michael 912
13552    
13553 michael 967 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13554 michael 912
13555     else
13556     use_efnet="no"
13557     fi
13558     if test "$use_efnet" = "yes"; then
13559     EFNET_TRUE=
13560     EFNET_FALSE='#'
13561     else
13562     EFNET_TRUE='#'
13563     EFNET_FALSE=
13564     fi
13565    
13566    
13567    
13568     # Check whether --enable-halfops was given.
13569 michael 967 if test "${enable_halfops+set}" = set; then :
13570 michael 912 enableval=$enable_halfops; halfops="$enableval"
13571     else
13572     halfops="no"
13573     fi
13574    
13575     if test "$halfops" = "yes" ; then
13576    
13577 michael 967 $as_echo "#define HALFOPS 1" >>confdefs.h
13578 michael 912
13579     fi
13580    
13581    
13582     # Check whether --enable-debugging was given.
13583 michael 967 if test "${enable_debugging+set}" = set; then :
13584 michael 912 enableval=$enable_debugging; debugging="$enableval"
13585     else
13586     debugging="no"
13587     fi
13588    
13589     if test "$debugging" = "yes" ; then
13590    
13591 michael 967 $as_echo "#define DEBUG 1" >>confdefs.h
13592 michael 912
13593 michael 1017 CFLAGS="-Wall -g -O0"
13594 michael 912 else
13595    
13596 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
13597 michael 912
13598     fi
13599    
13600    
13601     # Check whether --enable-warnings was given.
13602 michael 967 if test "${enable_warnings+set}" = set; then :
13603 michael 912 enableval=$enable_warnings; warnings="$enableval"
13604     else
13605     warnings="no"
13606     fi
13607    
13608     if test "$warnings" = "yes" ; then
13609 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"
13610 michael 912 fi
13611    
13612    
13613 michael 967 for ac_header in syslog.h sys/syslog.h
13614     do :
13615     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13616     ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13617     eval as_val=\$$as_ac_Header
13618     if test "x$as_val" = x""yes; then :
13619 michael 912 cat >>confdefs.h <<_ACEOF
13620 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13621 michael 912 _ACEOF
13622    
13623     fi
13624    
13625     done
13626    
13627     # Check whether --enable-syslog was given.
13628 michael 967 if test "${enable_syslog+set}" = set; then :
13629 michael 912 enableval=$enable_syslog; syslog="$enableval"
13630     else
13631     syslog="no"
13632     fi
13633    
13634     if test "$enableval" != "no" ; then
13635     for option in $enableval ; do
13636     case "$option" in
13637     users)
13638 michael 967 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13639 michael 912 ;;
13640     oper)
13641 michael 967 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13642 michael 912 ;;
13643     yes) : ;;
13644 michael 967 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13645 michael 912 esac
13646     done
13647    
13648 michael 967 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13649 michael 912
13650     fi
13651    
13652    
13653    
13654     prefix_NONE=
13655     exec_prefix_NONE=
13656     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13657     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13658     eval ac_define_dir="\"$prefix\""
13659     eval ac_define_dir="\"$ac_define_dir\""
13660     PREFIX="$ac_define_dir"
13661    
13662    
13663     cat >>confdefs.h <<_ACEOF
13664     #define PREFIX "$ac_define_dir"
13665     _ACEOF
13666    
13667     test "$prefix_NONE" && prefix=NONE
13668     test "$exec_prefix_NONE" && exec_prefix=NONE
13669    
13670    
13671     prefix_NONE=
13672     exec_prefix_NONE=
13673     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13674     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13675     eval ac_define_dir="\"$sysconfdir\""
13676     eval ac_define_dir="\"$ac_define_dir\""
13677     SYSCONFDIR="$ac_define_dir"
13678    
13679    
13680     cat >>confdefs.h <<_ACEOF
13681     #define SYSCONFDIR "$ac_define_dir"
13682     _ACEOF
13683    
13684     test "$prefix_NONE" && prefix=NONE
13685     test "$exec_prefix_NONE" && exec_prefix=NONE
13686    
13687    
13688     prefix_NONE=
13689     exec_prefix_NONE=
13690     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13691     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13692     eval ac_define_dir="\"$libdir\""
13693     eval ac_define_dir="\"$ac_define_dir\""
13694     LIBDIR="$ac_define_dir"
13695    
13696    
13697     cat >>confdefs.h <<_ACEOF
13698     #define LIBDIR "$ac_define_dir"
13699     _ACEOF
13700    
13701     test "$prefix_NONE" && prefix=NONE
13702     test "$exec_prefix_NONE" && exec_prefix=NONE
13703    
13704    
13705     prefix_NONE=
13706     exec_prefix_NONE=
13707     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13708     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13709     eval ac_define_dir="\"$datadir\""
13710     eval ac_define_dir="\"$ac_define_dir\""
13711     DATADIR="$ac_define_dir"
13712    
13713    
13714     cat >>confdefs.h <<_ACEOF
13715     #define DATADIR "$ac_define_dir"
13716     _ACEOF
13717    
13718     test "$prefix_NONE" && prefix=NONE
13719     test "$exec_prefix_NONE" && exec_prefix=NONE
13720    
13721    
13722     prefix_NONE=
13723     exec_prefix_NONE=
13724     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13725     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13726     eval ac_define_dir="\"$localstatedir\""
13727     eval ac_define_dir="\"$ac_define_dir\""
13728     LOCALSTATEDIR="$ac_define_dir"
13729    
13730    
13731     cat >>confdefs.h <<_ACEOF
13732     #define LOCALSTATEDIR "$ac_define_dir"
13733     _ACEOF
13734    
13735     test "$prefix_NONE" && prefix=NONE
13736     test "$exec_prefix_NONE" && exec_prefix=NONE
13737    
13738 db 941
13739 michael 1068 ac_config_files="$ac_config_files Makefile etc/Makefile servlink/Makefile contrib/Makefile contrib/help/Makefile src/Makefile messages/Makefile modules/Makefile modules/core/Makefile doc/Makefile help/Makefile help/opers/Makefile help/users/Makefile tools/Makefile"
13740 michael 912
13741    
13742     cat >confcache <<\_ACEOF
13743     # This file is a shell script that caches the results of configure
13744     # tests run on this system so they can be shared between configure
13745     # scripts and configure runs, see configure's option --config-cache.
13746     # It is not useful on other systems. If it contains results you don't
13747     # want to keep, you may remove or edit it.
13748     #
13749     # config.status only pays attention to the cache file if you give it
13750     # the --recheck option to rerun configure.
13751     #
13752     # `ac_cv_env_foo' variables (set or unset) will be overridden when
13753     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13754     # following values.
13755    
13756     _ACEOF
13757    
13758     # The following way of writing the cache mishandles newlines in values,
13759     # but we know of no workaround that is simple, portable, and efficient.
13760     # So, we kill variables containing newlines.
13761     # Ultrix sh set writes to stderr and can't be redirected directly,
13762     # and sets the high bit in the cache file unless we assign to the vars.
13763     (
13764     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13765     eval ac_val=\$$ac_var
13766     case $ac_val in #(
13767     *${as_nl}*)
13768     case $ac_var in #(
13769 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13770 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13771 michael 912 esac
13772     case $ac_var in #(
13773     _ | IFS | as_nl) ;; #(
13774 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13775 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
13776 michael 912 esac ;;
13777     esac
13778     done
13779    
13780     (set) 2>&1 |
13781     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13782     *${as_nl}ac_space=\ *)
13783 michael 967 # `set' does not quote correctly, so add quotes: double-quote
13784     # substitution turns \\\\ into \\, and sed turns \\ into \.
13785 michael 912 sed -n \
13786     "s/'/'\\\\''/g;
13787     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13788     ;; #(
13789     *)
13790     # `set' quotes correctly as required by POSIX, so do not add quotes.
13791     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13792     ;;
13793     esac |
13794     sort
13795     ) |
13796     sed '
13797     /^ac_cv_env_/b end
13798     t clear
13799     :clear
13800     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13801     t end
13802     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13803     :end' >>confcache
13804     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13805     if test -w "$cache_file"; then
13806     test "x$cache_file" != "x/dev/null" &&
13807 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13808 db 941 $as_echo "$as_me: updating cache $cache_file" >&6;}
13809 michael 912 cat confcache >$cache_file
13810     else
13811 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13812 db 941 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13813 michael 912 fi
13814     fi
13815     rm -f confcache
13816    
13817     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13818     # Let make expand exec_prefix.
13819     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13820    
13821     DEFS=-DHAVE_CONFIG_H
13822    
13823     ac_libobjs=
13824     ac_ltlibobjs=
13825     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13826     # 1. Remove the extension, and $U if already installed.
13827     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13828 db 941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13829 michael 912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13830     # will be set to the directory where LIBOBJS objects are built.
13831 michael 967 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13832     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13833 michael 912 done
13834     LIBOBJS=$ac_libobjs
13835    
13836     LTLIBOBJS=$ac_ltlibobjs
13837    
13838    
13839 michael 945 if test -n "$EXEEXT"; then
13840     am__EXEEXT_TRUE=
13841     am__EXEEXT_FALSE='#'
13842     else
13843     am__EXEEXT_TRUE='#'
13844     am__EXEEXT_FALSE=
13845     fi
13846    
13847 michael 912 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13848 michael 967 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13849     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13850 michael 912 fi
13851     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13852 michael 967 as_fn_error "conditional \"AMDEP\" was never defined.
13853     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13854 michael 912 fi
13855     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13856 michael 967 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13857     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13858 michael 912 fi
13859 michael 945 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13860 michael 967 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13861     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13862 michael 912 fi
13863 michael 945 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13864 michael 967 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13865     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13866 michael 945 fi
13867     LT_CONFIG_H=config.h
13868 michael 942
13869 michael 945 _ltdl_libobjs=
13870     _ltdl_ltlibobjs=
13871     if test -n "$_LT_LIBOBJS"; then
13872     # Remove the extension.
13873     _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13874     for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13875     _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13876     _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13877     done
13878     fi
13879     ltdl_LIBOBJS=$_ltdl_libobjs
13880    
13881     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13882    
13883    
13884    
13885 michael 1009 if test -z "${ENABLE_PCRE_TRUE}" && test -z "${ENABLE_PCRE_FALSE}"; then
13886     as_fn_error "conditional \"ENABLE_PCRE\" was never defined.
13887     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13888     fi
13889 michael 912 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13890 michael 967 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13891     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13892 michael 912 fi
13893     if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13894 michael 967 as_fn_error "conditional \"EFNET\" was never defined.
13895     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13896 michael 912 fi
13897    
13898     : ${CONFIG_STATUS=./config.status}
13899 db 941 ac_write_fail=0
13900 michael 912 ac_clean_files_save=$ac_clean_files
13901     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13902 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13903 db 941 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13904 michael 967 as_write_fail=0
13905     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13906 michael 912 #! $SHELL
13907     # Generated by $as_me.
13908     # Run this file to recreate the current configuration.
13909     # Compiler output produced by configure, useful for debugging
13910     # configure, is in config.log if it exists.
13911    
13912     debug=false
13913     ac_cs_recheck=false
13914     ac_cs_silent=false
13915 michael 967
13916 michael 912 SHELL=\${CONFIG_SHELL-$SHELL}
13917 michael 967 export SHELL
13918     _ASEOF
13919     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13920     ## -------------------- ##
13921     ## M4sh Initialization. ##
13922     ## -------------------- ##
13923 michael 912
13924     # Be more Bourne compatible
13925     DUALCASE=1; export DUALCASE # for MKS sh
13926 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13927 michael 912 emulate sh
13928     NULLCMD=:
13929 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13930 michael 912 # is contrary to our usage. Disable this feature.
13931     alias -g '${1+"$@"}'='"$@"'
13932     setopt NO_GLOB_SUBST
13933     else
13934 michael 967 case `(set -o) 2>/dev/null` in #(
13935     *posix*) :
13936     set -o posix ;; #(
13937     *) :
13938     ;;
13939 michael 912 esac
13940     fi
13941    
13942    
13943 db 941 as_nl='
13944     '
13945     export as_nl
13946     # Printing a long string crashes Solaris 7 /usr/bin/printf.
13947     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13948     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13949     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13950 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
13951     # but without wasting forks for bash or zsh.
13952     if test -z "$BASH_VERSION$ZSH_VERSION" \
13953     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13954     as_echo='print -r --'
13955     as_echo_n='print -rn --'
13956     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13957 db 941 as_echo='printf %s\n'
13958     as_echo_n='printf %s'
13959     else
13960     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13961     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13962     as_echo_n='/usr/ucb/echo -n'
13963 michael 912 else
13964 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13965     as_echo_n_body='eval
13966     arg=$1;
13967 michael 967 case $arg in #(
13968 db 941 *"$as_nl"*)
13969     expr "X$arg" : "X\\(.*\\)$as_nl";
13970     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13971     esac;
13972     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13973     '
13974     export as_echo_n_body
13975     as_echo_n='sh -c $as_echo_n_body as_echo'
13976 michael 912 fi
13977 db 941 export as_echo_body
13978     as_echo='sh -c $as_echo_body as_echo'
13979 michael 912 fi
13980    
13981 db 941 # The user is always right.
13982     if test "${PATH_SEPARATOR+set}" != set; then
13983     PATH_SEPARATOR=:
13984     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13985     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13986     PATH_SEPARATOR=';'
13987     }
13988     fi
13989    
13990 michael 912
13991     # IFS
13992     # We need space, tab and new line, in precisely that order. Quoting is
13993     # there to prevent editors from complaining about space-tab.
13994     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13995     # splitting by setting IFS to empty value.)
13996     IFS=" "" $as_nl"
13997    
13998     # Find who we are. Look in the path if we contain no directory separator.
13999 michael 967 case $0 in #((
14000 michael 912 *[\\/]* ) as_myself=$0 ;;
14001     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14002     for as_dir in $PATH
14003     do
14004     IFS=$as_save_IFS
14005     test -z "$as_dir" && as_dir=.
14006 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14007     done
14008 michael 912 IFS=$as_save_IFS
14009    
14010     ;;
14011     esac
14012     # We did not find ourselves, most probably we were run as `sh COMMAND'
14013     # in which case we are not to be found in the path.
14014     if test "x$as_myself" = x; then
14015     as_myself=$0
14016     fi
14017     if test ! -f "$as_myself"; then
14018 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14019 michael 967 exit 1
14020 michael 912 fi
14021    
14022 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
14023     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14024     # suppresses any "Segmentation fault" message there. '((' could
14025     # trigger a bug in pdksh 5.2.14.
14026     for as_var in BASH_ENV ENV MAIL MAILPATH
14027     do eval test x\${$as_var+set} = xset \
14028     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14029 michael 912 done
14030     PS1='$ '
14031     PS2='> '
14032     PS4='+ '
14033    
14034     # NLS nuisances.
14035 db 941 LC_ALL=C
14036     export LC_ALL
14037     LANGUAGE=C
14038     export LANGUAGE
14039 michael 912
14040 michael 967 # CDPATH.
14041     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14042    
14043    
14044     # as_fn_error ERROR [LINENO LOG_FD]
14045     # ---------------------------------
14046     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14047     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14048     # script with status $?, using 1 if that was 0.
14049     as_fn_error ()
14050     {
14051     as_status=$?; test $as_status -eq 0 && as_status=1
14052     if test "$3"; then
14053     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14054     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14055     fi
14056     $as_echo "$as_me: error: $1" >&2
14057     as_fn_exit $as_status
14058     } # as_fn_error
14059    
14060    
14061     # as_fn_set_status STATUS
14062     # -----------------------
14063     # Set $? to STATUS, without forking.
14064     as_fn_set_status ()
14065     {
14066     return $1
14067     } # as_fn_set_status
14068    
14069     # as_fn_exit STATUS
14070     # -----------------
14071     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14072     as_fn_exit ()
14073     {
14074     set +e
14075     as_fn_set_status $1
14076     exit $1
14077     } # as_fn_exit
14078    
14079     # as_fn_unset VAR
14080     # ---------------
14081     # Portably unset VAR.
14082     as_fn_unset ()
14083     {
14084     { eval $1=; unset $1;}
14085     }
14086     as_unset=as_fn_unset
14087     # as_fn_append VAR VALUE
14088     # ----------------------
14089     # Append the text in VALUE to the end of the definition contained in VAR. Take
14090     # advantage of any shell optimizations that allow amortized linear growth over
14091     # repeated appends, instead of the typical quadratic growth present in naive
14092     # implementations.
14093     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14094     eval 'as_fn_append ()
14095     {
14096     eval $1+=\$2
14097     }'
14098     else
14099     as_fn_append ()
14100     {
14101     eval $1=\$$1\$2
14102     }
14103     fi # as_fn_append
14104    
14105     # as_fn_arith ARG...
14106     # ------------------
14107     # Perform arithmetic evaluation on the ARGs, and store the result in the
14108     # global $as_val. Take advantage of shells that can avoid forks. The arguments
14109     # must be portable across $(()) and expr.
14110     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14111     eval 'as_fn_arith ()
14112     {
14113     as_val=$(( $* ))
14114     }'
14115     else
14116     as_fn_arith ()
14117     {
14118     as_val=`expr "$@" || test $? -eq 1`
14119     }
14120     fi # as_fn_arith
14121    
14122    
14123 michael 912 if expr a : '\(a\)' >/dev/null 2>&1 &&
14124     test "X`expr 00001 : '.*\(...\)'`" = X001; then
14125     as_expr=expr
14126     else
14127     as_expr=false
14128     fi
14129    
14130     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14131     as_basename=basename
14132     else
14133     as_basename=false
14134     fi
14135    
14136 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14137     as_dirname=dirname
14138     else
14139     as_dirname=false
14140     fi
14141 michael 912
14142     as_me=`$as_basename -- "$0" ||
14143     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14144     X"$0" : 'X\(//\)$' \| \
14145     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14146 db 941 $as_echo X/"$0" |
14147 michael 912 sed '/^.*\/\([^/][^/]*\)\/*$/{
14148     s//\1/
14149     q
14150     }
14151     /^X\/\(\/\/\)$/{
14152     s//\1/
14153     q
14154     }
14155     /^X\/\(\/\).*/{
14156     s//\1/
14157     q
14158     }
14159     s/.*/./; q'`
14160    
14161 michael 967 # Avoid depending upon Character Ranges.
14162     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14163     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14164     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14165     as_cr_digits='0123456789'
14166     as_cr_alnum=$as_cr_Letters$as_cr_digits
14167 michael 912
14168     ECHO_C= ECHO_N= ECHO_T=
14169 michael 967 case `echo -n x` in #(((((
14170 michael 912 -n*)
14171 michael 967 case `echo 'xy\c'` in
14172 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14173 michael 967 xy) ECHO_C='\c';;
14174     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14175     ECHO_T=' ';;
14176 michael 912 esac;;
14177     *)
14178     ECHO_N='-n';;
14179     esac
14180    
14181     rm -f conf$$ conf$$.exe conf$$.file
14182     if test -d conf$$.dir; then
14183     rm -f conf$$.dir/conf$$.file
14184     else
14185     rm -f conf$$.dir
14186 db 941 mkdir conf$$.dir 2>/dev/null
14187 michael 912 fi
14188 db 941 if (echo >conf$$.file) 2>/dev/null; then
14189     if ln -s conf$$.file conf$$ 2>/dev/null; then
14190     as_ln_s='ln -s'
14191     # ... but there are two gotchas:
14192     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14193     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14194     # In both cases, we have to default to `cp -p'.
14195     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14196     as_ln_s='cp -p'
14197     elif ln conf$$.file conf$$ 2>/dev/null; then
14198     as_ln_s=ln
14199     else
14200 michael 912 as_ln_s='cp -p'
14201 db 941 fi
14202 michael 912 else
14203     as_ln_s='cp -p'
14204     fi
14205     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14206     rmdir conf$$.dir 2>/dev/null
14207    
14208 michael 967
14209     # as_fn_mkdir_p
14210     # -------------
14211     # Create "$as_dir" as a directory, including parents if necessary.
14212     as_fn_mkdir_p ()
14213     {
14214    
14215     case $as_dir in #(
14216     -*) as_dir=./$as_dir;;
14217     esac
14218     test -d "$as_dir" || eval $as_mkdir_p || {
14219     as_dirs=
14220     while :; do
14221     case $as_dir in #(
14222     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14223     *) as_qdir=$as_dir;;
14224     esac
14225     as_dirs="'$as_qdir' $as_dirs"
14226     as_dir=`$as_dirname -- "$as_dir" ||
14227     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14228     X"$as_dir" : 'X\(//\)[^/]' \| \
14229     X"$as_dir" : 'X\(//\)$' \| \
14230     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14231     $as_echo X"$as_dir" |
14232     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14233     s//\1/
14234     q
14235     }
14236     /^X\(\/\/\)[^/].*/{
14237     s//\1/
14238     q
14239     }
14240     /^X\(\/\/\)$/{
14241     s//\1/
14242     q
14243     }
14244     /^X\(\/\).*/{
14245     s//\1/
14246     q
14247     }
14248     s/.*/./; q'`
14249     test -d "$as_dir" && break
14250     done
14251     test -z "$as_dirs" || eval "mkdir $as_dirs"
14252     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14253    
14254    
14255     } # as_fn_mkdir_p
14256 michael 912 if mkdir -p . 2>/dev/null; then
14257 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
14258 michael 912 else
14259     test -d ./-p && rmdir ./-p
14260     as_mkdir_p=false
14261     fi
14262    
14263     if test -x / >/dev/null 2>&1; then
14264     as_test_x='test -x'
14265     else
14266     if ls -dL / >/dev/null 2>&1; then
14267     as_ls_L_option=L
14268     else
14269     as_ls_L_option=
14270     fi
14271     as_test_x='
14272     eval sh -c '\''
14273     if test -d "$1"; then
14274 db 941 test -d "$1/.";
14275 michael 912 else
14276 michael 967 case $1 in #(
14277 db 941 -*)set "./$1";;
14278 michael 912 esac;
14279 michael 967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14280 michael 912 ???[sx]*):;;*)false;;esac;fi
14281     '\'' sh
14282     '
14283     fi
14284     as_executable_p=$as_test_x
14285    
14286     # Sed expression to map a string onto a valid CPP name.
14287     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14288    
14289     # Sed expression to map a string onto a valid variable name.
14290     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14291    
14292    
14293     exec 6>&1
14294 michael 967 ## ----------------------------------- ##
14295     ## Main body of $CONFIG_STATUS script. ##
14296     ## ----------------------------------- ##
14297     _ASEOF
14298     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14299 michael 912
14300 michael 967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14301     # Save the log message, to keep $0 and so on meaningful, and to
14302 michael 912 # report actual input values of CONFIG_FILES etc. instead of their
14303     # values after options handling.
14304     ac_log="
14305 michael 1039 This file was extended by ircd-hybrid $as_me 7.3-rc1, which was
14306 michael 1033 generated by GNU Autoconf 2.65. Invocation command line was
14307 michael 912
14308     CONFIG_FILES = $CONFIG_FILES
14309     CONFIG_HEADERS = $CONFIG_HEADERS
14310     CONFIG_LINKS = $CONFIG_LINKS
14311     CONFIG_COMMANDS = $CONFIG_COMMANDS
14312     $ $0 $@
14313    
14314     on `(hostname || uname -n) 2>/dev/null | sed 1q`
14315     "
14316    
14317     _ACEOF
14318    
14319 michael 942 case $ac_config_files in *"
14320     "*) set x $ac_config_files; shift; ac_config_files=$*;;
14321     esac
14322    
14323     case $ac_config_headers in *"
14324     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14325     esac
14326    
14327    
14328 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14329 michael 912 # Files that config.status was made for.
14330 michael 967 config_files="$ac_config_files"
14331     config_headers="$ac_config_headers"
14332     config_commands="$ac_config_commands"
14333 michael 912
14334     _ACEOF
14335    
14336 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14337 michael 912 ac_cs_usage="\
14338 michael 967 \`$as_me' instantiates files and other configuration actions
14339     from templates according to the current configuration. Unless the files
14340     and actions are specified as TAGs, all are instantiated by default.
14341 michael 912
14342 michael 967 Usage: $0 [OPTION]... [TAG]...
14343 michael 912
14344     -h, --help print this help, then exit
14345     -V, --version print version number and configuration settings, then exit
14346 michael 1033 --config print configuration, then exit
14347 michael 942 -q, --quiet, --silent
14348     do not print progress messages
14349 michael 912 -d, --debug don't remove temporary files
14350     --recheck update $as_me by reconfiguring in the same conditions
14351 michael 942 --file=FILE[:TEMPLATE]
14352 db 941 instantiate the configuration file FILE
14353 michael 942 --header=FILE[:TEMPLATE]
14354 db 941 instantiate the configuration header FILE
14355 michael 912
14356     Configuration files:
14357     $config_files
14358    
14359     Configuration headers:
14360     $config_headers
14361    
14362     Configuration commands:
14363     $config_commands
14364    
14365 michael 1039 Report bugs to <bugs@ircd-hybrid.org>."
14366 michael 912
14367     _ACEOF
14368 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14369 michael 1033 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14370 michael 912 ac_cs_version="\\
14371 michael 1039 ircd-hybrid config.status 7.3-rc1
14372 michael 1033 configured by $0, generated by GNU Autoconf 2.65,
14373     with options \\"\$ac_cs_config\\"
14374 michael 912
14375 michael 967 Copyright (C) 2009 Free Software Foundation, Inc.
14376 michael 912 This config.status script is free software; the Free Software Foundation
14377     gives unlimited permission to copy, distribute and modify it."
14378    
14379     ac_pwd='$ac_pwd'
14380     srcdir='$srcdir'
14381     INSTALL='$INSTALL'
14382     MKDIR_P='$MKDIR_P'
14383 db 941 AWK='$AWK'
14384     test -n "\$AWK" || AWK=awk
14385 michael 912 _ACEOF
14386    
14387 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14388     # The default lists apply if the user does not specify any file.
14389 michael 912 ac_need_defaults=:
14390     while test $# != 0
14391     do
14392     case $1 in
14393     --*=*)
14394     ac_option=`expr "X$1" : 'X\([^=]*\)='`
14395     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14396     ac_shift=:
14397     ;;
14398     *)
14399     ac_option=$1
14400     ac_optarg=$2
14401     ac_shift=shift
14402     ;;
14403     esac
14404    
14405     case $ac_option in
14406     # Handling of the options.
14407     -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14408     ac_cs_recheck=: ;;
14409     --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14410 db 941 $as_echo "$ac_cs_version"; exit ;;
14411 michael 1033 --config | --confi | --conf | --con | --co | --c )
14412     $as_echo "$ac_cs_config"; exit ;;
14413 michael 912 --debug | --debu | --deb | --de | --d | -d )
14414     debug=: ;;
14415     --file | --fil | --fi | --f )
14416     $ac_shift
14417 db 941 case $ac_optarg in
14418     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14419     esac
14420 michael 967 as_fn_append CONFIG_FILES " '$ac_optarg'"
14421 michael 912 ac_need_defaults=false;;
14422     --header | --heade | --head | --hea )
14423     $ac_shift
14424 db 941 case $ac_optarg in
14425     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14426     esac
14427 michael 967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14428 michael 912 ac_need_defaults=false;;
14429     --he | --h)
14430     # Conflict between --help and --header
14431 michael 967 as_fn_error "ambiguous option: \`$1'
14432     Try \`$0 --help' for more information.";;
14433 michael 912 --help | --hel | -h )
14434 db 941 $as_echo "$ac_cs_usage"; exit ;;
14435 michael 912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14436     | -silent | --silent | --silen | --sile | --sil | --si | --s)
14437     ac_cs_silent=: ;;
14438    
14439     # This is an error.
14440 michael 967 -*) as_fn_error "unrecognized option: \`$1'
14441     Try \`$0 --help' for more information." ;;
14442 michael 912
14443 michael 967 *) as_fn_append ac_config_targets " $1"
14444 michael 912 ac_need_defaults=false ;;
14445    
14446     esac
14447     shift
14448     done
14449    
14450     ac_configure_extra_args=
14451    
14452     if $ac_cs_silent; then
14453     exec 6>/dev/null
14454     ac_configure_extra_args="$ac_configure_extra_args --silent"
14455     fi
14456    
14457     _ACEOF
14458 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14459 michael 912 if \$ac_cs_recheck; then
14460 db 941 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14461     shift
14462     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14463     CONFIG_SHELL='$SHELL'
14464 michael 912 export CONFIG_SHELL
14465 db 941 exec "\$@"
14466 michael 912 fi
14467    
14468     _ACEOF
14469 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14470 michael 912 exec 5>>config.log
14471     {
14472     echo
14473     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14474     ## Running $as_me. ##
14475     _ASBOX
14476 db 941 $as_echo "$ac_log"
14477 michael 912 } >&5
14478    
14479     _ACEOF
14480 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14481 michael 912 #
14482     # INIT-COMMANDS
14483     #
14484     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14485    
14486 michael 945
14487     # The HP-UX ksh and POSIX shell print the target directory to stdout
14488     # if CDPATH is set.
14489     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14490    
14491     sed_quote_subst='$sed_quote_subst'
14492     double_quote_subst='$double_quote_subst'
14493     delay_variable_subst='$delay_variable_subst'
14494     macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14495     macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14496 michael 977 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14497 michael 945 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14498     pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14499     enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14500     host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14501     host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14502     host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14503     build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14504     build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14505     build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14506     SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14507     Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14508     GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14509     EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14510     FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14511     LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14512     NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14513     LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14514     max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14515     ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14516     exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14517     lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14518     lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14519     lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14520     reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14521     reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14522     OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14523     deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14524     file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14525     AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14526     AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14527     STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14528     RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14529     old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14530     old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14531     old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14532     CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14533     CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14534     compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14535     GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14536     lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14537     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14538     lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
14539     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14540     objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14541     SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14542     ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14543     MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14544     lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14545     lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14546     lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14547     lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14548     lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14549     need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14550     DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14551     NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14552     LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14553     OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14554     OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14555     libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14556     shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14557     extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14558     archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14559     enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14560     export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14561     whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14562     compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14563     old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14564     old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14565     archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14566     archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14567     module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14568     module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14569     with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14570     allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14571     no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14572     hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14573     hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14574     hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14575     hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14576     hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14577     hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14578     hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14579     hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14580     inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14581     link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14582     fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14583     always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14584     export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14585     exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14586     include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14587     prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14588     file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14589     variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14590     need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14591     need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14592     version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14593     runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14594     shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14595     shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14596     libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14597     library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14598     soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14599     postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14600     postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14601     finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14602     finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14603     hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14604     sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14605     sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14606     hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14607     enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14608     enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14609     enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14610     old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14611     striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14612    
14613     LTCC='$LTCC'
14614     LTCFLAGS='$LTCFLAGS'
14615     compiler='$compiler_DEFAULT'
14616    
14617     # Quote evaled strings.
14618     for var in SED \
14619     GREP \
14620     EGREP \
14621     FGREP \
14622     LD \
14623     NM \
14624     LN_S \
14625     lt_SP2NL \
14626     lt_NL2SP \
14627     reload_flag \
14628     OBJDUMP \
14629     deplibs_check_method \
14630     file_magic_cmd \
14631     AR \
14632     AR_FLAGS \
14633     STRIP \
14634     RANLIB \
14635     CC \
14636     CFLAGS \
14637     compiler \
14638     lt_cv_sys_global_symbol_pipe \
14639     lt_cv_sys_global_symbol_to_cdecl \
14640     lt_cv_sys_global_symbol_to_c_name_address \
14641     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14642     SHELL \
14643     ECHO \
14644     lt_prog_compiler_no_builtin_flag \
14645     lt_prog_compiler_wl \
14646     lt_prog_compiler_pic \
14647     lt_prog_compiler_static \
14648     lt_cv_prog_compiler_c_o \
14649     need_locks \
14650     DSYMUTIL \
14651     NMEDIT \
14652     LIPO \
14653     OTOOL \
14654     OTOOL64 \
14655     shrext_cmds \
14656     export_dynamic_flag_spec \
14657     whole_archive_flag_spec \
14658     compiler_needs_object \
14659     with_gnu_ld \
14660     allow_undefined_flag \
14661     no_undefined_flag \
14662     hardcode_libdir_flag_spec \
14663     hardcode_libdir_flag_spec_ld \
14664     hardcode_libdir_separator \
14665     fix_srcfile_path \
14666     exclude_expsyms \
14667     include_expsyms \
14668     file_list_spec \
14669     variables_saved_for_relink \
14670     libname_spec \
14671     library_names_spec \
14672     soname_spec \
14673     finish_eval \
14674     old_striplib \
14675     striplib; do
14676     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14677     *[\\\\\\\`\\"\\\$]*)
14678     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14679     ;;
14680     *)
14681     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14682     ;;
14683     esac
14684     done
14685    
14686     # Double-quote double-evaled strings.
14687     for var in reload_cmds \
14688     old_postinstall_cmds \
14689     old_postuninstall_cmds \
14690     old_archive_cmds \
14691     extract_expsyms_cmds \
14692     old_archive_from_new_cmds \
14693     old_archive_from_expsyms_cmds \
14694     archive_cmds \
14695     archive_expsym_cmds \
14696     module_cmds \
14697     module_expsym_cmds \
14698     export_symbols_cmds \
14699     prelink_cmds \
14700     postinstall_cmds \
14701     postuninstall_cmds \
14702     finish_cmds \
14703     sys_lib_search_path_spec \
14704     sys_lib_dlsearch_path_spec; do
14705     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14706     *[\\\\\\\`\\"\\\$]*)
14707     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14708     ;;
14709     *)
14710     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14711     ;;
14712     esac
14713     done
14714    
14715     # Fix-up fallback echo if it was mangled by the above quoting rules.
14716     case \$lt_ECHO in
14717     *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14718     ;;
14719     esac
14720    
14721     ac_aux_dir='$ac_aux_dir'
14722     xsi_shell='$xsi_shell'
14723     lt_shell_append='$lt_shell_append'
14724    
14725     # See if we are running on zsh, and set the options which allow our
14726     # commands through without removal of \ escapes INIT.
14727     if test -n "\${ZSH_VERSION+set}" ; then
14728     setopt NO_GLOB_SUBST
14729     fi
14730    
14731    
14732     PACKAGE='$PACKAGE'
14733     VERSION='$VERSION'
14734     TIMESTAMP='$TIMESTAMP'
14735     RM='$RM'
14736     ofile='$ofile'
14737    
14738    
14739    
14740    
14741 michael 912 _ACEOF
14742    
14743 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14744 michael 912
14745     # Handling of arguments.
14746     for ac_config_target in $ac_config_targets
14747     do
14748     case $ac_config_target in
14749     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14750     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14751 michael 945 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14752 michael 912 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14753     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14754     "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14755     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14756     "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14757     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14758     "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14759     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14760     "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14761     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14762     "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14763     "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14764     "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14765 michael 922 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14766 michael 912
14767 michael 967 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14768 michael 912 esac
14769     done
14770    
14771    
14772     # If the user did not use the arguments to specify the items to instantiate,
14773     # then the envvar interface is used. Set only those that are not.
14774     # We use the long form for the default assignment because of an extremely
14775     # bizarre bug on SunOS 4.1.3.
14776     if $ac_need_defaults; then
14777     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14778     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14779     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14780     fi
14781    
14782     # Have a temporary directory for convenience. Make it in the build tree
14783     # simply because there is no reason against having it here, and in addition,
14784     # creating and moving files from /tmp can sometimes cause problems.
14785     # Hook for its removal unless debugging.
14786     # Note that there is a small window in which the directory will not be cleaned:
14787     # after its creation but before its name has been assigned to `$tmp'.
14788     $debug ||
14789     {
14790     tmp=
14791     trap 'exit_status=$?
14792     { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14793     ' 0
14794 michael 967 trap 'as_fn_exit 1' 1 2 13 15
14795 michael 912 }
14796     # Create a (secure) tmp directory for tmp files.
14797    
14798     {
14799     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14800     test -n "$tmp" && test -d "$tmp"
14801     } ||
14802     {
14803     tmp=./conf$$-$RANDOM
14804     (umask 077 && mkdir "$tmp")
14805 michael 967 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14806 michael 912
14807 db 941 # Set up the scripts for CONFIG_FILES section.
14808     # No need to generate them if there are no CONFIG_FILES.
14809     # This happens for instance with `./config.status config.h'.
14810 michael 912 if test -n "$CONFIG_FILES"; then
14811    
14812 db 941
14813 michael 967 ac_cr=`echo X | tr X '\015'`
14814     # On cygwin, bash can eat \r inside `` if the user requested igncr.
14815     # But we know of no other shell where ac_cr would be empty at this
14816     # point, so we can use a bashism as a fallback.
14817     if test "x$ac_cr" = x; then
14818     eval ac_cr=\$\'\\r\'
14819     fi
14820 db 941 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14821     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14822 michael 967 ac_cs_awk_cr='\r'
14823 db 941 else
14824     ac_cs_awk_cr=$ac_cr
14825     fi
14826    
14827     echo 'BEGIN {' >"$tmp/subs1.awk" &&
14828 michael 912 _ACEOF
14829    
14830    
14831 db 941 {
14832     echo "cat >conf$$subs.awk <<_ACEOF" &&
14833     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14834     echo "_ACEOF"
14835     } >conf$$subs.sh ||
14836 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14837 db 941 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14838 michael 912 ac_delim='%!_!# '
14839     for ac_last_try in false false false false false :; do
14840 db 941 . ./conf$$subs.sh ||
14841 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14842 michael 912
14843 michael 942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14844     if test $ac_delim_n = $ac_delim_num; then
14845 michael 912 break
14846     elif $ac_last_try; then
14847 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14848 michael 912 else
14849     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14850     fi
14851     done
14852 db 941 rm -f conf$$subs.sh
14853 michael 912
14854 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14855     cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14856 michael 912 _ACEOF
14857 db 941 sed -n '
14858     h
14859     s/^/S["/; s/!.*/"]=/
14860     p
14861     g
14862     s/^[^!]*!//
14863     :repl
14864     t repl
14865     s/'"$ac_delim"'$//
14866     t delim
14867     :nl
14868     h
14869 michael 1033 s/\(.\{148\}\)..*/\1/
14870 db 941 t more1
14871     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14872     p
14873     n
14874     b repl
14875     :more1
14876     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14877     p
14878     g
14879     s/.\{148\}//
14880     t nl
14881     :delim
14882     h
14883 michael 1033 s/\(.\{148\}\)..*/\1/
14884 db 941 t more2
14885     s/["\\]/\\&/g; s/^/"/; s/$/"/
14886     p
14887     b
14888     :more2
14889     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14890     p
14891     g
14892     s/.\{148\}//
14893     t delim
14894     ' <conf$$subs.awk | sed '
14895     /^[^""]/{
14896     N
14897     s/\n//
14898     }
14899     ' >>$CONFIG_STATUS || ac_write_fail=1
14900     rm -f conf$$subs.awk
14901     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14902     _ACAWK
14903     cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14904     for (key in S) S_is_set[key] = 1
14905     FS = ""
14906 michael 912
14907 db 941 }
14908     {
14909     line = $ 0
14910     nfields = split(line, field, "@")
14911     substed = 0
14912     len = length(field[1])
14913     for (i = 2; i < nfields; i++) {
14914     key = field[i]
14915     keylen = length(key)
14916     if (S_is_set[key]) {
14917     value = S[key]
14918     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14919     len += length(value) + length(field[++i])
14920     substed = 1
14921     } else
14922     len += 1 + keylen
14923     }
14924 michael 912
14925 db 941 print line
14926     }
14927    
14928     _ACAWK
14929 michael 912 _ACEOF
14930 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14931     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14932     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14933     else
14934     cat
14935     fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14936 michael 967 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14937 michael 912 _ACEOF
14938    
14939     # VPATH may cause trouble with some makes, so we remove $(srcdir),
14940     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14941     # trailing colons and then remove the whole line if VPATH becomes empty
14942     # (actually we leave an empty line to preserve line numbers).
14943     if test "x$srcdir" = x.; then
14944     ac_vpsub='/^[ ]*VPATH[ ]*=/{
14945     s/:*\$(srcdir):*/:/
14946     s/:*\${srcdir}:*/:/
14947     s/:*@srcdir@:*/:/
14948     s/^\([^=]*=[ ]*\):*/\1/
14949     s/:*$//
14950     s/^[^=]*=[ ]*$//
14951     }'
14952     fi
14953    
14954 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14955 michael 912 fi # test -n "$CONFIG_FILES"
14956    
14957 db 941 # Set up the scripts for CONFIG_HEADERS section.
14958     # No need to generate them if there are no CONFIG_HEADERS.
14959     # This happens for instance with `./config.status Makefile'.
14960     if test -n "$CONFIG_HEADERS"; then
14961     cat >"$tmp/defines.awk" <<\_ACAWK ||
14962     BEGIN {
14963     _ACEOF
14964 michael 912
14965 db 941 # Transform confdefs.h into an awk script `defines.awk', embedded as
14966     # here-document in config.status, that substitutes the proper values into
14967     # config.h.in to produce config.h.
14968    
14969     # Create a delimiter string that does not exist in confdefs.h, to ease
14970     # handling of long lines.
14971     ac_delim='%!_!# '
14972     for ac_last_try in false false :; do
14973     ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14974     if test -z "$ac_t"; then
14975     break
14976     elif $ac_last_try; then
14977 michael 967 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14978 db 941 else
14979     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14980     fi
14981     done
14982    
14983     # For the awk script, D is an array of macro values keyed by name,
14984     # likewise P contains macro parameters if any. Preserve backslash
14985     # newline sequences.
14986    
14987     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14988     sed -n '
14989     s/.\{148\}/&'"$ac_delim"'/g
14990     t rset
14991     :rset
14992     s/^[ ]*#[ ]*define[ ][ ]*/ /
14993     t def
14994     d
14995     :def
14996     s/\\$//
14997     t bsnl
14998     s/["\\]/\\&/g
14999     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15000     D["\1"]=" \3"/p
15001     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15002     d
15003     :bsnl
15004     s/["\\]/\\&/g
15005     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15006     D["\1"]=" \3\\\\\\n"\\/p
15007     t cont
15008     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15009     t cont
15010     d
15011     :cont
15012     n
15013     s/.\{148\}/&'"$ac_delim"'/g
15014     t clear
15015     :clear
15016     s/\\$//
15017     t bsnlc
15018     s/["\\]/\\&/g; s/^/"/; s/$/"/p
15019     d
15020     :bsnlc
15021     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15022     b cont
15023     ' <confdefs.h | sed '
15024     s/'"$ac_delim"'/"\\\
15025     "/g' >>$CONFIG_STATUS || ac_write_fail=1
15026    
15027     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15028     for (key in D) D_is_set[key] = 1
15029     FS = ""
15030     }
15031     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15032     line = \$ 0
15033     split(line, arg, " ")
15034     if (arg[1] == "#") {
15035     defundef = arg[2]
15036     mac1 = arg[3]
15037     } else {
15038     defundef = substr(arg[1], 2)
15039     mac1 = arg[2]
15040     }
15041     split(mac1, mac2, "(") #)
15042     macro = mac2[1]
15043 michael 942 prefix = substr(line, 1, index(line, defundef) - 1)
15044 db 941 if (D_is_set[macro]) {
15045     # Preserve the white space surrounding the "#".
15046     print prefix "define", macro P[macro] D[macro]
15047     next
15048     } else {
15049     # Replace #undef with comments. This is necessary, for example,
15050     # in the case of _POSIX_SOURCE, which is predefined and required
15051     # on some systems where configure will not decide to define it.
15052     if (defundef == "undef") {
15053 michael 942 print "/*", prefix defundef, macro, "*/"
15054 db 941 next
15055     }
15056     }
15057     }
15058     { print }
15059     _ACAWK
15060     _ACEOF
15061     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15062 michael 967 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15063 db 941 fi # test -n "$CONFIG_HEADERS"
15064    
15065    
15066     eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15067     shift
15068     for ac_tag
15069 michael 912 do
15070     case $ac_tag in
15071     :[FHLC]) ac_mode=$ac_tag; continue;;
15072     esac
15073     case $ac_mode$ac_tag in
15074     :[FHL]*:*);;
15075 michael 967 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15076 michael 912 :[FH]-) ac_tag=-:-;;
15077     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15078     esac
15079     ac_save_IFS=$IFS
15080     IFS=:
15081     set x $ac_tag
15082     IFS=$ac_save_IFS
15083     shift
15084     ac_file=$1
15085     shift
15086    
15087     case $ac_mode in
15088     :L) ac_source=$1;;
15089     :[FH])
15090     ac_file_inputs=
15091     for ac_f
15092     do
15093     case $ac_f in
15094     -) ac_f="$tmp/stdin";;
15095     *) # Look for the file first in the build tree, then in the source tree
15096     # (if the path is not absolute). The absolute path cannot be DOS-style,
15097     # because $ac_f cannot contain `:'.
15098     test -f "$ac_f" ||
15099     case $ac_f in
15100     [\\/$]*) false;;
15101     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15102     esac ||
15103 michael 967 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15104 michael 912 esac
15105 db 941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15106 michael 967 as_fn_append ac_file_inputs " '$ac_f'"
15107 michael 912 done
15108    
15109     # Let's still pretend it is `configure' which instantiates (i.e., don't
15110     # use $as_me), people would be surprised to read:
15111     # /* config.h. Generated by config.status. */
15112 db 941 configure_input='Generated from '`
15113     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15114     `' by configure.'
15115 michael 912 if test x"$ac_file" != x-; then
15116     configure_input="$ac_file. $configure_input"
15117 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15118 db 941 $as_echo "$as_me: creating $ac_file" >&6;}
15119 michael 912 fi
15120 db 941 # Neutralize special characters interpreted by sed in replacement strings.
15121     case $configure_input in #(
15122     *\&* | *\|* | *\\* )
15123     ac_sed_conf_input=`$as_echo "$configure_input" |
15124     sed 's/[\\\\&|]/\\\\&/g'`;; #(
15125     *) ac_sed_conf_input=$configure_input;;
15126     esac
15127 michael 912
15128     case $ac_tag in
15129 db 941 *:-:* | *:-) cat >"$tmp/stdin" \
15130 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15131 michael 912 esac
15132     ;;
15133     esac
15134    
15135     ac_dir=`$as_dirname -- "$ac_file" ||
15136     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15137     X"$ac_file" : 'X\(//\)[^/]' \| \
15138     X"$ac_file" : 'X\(//\)$' \| \
15139     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15140 db 941 $as_echo X"$ac_file" |
15141 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15142     s//\1/
15143     q
15144     }
15145     /^X\(\/\/\)[^/].*/{
15146     s//\1/
15147     q
15148     }
15149     /^X\(\/\/\)$/{
15150     s//\1/
15151     q
15152     }
15153     /^X\(\/\).*/{
15154     s//\1/
15155     q
15156     }
15157     s/.*/./; q'`
15158 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
15159 michael 912 ac_builddir=.
15160    
15161     case "$ac_dir" in
15162     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15163     *)
15164 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15165 michael 912 # A ".." for each directory in $ac_dir_suffix.
15166 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15167 michael 912 case $ac_top_builddir_sub in
15168     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15169     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15170     esac ;;
15171     esac
15172     ac_abs_top_builddir=$ac_pwd
15173     ac_abs_builddir=$ac_pwd$ac_dir_suffix
15174     # for backward compatibility:
15175     ac_top_builddir=$ac_top_build_prefix
15176    
15177     case $srcdir in
15178     .) # We are building in place.
15179     ac_srcdir=.
15180     ac_top_srcdir=$ac_top_builddir_sub
15181     ac_abs_top_srcdir=$ac_pwd ;;
15182     [\\/]* | ?:[\\/]* ) # Absolute name.
15183     ac_srcdir=$srcdir$ac_dir_suffix;
15184     ac_top_srcdir=$srcdir
15185     ac_abs_top_srcdir=$srcdir ;;
15186     *) # Relative name.
15187     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15188     ac_top_srcdir=$ac_top_build_prefix$srcdir
15189     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15190     esac
15191     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15192    
15193    
15194     case $ac_mode in
15195     :F)
15196     #
15197     # CONFIG_FILE
15198     #
15199    
15200     case $INSTALL in
15201     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15202     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15203     esac
15204     ac_MKDIR_P=$MKDIR_P
15205     case $MKDIR_P in
15206     [\\/$]* | ?:[\\/]* ) ;;
15207     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15208     esac
15209     _ACEOF
15210    
15211 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15212 michael 912 # If the template does not know about datarootdir, expand it.
15213     # FIXME: This hack should be removed a few years after 2.60.
15214     ac_datarootdir_hack=; ac_datarootdir_seen=
15215 db 941 ac_sed_dataroot='
15216     /datarootdir/ {
15217 michael 912 p
15218     q
15219     }
15220     /@datadir@/p
15221     /@docdir@/p
15222     /@infodir@/p
15223     /@localedir@/p
15224 michael 967 /@mandir@/p'
15225 db 941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15226 michael 912 *datarootdir*) ac_datarootdir_seen=yes;;
15227     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15228 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15229 db 941 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15230 michael 912 _ACEOF
15231 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15232 michael 912 ac_datarootdir_hack='
15233     s&@datadir@&$datadir&g
15234     s&@docdir@&$docdir&g
15235     s&@infodir@&$infodir&g
15236     s&@localedir@&$localedir&g
15237     s&@mandir@&$mandir&g
15238 michael 967 s&\\\${datarootdir}&$datarootdir&g' ;;
15239 michael 912 esac
15240     _ACEOF
15241    
15242     # Neutralize VPATH when `$srcdir' = `.'.
15243     # Shell code in configure.ac might set extrasub.
15244     # FIXME: do we really want to maintain this feature?
15245 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15246     ac_sed_extra="$ac_vpsub
15247 michael 912 $extrasub
15248     _ACEOF
15249 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15250 michael 912 :t
15251     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15252 db 941 s|@configure_input@|$ac_sed_conf_input|;t t
15253 michael 912 s&@top_builddir@&$ac_top_builddir_sub&;t t
15254 db 941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15255 michael 912 s&@srcdir@&$ac_srcdir&;t t
15256     s&@abs_srcdir@&$ac_abs_srcdir&;t t
15257     s&@top_srcdir@&$ac_top_srcdir&;t t
15258     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15259     s&@builddir@&$ac_builddir&;t t
15260     s&@abs_builddir@&$ac_abs_builddir&;t t
15261     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15262     s&@INSTALL@&$ac_INSTALL&;t t
15263     s&@MKDIR_P@&$ac_MKDIR_P&;t t
15264     $ac_datarootdir_hack
15265 db 941 "
15266     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15267 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15268 michael 912
15269     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15270     { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15271     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15272 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15273 michael 912 which seems to be undefined. Please make sure it is defined." >&5
15274 db 941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15275 michael 912 which seems to be undefined. Please make sure it is defined." >&2;}
15276    
15277     rm -f "$tmp/stdin"
15278     case $ac_file in
15279 db 941 -) cat "$tmp/out" && rm -f "$tmp/out";;
15280     *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15281     esac \
15282 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15283 michael 912 ;;
15284     :H)
15285     #
15286     # CONFIG_HEADER
15287     #
15288     if test x"$ac_file" != x-; then
15289 db 941 {
15290     $as_echo "/* $configure_input */" \
15291     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15292     } >"$tmp/config.h" \
15293 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15294 db 941 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15295 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15296 db 941 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15297 michael 912 else
15298 db 941 rm -f "$ac_file"
15299     mv "$tmp/config.h" "$ac_file" \
15300 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15301 michael 912 fi
15302     else
15303 db 941 $as_echo "/* $configure_input */" \
15304     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15305 michael 967 || as_fn_error "could not create -" "$LINENO" 5
15306 michael 912 fi
15307 db 941 # Compute "$ac_file"'s index in $config_headers.
15308     _am_arg="$ac_file"
15309 michael 912 _am_stamp_count=1
15310     for _am_header in $config_headers :; do
15311     case $_am_header in
15312 db 941 $_am_arg | $_am_arg:* )
15313 michael 912 break ;;
15314     * )
15315     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15316     esac
15317     done
15318 db 941 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15319     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15320     X"$_am_arg" : 'X\(//\)[^/]' \| \
15321     X"$_am_arg" : 'X\(//\)$' \| \
15322     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15323     $as_echo X"$_am_arg" |
15324 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15325     s//\1/
15326     q
15327     }
15328     /^X\(\/\/\)[^/].*/{
15329     s//\1/
15330     q
15331     }
15332     /^X\(\/\/\)$/{
15333     s//\1/
15334     q
15335     }
15336     /^X\(\/\).*/{
15337     s//\1/
15338     q
15339     }
15340     s/.*/./; q'`/stamp-h$_am_stamp_count
15341     ;;
15342    
15343 michael 967 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15344 db 941 $as_echo "$as_me: executing $ac_file commands" >&6;}
15345 michael 912 ;;
15346     esac
15347    
15348    
15349     case $ac_file$ac_mode in
15350 michael 945 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15351     # Autoconf 2.62 quotes --file arguments for eval, but not when files
15352     # are listed without --file. Let's play safe and only enable the eval
15353     # if we detect the quoting.
15354     case $CONFIG_FILES in
15355     *\'*) eval set x "$CONFIG_FILES" ;;
15356     *) set x $CONFIG_FILES ;;
15357     esac
15358     shift
15359     for mf
15360     do
15361     # Strip MF so we end up with the name of the file.
15362     mf=`echo "$mf" | sed -e 's/:.*$//'`
15363     # Check whether this is an Automake generated Makefile or not.
15364     # We used to match only the files named `Makefile.in', but
15365     # some people rename them; so instead we look at the file content.
15366     # Grep'ing the first line is not enough: some people post-process
15367     # each Makefile.in and add a new line on top of each file to say so.
15368     # Grep'ing the whole file is not good either: AIX grep has a line
15369     # limit of 2048, but all sed's we know have understand at least 4000.
15370     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15371     dirpart=`$as_dirname -- "$mf" ||
15372 michael 912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15373     X"$mf" : 'X\(//\)[^/]' \| \
15374     X"$mf" : 'X\(//\)$' \| \
15375     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15376 db 941 $as_echo X"$mf" |
15377 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15378     s//\1/
15379     q
15380     }
15381     /^X\(\/\/\)[^/].*/{
15382     s//\1/
15383     q
15384     }
15385     /^X\(\/\/\)$/{
15386     s//\1/
15387     q
15388     }
15389     /^X\(\/\).*/{
15390     s//\1/
15391     q
15392     }
15393     s/.*/./; q'`
15394 michael 945 else
15395     continue
15396     fi
15397     # Extract the definition of DEPDIR, am__include, and am__quote
15398     # from the Makefile without running `make'.
15399     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15400     test -z "$DEPDIR" && continue
15401     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15402     test -z "am__include" && continue
15403     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15404     # When using ansi2knr, U may be empty or an underscore; expand it
15405     U=`sed -n 's/^U = //p' < "$mf"`
15406     # Find all dependency output files, they are included files with
15407     # $(DEPDIR) in their names. We invoke sed twice because it is the
15408     # simplest approach to changing $(DEPDIR) to its actual value in the
15409     # expansion.
15410     for file in `sed -n "
15411     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15412     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15413     # Make sure the directory exists.
15414     test -f "$dirpart/$file" && continue
15415     fdir=`$as_dirname -- "$file" ||
15416 michael 912 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15417     X"$file" : 'X\(//\)[^/]' \| \
15418     X"$file" : 'X\(//\)$' \| \
15419     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15420 db 941 $as_echo X"$file" |
15421 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15422     s//\1/
15423     q
15424     }
15425     /^X\(\/\/\)[^/].*/{
15426     s//\1/
15427     q
15428     }
15429     /^X\(\/\/\)$/{
15430     s//\1/
15431     q
15432     }
15433     /^X\(\/\).*/{
15434     s//\1/
15435     q
15436     }
15437     s/.*/./; q'`
15438 michael 967 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15439 michael 945 # echo "creating $dirpart/$file"
15440     echo '# dummy' > "$dirpart/$file"
15441     done
15442 michael 912 done
15443 michael 945 }
15444 michael 912 ;;
15445 michael 945 "libtool":C)
15446 michael 912
15447 michael 945 # See if we are running on zsh, and set the options which allow our
15448     # commands through without removal of \ escapes.
15449     if test -n "${ZSH_VERSION+set}" ; then
15450     setopt NO_GLOB_SUBST
15451     fi
15452    
15453     cfgfile="${ofile}T"
15454     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15455     $RM "$cfgfile"
15456    
15457     cat <<_LT_EOF >> "$cfgfile"
15458     #! $SHELL
15459    
15460     # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15461     # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15462     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15463     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15464     #
15465     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15466     # 2006, 2007, 2008 Free Software Foundation, Inc.
15467     # Written by Gordon Matzigkeit, 1996
15468     #
15469     # This file is part of GNU Libtool.
15470     #
15471     # GNU Libtool is free software; you can redistribute it and/or
15472     # modify it under the terms of the GNU General Public License as
15473     # published by the Free Software Foundation; either version 2 of
15474     # the License, or (at your option) any later version.
15475     #
15476     # As a special exception to the GNU General Public License,
15477     # if you distribute this file as part of a program or library that
15478     # is built using GNU Libtool, you may include this file under the
15479     # same distribution terms that you use for the rest of that program.
15480     #
15481     # GNU Libtool is distributed in the hope that it will be useful,
15482     # but WITHOUT ANY WARRANTY; without even the implied warranty of
15483     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15484     # GNU General Public License for more details.
15485     #
15486     # You should have received a copy of the GNU General Public License
15487     # along with GNU Libtool; see the file COPYING. If not, a copy
15488     # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15489     # obtained by writing to the Free Software Foundation, Inc.,
15490     # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15491    
15492    
15493     # The names of the tagged configurations supported by this script.
15494     available_tags=""
15495    
15496     # ### BEGIN LIBTOOL CONFIG
15497    
15498     # Which release of libtool.m4 was used?
15499     macro_version=$macro_version
15500     macro_revision=$macro_revision
15501    
15502 michael 977 # Whether or not to build static libraries.
15503     build_old_libs=$enable_static
15504    
15505 michael 945 # Whether or not to build shared libraries.
15506     build_libtool_libs=$enable_shared
15507    
15508     # What type of objects to build.
15509     pic_mode=$pic_mode
15510    
15511     # Whether or not to optimize for fast installation.
15512     fast_install=$enable_fast_install
15513    
15514     # The host system.
15515     host_alias=$host_alias
15516     host=$host
15517     host_os=$host_os
15518    
15519     # The build system.
15520     build_alias=$build_alias
15521     build=$build
15522     build_os=$build_os
15523    
15524     # A sed program that does not truncate output.
15525     SED=$lt_SED
15526    
15527     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15528     Xsed="\$SED -e 1s/^X//"
15529    
15530     # A grep program that handles long lines.
15531     GREP=$lt_GREP
15532    
15533     # An ERE matcher.
15534     EGREP=$lt_EGREP
15535    
15536     # A literal string matcher.
15537     FGREP=$lt_FGREP
15538    
15539     # A BSD- or MS-compatible name lister.
15540     NM=$lt_NM
15541    
15542     # Whether we need soft or hard links.
15543     LN_S=$lt_LN_S
15544    
15545     # What is the maximum length of a command?
15546     max_cmd_len=$max_cmd_len
15547    
15548     # Object file suffix (normally "o").
15549     objext=$ac_objext
15550    
15551     # Executable file suffix (normally "").
15552     exeext=$exeext
15553    
15554     # whether the shell understands "unset".
15555     lt_unset=$lt_unset
15556    
15557     # turn spaces into newlines.
15558     SP2NL=$lt_lt_SP2NL
15559    
15560     # turn newlines into spaces.
15561     NL2SP=$lt_lt_NL2SP
15562    
15563     # How to create reloadable object files.
15564     reload_flag=$lt_reload_flag
15565     reload_cmds=$lt_reload_cmds
15566    
15567     # An object symbol dumper.
15568     OBJDUMP=$lt_OBJDUMP
15569    
15570     # Method to check whether dependent libraries are shared objects.
15571     deplibs_check_method=$lt_deplibs_check_method
15572    
15573     # Command to use when deplibs_check_method == "file_magic".
15574     file_magic_cmd=$lt_file_magic_cmd
15575    
15576     # The archiver.
15577     AR=$lt_AR
15578     AR_FLAGS=$lt_AR_FLAGS
15579    
15580     # A symbol stripping program.
15581     STRIP=$lt_STRIP
15582    
15583     # Commands used to install an old-style archive.
15584     RANLIB=$lt_RANLIB
15585     old_postinstall_cmds=$lt_old_postinstall_cmds
15586     old_postuninstall_cmds=$lt_old_postuninstall_cmds
15587    
15588     # A C compiler.
15589     LTCC=$lt_CC
15590    
15591     # LTCC compiler flags.
15592     LTCFLAGS=$lt_CFLAGS
15593    
15594     # Take the output of nm and produce a listing of raw symbols and C names.
15595     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15596    
15597     # Transform the output of nm in a proper C declaration.
15598     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15599    
15600     # Transform the output of nm in a C name address pair.
15601     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15602    
15603     # Transform the output of nm in a C name address pair when lib prefix is needed.
15604     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15605    
15606     # The name of the directory that contains temporary libtool files.
15607     objdir=$objdir
15608    
15609     # Shell to use when invoking shell scripts.
15610     SHELL=$lt_SHELL
15611    
15612     # An echo program that does not interpret backslashes.
15613     ECHO=$lt_ECHO
15614    
15615     # Used to examine libraries when file_magic_cmd begins with "file".
15616     MAGIC_CMD=$MAGIC_CMD
15617    
15618     # Must we lock files when doing compilation?
15619     need_locks=$lt_need_locks
15620    
15621     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15622     DSYMUTIL=$lt_DSYMUTIL
15623    
15624     # Tool to change global to local symbols on Mac OS X.
15625     NMEDIT=$lt_NMEDIT
15626    
15627     # Tool to manipulate fat objects and archives on Mac OS X.
15628     LIPO=$lt_LIPO
15629    
15630     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15631     OTOOL=$lt_OTOOL
15632    
15633     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15634     OTOOL64=$lt_OTOOL64
15635    
15636     # Old archive suffix (normally "a").
15637     libext=$libext
15638    
15639     # Shared library suffix (normally ".so").
15640     shrext_cmds=$lt_shrext_cmds
15641    
15642     # The commands to extract the exported symbol list from a shared archive.
15643     extract_expsyms_cmds=$lt_extract_expsyms_cmds
15644    
15645     # Variables whose values should be saved in libtool wrapper scripts and
15646     # restored at link time.
15647     variables_saved_for_relink=$lt_variables_saved_for_relink
15648    
15649     # Do we need the "lib" prefix for modules?
15650     need_lib_prefix=$need_lib_prefix
15651    
15652     # Do we need a version for libraries?
15653     need_version=$need_version
15654    
15655     # Library versioning type.
15656     version_type=$version_type
15657    
15658     # Shared library runtime path variable.
15659     runpath_var=$runpath_var
15660    
15661     # Shared library path variable.
15662     shlibpath_var=$shlibpath_var
15663    
15664     # Is shlibpath searched before the hard-coded library search path?
15665     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15666    
15667     # Format of library name prefix.
15668     libname_spec=$lt_libname_spec
15669    
15670     # List of archive names. First name is the real one, the rest are links.
15671     # The last name is the one that the linker finds with -lNAME
15672     library_names_spec=$lt_library_names_spec
15673    
15674     # The coded name of the library, if different from the real name.
15675     soname_spec=$lt_soname_spec
15676    
15677     # Command to use after installation of a shared archive.
15678     postinstall_cmds=$lt_postinstall_cmds
15679    
15680     # Command to use after uninstallation of a shared archive.
15681     postuninstall_cmds=$lt_postuninstall_cmds
15682    
15683     # Commands used to finish a libtool library installation in a directory.
15684     finish_cmds=$lt_finish_cmds
15685    
15686     # As "finish_cmds", except a single script fragment to be evaled but
15687     # not shown.
15688     finish_eval=$lt_finish_eval
15689    
15690     # Whether we should hardcode library paths into libraries.
15691     hardcode_into_libs=$hardcode_into_libs
15692    
15693     # Compile-time system search path for libraries.
15694     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15695    
15696     # Run-time system search path for libraries.
15697     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15698    
15699     # Whether dlopen is supported.
15700     dlopen_support=$enable_dlopen
15701    
15702     # Whether dlopen of programs is supported.
15703     dlopen_self=$enable_dlopen_self
15704    
15705     # Whether dlopen of statically linked programs is supported.
15706     dlopen_self_static=$enable_dlopen_self_static
15707    
15708     # Commands to strip libraries.
15709     old_striplib=$lt_old_striplib
15710     striplib=$lt_striplib
15711    
15712    
15713     # The linker used to build libraries.
15714     LD=$lt_LD
15715    
15716     # Commands used to build an old-style archive.
15717     old_archive_cmds=$lt_old_archive_cmds
15718    
15719     # A language specific compiler.
15720     CC=$lt_compiler
15721    
15722     # Is the compiler the GNU compiler?
15723     with_gcc=$GCC
15724    
15725     # Compiler flag to turn off builtin functions.
15726     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15727    
15728     # How to pass a linker flag through the compiler.
15729     wl=$lt_lt_prog_compiler_wl
15730    
15731     # Additional compiler flags for building library objects.
15732     pic_flag=$lt_lt_prog_compiler_pic
15733    
15734     # Compiler flag to prevent dynamic linking.
15735     link_static_flag=$lt_lt_prog_compiler_static
15736    
15737     # Does compiler simultaneously support -c and -o options?
15738     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15739    
15740     # Whether or not to add -lc for building shared libraries.
15741     build_libtool_need_lc=$archive_cmds_need_lc
15742    
15743     # Whether or not to disallow shared libs when runtime libs are static.
15744     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15745    
15746     # Compiler flag to allow reflexive dlopens.
15747     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15748    
15749     # Compiler flag to generate shared objects directly from archives.
15750     whole_archive_flag_spec=$lt_whole_archive_flag_spec
15751    
15752     # Whether the compiler copes with passing no objects directly.
15753     compiler_needs_object=$lt_compiler_needs_object
15754    
15755     # Create an old-style archive from a shared archive.
15756     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15757    
15758     # Create a temporary old-style archive to link instead of a shared archive.
15759     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15760    
15761     # Commands used to build a shared archive.
15762     archive_cmds=$lt_archive_cmds
15763     archive_expsym_cmds=$lt_archive_expsym_cmds
15764    
15765     # Commands used to build a loadable module if different from building
15766     # a shared archive.
15767     module_cmds=$lt_module_cmds
15768     module_expsym_cmds=$lt_module_expsym_cmds
15769    
15770     # Whether we are building with GNU ld or not.
15771     with_gnu_ld=$lt_with_gnu_ld
15772    
15773     # Flag that allows shared libraries with undefined symbols to be built.
15774     allow_undefined_flag=$lt_allow_undefined_flag
15775    
15776     # Flag that enforces no undefined symbols.
15777     no_undefined_flag=$lt_no_undefined_flag
15778    
15779     # Flag to hardcode \$libdir into a binary during linking.
15780     # This must work even if \$libdir does not exist
15781     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15782    
15783     # If ld is used when linking, flag to hardcode \$libdir into a binary
15784     # during linking. This must work even if \$libdir does not exist.
15785     hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15786    
15787     # Whether we need a single "-rpath" flag with a separated argument.
15788     hardcode_libdir_separator=$lt_hardcode_libdir_separator
15789    
15790     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15791     # DIR into the resulting binary.
15792     hardcode_direct=$hardcode_direct
15793    
15794     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15795     # DIR into the resulting binary and the resulting library dependency is
15796     # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15797     # library is relocated.
15798     hardcode_direct_absolute=$hardcode_direct_absolute
15799    
15800     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15801     # into the resulting binary.
15802     hardcode_minus_L=$hardcode_minus_L
15803    
15804     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15805     # into the resulting binary.
15806     hardcode_shlibpath_var=$hardcode_shlibpath_var
15807    
15808     # Set to "yes" if building a shared library automatically hardcodes DIR
15809     # into the library and all subsequent libraries and executables linked
15810     # against it.
15811     hardcode_automatic=$hardcode_automatic
15812    
15813     # Set to yes if linker adds runtime paths of dependent libraries
15814     # to runtime path list.
15815     inherit_rpath=$inherit_rpath
15816    
15817     # Whether libtool must link a program against all its dependency libraries.
15818     link_all_deplibs=$link_all_deplibs
15819    
15820     # Fix the shell variable \$srcfile for the compiler.
15821     fix_srcfile_path=$lt_fix_srcfile_path
15822    
15823     # Set to "yes" if exported symbols are required.
15824     always_export_symbols=$always_export_symbols
15825    
15826     # The commands to list exported symbols.
15827     export_symbols_cmds=$lt_export_symbols_cmds
15828    
15829     # Symbols that should not be listed in the preloaded symbols.
15830     exclude_expsyms=$lt_exclude_expsyms
15831    
15832     # Symbols that must always be exported.
15833     include_expsyms=$lt_include_expsyms
15834    
15835     # Commands necessary for linking programs (against libraries) with templates.
15836     prelink_cmds=$lt_prelink_cmds
15837    
15838     # Specify filename containing input files.
15839     file_list_spec=$lt_file_list_spec
15840    
15841     # How to hardcode a shared library path into an executable.
15842     hardcode_action=$hardcode_action
15843    
15844     # ### END LIBTOOL CONFIG
15845    
15846     _LT_EOF
15847    
15848     case $host_os in
15849     aix3*)
15850     cat <<\_LT_EOF >> "$cfgfile"
15851     # AIX sometimes has problems with the GCC collect2 program. For some
15852     # reason, if we set the COLLECT_NAMES environment variable, the problems
15853     # vanish in a puff of smoke.
15854     if test "X${COLLECT_NAMES+set}" != Xset; then
15855     COLLECT_NAMES=
15856     export COLLECT_NAMES
15857     fi
15858     _LT_EOF
15859     ;;
15860 michael 912 esac
15861 michael 945
15862    
15863     ltmain="$ac_aux_dir/ltmain.sh"
15864    
15865    
15866     # We use sed instead of cat because bash on DJGPP gets confused if
15867     # if finds mixed CR/LF and LF-only lines. Since sed operates in
15868     # text mode, it properly converts lines to CR/LF. This bash problem
15869     # is reportedly fixed, but why not run on old versions too?
15870     sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15871     || (rm -f "$cfgfile"; exit 1)
15872    
15873     case $xsi_shell in
15874     yes)
15875     cat << \_LT_EOF >> "$cfgfile"
15876    
15877     # func_dirname file append nondir_replacement
15878     # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15879     # otherwise set result to NONDIR_REPLACEMENT.
15880     func_dirname ()
15881     {
15882     case ${1} in
15883     */*) func_dirname_result="${1%/*}${2}" ;;
15884     * ) func_dirname_result="${3}" ;;
15885     esac
15886     }
15887    
15888     # func_basename file
15889     func_basename ()
15890     {
15891     func_basename_result="${1##*/}"
15892     }
15893    
15894     # func_dirname_and_basename file append nondir_replacement
15895     # perform func_basename and func_dirname in a single function
15896     # call:
15897     # dirname: Compute the dirname of FILE. If nonempty,
15898     # add APPEND to the result, otherwise set result
15899     # to NONDIR_REPLACEMENT.
15900     # value returned in "$func_dirname_result"
15901     # basename: Compute filename of FILE.
15902     # value retuned in "$func_basename_result"
15903     # Implementation must be kept synchronized with func_dirname
15904     # and func_basename. For efficiency, we do not delegate to
15905     # those functions but instead duplicate the functionality here.
15906     func_dirname_and_basename ()
15907     {
15908     case ${1} in
15909     */*) func_dirname_result="${1%/*}${2}" ;;
15910     * ) func_dirname_result="${3}" ;;
15911     esac
15912     func_basename_result="${1##*/}"
15913     }
15914    
15915     # func_stripname prefix suffix name
15916     # strip PREFIX and SUFFIX off of NAME.
15917     # PREFIX and SUFFIX must not contain globbing or regex special
15918     # characters, hashes, percent signs, but SUFFIX may contain a leading
15919     # dot (in which case that matches only a dot).
15920     func_stripname ()
15921     {
15922     # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15923     # positional parameters, so assign one to ordinary parameter first.
15924     func_stripname_result=${3}
15925     func_stripname_result=${func_stripname_result#"${1}"}
15926     func_stripname_result=${func_stripname_result%"${2}"}
15927     }
15928    
15929     # func_opt_split
15930     func_opt_split ()
15931     {
15932     func_opt_split_opt=${1%%=*}
15933     func_opt_split_arg=${1#*=}
15934     }
15935    
15936     # func_lo2o object
15937     func_lo2o ()
15938     {
15939     case ${1} in
15940     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15941     *) func_lo2o_result=${1} ;;
15942     esac
15943     }
15944    
15945     # func_xform libobj-or-source
15946     func_xform ()
15947     {
15948     func_xform_result=${1%.*}.lo
15949     }
15950    
15951     # func_arith arithmetic-term...
15952     func_arith ()
15953     {
15954     func_arith_result=$(( $* ))
15955     }
15956    
15957     # func_len string
15958     # STRING may not start with a hyphen.
15959     func_len ()
15960     {
15961     func_len_result=${#1}
15962     }
15963    
15964     _LT_EOF
15965     ;;
15966     *) # Bourne compatible functions.
15967     cat << \_LT_EOF >> "$cfgfile"
15968    
15969     # func_dirname file append nondir_replacement
15970     # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15971     # otherwise set result to NONDIR_REPLACEMENT.
15972     func_dirname ()
15973     {
15974     # Extract subdirectory from the argument.
15975     func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15976     if test "X$func_dirname_result" = "X${1}"; then
15977     func_dirname_result="${3}"
15978     else
15979     func_dirname_result="$func_dirname_result${2}"
15980     fi
15981     }
15982    
15983     # func_basename file
15984     func_basename ()
15985     {
15986     func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15987     }
15988    
15989    
15990     # func_stripname prefix suffix name
15991     # strip PREFIX and SUFFIX off of NAME.
15992     # PREFIX and SUFFIX must not contain globbing or regex special
15993     # characters, hashes, percent signs, but SUFFIX may contain a leading
15994     # dot (in which case that matches only a dot).
15995     # func_strip_suffix prefix name
15996     func_stripname ()
15997     {
15998     case ${2} in
15999     .*) func_stripname_result=`$ECHO "X${3}" \
16000     | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16001     *) func_stripname_result=`$ECHO "X${3}" \
16002     | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16003     esac
16004     }
16005    
16006     # sed scripts:
16007     my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16008     my_sed_long_arg='1s/^-[^=]*=//'
16009    
16010     # func_opt_split
16011     func_opt_split ()
16012     {
16013     func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16014     func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16015     }
16016    
16017     # func_lo2o object
16018     func_lo2o ()
16019     {
16020     func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16021     }
16022    
16023     # func_xform libobj-or-source
16024     func_xform ()
16025     {
16026     func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16027     }
16028    
16029     # func_arith arithmetic-term...
16030     func_arith ()
16031     {
16032     func_arith_result=`expr "$@"`
16033     }
16034    
16035     # func_len string
16036     # STRING may not start with a hyphen.
16037     func_len ()
16038     {
16039     func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16040     }
16041    
16042     _LT_EOF
16043     esac
16044    
16045     case $lt_shell_append in
16046     yes)
16047     cat << \_LT_EOF >> "$cfgfile"
16048    
16049     # func_append var value
16050     # Append VALUE to the end of shell variable VAR.
16051     func_append ()
16052     {
16053     eval "$1+=\$2"
16054     }
16055     _LT_EOF
16056     ;;
16057     *)
16058     cat << \_LT_EOF >> "$cfgfile"
16059    
16060     # func_append var value
16061     # Append VALUE to the end of shell variable VAR.
16062     func_append ()
16063     {
16064     eval "$1=\$$1\$2"
16065     }
16066    
16067     _LT_EOF
16068     ;;
16069     esac
16070    
16071    
16072     sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16073     || (rm -f "$cfgfile"; exit 1)
16074    
16075     mv -f "$cfgfile" "$ofile" ||
16076     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16077     chmod +x "$ofile"
16078    
16079     ;;
16080    
16081     esac
16082 michael 912 done # for ac_tag
16083    
16084    
16085 michael 967 as_fn_exit 0
16086 michael 912 _ACEOF
16087     ac_clean_files=$ac_clean_files_save
16088    
16089 db 941 test $ac_write_fail = 0 ||
16090 michael 967 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16091 michael 912
16092 db 941
16093 michael 912 # configure is writing to config.log, and then calls config.status.
16094     # config.status does its own redirection, appending to config.log.
16095     # Unfortunately, on DOS this fails, as config.log is still kept open
16096     # by configure, so config.status won't be able to write to it; its
16097     # output is simply discarded. So we exec the FD to /dev/null,
16098     # effectively closing config.log, so it can be properly (re)opened and
16099     # appended to by config.status. When coming back to configure, we
16100     # need to make the FD available again.
16101     if test "$no_create" != yes; then
16102     ac_cs_success=:
16103     ac_config_status_args=
16104     test "$silent" = yes &&
16105     ac_config_status_args="$ac_config_status_args --quiet"
16106     exec 5>/dev/null
16107     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16108     exec 5>>config.log
16109     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16110     # would make configure fail if this is the last instruction.
16111 michael 967 $ac_cs_success || as_fn_exit $?
16112 michael 912 fi
16113    
16114     #
16115     # CONFIG_SUBDIRS section.
16116     #
16117     if test "$no_recursion" != yes; then
16118    
16119 db 941 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16120     # so they do not pile up.
16121 michael 912 ac_sub_configure_args=
16122     ac_prev=
16123     eval "set x $ac_configure_args"
16124     shift
16125     for ac_arg
16126     do
16127     if test -n "$ac_prev"; then
16128     ac_prev=
16129     continue
16130     fi
16131     case $ac_arg in
16132     -cache-file | --cache-file | --cache-fil | --cache-fi \
16133     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16134     ac_prev=cache_file ;;
16135     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16136     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16137     | --c=*)
16138     ;;
16139     --config-cache | -C)
16140     ;;
16141     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16142     ac_prev=srcdir ;;
16143     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16144     ;;
16145     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16146     ac_prev=prefix ;;
16147     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16148     ;;
16149 db 941 --disable-option-checking)
16150     ;;
16151 michael 912 *)
16152     case $ac_arg in
16153 db 941 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16154 michael 912 esac
16155 michael 967 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16156 michael 912 esac
16157     done
16158    
16159     # Always prepend --prefix to ensure using the same prefix
16160     # in subdir configurations.
16161     ac_arg="--prefix=$prefix"
16162     case $ac_arg in
16163 db 941 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16164 michael 912 esac
16165     ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16166    
16167     # Pass --silent
16168     if test "$silent" = yes; then
16169     ac_sub_configure_args="--silent $ac_sub_configure_args"
16170     fi
16171    
16172 db 941 # Always prepend --disable-option-checking to silence warnings, since
16173     # different subdirs can have different --enable and --with options.
16174     ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16175    
16176 michael 912 ac_popdir=`pwd`
16177     for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16178    
16179     # Do not complain, so a configure script can configure whichever
16180     # parts of a large source tree are present.
16181     test -d "$srcdir/$ac_dir" || continue
16182    
16183     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16184 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16185 db 941 $as_echo "$ac_msg" >&6
16186 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
16187 michael 912 ac_builddir=.
16188    
16189     case "$ac_dir" in
16190     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16191     *)
16192 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16193 michael 912 # A ".." for each directory in $ac_dir_suffix.
16194 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16195 michael 912 case $ac_top_builddir_sub in
16196     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16197     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16198     esac ;;
16199     esac
16200     ac_abs_top_builddir=$ac_pwd
16201     ac_abs_builddir=$ac_pwd$ac_dir_suffix
16202     # for backward compatibility:
16203     ac_top_builddir=$ac_top_build_prefix
16204    
16205     case $srcdir in
16206     .) # We are building in place.
16207     ac_srcdir=.
16208     ac_top_srcdir=$ac_top_builddir_sub
16209     ac_abs_top_srcdir=$ac_pwd ;;
16210     [\\/]* | ?:[\\/]* ) # Absolute name.
16211     ac_srcdir=$srcdir$ac_dir_suffix;
16212     ac_top_srcdir=$srcdir
16213     ac_abs_top_srcdir=$srcdir ;;
16214     *) # Relative name.
16215     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16216     ac_top_srcdir=$ac_top_build_prefix$srcdir
16217     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16218     esac
16219     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16220    
16221    
16222     cd "$ac_dir"
16223    
16224     # Check for guested configure; otherwise get Cygnus style configure.
16225     if test -f "$ac_srcdir/configure.gnu"; then
16226     ac_sub_configure=$ac_srcdir/configure.gnu
16227     elif test -f "$ac_srcdir/configure"; then
16228     ac_sub_configure=$ac_srcdir/configure
16229     elif test -f "$ac_srcdir/configure.in"; then
16230     # This should be Cygnus configure.
16231     ac_sub_configure=$ac_aux_dir/configure
16232     else
16233 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16234 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16235 michael 912 ac_sub_configure=
16236     fi
16237    
16238     # The recursion is here.
16239     if test -n "$ac_sub_configure"; then
16240     # Make the cache file name correct relative to the subdirectory.
16241     case $cache_file in
16242     [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16243     *) # Relative name.
16244     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16245     esac
16246    
16247 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
16248 db 941 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
16249 michael 912 # The eval makes quoting arguments work.
16250     eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16251     --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16252 michael 967 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16253 michael 912 fi
16254    
16255     cd "$ac_popdir"
16256     done
16257     fi
16258 db 941 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16259 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16260 michael 942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16261 db 941 fi
16262 michael 912

Properties

Name Value
svn:executable *