ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/trunk/configure
Revision: 1005
Committed: Mon Aug 31 23:07:43 2009 UTC (15 years, 11 months ago) by michael
Original Path: ircd-hybrid-7.2/configure
File size: 469058 byte(s)
Log Message:
- remove conf_add_d_conf wrapper

File Contents

# User Rev Content
1 michael 912 #! /bin/sh
2 michael 1005 # From configure.ac Id: configure.ac 998 2009-08-23 12:43:17Z michael .
3 michael 912 # Guess values for system-dependent variables and create Makefiles.
4 michael 967 # Generated by GNU Autoconf 2.64 for ircd-hybrid 7.2.4.
5 michael 912 #
6     # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 michael 967 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
8     # Foundation, Inc.
9     #
10 michael 912 # This configure script is free software; the Free Software Foundation
11     # gives unlimited permission to copy, distribute and modify it.
12 michael 967 ## -------------------- ##
13     ## M4sh Initialization. ##
14     ## -------------------- ##
15 michael 912
16     # Be more Bourne compatible
17     DUALCASE=1; export DUALCASE # for MKS sh
18 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19 michael 912 emulate sh
20     NULLCMD=:
21 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22 michael 912 # is contrary to our usage. Disable this feature.
23     alias -g '${1+"$@"}'='"$@"'
24     setopt NO_GLOB_SUBST
25     else
26 michael 967 case `(set -o) 2>/dev/null` in #(
27     *posix*) :
28     set -o posix ;; #(
29     *) :
30     ;;
31 michael 912 esac
32     fi
33    
34    
35 db 941 as_nl='
36     '
37     export as_nl
38     # Printing a long string crashes Solaris 7 /usr/bin/printf.
39     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
40     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
42 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
43     # but without wasting forks for bash or zsh.
44     if test -z "$BASH_VERSION$ZSH_VERSION" \
45     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46     as_echo='print -r --'
47     as_echo_n='print -rn --'
48     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
49 db 941 as_echo='printf %s\n'
50     as_echo_n='printf %s'
51     else
52     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
53     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
54     as_echo_n='/usr/ucb/echo -n'
55 michael 912 else
56 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
57     as_echo_n_body='eval
58     arg=$1;
59 michael 967 case $arg in #(
60 db 941 *"$as_nl"*)
61     expr "X$arg" : "X\\(.*\\)$as_nl";
62     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63     esac;
64     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65     '
66     export as_echo_n_body
67     as_echo_n='sh -c $as_echo_n_body as_echo'
68 michael 912 fi
69 db 941 export as_echo_body
70     as_echo='sh -c $as_echo_body as_echo'
71 michael 912 fi
72    
73 db 941 # The user is always right.
74     if test "${PATH_SEPARATOR+set}" != set; then
75     PATH_SEPARATOR=:
76     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
77     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
78     PATH_SEPARATOR=';'
79     }
80     fi
81    
82 michael 912
83     # IFS
84     # We need space, tab and new line, in precisely that order. Quoting is
85     # there to prevent editors from complaining about space-tab.
86     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
87     # splitting by setting IFS to empty value.)
88     IFS=" "" $as_nl"
89    
90     # Find who we are. Look in the path if we contain no directory separator.
91 michael 967 case $0 in #((
92 michael 912 *[\\/]* ) as_myself=$0 ;;
93     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94     for as_dir in $PATH
95     do
96     IFS=$as_save_IFS
97     test -z "$as_dir" && as_dir=.
98 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99     done
100 michael 912 IFS=$as_save_IFS
101    
102     ;;
103     esac
104     # We did not find ourselves, most probably we were run as `sh COMMAND'
105     # in which case we are not to be found in the path.
106     if test "x$as_myself" = x; then
107     as_myself=$0
108     fi
109     if test ! -f "$as_myself"; then
110 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 michael 967 exit 1
112 michael 912 fi
113    
114 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
115     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116     # suppresses any "Segmentation fault" message there. '((' could
117     # trigger a bug in pdksh 5.2.14.
118     for as_var in BASH_ENV ENV MAIL MAILPATH
119     do eval test x\${$as_var+set} = xset \
120     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 michael 912 done
122     PS1='$ '
123     PS2='> '
124     PS4='+ '
125    
126     # NLS nuisances.
127 db 941 LC_ALL=C
128     export LC_ALL
129     LANGUAGE=C
130     export LANGUAGE
131 michael 912
132     # CDPATH.
133 michael 967 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 michael 912
135     if test "x$CONFIG_SHELL" = x; then
136 michael 967 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
137     emulate sh
138     NULLCMD=:
139     # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
140     # is contrary to our usage. Disable this feature.
141     alias -g '\${1+\"\$@\"}'='\"\$@\"'
142     setopt NO_GLOB_SUBST
143 michael 912 else
144 michael 967 case \`(set -o) 2>/dev/null\` in #(
145     *posix*) :
146     set -o posix ;; #(
147     *) :
148     ;;
149     esac
150 michael 912 fi
151 michael 967 "
152     as_required="as_fn_return () { (exit \$1); }
153     as_fn_success () { as_fn_return 0; }
154     as_fn_failure () { as_fn_return 1; }
155     as_fn_ret_success () { return 0; }
156     as_fn_ret_failure () { return 1; }
157 michael 912
158     exitcode=0
159 michael 967 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
160     as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
161     as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
162     as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
163     if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 michael 912
165     else
166 michael 967 exitcode=1; echo positional parameters were not saved.
167 michael 912 fi
168 michael 967 test x\$exitcode = x0 || exit 1"
169     as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170     as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171     eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172     test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173     test \$(( 1 + 1 )) = 2 || exit 1"
174     if (eval "$as_required") 2>/dev/null; then :
175     as_have_required=yes
176 michael 912 else
177 michael 967 as_have_required=no
178 michael 912 fi
179 michael 967 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
180 michael 912
181     else
182 michael 967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183     as_found=false
184 michael 912 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
185     do
186     IFS=$as_save_IFS
187     test -z "$as_dir" && as_dir=.
188 michael 967 as_found=:
189     case $as_dir in #(
190 michael 912 /*)
191     for as_base in sh bash ksh sh5; do
192 michael 967 # Try only shells that exist, to save several forks.
193     as_shell=$as_dir/$as_base
194     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
195     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
196     CONFIG_SHELL=$as_shell as_have_required=yes
197     if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
198     break 2
199     fi
200     fi
201 michael 912 done;;
202     esac
203 michael 967 as_found=false
204 michael 912 done
205 michael 967 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
206     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
207     CONFIG_SHELL=$SHELL as_have_required=yes
208     fi; }
209 michael 912 IFS=$as_save_IFS
210    
211    
212 michael 967 if test "x$CONFIG_SHELL" != x; then :
213     # We cannot yet assume a decent shell, so we have to provide a
214     # neutralization value for shells without unset; and this also
215     # works around shells that cannot unset nonexistent variables.
216     BASH_ENV=/dev/null
217     ENV=/dev/null
218     (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
219     export CONFIG_SHELL
220     exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
221 michael 912 fi
222    
223 michael 967 if test x$as_have_required = xno; then :
224     $as_echo "$0: This script requires a shell more modern than all"
225     $as_echo "$0: the shells that I found on your system."
226     if test x${ZSH_VERSION+set} = xset ; then
227     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
228     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
229     else
230     $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
231     $0: including any error possibly output before this
232     $0: message. Then install a modern shell, or manually run
233     $0: the script under such a shell if you do have one."
234     fi
235     exit 1
236 michael 912 fi
237     fi
238     fi
239 michael 967 SHELL=${CONFIG_SHELL-/bin/sh}
240     export SHELL
241     # Unset more variables known to interfere with behavior of common tools.
242     CLICOLOR_FORCE= GREP_OPTIONS=
243     unset CLICOLOR_FORCE GREP_OPTIONS
244 michael 912
245 michael 967 ## --------------------- ##
246     ## M4sh Shell Functions. ##
247     ## --------------------- ##
248     # as_fn_unset VAR
249     # ---------------
250     # Portably unset VAR.
251     as_fn_unset ()
252     {
253     { eval $1=; unset $1;}
254     }
255     as_unset=as_fn_unset
256 michael 912
257 michael 967 # as_fn_set_status STATUS
258     # -----------------------
259     # Set $? to STATUS, without forking.
260     as_fn_set_status ()
261     {
262     return $1
263     } # as_fn_set_status
264 michael 912
265 michael 967 # as_fn_exit STATUS
266     # -----------------
267     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
268     as_fn_exit ()
269     {
270     set +e
271     as_fn_set_status $1
272     exit $1
273     } # as_fn_exit
274 michael 912
275 michael 967 # as_fn_mkdir_p
276     # -------------
277     # Create "$as_dir" as a directory, including parents if necessary.
278     as_fn_mkdir_p ()
279     {
280 michael 912
281 michael 967 case $as_dir in #(
282     -*) as_dir=./$as_dir;;
283     esac
284     test -d "$as_dir" || eval $as_mkdir_p || {
285     as_dirs=
286     while :; do
287     case $as_dir in #(
288     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
289     *) as_qdir=$as_dir;;
290     esac
291     as_dirs="'$as_qdir' $as_dirs"
292     as_dir=`$as_dirname -- "$as_dir" ||
293     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
294     X"$as_dir" : 'X\(//\)[^/]' \| \
295     X"$as_dir" : 'X\(//\)$' \| \
296     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
297     $as_echo X"$as_dir" |
298     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
299     s//\1/
300     q
301     }
302     /^X\(\/\/\)[^/].*/{
303     s//\1/
304     q
305     }
306     /^X\(\/\/\)$/{
307     s//\1/
308     q
309     }
310     /^X\(\/\).*/{
311     s//\1/
312     q
313     }
314     s/.*/./; q'`
315     test -d "$as_dir" && break
316     done
317     test -z "$as_dirs" || eval "mkdir $as_dirs"
318     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
319 michael 912
320    
321 michael 967 } # as_fn_mkdir_p
322     # as_fn_append VAR VALUE
323     # ----------------------
324     # Append the text in VALUE to the end of the definition contained in VAR. Take
325     # advantage of any shell optimizations that allow amortized linear growth over
326     # repeated appends, instead of the typical quadratic growth present in naive
327     # implementations.
328     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
329     eval 'as_fn_append ()
330     {
331     eval $1+=\$2
332     }'
333     else
334     as_fn_append ()
335     {
336     eval $1=\$$1\$2
337     }
338     fi # as_fn_append
339 michael 912
340 michael 967 # as_fn_arith ARG...
341     # ------------------
342     # Perform arithmetic evaluation on the ARGs, and store the result in the
343     # global $as_val. Take advantage of shells that can avoid forks. The arguments
344     # must be portable across $(()) and expr.
345     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
346     eval 'as_fn_arith ()
347     {
348     as_val=$(( $* ))
349     }'
350     else
351     as_fn_arith ()
352     {
353     as_val=`expr "$@" || test $? -eq 1`
354     }
355     fi # as_fn_arith
356 michael 912
357    
358 michael 967 # as_fn_error ERROR [LINENO LOG_FD]
359     # ---------------------------------
360     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
361     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
362     # script with status $?, using 1 if that was 0.
363     as_fn_error ()
364     {
365     as_status=$?; test $as_status -eq 0 && as_status=1
366     if test "$3"; then
367     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
368     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
369     fi
370     $as_echo "$as_me: error: $1" >&2
371     as_fn_exit $as_status
372     } # as_fn_error
373 michael 912
374 michael 967 if expr a : '\(a\)' >/dev/null 2>&1 &&
375     test "X`expr 00001 : '.*\(...\)'`" = X001; then
376     as_expr=expr
377 michael 912 else
378 michael 967 as_expr=false
379 michael 912 fi
380    
381 michael 967 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
382     as_basename=basename
383 michael 912 else
384 michael 967 as_basename=false
385 michael 912 fi
386    
387 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
388     as_dirname=dirname
389 michael 912 else
390 michael 967 as_dirname=false
391 michael 912 fi
392    
393 michael 967 as_me=`$as_basename -- "$0" ||
394     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
395     X"$0" : 'X\(//\)$' \| \
396     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
397     $as_echo X/"$0" |
398     sed '/^.*\/\([^/][^/]*\)\/*$/{
399     s//\1/
400     q
401     }
402     /^X\/\(\/\/\)$/{
403     s//\1/
404     q
405     }
406     /^X\/\(\/\).*/{
407     s//\1/
408     q
409     }
410     s/.*/./; q'`
411 michael 912
412 michael 967 # Avoid depending upon Character Ranges.
413     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
414     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
415     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
416     as_cr_digits='0123456789'
417     as_cr_alnum=$as_cr_Letters$as_cr_digits
418 michael 912
419    
420 michael 967 as_lineno_1=$LINENO as_lineno_1a=$LINENO
421     as_lineno_2=$LINENO as_lineno_2a=$LINENO
422     eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
423     test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
424     # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
425 michael 912 sed -n '
426     p
427     /[$]LINENO/=
428     ' <$as_myself |
429     sed '
430     s/[$]LINENO.*/&-/
431     t lineno
432     b
433     :lineno
434     N
435     :loop
436     s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
437     t loop
438     s/-\n.*//
439     ' >$as_me.lineno &&
440     chmod +x "$as_me.lineno" ||
441 michael 967 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
442 michael 912
443     # Don't try to exec as it changes $[0], causing all sort of problems
444     # (the dirname of $[0] is not the place where we might find the
445     # original and so on. Autoconf is especially sensitive to this).
446     . "./$as_me.lineno"
447     # Exit status is that of the last command.
448     exit
449     }
450    
451     ECHO_C= ECHO_N= ECHO_T=
452 michael 967 case `echo -n x` in #(((((
453 michael 912 -n*)
454 michael 967 case `echo 'xy\c'` in
455 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
456 michael 967 xy) ECHO_C='\c';;
457     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
458     ECHO_T=' ';;
459 michael 912 esac;;
460     *)
461     ECHO_N='-n';;
462     esac
463    
464     rm -f conf$$ conf$$.exe conf$$.file
465     if test -d conf$$.dir; then
466     rm -f conf$$.dir/conf$$.file
467     else
468     rm -f conf$$.dir
469 db 941 mkdir conf$$.dir 2>/dev/null
470 michael 912 fi
471 db 941 if (echo >conf$$.file) 2>/dev/null; then
472     if ln -s conf$$.file conf$$ 2>/dev/null; then
473     as_ln_s='ln -s'
474     # ... but there are two gotchas:
475     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
476     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
477     # In both cases, we have to default to `cp -p'.
478     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
479     as_ln_s='cp -p'
480     elif ln conf$$.file conf$$ 2>/dev/null; then
481     as_ln_s=ln
482     else
483 michael 912 as_ln_s='cp -p'
484 db 941 fi
485 michael 912 else
486     as_ln_s='cp -p'
487     fi
488     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
489     rmdir conf$$.dir 2>/dev/null
490    
491     if mkdir -p . 2>/dev/null; then
492 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
493 michael 912 else
494     test -d ./-p && rmdir ./-p
495     as_mkdir_p=false
496     fi
497    
498     if test -x / >/dev/null 2>&1; then
499     as_test_x='test -x'
500     else
501     if ls -dL / >/dev/null 2>&1; then
502     as_ls_L_option=L
503     else
504     as_ls_L_option=
505     fi
506     as_test_x='
507     eval sh -c '\''
508     if test -d "$1"; then
509 db 941 test -d "$1/.";
510 michael 912 else
511 michael 967 case $1 in #(
512 db 941 -*)set "./$1";;
513 michael 912 esac;
514 michael 967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
515 michael 912 ???[sx]*):;;*)false;;esac;fi
516     '\'' sh
517     '
518     fi
519     as_executable_p=$as_test_x
520    
521     # Sed expression to map a string onto a valid CPP name.
522     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
523    
524     # Sed expression to map a string onto a valid variable name.
525     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
526    
527    
528    
529     # Check that we are running under the correct shell.
530     SHELL=${CONFIG_SHELL-/bin/sh}
531    
532 michael 945 case X$lt_ECHO in
533 michael 912 X*--fallback-echo)
534     # Remove one level of quotation (which was required for Make).
535 michael 945 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
536 michael 912 ;;
537     esac
538    
539 michael 945 ECHO=${lt_ECHO-echo}
540 michael 912 if test "X$1" = X--no-reexec; then
541     # Discard the --no-reexec flag, and continue.
542     shift
543     elif test "X$1" = X--fallback-echo; then
544     # Avoid inline document here, it may be left over
545     :
546 michael 945 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
547     # Yippee, $ECHO works!
548 michael 912 :
549     else
550     # Restart under the correct shell.
551     exec $SHELL "$0" --no-reexec ${1+"$@"}
552     fi
553    
554     if test "X$1" = X--fallback-echo; then
555     # used as fallback echo
556     shift
557 michael 945 cat <<_LT_EOF
558 michael 912 $*
559 michael 945 _LT_EOF
560 michael 912 exit 0
561     fi
562    
563     # The HP-UX ksh and POSIX shell print the target directory to stdout
564     # if CDPATH is set.
565     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
566    
567 michael 945 if test -z "$lt_ECHO"; then
568     if test "X${echo_test_string+set}" != Xset; then
569     # find a string as large as possible, as long as the shell can cope with it
570     for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
571     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
572     if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
573     { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
574     then
575     break
576     fi
577     done
578     fi
579 michael 912
580 michael 945 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
581     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
582     test "X$echo_testing_string" = "X$echo_test_string"; then
583     :
584     else
585     # The Solaris, AIX, and Digital Unix default echo programs unquote
586     # backslashes. This makes it impossible to quote backslashes using
587     # echo "$something" | sed 's/\\/\\\\/g'
588     #
589     # So, first we look for a working echo in the user's PATH.
590 michael 912
591 michael 945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
592     for dir in $PATH /usr/ucb; do
593     IFS="$lt_save_ifs"
594     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
595     test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
596     echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
597     test "X$echo_testing_string" = "X$echo_test_string"; then
598     ECHO="$dir/echo"
599     break
600     fi
601     done
602 michael 912 IFS="$lt_save_ifs"
603    
604 michael 945 if test "X$ECHO" = Xecho; then
605     # We didn't find a better echo, so look for alternatives.
606     if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
607     echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
608     test "X$echo_testing_string" = "X$echo_test_string"; then
609     # This shell has a builtin print -r that does the trick.
610     ECHO='print -r'
611     elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
612     test "X$CONFIG_SHELL" != X/bin/ksh; then
613     # If we have ksh, try running configure again with it.
614     ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
615     export ORIGINAL_CONFIG_SHELL
616     CONFIG_SHELL=/bin/ksh
617     export CONFIG_SHELL
618     exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
619     else
620     # Try using printf.
621     ECHO='printf %s\n'
622     if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
623     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
624 michael 912 test "X$echo_testing_string" = "X$echo_test_string"; then
625 michael 945 # Cool, printf works
626     :
627     elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
628     test "X$echo_testing_string" = 'X\t' &&
629     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
630     test "X$echo_testing_string" = "X$echo_test_string"; then
631     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
632     export CONFIG_SHELL
633     SHELL="$CONFIG_SHELL"
634     export SHELL
635     ECHO="$CONFIG_SHELL $0 --fallback-echo"
636     elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
637     test "X$echo_testing_string" = 'X\t' &&
638     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
639     test "X$echo_testing_string" = "X$echo_test_string"; then
640     ECHO="$CONFIG_SHELL $0 --fallback-echo"
641     else
642     # maybe with a smaller string...
643     prev=:
644 michael 912
645 michael 945 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
646     if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
647     then
648     break
649     fi
650     prev="$cmd"
651     done
652    
653     if test "$prev" != 'sed 50q "$0"'; then
654     echo_test_string=`eval $prev`
655     export echo_test_string
656     exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
657     else
658     # Oops. We lost completely, so just stick with echo.
659     ECHO=echo
660 michael 912 fi
661 michael 945 fi
662 michael 912 fi
663     fi
664     fi
665     fi
666    
667     # Copy echo and quote the copy suitably for passing to libtool from
668     # the Makefile, instead of quoting the original, which is used later.
669 michael 945 lt_ECHO=$ECHO
670     if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
671     lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
672 michael 912 fi
673    
674    
675    
676    
677 michael 945 lt_ltdl_dir='libltdl'
678 michael 912
679 michael 945 lt_dlopen_dir="$lt_ltdl_dir"
680 michael 912
681     exec 7<&0 </dev/null 6>&1
682    
683     # Name of the host.
684     # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
685     # so uname gets run too.
686     ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
687    
688     #
689     # Initializations.
690     #
691     ac_default_prefix=/usr/local
692     ac_clean_files=
693     ac_config_libobj_dir=.
694     LIBOBJS=
695     cross_compiling=no
696     subdirs=
697     MFLAGS=
698     MAKEFLAGS=
699    
700     # Identity of this package.
701     PACKAGE_NAME='ircd-hybrid'
702     PACKAGE_TARNAME='ircd-hybrid'
703     PACKAGE_VERSION='7.2.4'
704     PACKAGE_STRING='ircd-hybrid 7.2.4'
705     PACKAGE_BUGREPORT=''
706 michael 967 PACKAGE_URL=''
707 michael 912
708     ac_unique_file="src/ircd.c"
709     # Factoring default headers for most tests.
710     ac_includes_default="\
711     #include <stdio.h>
712     #ifdef HAVE_SYS_TYPES_H
713     # include <sys/types.h>
714     #endif
715     #ifdef HAVE_SYS_STAT_H
716     # include <sys/stat.h>
717     #endif
718     #ifdef STDC_HEADERS
719     # include <stdlib.h>
720     # include <stddef.h>
721     #else
722     # ifdef HAVE_STDLIB_H
723     # include <stdlib.h>
724     # endif
725     #endif
726     #ifdef HAVE_STRING_H
727     # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
728     # include <memory.h>
729     # endif
730     # include <string.h>
731     #endif
732     #ifdef HAVE_STRINGS_H
733     # include <strings.h>
734     #endif
735     #ifdef HAVE_INTTYPES_H
736     # include <inttypes.h>
737     #endif
738     #ifdef HAVE_STDINT_H
739     # include <stdint.h>
740     #endif
741     #ifdef HAVE_UNISTD_H
742     # include <unistd.h>
743     #endif"
744    
745 michael 945 enable_option_checking=no
746 michael 912 ac_func_list=
747     ac_header_list=
748 michael 945 ac_subst_vars='ltdl_LTLIBOBJS
749     ltdl_LIBOBJS
750     am__EXEEXT_FALSE
751     am__EXEEXT_TRUE
752     LTLIBOBJS
753 michael 942 LIBOBJS
754     LOCALSTATEDIR
755     DATADIR
756     LIBDIR
757     SYSCONFDIR
758     PREFIX
759     EFNET_FALSE
760     EFNET_TRUE
761     ENABLE_SSL_FALSE
762     ENABLE_SSL_TRUE
763 michael 945 LTDLOPEN
764     LT_CONFIG_H
765     subdirs
766     CONVENIENCE_LTDL_FALSE
767     CONVENIENCE_LTDL_TRUE
768     INSTALL_LTDL_FALSE
769     INSTALL_LTDL_TRUE
770     ARGZ_H
771     sys_symbol_underscore
772     LIBADD_DL
773     LT_DLPREOPEN
774     LIBADD_DLD_LINK
775     LIBADD_SHL_LOAD
776     LIBADD_DLOPEN
777     LT_DLLOADERS
778     INCLTDL
779     LTDLINCL
780     LTDLDEPS
781     LIBLTDL
782 michael 942 CPP
783 michael 945 OTOOL64
784     OTOOL
785     LIPO
786 michael 942 NMEDIT
787     DSYMUTIL
788 michael 945 lt_ECHO
789 michael 942 RANLIB
790     AR
791 michael 945 OBJDUMP
792 michael 942 LN_S
793 michael 945 NM
794     ac_ct_DUMPBIN
795     DUMPBIN
796     LD
797     FGREP
798 michael 942 EGREP
799     GREP
800     SED
801     host_os
802     host_vendor
803     host_cpu
804     host
805     build_os
806     build_vendor
807     build_cpu
808     build
809 michael 945 LIBTOOL
810 michael 942 LEXLIB
811     LEX_OUTPUT_ROOT
812     LEX
813     YFLAGS
814     YACC
815     am__fastdepCC_FALSE
816     am__fastdepCC_TRUE
817     CCDEPMODE
818     AMDEPBACKSLASH
819     AMDEP_FALSE
820     AMDEP_TRUE
821     am__quote
822     am__include
823     DEPDIR
824     OBJEXT
825     EXEEXT
826     ac_ct_CC
827     CPPFLAGS
828     LDFLAGS
829     CFLAGS
830     CC
831     MAINT
832     MAINTAINER_MODE_FALSE
833     MAINTAINER_MODE_TRUE
834     am__untar
835     am__tar
836     AMTAR
837     am__leading_dot
838     SET_MAKE
839     AWK
840     mkdir_p
841     MKDIR_P
842     INSTALL_STRIP_PROGRAM
843     STRIP
844     install_sh
845     MAKEINFO
846     AUTOHEADER
847     AUTOMAKE
848     AUTOCONF
849     ACLOCAL
850     VERSION
851     PACKAGE
852     CYGPATH_W
853     am__isrc
854     INSTALL_DATA
855     INSTALL_SCRIPT
856     INSTALL_PROGRAM
857     target_alias
858     host_alias
859     build_alias
860     LIBS
861     ECHO_T
862     ECHO_N
863     ECHO_C
864     DEFS
865     mandir
866     localedir
867     libdir
868     psdir
869     pdfdir
870     dvidir
871     htmldir
872     infodir
873     docdir
874     oldincludedir
875     includedir
876     localstatedir
877     sharedstatedir
878     sysconfdir
879     datadir
880     datarootdir
881     libexecdir
882     sbindir
883     bindir
884     program_transform_name
885     prefix
886     exec_prefix
887 michael 967 PACKAGE_URL
888 michael 942 PACKAGE_BUGREPORT
889     PACKAGE_STRING
890     PACKAGE_VERSION
891     PACKAGE_TARNAME
892     PACKAGE_NAME
893 michael 912 PATH_SEPARATOR
894 michael 942 SHELL'
895 michael 912 ac_subst_files=''
896 db 941 ac_user_opts='
897     enable_option_checking
898     enable_maintainer_mode
899 michael 945 enable_dependency_tracking
900 michael 977 enable_static
901 michael 945 enable_shared
902     with_pic
903 db 941 enable_fast_install
904     with_gnu_ld
905     enable_libtool_lock
906 michael 945 with_included_ltdl
907     with_ltdl_include
908     with_ltdl_lib
909     enable_ltdl_install
910 db 941 with_zlib_path
911     enable_zlib
912     enable_openssl
913     enable_assert
914     enable_small_net
915     enable_kqueue
916     enable_epoll
917     enable_devpoll
918     enable_rtsigio
919     enable_poll
920     enable_select
921     with_nicklen
922     with_topiclen
923     with_syslog_facility
924     enable_efnet
925     enable_halfops
926     enable_debugging
927     enable_warnings
928     enable_syslog
929     '
930 michael 912 ac_precious_vars='build_alias
931     host_alias
932     target_alias
933     CC
934     CFLAGS
935     LDFLAGS
936     LIBS
937     CPPFLAGS
938     YACC
939     YFLAGS
940 michael 945 CPP'
941 michael 912 ac_subdirs_all='libltdl'
942    
943     # Initialize some variables set by options.
944     ac_init_help=
945     ac_init_version=false
946 db 941 ac_unrecognized_opts=
947     ac_unrecognized_sep=
948 michael 912 # The variables have the same names as the options, with
949     # dashes changed to underlines.
950     cache_file=/dev/null
951     exec_prefix=NONE
952     no_create=
953     no_recursion=
954     prefix=NONE
955     program_prefix=NONE
956     program_suffix=NONE
957     program_transform_name=s,x,x,
958     silent=
959     site=
960     srcdir=
961     verbose=
962     x_includes=NONE
963     x_libraries=NONE
964    
965     # Installation directory options.
966     # These are left unexpanded so users can "make install exec_prefix=/foo"
967     # and all the variables that are supposed to be based on exec_prefix
968     # by default will actually change.
969     # Use braces instead of parens because sh, perl, etc. also accept them.
970     # (The list follows the same order as the GNU Coding Standards.)
971     bindir='${exec_prefix}/bin'
972     sbindir='${exec_prefix}/sbin'
973     libexecdir='${exec_prefix}/libexec'
974     datarootdir='${prefix}/share'
975     datadir='${datarootdir}'
976     sysconfdir='${prefix}/etc'
977     sharedstatedir='${prefix}/com'
978     localstatedir='${prefix}/var'
979     includedir='${prefix}/include'
980     oldincludedir='/usr/include'
981     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
982     infodir='${datarootdir}/info'
983     htmldir='${docdir}'
984     dvidir='${docdir}'
985     pdfdir='${docdir}'
986     psdir='${docdir}'
987     libdir='${exec_prefix}/lib'
988     localedir='${datarootdir}/locale'
989     mandir='${datarootdir}/man'
990    
991     ac_prev=
992     ac_dashdash=
993     for ac_option
994     do
995     # If the previous option needs an argument, assign it.
996     if test -n "$ac_prev"; then
997     eval $ac_prev=\$ac_option
998     ac_prev=
999     continue
1000     fi
1001    
1002     case $ac_option in
1003     *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1004     *) ac_optarg=yes ;;
1005     esac
1006    
1007     # Accept the important Cygnus configure options, so we can diagnose typos.
1008    
1009     case $ac_dashdash$ac_option in
1010     --)
1011     ac_dashdash=yes ;;
1012    
1013     -bindir | --bindir | --bindi | --bind | --bin | --bi)
1014     ac_prev=bindir ;;
1015     -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1016     bindir=$ac_optarg ;;
1017    
1018     -build | --build | --buil | --bui | --bu)
1019     ac_prev=build_alias ;;
1020     -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1021     build_alias=$ac_optarg ;;
1022    
1023     -cache-file | --cache-file | --cache-fil | --cache-fi \
1024     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1025     ac_prev=cache_file ;;
1026     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1027     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1028     cache_file=$ac_optarg ;;
1029    
1030     --config-cache | -C)
1031     cache_file=config.cache ;;
1032    
1033     -datadir | --datadir | --datadi | --datad)
1034     ac_prev=datadir ;;
1035     -datadir=* | --datadir=* | --datadi=* | --datad=*)
1036     datadir=$ac_optarg ;;
1037    
1038     -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1039     | --dataroo | --dataro | --datar)
1040     ac_prev=datarootdir ;;
1041     -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1042     | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1043     datarootdir=$ac_optarg ;;
1044    
1045     -disable-* | --disable-*)
1046 db 941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1047 michael 912 # Reject names that are not valid shell variable names.
1048 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 michael 967 as_fn_error "invalid feature name: $ac_useropt"
1050 db 941 ac_useropt_orig=$ac_useropt
1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052     case $ac_user_opts in
1053     *"
1054     "enable_$ac_useropt"
1055     "*) ;;
1056     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1057     ac_unrecognized_sep=', ';;
1058     esac
1059     eval enable_$ac_useropt=no ;;
1060 michael 912
1061     -docdir | --docdir | --docdi | --doc | --do)
1062     ac_prev=docdir ;;
1063     -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1064     docdir=$ac_optarg ;;
1065    
1066     -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1067     ac_prev=dvidir ;;
1068     -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1069     dvidir=$ac_optarg ;;
1070    
1071     -enable-* | --enable-*)
1072 db 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1073 michael 912 # Reject names that are not valid shell variable names.
1074 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1075 michael 967 as_fn_error "invalid feature name: $ac_useropt"
1076 db 941 ac_useropt_orig=$ac_useropt
1077     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1078     case $ac_user_opts in
1079     *"
1080     "enable_$ac_useropt"
1081     "*) ;;
1082     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1083     ac_unrecognized_sep=', ';;
1084     esac
1085     eval enable_$ac_useropt=\$ac_optarg ;;
1086 michael 912
1087     -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1088     | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1089     | --exec | --exe | --ex)
1090     ac_prev=exec_prefix ;;
1091     -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1092     | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1093     | --exec=* | --exe=* | --ex=*)
1094     exec_prefix=$ac_optarg ;;
1095    
1096     -gas | --gas | --ga | --g)
1097     # Obsolete; use --with-gas.
1098     with_gas=yes ;;
1099    
1100     -help | --help | --hel | --he | -h)
1101     ac_init_help=long ;;
1102     -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1103     ac_init_help=recursive ;;
1104     -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1105     ac_init_help=short ;;
1106    
1107     -host | --host | --hos | --ho)
1108     ac_prev=host_alias ;;
1109     -host=* | --host=* | --hos=* | --ho=*)
1110     host_alias=$ac_optarg ;;
1111    
1112     -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1113     ac_prev=htmldir ;;
1114     -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1115     | --ht=*)
1116     htmldir=$ac_optarg ;;
1117    
1118     -includedir | --includedir | --includedi | --included | --include \
1119     | --includ | --inclu | --incl | --inc)
1120     ac_prev=includedir ;;
1121     -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1122     | --includ=* | --inclu=* | --incl=* | --inc=*)
1123     includedir=$ac_optarg ;;
1124    
1125     -infodir | --infodir | --infodi | --infod | --info | --inf)
1126     ac_prev=infodir ;;
1127     -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1128     infodir=$ac_optarg ;;
1129    
1130     -libdir | --libdir | --libdi | --libd)
1131     ac_prev=libdir ;;
1132     -libdir=* | --libdir=* | --libdi=* | --libd=*)
1133     libdir=$ac_optarg ;;
1134    
1135     -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1136     | --libexe | --libex | --libe)
1137     ac_prev=libexecdir ;;
1138     -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1139     | --libexe=* | --libex=* | --libe=*)
1140     libexecdir=$ac_optarg ;;
1141    
1142     -localedir | --localedir | --localedi | --localed | --locale)
1143     ac_prev=localedir ;;
1144     -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1145     localedir=$ac_optarg ;;
1146    
1147     -localstatedir | --localstatedir | --localstatedi | --localstated \
1148     | --localstate | --localstat | --localsta | --localst | --locals)
1149     ac_prev=localstatedir ;;
1150     -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1151     | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1152     localstatedir=$ac_optarg ;;
1153    
1154     -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1155     ac_prev=mandir ;;
1156     -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1157     mandir=$ac_optarg ;;
1158    
1159     -nfp | --nfp | --nf)
1160     # Obsolete; use --without-fp.
1161     with_fp=no ;;
1162    
1163     -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1164     | --no-cr | --no-c | -n)
1165     no_create=yes ;;
1166    
1167     -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1168     | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1169     no_recursion=yes ;;
1170    
1171     -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1172     | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1173     | --oldin | --oldi | --old | --ol | --o)
1174     ac_prev=oldincludedir ;;
1175     -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1176     | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1177     | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1178     oldincludedir=$ac_optarg ;;
1179    
1180     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1181     ac_prev=prefix ;;
1182     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1183     prefix=$ac_optarg ;;
1184    
1185     -program-prefix | --program-prefix | --program-prefi | --program-pref \
1186     | --program-pre | --program-pr | --program-p)
1187     ac_prev=program_prefix ;;
1188     -program-prefix=* | --program-prefix=* | --program-prefi=* \
1189     | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1190     program_prefix=$ac_optarg ;;
1191    
1192     -program-suffix | --program-suffix | --program-suffi | --program-suff \
1193     | --program-suf | --program-su | --program-s)
1194     ac_prev=program_suffix ;;
1195     -program-suffix=* | --program-suffix=* | --program-suffi=* \
1196     | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1197     program_suffix=$ac_optarg ;;
1198    
1199     -program-transform-name | --program-transform-name \
1200     | --program-transform-nam | --program-transform-na \
1201     | --program-transform-n | --program-transform- \
1202     | --program-transform | --program-transfor \
1203     | --program-transfo | --program-transf \
1204     | --program-trans | --program-tran \
1205     | --progr-tra | --program-tr | --program-t)
1206     ac_prev=program_transform_name ;;
1207     -program-transform-name=* | --program-transform-name=* \
1208     | --program-transform-nam=* | --program-transform-na=* \
1209     | --program-transform-n=* | --program-transform-=* \
1210     | --program-transform=* | --program-transfor=* \
1211     | --program-transfo=* | --program-transf=* \
1212     | --program-trans=* | --program-tran=* \
1213     | --progr-tra=* | --program-tr=* | --program-t=*)
1214     program_transform_name=$ac_optarg ;;
1215    
1216     -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1217     ac_prev=pdfdir ;;
1218     -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1219     pdfdir=$ac_optarg ;;
1220    
1221     -psdir | --psdir | --psdi | --psd | --ps)
1222     ac_prev=psdir ;;
1223     -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1224     psdir=$ac_optarg ;;
1225    
1226     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1227     | -silent | --silent | --silen | --sile | --sil)
1228     silent=yes ;;
1229    
1230     -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1231     ac_prev=sbindir ;;
1232     -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1233     | --sbi=* | --sb=*)
1234     sbindir=$ac_optarg ;;
1235    
1236     -sharedstatedir | --sharedstatedir | --sharedstatedi \
1237     | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1238     | --sharedst | --shareds | --shared | --share | --shar \
1239     | --sha | --sh)
1240     ac_prev=sharedstatedir ;;
1241     -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1242     | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1243     | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1244     | --sha=* | --sh=*)
1245     sharedstatedir=$ac_optarg ;;
1246    
1247     -site | --site | --sit)
1248     ac_prev=site ;;
1249     -site=* | --site=* | --sit=*)
1250     site=$ac_optarg ;;
1251    
1252     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1253     ac_prev=srcdir ;;
1254     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1255     srcdir=$ac_optarg ;;
1256    
1257     -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1258     | --syscon | --sysco | --sysc | --sys | --sy)
1259     ac_prev=sysconfdir ;;
1260     -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1261     | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1262     sysconfdir=$ac_optarg ;;
1263    
1264     -target | --target | --targe | --targ | --tar | --ta | --t)
1265     ac_prev=target_alias ;;
1266     -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1267     target_alias=$ac_optarg ;;
1268    
1269     -v | -verbose | --verbose | --verbos | --verbo | --verb)
1270     verbose=yes ;;
1271    
1272     -version | --version | --versio | --versi | --vers | -V)
1273     ac_init_version=: ;;
1274    
1275     -with-* | --with-*)
1276 db 941 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1277 michael 912 # Reject names that are not valid shell variable names.
1278 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1279 michael 967 as_fn_error "invalid package name: $ac_useropt"
1280 db 941 ac_useropt_orig=$ac_useropt
1281     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1282     case $ac_user_opts in
1283     *"
1284     "with_$ac_useropt"
1285     "*) ;;
1286     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1287     ac_unrecognized_sep=', ';;
1288     esac
1289     eval with_$ac_useropt=\$ac_optarg ;;
1290 michael 912
1291     -without-* | --without-*)
1292 db 941 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1293 michael 912 # Reject names that are not valid shell variable names.
1294 db 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1295 michael 967 as_fn_error "invalid package name: $ac_useropt"
1296 db 941 ac_useropt_orig=$ac_useropt
1297     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1298     case $ac_user_opts in
1299     *"
1300     "with_$ac_useropt"
1301     "*) ;;
1302     *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1303     ac_unrecognized_sep=', ';;
1304     esac
1305     eval with_$ac_useropt=no ;;
1306 michael 912
1307     --x)
1308     # Obsolete; use --with-x.
1309     with_x=yes ;;
1310    
1311     -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312     | --x-incl | --x-inc | --x-in | --x-i)
1313     ac_prev=x_includes ;;
1314     -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315     | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316     x_includes=$ac_optarg ;;
1317    
1318     -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319     | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320     ac_prev=x_libraries ;;
1321     -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322     | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323     x_libraries=$ac_optarg ;;
1324    
1325 michael 967 -*) as_fn_error "unrecognized option: \`$ac_option'
1326     Try \`$0 --help' for more information."
1327 michael 912 ;;
1328    
1329     *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332 michael 967 case $ac_envvar in #(
1333     '' | [0-9]* | *[!_$as_cr_alnum]* )
1334     as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1335     esac
1336 michael 912 eval $ac_envvar=\$ac_optarg
1337     export $ac_envvar ;;
1338    
1339     *)
1340     # FIXME: should be removed in autoconf 3.0.
1341 db 941 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342 michael 912 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343 db 941 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344 michael 912 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345     ;;
1346    
1347     esac
1348     done
1349    
1350     if test -n "$ac_prev"; then
1351     ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352 michael 967 as_fn_error "missing argument to $ac_option"
1353 michael 912 fi
1354    
1355 db 941 if test -n "$ac_unrecognized_opts"; then
1356     case $enable_option_checking in
1357     no) ;;
1358 michael 967 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1359 michael 942 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1360 db 941 esac
1361     fi
1362    
1363     # Check all directory arguments for consistency.
1364 michael 912 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1365     datadir sysconfdir sharedstatedir localstatedir includedir \
1366     oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1367     libdir localedir mandir
1368     do
1369     eval ac_val=\$$ac_var
1370 db 941 # Remove trailing slashes.
1371 michael 912 case $ac_val in
1372 db 941 */ )
1373     ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1374     eval $ac_var=\$ac_val;;
1375     esac
1376     # Be sure to have absolute directory names.
1377     case $ac_val in
1378 michael 912 [\\/$]* | ?:[\\/]* ) continue;;
1379     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1380     esac
1381 michael 967 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1382 michael 912 done
1383    
1384     # There might be people who depend on the old broken behavior: `$host'
1385     # used to hold the argument of --host etc.
1386     # FIXME: To remove some day.
1387     build=$build_alias
1388     host=$host_alias
1389     target=$target_alias
1390    
1391     # FIXME: To remove some day.
1392     if test "x$host_alias" != x; then
1393     if test "x$build_alias" = x; then
1394     cross_compiling=maybe
1395 db 941 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 michael 912 If a cross compiler is detected then cross compile mode will be used." >&2
1397     elif test "x$build_alias" != "x$host_alias"; then
1398     cross_compiling=yes
1399     fi
1400     fi
1401    
1402     ac_tool_prefix=
1403     test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404    
1405     test "$silent" = yes && exec 6>/dev/null
1406    
1407    
1408     ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409     ac_ls_di=`ls -di .` &&
1410     ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 michael 967 as_fn_error "working directory cannot be determined"
1412 michael 912 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1413 michael 967 as_fn_error "pwd does not report name of working directory"
1414 michael 912
1415    
1416     # Find the source files, if location was not specified.
1417     if test -z "$srcdir"; then
1418     ac_srcdir_defaulted=yes
1419     # Try the directory containing this script, then the parent directory.
1420 db 941 ac_confdir=`$as_dirname -- "$as_myself" ||
1421     $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1422     X"$as_myself" : 'X\(//\)[^/]' \| \
1423     X"$as_myself" : 'X\(//\)$' \| \
1424     X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1425     $as_echo X"$as_myself" |
1426 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1427     s//\1/
1428     q
1429     }
1430     /^X\(\/\/\)[^/].*/{
1431     s//\1/
1432     q
1433     }
1434     /^X\(\/\/\)$/{
1435     s//\1/
1436     q
1437     }
1438     /^X\(\/\).*/{
1439     s//\1/
1440     q
1441     }
1442     s/.*/./; q'`
1443     srcdir=$ac_confdir
1444     if test ! -r "$srcdir/$ac_unique_file"; then
1445     srcdir=..
1446     fi
1447     else
1448     ac_srcdir_defaulted=no
1449     fi
1450     if test ! -r "$srcdir/$ac_unique_file"; then
1451     test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1452 michael 967 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1453 michael 912 fi
1454     ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1455     ac_abs_confdir=`(
1456 michael 967 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1457 michael 912 pwd)`
1458     # When building in place, set srcdir=.
1459     if test "$ac_abs_confdir" = "$ac_pwd"; then
1460     srcdir=.
1461     fi
1462     # Remove unnecessary trailing slashes from srcdir.
1463     # Double slashes in file names in object file debugging info
1464     # mess up M-x gdb in Emacs.
1465     case $srcdir in
1466     */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1467     esac
1468     for ac_var in $ac_precious_vars; do
1469     eval ac_env_${ac_var}_set=\${${ac_var}+set}
1470     eval ac_env_${ac_var}_value=\$${ac_var}
1471     eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1472     eval ac_cv_env_${ac_var}_value=\$${ac_var}
1473     done
1474    
1475     #
1476     # Report the --help message.
1477     #
1478     if test "$ac_init_help" = "long"; then
1479     # Omit some internal or obsolete options to make the list less imposing.
1480     # This message is too long to be a string in the A/UX 3.1 sh.
1481     cat <<_ACEOF
1482     \`configure' configures ircd-hybrid 7.2.4 to adapt to many kinds of systems.
1483    
1484     Usage: $0 [OPTION]... [VAR=VALUE]...
1485    
1486     To assign environment variables (e.g., CC, CFLAGS...), specify them as
1487     VAR=VALUE. See below for descriptions of some of the useful variables.
1488    
1489     Defaults for the options are specified in brackets.
1490    
1491     Configuration:
1492     -h, --help display this help and exit
1493     --help=short display options specific to this package
1494     --help=recursive display the short help of all the included packages
1495     -V, --version display version information and exit
1496     -q, --quiet, --silent do not print \`checking...' messages
1497     --cache-file=FILE cache test results in FILE [disabled]
1498     -C, --config-cache alias for \`--cache-file=config.cache'
1499     -n, --no-create do not create output files
1500     --srcdir=DIR find the sources in DIR [configure dir or \`..']
1501    
1502     Installation directories:
1503     --prefix=PREFIX install architecture-independent files in PREFIX
1504 db 941 [$ac_default_prefix]
1505 michael 912 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1506 db 941 [PREFIX]
1507 michael 912
1508     By default, \`make install' will install all the files in
1509     \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1510     an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1511     for instance \`--prefix=\$HOME'.
1512    
1513     For better control, use the options below.
1514    
1515     Fine tuning of the installation directories:
1516 db 941 --bindir=DIR user executables [EPREFIX/bin]
1517     --sbindir=DIR system admin executables [EPREFIX/sbin]
1518     --libexecdir=DIR program executables [EPREFIX/libexec]
1519     --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1520     --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1521     --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1522     --libdir=DIR object code libraries [EPREFIX/lib]
1523     --includedir=DIR C header files [PREFIX/include]
1524     --oldincludedir=DIR C header files for non-gcc [/usr/include]
1525     --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1526     --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1527     --infodir=DIR info documentation [DATAROOTDIR/info]
1528     --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1529     --mandir=DIR man documentation [DATAROOTDIR/man]
1530     --docdir=DIR documentation root [DATAROOTDIR/doc/ircd-hybrid]
1531     --htmldir=DIR html documentation [DOCDIR]
1532     --dvidir=DIR dvi documentation [DOCDIR]
1533     --pdfdir=DIR pdf documentation [DOCDIR]
1534     --psdir=DIR ps documentation [DOCDIR]
1535 michael 912 _ACEOF
1536    
1537     cat <<\_ACEOF
1538    
1539     Program names:
1540     --program-prefix=PREFIX prepend PREFIX to installed program names
1541     --program-suffix=SUFFIX append SUFFIX to installed program names
1542     --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1543    
1544     System types:
1545     --build=BUILD configure for building on BUILD [guessed]
1546     --host=HOST cross-compile to build programs to run on HOST [BUILD]
1547     _ACEOF
1548     fi
1549    
1550     if test -n "$ac_init_help"; then
1551     case $ac_init_help in
1552     short | recursive ) echo "Configuration of ircd-hybrid 7.2.4:";;
1553     esac
1554     cat <<\_ACEOF
1555    
1556     Optional Features:
1557 db 941 --disable-option-checking ignore unrecognized --enable/--with options
1558 michael 912 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1559     --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1560     --enable-maintainer-mode enable make rules and dependencies not useful
1561     (and sometimes confusing) to the casual installer
1562     --disable-dependency-tracking speeds up one-time build
1563     --enable-dependency-tracking do not reject slow dependency extractors
1564 michael 977 --enable-static[=PKGS] build static libraries [default=no]
1565 michael 945 --enable-shared[=PKGS] build shared libraries [default=yes]
1566 michael 912 --enable-fast-install[=PKGS]
1567     optimize for fast installation [default=yes]
1568     --disable-libtool-lock avoid locking (might break parallel builds)
1569 michael 945 --enable-ltdl-install install libltdl
1570 michael 923 --disable-zlib Disable ziplinks support
1571 michael 912 --enable-openssl=DIR Enable OpenSSL support (DIR optional).
1572     --disable-openssl Disable OpenSSL support.
1573 michael 924 --enable-assert Enable assert() statements
1574 michael 925 --enable-small-net Enable small network support.
1575 michael 912 --enable-kqueue Force kqueue usage.
1576     --enable-epoll Force epoll usage.
1577     --enable-devpoll Force devpoll usage.
1578     --enable-rtsigio Force rtsigio usage.
1579     --enable-poll Force poll usage.
1580     --enable-select Force select usage.
1581     --enable-efnet For IRCDs running on EFnet.
1582     --enable-halfops Enable halfops support.
1583     --enable-debugging Enable debugging.
1584     --enable-warnings Enable compiler warnings.
1585     --enable-syslog="EVENTS"
1586     Enable syslog for events: users oper (space
1587     separated in quotes; default: disabled).
1588    
1589     Optional Packages:
1590     --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591     --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592     --with-pic try to use only PIC/non-PIC objects [default=use
1593     both]
1594 michael 945 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1595     --with-included-ltdl use the GNU ltdl sources included here
1596     --with-ltdl-include=DIR use the ltdl headers installed in DIR
1597     --with-ltdl-lib=DIR use the libltdl.la installed in DIR
1598 michael 923 --with-zlib-path=DIR Path to libz.so for ziplinks support.
1599 michael 912 --with-nicklen=<value> Set nickname length (default 9).
1600     --with-topiclen=<value> Set topic length (default 160).
1601     --with-syslog-facility=LOG
1602     Define the syslog facility to use (default:
1603     LOG_LOCAL4)
1604    
1605     Some influential environment variables:
1606     CC C compiler command
1607     CFLAGS C compiler flags
1608     LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1609     nonstandard directory <lib dir>
1610     LIBS libraries to pass to the linker, e.g. -l<library>
1611     CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1612     you have headers in a nonstandard directory <include dir>
1613     YACC The `Yet Another C Compiler' implementation to use. Defaults to
1614     the first program found out of: `bison -y', `byacc', `yacc'.
1615     YFLAGS The list of arguments that will be passed by default to $YACC.
1616     This script will default YFLAGS to the empty string to avoid a
1617     default value of `-d' given by some make applications.
1618     CPP C preprocessor
1619    
1620     Use these variables to override the choices made by `configure' or to help
1621     it to find libraries and programs with nonstandard names/locations.
1622    
1623 michael 967 Report bugs to the package provider.
1624 michael 912 _ACEOF
1625     ac_status=$?
1626     fi
1627    
1628     if test "$ac_init_help" = "recursive"; then
1629     # If there are subdirs, report their specific --help.
1630     for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1631 db 941 test -d "$ac_dir" ||
1632     { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1633     continue
1634 michael 912 ac_builddir=.
1635    
1636     case "$ac_dir" in
1637     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1638     *)
1639 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1640 michael 912 # A ".." for each directory in $ac_dir_suffix.
1641 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1642 michael 912 case $ac_top_builddir_sub in
1643     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1644     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1645     esac ;;
1646     esac
1647     ac_abs_top_builddir=$ac_pwd
1648     ac_abs_builddir=$ac_pwd$ac_dir_suffix
1649     # for backward compatibility:
1650     ac_top_builddir=$ac_top_build_prefix
1651    
1652     case $srcdir in
1653     .) # We are building in place.
1654     ac_srcdir=.
1655     ac_top_srcdir=$ac_top_builddir_sub
1656     ac_abs_top_srcdir=$ac_pwd ;;
1657     [\\/]* | ?:[\\/]* ) # Absolute name.
1658     ac_srcdir=$srcdir$ac_dir_suffix;
1659     ac_top_srcdir=$srcdir
1660     ac_abs_top_srcdir=$srcdir ;;
1661     *) # Relative name.
1662     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1663     ac_top_srcdir=$ac_top_build_prefix$srcdir
1664     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1665     esac
1666     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1667    
1668     cd "$ac_dir" || { ac_status=$?; continue; }
1669     # Check for guested configure.
1670     if test -f "$ac_srcdir/configure.gnu"; then
1671     echo &&
1672     $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1673     elif test -f "$ac_srcdir/configure"; then
1674     echo &&
1675     $SHELL "$ac_srcdir/configure" --help=recursive
1676     else
1677 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1678 michael 912 fi || ac_status=$?
1679     cd "$ac_pwd" || { ac_status=$?; break; }
1680     done
1681     fi
1682    
1683     test -n "$ac_init_help" && exit $ac_status
1684     if $ac_init_version; then
1685     cat <<\_ACEOF
1686     ircd-hybrid configure 7.2.4
1687 michael 967 generated by GNU Autoconf 2.64
1688 michael 912
1689 michael 967 Copyright (C) 2009 Free Software Foundation, Inc.
1690 michael 912 This configure script is free software; the Free Software Foundation
1691     gives unlimited permission to copy, distribute and modify it.
1692     _ACEOF
1693     exit
1694     fi
1695 michael 967
1696     ## ------------------------ ##
1697     ## Autoconf initialization. ##
1698     ## ------------------------ ##
1699    
1700     # ac_fn_c_try_compile LINENO
1701     # --------------------------
1702     # Try to compile conftest.$ac_ext, and return whether this succeeded.
1703     ac_fn_c_try_compile ()
1704     {
1705     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1706     rm -f conftest.$ac_objext
1707     if { { ac_try="$ac_compile"
1708     case "(($ac_try" in
1709     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710     *) ac_try_echo=$ac_try;;
1711     esac
1712     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713     $as_echo "$ac_try_echo"; } >&5
1714     (eval "$ac_compile") 2>conftest.err
1715     ac_status=$?
1716     if test -s conftest.err; then
1717     grep -v '^ *+' conftest.err >conftest.er1
1718     cat conftest.er1 >&5
1719     mv -f conftest.er1 conftest.err
1720     fi
1721     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722     test $ac_status = 0; } && {
1723     test -z "$ac_c_werror_flag" ||
1724     test ! -s conftest.err
1725     } && test -s conftest.$ac_objext; then :
1726     ac_retval=0
1727     else
1728     $as_echo "$as_me: failed program was:" >&5
1729     sed 's/^/| /' conftest.$ac_ext >&5
1730    
1731     ac_retval=1
1732     fi
1733     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1734     return $ac_retval
1735    
1736     } # ac_fn_c_try_compile
1737    
1738     # ac_fn_c_try_link LINENO
1739     # -----------------------
1740     # Try to link conftest.$ac_ext, and return whether this succeeded.
1741     ac_fn_c_try_link ()
1742     {
1743     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1744     rm -f conftest.$ac_objext conftest$ac_exeext
1745     if { { ac_try="$ac_link"
1746     case "(($ac_try" in
1747     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748     *) ac_try_echo=$ac_try;;
1749     esac
1750     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751     $as_echo "$ac_try_echo"; } >&5
1752     (eval "$ac_link") 2>conftest.err
1753     ac_status=$?
1754     if test -s conftest.err; then
1755     grep -v '^ *+' conftest.err >conftest.er1
1756     cat conftest.er1 >&5
1757     mv -f conftest.er1 conftest.err
1758     fi
1759     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1760     test $ac_status = 0; } && {
1761     test -z "$ac_c_werror_flag" ||
1762     test ! -s conftest.err
1763     } && test -s conftest$ac_exeext && {
1764     test "$cross_compiling" = yes ||
1765     $as_test_x conftest$ac_exeext
1766     }; then :
1767     ac_retval=0
1768     else
1769     $as_echo "$as_me: failed program was:" >&5
1770     sed 's/^/| /' conftest.$ac_ext >&5
1771    
1772     ac_retval=1
1773     fi
1774     # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1775     # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1776     # interfere with the next link command; also delete a directory that is
1777     # left behind by Apple's compiler. We do this before executing the actions.
1778     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1779     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1780     return $ac_retval
1781    
1782     } # ac_fn_c_try_link
1783    
1784     # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1785     # -------------------------------------------------------
1786     # Tests whether HEADER exists and can be compiled using the include files in
1787     # INCLUDES, setting the cache variable VAR accordingly.
1788     ac_fn_c_check_header_compile ()
1789     {
1790     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1792     $as_echo_n "checking for $2... " >&6; }
1793     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1794     $as_echo_n "(cached) " >&6
1795     else
1796     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1797     /* end confdefs.h. */
1798     $4
1799     #include <$2>
1800     _ACEOF
1801     if ac_fn_c_try_compile "$LINENO"; then :
1802     eval "$3=yes"
1803     else
1804     eval "$3=no"
1805     fi
1806     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1807     fi
1808     eval ac_res=\$$3
1809     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810     $as_echo "$ac_res" >&6; }
1811     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1812    
1813     } # ac_fn_c_check_header_compile
1814    
1815     # ac_fn_c_try_cpp LINENO
1816     # ----------------------
1817     # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1818     ac_fn_c_try_cpp ()
1819     {
1820     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821     if { { ac_try="$ac_cpp conftest.$ac_ext"
1822     case "(($ac_try" in
1823     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824     *) ac_try_echo=$ac_try;;
1825     esac
1826     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827     $as_echo "$ac_try_echo"; } >&5
1828     (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1829     ac_status=$?
1830     if test -s conftest.err; then
1831     grep -v '^ *+' conftest.err >conftest.er1
1832     cat conftest.er1 >&5
1833     mv -f conftest.er1 conftest.err
1834     fi
1835     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836     test $ac_status = 0; } >/dev/null && {
1837     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1838     test ! -s conftest.err
1839     }; then :
1840     ac_retval=0
1841     else
1842     $as_echo "$as_me: failed program was:" >&5
1843     sed 's/^/| /' conftest.$ac_ext >&5
1844    
1845     ac_retval=1
1846     fi
1847     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1848     return $ac_retval
1849    
1850     } # ac_fn_c_try_cpp
1851    
1852     # ac_fn_c_try_run LINENO
1853     # ----------------------
1854     # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1855     # that executables *can* be run.
1856     ac_fn_c_try_run ()
1857     {
1858     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1859     if { { ac_try="$ac_link"
1860     case "(($ac_try" in
1861     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1862     *) ac_try_echo=$ac_try;;
1863     esac
1864     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1865     $as_echo "$ac_try_echo"; } >&5
1866     (eval "$ac_link") 2>&5
1867     ac_status=$?
1868     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869     test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1870     { { case "(($ac_try" in
1871     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872     *) ac_try_echo=$ac_try;;
1873     esac
1874     eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875     $as_echo "$ac_try_echo"; } >&5
1876     (eval "$ac_try") 2>&5
1877     ac_status=$?
1878     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879     test $ac_status = 0; }; }; then :
1880     ac_retval=0
1881     else
1882     $as_echo "$as_me: program exited with status $ac_status" >&5
1883     $as_echo "$as_me: failed program was:" >&5
1884     sed 's/^/| /' conftest.$ac_ext >&5
1885    
1886     ac_retval=$ac_status
1887     fi
1888     rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1889     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1890     return $ac_retval
1891    
1892     } # ac_fn_c_try_run
1893    
1894     # ac_fn_c_check_func LINENO FUNC VAR
1895     # ----------------------------------
1896     # Tests whether FUNC exists, setting the cache variable VAR accordingly
1897     ac_fn_c_check_func ()
1898     {
1899     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901     $as_echo_n "checking for $2... " >&6; }
1902     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1903     $as_echo_n "(cached) " >&6
1904     else
1905     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906     /* end confdefs.h. */
1907     /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908     For example, HP-UX 11i <limits.h> declares gettimeofday. */
1909     #define $2 innocuous_$2
1910    
1911     /* System header to define __stub macros and hopefully few prototypes,
1912     which can conflict with char $2 (); below.
1913     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914     <limits.h> exists even on freestanding compilers. */
1915    
1916     #ifdef __STDC__
1917     # include <limits.h>
1918     #else
1919     # include <assert.h>
1920     #endif
1921    
1922     #undef $2
1923    
1924     /* Override any GCC internal prototype to avoid an error.
1925     Use char because int might match the return type of a GCC
1926     builtin and then its argument prototype would still apply. */
1927     #ifdef __cplusplus
1928     extern "C"
1929     #endif
1930     char $2 ();
1931     /* The GNU C library defines this for functions which it implements
1932     to always fail with ENOSYS. Some functions are actually named
1933     something starting with __ and the normal name is an alias. */
1934     #if defined __stub_$2 || defined __stub___$2
1935     choke me
1936     #endif
1937    
1938     int
1939     main ()
1940     {
1941     return $2 ();
1942     ;
1943     return 0;
1944     }
1945     _ACEOF
1946     if ac_fn_c_try_link "$LINENO"; then :
1947     eval "$3=yes"
1948     else
1949     eval "$3=no"
1950     fi
1951     rm -f core conftest.err conftest.$ac_objext \
1952     conftest$ac_exeext conftest.$ac_ext
1953     fi
1954     eval ac_res=\$$3
1955     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956     $as_echo "$ac_res" >&6; }
1957     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1958    
1959     } # ac_fn_c_check_func
1960    
1961     # ac_fn_c_check_decl LINENO SYMBOL VAR
1962     # ------------------------------------
1963     # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1964     ac_fn_c_check_decl ()
1965     {
1966     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1968     $as_echo_n "checking whether $2 is declared... " >&6; }
1969     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1970     $as_echo_n "(cached) " >&6
1971     else
1972     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973     /* end confdefs.h. */
1974     $4
1975     int
1976     main ()
1977     {
1978     #ifndef $2
1979     (void) $2;
1980     #endif
1981    
1982     ;
1983     return 0;
1984     }
1985     _ACEOF
1986     if ac_fn_c_try_compile "$LINENO"; then :
1987     eval "$3=yes"
1988     else
1989     eval "$3=no"
1990     fi
1991     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1992     fi
1993     eval ac_res=\$$3
1994     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995     $as_echo "$ac_res" >&6; }
1996     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997    
1998     } # ac_fn_c_check_decl
1999    
2000     # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2001     # -------------------------------------------
2002     # Tests whether TYPE exists after having included INCLUDES, setting cache
2003     # variable VAR accordingly.
2004     ac_fn_c_check_type ()
2005     {
2006     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2008     $as_echo_n "checking for $2... " >&6; }
2009     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2010     $as_echo_n "(cached) " >&6
2011     else
2012     eval "$3=no"
2013     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014     /* end confdefs.h. */
2015     $4
2016     int
2017     main ()
2018     {
2019     if (sizeof ($2))
2020     return 0;
2021     ;
2022     return 0;
2023     }
2024     _ACEOF
2025     if ac_fn_c_try_compile "$LINENO"; then :
2026     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027     /* end confdefs.h. */
2028     $4
2029     int
2030     main ()
2031     {
2032     if (sizeof (($2)))
2033     return 0;
2034     ;
2035     return 0;
2036     }
2037     _ACEOF
2038     if ac_fn_c_try_compile "$LINENO"; then :
2039    
2040     else
2041     eval "$3=yes"
2042     fi
2043     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044     fi
2045     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2046     fi
2047     eval ac_res=\$$3
2048     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049     $as_echo "$ac_res" >&6; }
2050     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051    
2052     } # ac_fn_c_check_type
2053    
2054     # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2055     # ----------------------------------------------------
2056     # Tries to find if the field MEMBER exists in type AGGR, after including
2057     # INCLUDES, setting cache variable VAR accordingly.
2058     ac_fn_c_check_member ()
2059     {
2060     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2062     $as_echo_n "checking for $2.$3... " >&6; }
2063     if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2064     $as_echo_n "(cached) " >&6
2065     else
2066     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067     /* end confdefs.h. */
2068     $5
2069     int
2070     main ()
2071     {
2072     static $2 ac_aggr;
2073     if (ac_aggr.$3)
2074     return 0;
2075     ;
2076     return 0;
2077     }
2078     _ACEOF
2079     if ac_fn_c_try_compile "$LINENO"; then :
2080     eval "$4=yes"
2081     else
2082     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2083     /* end confdefs.h. */
2084     $5
2085     int
2086     main ()
2087     {
2088     static $2 ac_aggr;
2089     if (sizeof ac_aggr.$3)
2090     return 0;
2091     ;
2092     return 0;
2093     }
2094     _ACEOF
2095     if ac_fn_c_try_compile "$LINENO"; then :
2096     eval "$4=yes"
2097     else
2098     eval "$4=no"
2099     fi
2100     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2101     fi
2102     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103     fi
2104     eval ac_res=\$$4
2105     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2106     $as_echo "$ac_res" >&6; }
2107     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2108    
2109     } # ac_fn_c_check_member
2110    
2111     # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2112     # --------------------------------------------
2113     # Tries to find the compile-time value of EXPR in a program that includes
2114     # INCLUDES, setting VAR accordingly. Returns whether the value could be
2115     # computed
2116     ac_fn_c_compute_int ()
2117     {
2118     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119     if test "$cross_compiling" = yes; then
2120     # Depending upon the size, compute the lo and hi bounds.
2121     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2122     /* end confdefs.h. */
2123     $4
2124     int
2125     main ()
2126     {
2127     static int test_array [1 - 2 * !(($2) >= 0)];
2128     test_array [0] = 0
2129    
2130     ;
2131     return 0;
2132     }
2133     _ACEOF
2134     if ac_fn_c_try_compile "$LINENO"; then :
2135     ac_lo=0 ac_mid=0
2136     while :; do
2137     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138     /* end confdefs.h. */
2139     $4
2140     int
2141     main ()
2142     {
2143     static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2144     test_array [0] = 0
2145    
2146     ;
2147     return 0;
2148     }
2149     _ACEOF
2150     if ac_fn_c_try_compile "$LINENO"; then :
2151     ac_hi=$ac_mid; break
2152     else
2153     as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2154     if test $ac_lo -le $ac_mid; then
2155     ac_lo= ac_hi=
2156     break
2157     fi
2158     as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2159     fi
2160     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2161     done
2162     else
2163     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164     /* end confdefs.h. */
2165     $4
2166     int
2167     main ()
2168     {
2169     static int test_array [1 - 2 * !(($2) < 0)];
2170     test_array [0] = 0
2171    
2172     ;
2173     return 0;
2174     }
2175     _ACEOF
2176     if ac_fn_c_try_compile "$LINENO"; then :
2177     ac_hi=-1 ac_mid=-1
2178     while :; do
2179     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2180     /* end confdefs.h. */
2181     $4
2182     int
2183     main ()
2184     {
2185     static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2186     test_array [0] = 0
2187    
2188     ;
2189     return 0;
2190     }
2191     _ACEOF
2192     if ac_fn_c_try_compile "$LINENO"; then :
2193     ac_lo=$ac_mid; break
2194     else
2195     as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2196     if test $ac_mid -le $ac_hi; then
2197     ac_lo= ac_hi=
2198     break
2199     fi
2200     as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2201     fi
2202     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2203     done
2204     else
2205     ac_lo= ac_hi=
2206     fi
2207     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208     fi
2209     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210     # Binary search between lo and hi bounds.
2211     while test "x$ac_lo" != "x$ac_hi"; do
2212     as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2213     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2214     /* end confdefs.h. */
2215     $4
2216     int
2217     main ()
2218     {
2219     static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2220     test_array [0] = 0
2221    
2222     ;
2223     return 0;
2224     }
2225     _ACEOF
2226     if ac_fn_c_try_compile "$LINENO"; then :
2227     ac_hi=$ac_mid
2228     else
2229     as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2230     fi
2231     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232     done
2233     case $ac_lo in #((
2234     ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2235     '') ac_retval=1 ;;
2236     esac
2237     else
2238     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239     /* end confdefs.h. */
2240     $4
2241     static long int longval () { return $2; }
2242     static unsigned long int ulongval () { return $2; }
2243     #include <stdio.h>
2244     #include <stdlib.h>
2245     int
2246     main ()
2247     {
2248    
2249     FILE *f = fopen ("conftest.val", "w");
2250     if (! f)
2251     return 1;
2252     if (($2) < 0)
2253     {
2254     long int i = longval ();
2255     if (i != ($2))
2256     return 1;
2257     fprintf (f, "%ld", i);
2258     }
2259     else
2260     {
2261     unsigned long int i = ulongval ();
2262     if (i != ($2))
2263     return 1;
2264     fprintf (f, "%lu", i);
2265     }
2266     /* Do not output a trailing newline, as this causes \r\n confusion
2267     on some platforms. */
2268     return ferror (f) || fclose (f) != 0;
2269    
2270     ;
2271     return 0;
2272     }
2273     _ACEOF
2274     if ac_fn_c_try_run "$LINENO"; then :
2275     echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2276     else
2277     ac_retval=1
2278     fi
2279     rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2280     conftest.$ac_objext conftest.beam conftest.$ac_ext
2281     rm -f conftest.val
2282    
2283     fi
2284     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2285     return $ac_retval
2286    
2287     } # ac_fn_c_compute_int
2288    
2289     # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2290     # -------------------------------------------------------
2291     # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2292     # the include files in INCLUDES and setting the cache variable VAR
2293     # accordingly.
2294     ac_fn_c_check_header_mongrel ()
2295     {
2296     as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2297     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2298     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2299     $as_echo_n "checking for $2... " >&6; }
2300     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2301     $as_echo_n "(cached) " >&6
2302     fi
2303     eval ac_res=\$$3
2304     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305     $as_echo "$ac_res" >&6; }
2306     else
2307     # Is the header compilable?
2308     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2309     $as_echo_n "checking $2 usability... " >&6; }
2310     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311     /* end confdefs.h. */
2312     $4
2313     #include <$2>
2314     _ACEOF
2315     if ac_fn_c_try_compile "$LINENO"; then :
2316     ac_header_compiler=yes
2317     else
2318     ac_header_compiler=no
2319     fi
2320     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2321     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2322     $as_echo "$ac_header_compiler" >&6; }
2323    
2324     # Is the header present?
2325     { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2326     $as_echo_n "checking $2 presence... " >&6; }
2327     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2328     /* end confdefs.h. */
2329     #include <$2>
2330     _ACEOF
2331     if ac_fn_c_try_cpp "$LINENO"; then :
2332     ac_header_preproc=yes
2333     else
2334     ac_header_preproc=no
2335     fi
2336     rm -f conftest.err conftest.$ac_ext
2337     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2338     $as_echo "$ac_header_preproc" >&6; }
2339    
2340     # So? What about this header?
2341     case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2342     yes:no: )
2343     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2344     $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2345     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2346     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2347     ;;
2348     no:yes:* )
2349     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2350     $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2351     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2352     $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2353     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2354     $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2355     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2356     $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2357     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2358     $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2359     ;;
2360     esac
2361     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2362     $as_echo_n "checking for $2... " >&6; }
2363     if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2364     $as_echo_n "(cached) " >&6
2365     else
2366     eval "$3=\$ac_header_compiler"
2367     fi
2368     eval ac_res=\$$3
2369     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2370     $as_echo "$ac_res" >&6; }
2371     fi
2372     eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2373    
2374     } # ac_fn_c_check_header_mongrel
2375 michael 912 cat >config.log <<_ACEOF
2376     This file contains any messages produced by compilers while
2377     running configure, to aid debugging if configure makes a mistake.
2378    
2379     It was created by ircd-hybrid $as_me 7.2.4, which was
2380 michael 967 generated by GNU Autoconf 2.64. Invocation command line was
2381 michael 912
2382     $ $0 $@
2383    
2384     _ACEOF
2385     exec 5>>config.log
2386     {
2387     cat <<_ASUNAME
2388     ## --------- ##
2389     ## Platform. ##
2390     ## --------- ##
2391    
2392     hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2393     uname -m = `(uname -m) 2>/dev/null || echo unknown`
2394     uname -r = `(uname -r) 2>/dev/null || echo unknown`
2395     uname -s = `(uname -s) 2>/dev/null || echo unknown`
2396     uname -v = `(uname -v) 2>/dev/null || echo unknown`
2397    
2398     /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2399     /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2400    
2401     /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2402     /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2403     /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2404     /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2405     /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2406     /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2407     /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2408    
2409     _ASUNAME
2410    
2411     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412     for as_dir in $PATH
2413     do
2414     IFS=$as_save_IFS
2415     test -z "$as_dir" && as_dir=.
2416 michael 967 $as_echo "PATH: $as_dir"
2417     done
2418 michael 912 IFS=$as_save_IFS
2419    
2420     } >&5
2421    
2422     cat >&5 <<_ACEOF
2423    
2424    
2425     ## ----------- ##
2426     ## Core tests. ##
2427     ## ----------- ##
2428    
2429     _ACEOF
2430    
2431    
2432     # Keep a trace of the command line.
2433     # Strip out --no-create and --no-recursion so they do not pile up.
2434     # Strip out --silent because we don't want to record it for future runs.
2435     # Also quote any args containing shell meta-characters.
2436     # Make two passes to allow for proper duplicate-argument suppression.
2437     ac_configure_args=
2438     ac_configure_args0=
2439     ac_configure_args1=
2440     ac_must_keep_next=false
2441     for ac_pass in 1 2
2442     do
2443     for ac_arg
2444     do
2445     case $ac_arg in
2446     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2447     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2448     | -silent | --silent | --silen | --sile | --sil)
2449     continue ;;
2450     *\'*)
2451 db 941 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2452 michael 912 esac
2453     case $ac_pass in
2454 michael 967 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2455 michael 912 2)
2456 michael 967 as_fn_append ac_configure_args1 " '$ac_arg'"
2457 michael 912 if test $ac_must_keep_next = true; then
2458     ac_must_keep_next=false # Got value, back to normal.
2459     else
2460     case $ac_arg in
2461     *=* | --config-cache | -C | -disable-* | --disable-* \
2462     | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2463     | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2464     | -with-* | --with-* | -without-* | --without-* | --x)
2465     case "$ac_configure_args0 " in
2466     "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2467     esac
2468     ;;
2469     -* ) ac_must_keep_next=true ;;
2470     esac
2471     fi
2472 michael 967 as_fn_append ac_configure_args " '$ac_arg'"
2473 michael 912 ;;
2474     esac
2475     done
2476     done
2477 michael 967 { ac_configure_args0=; unset ac_configure_args0;}
2478     { ac_configure_args1=; unset ac_configure_args1;}
2479 michael 912
2480     # When interrupted or exit'd, cleanup temporary files, and complete
2481     # config.log. We remove comments because anyway the quotes in there
2482     # would cause problems or look ugly.
2483     # WARNING: Use '\'' to represent an apostrophe within the trap.
2484     # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2485     trap 'exit_status=$?
2486     # Save into config.log some information that might help in debugging.
2487     {
2488     echo
2489    
2490     cat <<\_ASBOX
2491     ## ---------------- ##
2492     ## Cache variables. ##
2493     ## ---------------- ##
2494     _ASBOX
2495     echo
2496     # The following way of writing the cache mishandles newlines in values,
2497     (
2498     for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2499     eval ac_val=\$$ac_var
2500     case $ac_val in #(
2501     *${as_nl}*)
2502     case $ac_var in #(
2503 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2504 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2505 michael 912 esac
2506     case $ac_var in #(
2507     _ | IFS | as_nl) ;; #(
2508 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2509 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
2510 michael 912 esac ;;
2511     esac
2512     done
2513     (set) 2>&1 |
2514     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2515     *${as_nl}ac_space=\ *)
2516     sed -n \
2517     "s/'\''/'\''\\\\'\'''\''/g;
2518     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2519     ;; #(
2520     *)
2521     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2522     ;;
2523     esac |
2524     sort
2525     )
2526     echo
2527    
2528     cat <<\_ASBOX
2529     ## ----------------- ##
2530     ## Output variables. ##
2531     ## ----------------- ##
2532     _ASBOX
2533     echo
2534     for ac_var in $ac_subst_vars
2535     do
2536     eval ac_val=\$$ac_var
2537     case $ac_val in
2538 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2539 michael 912 esac
2540 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2541 michael 912 done | sort
2542     echo
2543    
2544     if test -n "$ac_subst_files"; then
2545     cat <<\_ASBOX
2546     ## ------------------- ##
2547     ## File substitutions. ##
2548     ## ------------------- ##
2549     _ASBOX
2550     echo
2551     for ac_var in $ac_subst_files
2552     do
2553     eval ac_val=\$$ac_var
2554     case $ac_val in
2555 db 941 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2556 michael 912 esac
2557 db 941 $as_echo "$ac_var='\''$ac_val'\''"
2558 michael 912 done | sort
2559     echo
2560     fi
2561    
2562     if test -s confdefs.h; then
2563     cat <<\_ASBOX
2564     ## ----------- ##
2565     ## confdefs.h. ##
2566     ## ----------- ##
2567     _ASBOX
2568     echo
2569     cat confdefs.h
2570     echo
2571     fi
2572     test "$ac_signal" != 0 &&
2573 db 941 $as_echo "$as_me: caught signal $ac_signal"
2574     $as_echo "$as_me: exit $exit_status"
2575 michael 912 } >&5
2576     rm -f core *.core core.conftest.* &&
2577     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2578     exit $exit_status
2579     ' 0
2580     for ac_signal in 1 2 13 15; do
2581 michael 967 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2582 michael 912 done
2583     ac_signal=0
2584    
2585     # confdefs.h avoids OS command line length limits that DEFS can exceed.
2586     rm -f -r conftest* confdefs.h
2587    
2588 michael 967 $as_echo "/* confdefs.h */" > confdefs.h
2589    
2590 michael 912 # Predefined preprocessor variables.
2591    
2592     cat >>confdefs.h <<_ACEOF
2593     #define PACKAGE_NAME "$PACKAGE_NAME"
2594     _ACEOF
2595    
2596     cat >>confdefs.h <<_ACEOF
2597     #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2598     _ACEOF
2599    
2600     cat >>confdefs.h <<_ACEOF
2601     #define PACKAGE_VERSION "$PACKAGE_VERSION"
2602     _ACEOF
2603    
2604     cat >>confdefs.h <<_ACEOF
2605     #define PACKAGE_STRING "$PACKAGE_STRING"
2606     _ACEOF
2607    
2608     cat >>confdefs.h <<_ACEOF
2609     #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2610     _ACEOF
2611    
2612 michael 967 cat >>confdefs.h <<_ACEOF
2613     #define PACKAGE_URL "$PACKAGE_URL"
2614     _ACEOF
2615 michael 912
2616 michael 967
2617 michael 912 # Let the site file select an alternate cache file if it wants to.
2618 db 941 # Prefer an explicitly selected file to automatically selected ones.
2619     ac_site_file1=NONE
2620     ac_site_file2=NONE
2621 michael 912 if test -n "$CONFIG_SITE"; then
2622 db 941 ac_site_file1=$CONFIG_SITE
2623 michael 912 elif test "x$prefix" != xNONE; then
2624 db 941 ac_site_file1=$prefix/share/config.site
2625     ac_site_file2=$prefix/etc/config.site
2626 michael 912 else
2627 db 941 ac_site_file1=$ac_default_prefix/share/config.site
2628     ac_site_file2=$ac_default_prefix/etc/config.site
2629 michael 912 fi
2630 db 941 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2631 michael 912 do
2632 db 941 test "x$ac_site_file" = xNONE && continue
2633 michael 912 if test -r "$ac_site_file"; then
2634 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2635 db 941 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2636 michael 912 sed 's/^/| /' "$ac_site_file" >&5
2637     . "$ac_site_file"
2638     fi
2639     done
2640    
2641     if test -r "$cache_file"; then
2642     # Some versions of bash will fail to source /dev/null (special
2643     # files actually), so we avoid doing that.
2644     if test -f "$cache_file"; then
2645 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2646 db 941 $as_echo "$as_me: loading cache $cache_file" >&6;}
2647 michael 912 case $cache_file in
2648     [\\/]* | ?:[\\/]* ) . "$cache_file";;
2649     *) . "./$cache_file";;
2650     esac
2651     fi
2652     else
2653 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2654 db 941 $as_echo "$as_me: creating cache $cache_file" >&6;}
2655 michael 912 >$cache_file
2656     fi
2657    
2658 michael 967 as_fn_append ac_func_list " snprintf"
2659     as_fn_append ac_func_list " vsnprintf"
2660     as_fn_append ac_func_list " mmap"
2661     as_fn_append ac_func_list " strtok_r"
2662     as_fn_append ac_func_list " usleep"
2663     as_fn_append ac_func_list " strlcat"
2664     as_fn_append ac_func_list " strlcpy"
2665     as_fn_append ac_header_list " crypt.h"
2666     as_fn_append ac_header_list " inttypes.h"
2667     as_fn_append ac_header_list " stdint.h"
2668     as_fn_append ac_header_list " sys/resource.h"
2669     as_fn_append ac_header_list " sys/param.h"
2670     as_fn_append ac_header_list " errno.h"
2671     as_fn_append ac_header_list " sys/syslog.h"
2672     as_fn_append ac_header_list " stddef.h"
2673     as_fn_append ac_header_list " libgen.h"
2674     as_fn_append ac_header_list " types.h"
2675     as_fn_append ac_header_list " socket.h"
2676     as_fn_append ac_header_list " sys/wait.h"
2677     as_fn_append ac_header_list " wait.h"
2678     as_fn_append ac_header_list " link.h"
2679 michael 912 # Check that the precious variables saved in the cache have kept the same
2680     # value.
2681     ac_cache_corrupted=false
2682     for ac_var in $ac_precious_vars; do
2683     eval ac_old_set=\$ac_cv_env_${ac_var}_set
2684     eval ac_new_set=\$ac_env_${ac_var}_set
2685     eval ac_old_val=\$ac_cv_env_${ac_var}_value
2686     eval ac_new_val=\$ac_env_${ac_var}_value
2687     case $ac_old_set,$ac_new_set in
2688     set,)
2689 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2690 db 941 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2691 michael 912 ac_cache_corrupted=: ;;
2692     ,set)
2693 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2694 db 941 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2695 michael 912 ac_cache_corrupted=: ;;
2696     ,);;
2697     *)
2698     if test "x$ac_old_val" != "x$ac_new_val"; then
2699 db 941 # differences in whitespace do not lead to failure.
2700     ac_old_val_w=`echo x $ac_old_val`
2701     ac_new_val_w=`echo x $ac_new_val`
2702     if test "$ac_old_val_w" != "$ac_new_val_w"; then
2703 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2704 db 941 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2705     ac_cache_corrupted=:
2706     else
2707 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2708 db 941 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2709     eval $ac_var=\$ac_old_val
2710     fi
2711 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2712 db 941 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2713 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2714 db 941 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2715 michael 912 fi;;
2716     esac
2717     # Pass precious variables to config.status.
2718     if test "$ac_new_set" = set; then
2719     case $ac_new_val in
2720 db 941 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2721 michael 912 *) ac_arg=$ac_var=$ac_new_val ;;
2722     esac
2723     case " $ac_configure_args " in
2724     *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2725 michael 967 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2726 michael 912 esac
2727     fi
2728     done
2729     if $ac_cache_corrupted; then
2730 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2731 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2732 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2733 db 941 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2734 michael 967 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2735 michael 912 fi
2736 michael 967 ## -------------------- ##
2737     ## Main body of script. ##
2738     ## -------------------- ##
2739 michael 912
2740     ac_ext=c
2741     ac_cpp='$CPP $CPPFLAGS'
2742     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2743     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2744     ac_compiler_gnu=$ac_cv_c_compiler_gnu
2745    
2746    
2747 michael 945 am__api_version='1.11'
2748 michael 912
2749     ac_aux_dir=
2750     for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2751 michael 967 for ac_t in install-sh install.sh shtool; do
2752     if test -f "$ac_dir/$ac_t"; then
2753     ac_aux_dir=$ac_dir
2754     ac_install_sh="$ac_aux_dir/$ac_t -c"
2755     break 2
2756     fi
2757     done
2758 michael 912 done
2759     if test -z "$ac_aux_dir"; then
2760 michael 967 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2761 michael 912 fi
2762    
2763     # These three variables are undocumented and unsupported,
2764     # and are intended to be withdrawn in a future Autoconf release.
2765     # They can cause serious problems if a builder's source tree is in a directory
2766     # whose full name contains unusual characters.
2767     ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2768     ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2769     ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2770    
2771    
2772     # Find a good install program. We prefer a C program (faster),
2773     # so one script is as good as another. But avoid the broken or
2774     # incompatible versions:
2775     # SysV /etc/install, /usr/sbin/install
2776     # SunOS /usr/etc/install
2777     # IRIX /sbin/install
2778     # AIX /bin/install
2779     # AmigaOS /C/install, which installs bootblocks on floppy discs
2780     # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2781     # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2782     # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2783     # OS/2's system install, which has a completely different semantic
2784     # ./install, which can be erroneously created by make from ./install.sh.
2785 db 941 # Reject install programs that cannot install multiple files.
2786 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2787 db 941 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2788 michael 912 if test -z "$INSTALL"; then
2789 michael 967 if test "${ac_cv_path_install+set}" = set; then :
2790 db 941 $as_echo_n "(cached) " >&6
2791 michael 912 else
2792     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2793     for as_dir in $PATH
2794     do
2795     IFS=$as_save_IFS
2796     test -z "$as_dir" && as_dir=.
2797 michael 967 # Account for people who put trailing slashes in PATH elements.
2798     case $as_dir/ in #((
2799     ./ | .// | /[cC]/* | \
2800 michael 912 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2801 michael 967 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2802 michael 912 /usr/ucb/* ) ;;
2803     *)
2804     # OSF1 and SCO ODT 3.0 have their own names for install.
2805     # Don't use installbsd from OSF since it installs stuff as root
2806     # by default.
2807     for ac_prog in ginstall scoinst install; do
2808     for ac_exec_ext in '' $ac_executable_extensions; do
2809     if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2810     if test $ac_prog = install &&
2811     grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2812     # AIX install. It has an incompatible calling convention.
2813     :
2814     elif test $ac_prog = install &&
2815     grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2816     # program-specific install script used by HP pwplus--don't use.
2817     :
2818     else
2819 db 941 rm -rf conftest.one conftest.two conftest.dir
2820     echo one > conftest.one
2821     echo two > conftest.two
2822     mkdir conftest.dir
2823     if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2824     test -s conftest.one && test -s conftest.two &&
2825     test -s conftest.dir/conftest.one &&
2826     test -s conftest.dir/conftest.two
2827     then
2828     ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2829     break 3
2830     fi
2831 michael 912 fi
2832     fi
2833     done
2834     done
2835     ;;
2836     esac
2837 db 941
2838 michael 967 done
2839 michael 912 IFS=$as_save_IFS
2840    
2841 db 941 rm -rf conftest.one conftest.two conftest.dir
2842 michael 912
2843     fi
2844     if test "${ac_cv_path_install+set}" = set; then
2845     INSTALL=$ac_cv_path_install
2846     else
2847     # As a last resort, use the slow shell script. Don't cache a
2848     # value for INSTALL within a source directory, because that will
2849     # break other packages using the cache if that directory is
2850     # removed, or if the value is a relative name.
2851     INSTALL=$ac_install_sh
2852     fi
2853     fi
2854 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2855 db 941 $as_echo "$INSTALL" >&6; }
2856 michael 912
2857     # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2858     # It thinks the first close brace ends the variable substitution.
2859     test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2860    
2861     test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2862    
2863     test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2864    
2865 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2866 db 941 $as_echo_n "checking whether build environment is sane... " >&6; }
2867 michael 912 # Just in case
2868     sleep 1
2869     echo timestamp > conftest.file
2870 michael 945 # Reject unsafe characters in $srcdir or the absolute working directory
2871     # name. Accept space and tab only in the latter.
2872     am_lf='
2873     '
2874     case `pwd` in
2875     *[\\\"\#\$\&\'\`$am_lf]*)
2876 michael 967 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2877 michael 945 esac
2878     case $srcdir in
2879     *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2880 michael 967 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2881 michael 945 esac
2882    
2883 michael 912 # Do `set' in a subshell so we don't clobber the current shell's
2884     # arguments. Must try -L first in case configure is actually a
2885     # symlink; some systems play weird games with the mod time of symlinks
2886     # (eg FreeBSD returns the mod time of the symlink's containing
2887     # directory).
2888     if (
2889 michael 945 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2890 michael 912 if test "$*" = "X"; then
2891     # -L didn't work.
2892 michael 945 set X `ls -t "$srcdir/configure" conftest.file`
2893 michael 912 fi
2894     rm -f conftest.file
2895     if test "$*" != "X $srcdir/configure conftest.file" \
2896     && test "$*" != "X conftest.file $srcdir/configure"; then
2897    
2898     # If neither matched, then we have a broken ls. This can happen
2899     # if, for instance, CONFIG_SHELL is bash and it inherits a
2900     # broken ls alias from the environment. This has actually
2901     # happened. Such a system could not be considered "sane".
2902 michael 967 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2903     alias in your environment" "$LINENO" 5
2904 michael 912 fi
2905    
2906     test "$2" = conftest.file
2907     )
2908     then
2909     # Ok.
2910     :
2911     else
2912 michael 967 as_fn_error "newly created file is older than distributed files!
2913     Check your system clock" "$LINENO" 5
2914 michael 912 fi
2915 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2916 db 941 $as_echo "yes" >&6; }
2917 michael 912 test "$program_prefix" != NONE &&
2918     program_transform_name="s&^&$program_prefix&;$program_transform_name"
2919     # Use a double $ so make ignores it.
2920     test "$program_suffix" != NONE &&
2921     program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2922 db 941 # Double any \ or $.
2923 michael 912 # By default was `s,x,x', remove it if useless.
2924 db 941 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2925     program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2926 michael 912
2927     # expand $ac_aux_dir to an absolute path
2928     am_aux_dir=`cd $ac_aux_dir && pwd`
2929    
2930 michael 945 if test x"${MISSING+set}" != xset; then
2931     case $am_aux_dir in
2932     *\ * | *\ *)
2933     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2934     *)
2935     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2936     esac
2937     fi
2938 michael 912 # Use eval to expand $SHELL
2939     if eval "$MISSING --run true"; then
2940     am_missing_run="$MISSING --run "
2941     else
2942     am_missing_run=
2943 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2944 db 941 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2945 michael 912 fi
2946    
2947 michael 945 if test x"${install_sh}" != xset; then
2948     case $am_aux_dir in
2949     *\ * | *\ *)
2950     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2951     *)
2952     install_sh="\${SHELL} $am_aux_dir/install-sh"
2953     esac
2954     fi
2955    
2956     # Installed binaries are usually stripped using `strip' when the user
2957     # run `make install-strip'. However `strip' might not be the right
2958     # tool to use in cross-compilation environments, therefore Automake
2959     # will honor the `STRIP' environment variable to overrule this program.
2960     if test "$cross_compiling" != no; then
2961     if test -n "$ac_tool_prefix"; then
2962     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2963     set dummy ${ac_tool_prefix}strip; ac_word=$2
2964 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
2966 michael 967 if test "${ac_cv_prog_STRIP+set}" = set; then :
2967 michael 945 $as_echo_n "(cached) " >&6
2968     else
2969     if test -n "$STRIP"; then
2970     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2971     else
2972     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973     for as_dir in $PATH
2974     do
2975     IFS=$as_save_IFS
2976     test -z "$as_dir" && as_dir=.
2977 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
2978 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2980 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 michael 945 break 2
2982     fi
2983     done
2984 michael 967 done
2985 michael 945 IFS=$as_save_IFS
2986    
2987     fi
2988     fi
2989     STRIP=$ac_cv_prog_STRIP
2990     if test -n "$STRIP"; then
2991 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2992 michael 945 $as_echo "$STRIP" >&6; }
2993     else
2994 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 michael 945 $as_echo "no" >&6; }
2996     fi
2997    
2998    
2999     fi
3000     if test -z "$ac_cv_prog_STRIP"; then
3001     ac_ct_STRIP=$STRIP
3002     # Extract the first word of "strip", so it can be a program name with args.
3003     set dummy strip; ac_word=$2
3004 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
3006 michael 967 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3007 michael 945 $as_echo_n "(cached) " >&6
3008     else
3009     if test -n "$ac_ct_STRIP"; then
3010     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3011     else
3012     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013     for as_dir in $PATH
3014     do
3015     IFS=$as_save_IFS
3016     test -z "$as_dir" && as_dir=.
3017 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3018 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019     ac_cv_prog_ac_ct_STRIP="strip"
3020 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 michael 945 break 2
3022     fi
3023     done
3024 michael 967 done
3025 michael 945 IFS=$as_save_IFS
3026    
3027     fi
3028     fi
3029     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3030     if test -n "$ac_ct_STRIP"; then
3031 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3032 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
3033     else
3034 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 michael 945 $as_echo "no" >&6; }
3036     fi
3037    
3038     if test "x$ac_ct_STRIP" = x; then
3039     STRIP=":"
3040     else
3041     case $cross_compiling:$ac_tool_warned in
3042     yes:)
3043 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045     ac_tool_warned=yes ;;
3046     esac
3047     STRIP=$ac_ct_STRIP
3048     fi
3049     else
3050     STRIP="$ac_cv_prog_STRIP"
3051     fi
3052    
3053     fi
3054     INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3055    
3056 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3057 db 941 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3058 michael 912 if test -z "$MKDIR_P"; then
3059 michael 967 if test "${ac_cv_path_mkdir+set}" = set; then :
3060 db 941 $as_echo_n "(cached) " >&6
3061 michael 912 else
3062     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063     for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3064     do
3065     IFS=$as_save_IFS
3066     test -z "$as_dir" && as_dir=.
3067 michael 967 for ac_prog in mkdir gmkdir; do
3068 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
3069     { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3070     case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3071     'mkdir (GNU coreutils) '* | \
3072     'mkdir (coreutils) '* | \
3073     'mkdir (fileutils) '4.1*)
3074     ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3075     break 3;;
3076     esac
3077     done
3078     done
3079 michael 967 done
3080 michael 912 IFS=$as_save_IFS
3081    
3082     fi
3083    
3084     if test "${ac_cv_path_mkdir+set}" = set; then
3085     MKDIR_P="$ac_cv_path_mkdir -p"
3086     else
3087     # As a last resort, use the slow shell script. Don't cache a
3088     # value for MKDIR_P within a source directory, because that will
3089     # break other packages using the cache if that directory is
3090     # removed, or if the value is a relative name.
3091     test -d ./--version && rmdir ./--version
3092     MKDIR_P="$ac_install_sh -d"
3093     fi
3094     fi
3095 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3096 db 941 $as_echo "$MKDIR_P" >&6; }
3097 michael 912
3098     mkdir_p="$MKDIR_P"
3099     case $mkdir_p in
3100     [\\/$]* | ?:[\\/]*) ;;
3101     */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3102     esac
3103    
3104     for ac_prog in gawk mawk nawk awk
3105     do
3106     # Extract the first word of "$ac_prog", so it can be a program name with args.
3107     set dummy $ac_prog; ac_word=$2
3108 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3109 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3110 michael 967 if test "${ac_cv_prog_AWK+set}" = set; then :
3111 db 941 $as_echo_n "(cached) " >&6
3112 michael 912 else
3113     if test -n "$AWK"; then
3114     ac_cv_prog_AWK="$AWK" # Let the user override the test.
3115     else
3116     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117     for as_dir in $PATH
3118     do
3119     IFS=$as_save_IFS
3120     test -z "$as_dir" && as_dir=.
3121 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3122 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123     ac_cv_prog_AWK="$ac_prog"
3124 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 michael 912 break 2
3126     fi
3127     done
3128 michael 967 done
3129 michael 912 IFS=$as_save_IFS
3130    
3131     fi
3132     fi
3133     AWK=$ac_cv_prog_AWK
3134     if test -n "$AWK"; then
3135 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3136 db 941 $as_echo "$AWK" >&6; }
3137 michael 912 else
3138 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3139 db 941 $as_echo "no" >&6; }
3140 michael 912 fi
3141    
3142    
3143     test -n "$AWK" && break
3144     done
3145    
3146 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3147 db 941 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3148     set x ${MAKE-make}
3149     ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3150 michael 967 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3151 db 941 $as_echo_n "(cached) " >&6
3152 michael 912 else
3153     cat >conftest.make <<\_ACEOF
3154     SHELL = /bin/sh
3155     all:
3156     @echo '@@@%%%=$(MAKE)=@@@%%%'
3157     _ACEOF
3158     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3159     case `${MAKE-make} -f conftest.make 2>/dev/null` in
3160     *@@@%%%=?*=@@@%%%*)
3161     eval ac_cv_prog_make_${ac_make}_set=yes;;
3162     *)
3163     eval ac_cv_prog_make_${ac_make}_set=no;;
3164     esac
3165     rm -f conftest.make
3166     fi
3167     if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3168 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3169 db 941 $as_echo "yes" >&6; }
3170 michael 912 SET_MAKE=
3171     else
3172 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3173 db 941 $as_echo "no" >&6; }
3174 michael 912 SET_MAKE="MAKE=${MAKE-make}"
3175     fi
3176    
3177     rm -rf .tst 2>/dev/null
3178     mkdir .tst 2>/dev/null
3179     if test -d .tst; then
3180     am__leading_dot=.
3181     else
3182     am__leading_dot=_
3183     fi
3184     rmdir .tst 2>/dev/null
3185    
3186     if test "`cd $srcdir && pwd`" != "`pwd`"; then
3187     # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3188     # is not polluted with repeated "-I."
3189     am__isrc=' -I$(srcdir)'
3190     # test to see if srcdir already configured
3191     if test -f $srcdir/config.status; then
3192 michael 967 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3193 michael 912 fi
3194     fi
3195    
3196     # test whether we have cygpath
3197     if test -z "$CYGPATH_W"; then
3198     if (cygpath --version) >/dev/null 2>/dev/null; then
3199     CYGPATH_W='cygpath -w'
3200     else
3201     CYGPATH_W=echo
3202     fi
3203     fi
3204    
3205    
3206     # Define the identity of the package.
3207     PACKAGE='ircd-hybrid'
3208     VERSION='7.2.4'
3209    
3210    
3211     cat >>confdefs.h <<_ACEOF
3212     #define PACKAGE "$PACKAGE"
3213     _ACEOF
3214    
3215    
3216     cat >>confdefs.h <<_ACEOF
3217     #define VERSION "$VERSION"
3218     _ACEOF
3219    
3220     # Some tools Automake needs.
3221    
3222     ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3223    
3224    
3225     AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3226    
3227    
3228     AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3229    
3230    
3231     AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3232    
3233    
3234     MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3235    
3236     # We need awk for the "check" target. The system "awk" is bad on
3237     # some platforms.
3238     # Always define AMTAR for backward compatibility.
3239    
3240     AMTAR=${AMTAR-"${am_missing_run}tar"}
3241    
3242     am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3243    
3244    
3245    
3246    
3247    
3248 michael 945
3249 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3250 db 941 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3251 michael 912 # Check whether --enable-maintainer-mode was given.
3252 michael 967 if test "${enable_maintainer_mode+set}" = set; then :
3253 michael 912 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3254     else
3255     USE_MAINTAINER_MODE=no
3256     fi
3257    
3258 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3259 db 941 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3260 michael 912 if test $USE_MAINTAINER_MODE = yes; then
3261     MAINTAINER_MODE_TRUE=
3262     MAINTAINER_MODE_FALSE='#'
3263     else
3264     MAINTAINER_MODE_TRUE='#'
3265     MAINTAINER_MODE_FALSE=
3266     fi
3267    
3268     MAINT=$MAINTAINER_MODE_TRUE
3269    
3270    
3271     ac_config_headers="$ac_config_headers config.h"
3272    
3273    
3274    
3275 michael 923
3276 michael 912 # Checks for programs.
3277     ac_ext=c
3278     ac_cpp='$CPP $CPPFLAGS'
3279     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3280     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3281     ac_compiler_gnu=$ac_cv_c_compiler_gnu
3282     if test -n "$ac_tool_prefix"; then
3283     # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3284     set dummy ${ac_tool_prefix}gcc; ac_word=$2
3285 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3286 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3287 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3288 db 941 $as_echo_n "(cached) " >&6
3289 michael 912 else
3290     if test -n "$CC"; then
3291     ac_cv_prog_CC="$CC" # Let the user override the test.
3292     else
3293     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294     for as_dir in $PATH
3295     do
3296     IFS=$as_save_IFS
3297     test -z "$as_dir" && as_dir=.
3298 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3299 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3300     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3301 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3302 michael 912 break 2
3303     fi
3304     done
3305 michael 967 done
3306 michael 912 IFS=$as_save_IFS
3307    
3308     fi
3309     fi
3310     CC=$ac_cv_prog_CC
3311     if test -n "$CC"; then
3312 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3313 db 941 $as_echo "$CC" >&6; }
3314 michael 912 else
3315 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316 db 941 $as_echo "no" >&6; }
3317 michael 912 fi
3318    
3319    
3320     fi
3321     if test -z "$ac_cv_prog_CC"; then
3322     ac_ct_CC=$CC
3323     # Extract the first word of "gcc", so it can be a program name with args.
3324     set dummy gcc; ac_word=$2
3325 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3326 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3327 michael 967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3328 db 941 $as_echo_n "(cached) " >&6
3329 michael 912 else
3330     if test -n "$ac_ct_CC"; then
3331     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3332     else
3333     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3334     for as_dir in $PATH
3335     do
3336     IFS=$as_save_IFS
3337     test -z "$as_dir" && as_dir=.
3338 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3339 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3340     ac_cv_prog_ac_ct_CC="gcc"
3341 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3342 michael 912 break 2
3343     fi
3344     done
3345 michael 967 done
3346 michael 912 IFS=$as_save_IFS
3347    
3348     fi
3349     fi
3350     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3351     if test -n "$ac_ct_CC"; then
3352 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3353 db 941 $as_echo "$ac_ct_CC" >&6; }
3354 michael 912 else
3355 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3356 db 941 $as_echo "no" >&6; }
3357 michael 912 fi
3358    
3359     if test "x$ac_ct_CC" = x; then
3360     CC=""
3361     else
3362     case $cross_compiling:$ac_tool_warned in
3363     yes:)
3364 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3365 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3366 michael 912 ac_tool_warned=yes ;;
3367     esac
3368     CC=$ac_ct_CC
3369     fi
3370     else
3371     CC="$ac_cv_prog_CC"
3372     fi
3373    
3374     if test -z "$CC"; then
3375     if test -n "$ac_tool_prefix"; then
3376     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3377     set dummy ${ac_tool_prefix}cc; ac_word=$2
3378 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3379 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3380 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3381 db 941 $as_echo_n "(cached) " >&6
3382 michael 912 else
3383     if test -n "$CC"; then
3384     ac_cv_prog_CC="$CC" # Let the user override the test.
3385     else
3386     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3387     for as_dir in $PATH
3388     do
3389     IFS=$as_save_IFS
3390     test -z "$as_dir" && as_dir=.
3391 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3392 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3393     ac_cv_prog_CC="${ac_tool_prefix}cc"
3394 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3395 michael 912 break 2
3396     fi
3397     done
3398 michael 967 done
3399 michael 912 IFS=$as_save_IFS
3400    
3401     fi
3402     fi
3403     CC=$ac_cv_prog_CC
3404     if test -n "$CC"; then
3405 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3406 db 941 $as_echo "$CC" >&6; }
3407 michael 912 else
3408 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3409 db 941 $as_echo "no" >&6; }
3410 michael 912 fi
3411    
3412    
3413     fi
3414     fi
3415     if test -z "$CC"; then
3416     # Extract the first word of "cc", so it can be a program name with args.
3417     set dummy cc; 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_CC+set}" = set; then :
3421 db 941 $as_echo_n "(cached) " >&6
3422 michael 912 else
3423     if test -n "$CC"; then
3424     ac_cv_prog_CC="$CC" # Let the user override the test.
3425     else
3426     ac_prog_rejected=no
3427     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428     for as_dir in $PATH
3429     do
3430     IFS=$as_save_IFS
3431     test -z "$as_dir" && as_dir=.
3432 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3433 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3435     ac_prog_rejected=yes
3436     continue
3437     fi
3438     ac_cv_prog_CC="cc"
3439 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 michael 912 break 2
3441     fi
3442     done
3443 michael 967 done
3444 michael 912 IFS=$as_save_IFS
3445    
3446     if test $ac_prog_rejected = yes; then
3447     # We found a bogon in the path, so make sure we never use it.
3448     set dummy $ac_cv_prog_CC
3449     shift
3450     if test $# != 0; then
3451     # We chose a different compiler from the bogus one.
3452     # However, it has the same basename, so the bogon will be chosen
3453     # first if we set CC to just the basename; use the full file name.
3454     shift
3455     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3456     fi
3457     fi
3458     fi
3459     fi
3460     CC=$ac_cv_prog_CC
3461     if test -n "$CC"; then
3462 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3463 db 941 $as_echo "$CC" >&6; }
3464 michael 912 else
3465 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 db 941 $as_echo "no" >&6; }
3467 michael 912 fi
3468    
3469    
3470     fi
3471     if test -z "$CC"; then
3472     if test -n "$ac_tool_prefix"; then
3473     for ac_prog in cl.exe
3474     do
3475     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3476     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3477 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3479 michael 967 if test "${ac_cv_prog_CC+set}" = set; then :
3480 db 941 $as_echo_n "(cached) " >&6
3481 michael 912 else
3482     if test -n "$CC"; then
3483     ac_cv_prog_CC="$CC" # Let the user override the test.
3484     else
3485     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3486     for as_dir in $PATH
3487     do
3488     IFS=$as_save_IFS
3489     test -z "$as_dir" && as_dir=.
3490 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3491 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3492     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3493 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 michael 912 break 2
3495     fi
3496     done
3497 michael 967 done
3498 michael 912 IFS=$as_save_IFS
3499    
3500     fi
3501     fi
3502     CC=$ac_cv_prog_CC
3503     if test -n "$CC"; then
3504 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3505 db 941 $as_echo "$CC" >&6; }
3506 michael 912 else
3507 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3508 db 941 $as_echo "no" >&6; }
3509 michael 912 fi
3510    
3511    
3512     test -n "$CC" && break
3513     done
3514     fi
3515     if test -z "$CC"; then
3516     ac_ct_CC=$CC
3517     for ac_prog in cl.exe
3518     do
3519     # Extract the first word of "$ac_prog", so it can be a program name with args.
3520     set dummy $ac_prog; ac_word=$2
3521 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 db 941 $as_echo_n "checking for $ac_word... " >&6; }
3523 michael 967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3524 db 941 $as_echo_n "(cached) " >&6
3525 michael 912 else
3526     if test -n "$ac_ct_CC"; then
3527     ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3528     else
3529     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530     for as_dir in $PATH
3531     do
3532     IFS=$as_save_IFS
3533     test -z "$as_dir" && as_dir=.
3534 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
3535 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536     ac_cv_prog_ac_ct_CC="$ac_prog"
3537 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 michael 912 break 2
3539     fi
3540     done
3541 michael 967 done
3542 michael 912 IFS=$as_save_IFS
3543    
3544     fi
3545     fi
3546     ac_ct_CC=$ac_cv_prog_ac_ct_CC
3547     if test -n "$ac_ct_CC"; then
3548 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3549 db 941 $as_echo "$ac_ct_CC" >&6; }
3550 michael 912 else
3551 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 db 941 $as_echo "no" >&6; }
3553 michael 912 fi
3554    
3555    
3556     test -n "$ac_ct_CC" && break
3557     done
3558    
3559     if test "x$ac_ct_CC" = x; then
3560     CC=""
3561     else
3562     case $cross_compiling:$ac_tool_warned in
3563     yes:)
3564 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3565 michael 942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3566 michael 912 ac_tool_warned=yes ;;
3567     esac
3568     CC=$ac_ct_CC
3569     fi
3570     fi
3571    
3572     fi
3573    
3574    
3575 michael 967 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3576 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3577 michael 967 as_fn_error "no acceptable C compiler found in \$PATH
3578     See \`config.log' for more details." "$LINENO" 5; }
3579 michael 912
3580     # Provide some information about the compiler.
3581 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3582 db 941 set X $ac_compile
3583     ac_compiler=$2
3584 michael 967 for ac_option in --version -v -V -qversion; do
3585     { { ac_try="$ac_compiler $ac_option >&5"
3586 michael 912 case "(($ac_try" in
3587     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588     *) ac_try_echo=$ac_try;;
3589     esac
3590 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3591     $as_echo "$ac_try_echo"; } >&5
3592     (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3593 michael 912 ac_status=$?
3594 michael 967 if test -s conftest.err; then
3595     sed '10a\
3596     ... rest of stderr output deleted ...
3597     10q' conftest.err >conftest.er1
3598     cat conftest.er1 >&5
3599     rm -f conftest.er1 conftest.err
3600     fi
3601     $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3602     test $ac_status = 0; }
3603     done
3604 michael 912
3605 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3606 michael 912 /* end confdefs.h. */
3607 michael 967 #include <stdio.h>
3608 michael 912 int
3609     main ()
3610     {
3611 michael 967 FILE *f = fopen ("conftest.out", "w");
3612     return ferror (f) || fclose (f) != 0;
3613 michael 912
3614     ;
3615     return 0;
3616     }
3617     _ACEOF
3618     ac_clean_files_save=$ac_clean_files
3619 michael 967 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3620 michael 912 # Try to create an executable without -o first, disregard a.out.
3621     # It will help us diagnose broken compilers, and finding out an intuition
3622     # of exeext.
3623 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3624 db 941 $as_echo_n "checking for C compiler default output file name... " >&6; }
3625     ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3626    
3627     # The possible output files:
3628     ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3629    
3630 michael 912 ac_rmfiles=
3631     for ac_file in $ac_files
3632     do
3633     case $ac_file in
3634 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3635 michael 912 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3636     esac
3637     done
3638     rm -f $ac_rmfiles
3639    
3640 michael 967 if { { ac_try="$ac_link_default"
3641 michael 912 case "(($ac_try" in
3642     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643     *) ac_try_echo=$ac_try;;
3644     esac
3645 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3646     $as_echo "$ac_try_echo"; } >&5
3647 michael 912 (eval "$ac_link_default") 2>&5
3648     ac_status=$?
3649 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650     test $ac_status = 0; }; then :
3651 michael 912 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3652     # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3653     # in a Makefile. We should not override ac_cv_exeext if it was cached,
3654     # so that the user can short-circuit this test for compilers unknown to
3655     # Autoconf.
3656     for ac_file in $ac_files ''
3657     do
3658     test -f "$ac_file" || continue
3659     case $ac_file in
3660 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3661 michael 912 ;;
3662     [ab].out )
3663     # We found the default executable, but exeext='' is most
3664     # certainly right.
3665     break;;
3666     *.* )
3667 michael 967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3668 michael 912 then :; else
3669     ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3670     fi
3671     # We set ac_cv_exeext here because the later test for it is not
3672     # safe: cross compilers may not add the suffix if given an `-o'
3673     # argument, so we may need to know it at that point already.
3674     # Even if this section looks crufty: it has the advantage of
3675     # actually working.
3676     break;;
3677     * )
3678     break;;
3679     esac
3680     done
3681     test "$ac_cv_exeext" = no && ac_cv_exeext=
3682    
3683     else
3684     ac_file=''
3685     fi
3686 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3687 db 941 $as_echo "$ac_file" >&6; }
3688 michael 967 if test -z "$ac_file"; then :
3689 db 941 $as_echo "$as_me: failed program was:" >&5
3690 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3691    
3692 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3693 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3694 michael 967 { as_fn_set_status 77
3695     as_fn_error "C compiler cannot create executables
3696     See \`config.log' for more details." "$LINENO" 5; }; }
3697 michael 912 fi
3698     ac_exeext=$ac_cv_exeext
3699    
3700     # Check that the compiler produces executables we can run. If not, either
3701     # the compiler is broken, or we cross compile.
3702 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3703 db 941 $as_echo_n "checking whether the C compiler works... " >&6; }
3704 michael 912 # If not cross compiling, check that we can run a simple program.
3705     if test "$cross_compiling" != yes; then
3706     if { ac_try='./$ac_file'
3707 michael 967 { { case "(($ac_try" in
3708 michael 912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709     *) ac_try_echo=$ac_try;;
3710     esac
3711 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3712     $as_echo "$ac_try_echo"; } >&5
3713 michael 912 (eval "$ac_try") 2>&5
3714     ac_status=$?
3715 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3716     test $ac_status = 0; }; }; then
3717 michael 912 cross_compiling=no
3718     else
3719     if test "$cross_compiling" = maybe; then
3720     cross_compiling=yes
3721     else
3722 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3723 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3724 michael 967 as_fn_error "cannot run C compiled programs.
3725 michael 912 If you meant to cross compile, use \`--host'.
3726 michael 967 See \`config.log' for more details." "$LINENO" 5; }
3727 michael 912 fi
3728     fi
3729     fi
3730 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3731 db 941 $as_echo "yes" >&6; }
3732 michael 912
3733 michael 967 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3734 michael 912 ac_clean_files=$ac_clean_files_save
3735     # Check that the compiler produces executables we can run. If not, either
3736     # the compiler is broken, or we cross compile.
3737 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3738 db 941 $as_echo_n "checking whether we are cross compiling... " >&6; }
3739 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3740 db 941 $as_echo "$cross_compiling" >&6; }
3741 michael 912
3742 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3743 db 941 $as_echo_n "checking for suffix of executables... " >&6; }
3744 michael 967 if { { ac_try="$ac_link"
3745 michael 912 case "(($ac_try" in
3746     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747     *) ac_try_echo=$ac_try;;
3748     esac
3749 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3750     $as_echo "$ac_try_echo"; } >&5
3751 michael 912 (eval "$ac_link") 2>&5
3752     ac_status=$?
3753 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3754     test $ac_status = 0; }; then :
3755 michael 912 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3756     # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3757     # work properly (i.e., refer to `conftest.exe'), while it won't with
3758     # `rm'.
3759     for ac_file in conftest.exe conftest conftest.*; do
3760     test -f "$ac_file" || continue
3761     case $ac_file in
3762 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3763 michael 912 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3764     break;;
3765     * ) break;;
3766     esac
3767     done
3768     else
3769 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3770 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3771 michael 967 as_fn_error "cannot compute suffix of executables: cannot compile and link
3772     See \`config.log' for more details." "$LINENO" 5; }
3773 michael 912 fi
3774     rm -f conftest$ac_cv_exeext
3775 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3776 db 941 $as_echo "$ac_cv_exeext" >&6; }
3777 michael 912
3778     rm -f conftest.$ac_ext
3779     EXEEXT=$ac_cv_exeext
3780     ac_exeext=$EXEEXT
3781 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3782 db 941 $as_echo_n "checking for suffix of object files... " >&6; }
3783 michael 967 if test "${ac_cv_objext+set}" = set; then :
3784 db 941 $as_echo_n "(cached) " >&6
3785 michael 912 else
3786 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3787 michael 912 /* end confdefs.h. */
3788    
3789     int
3790     main ()
3791     {
3792    
3793     ;
3794     return 0;
3795     }
3796     _ACEOF
3797     rm -f conftest.o conftest.obj
3798 michael 967 if { { ac_try="$ac_compile"
3799 michael 912 case "(($ac_try" in
3800     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801     *) ac_try_echo=$ac_try;;
3802     esac
3803 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3804     $as_echo "$ac_try_echo"; } >&5
3805 michael 912 (eval "$ac_compile") 2>&5
3806     ac_status=$?
3807 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808     test $ac_status = 0; }; then :
3809 michael 912 for ac_file in conftest.o conftest.obj conftest.*; do
3810     test -f "$ac_file" || continue;
3811     case $ac_file in
3812 db 941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3813 michael 912 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3814     break;;
3815     esac
3816     done
3817     else
3818 db 941 $as_echo "$as_me: failed program was:" >&5
3819 michael 912 sed 's/^/| /' conftest.$ac_ext >&5
3820    
3821 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3822 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3823 michael 967 as_fn_error "cannot compute suffix of object files: cannot compile
3824     See \`config.log' for more details." "$LINENO" 5; }
3825 michael 912 fi
3826     rm -f conftest.$ac_cv_objext conftest.$ac_ext
3827     fi
3828 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3829 db 941 $as_echo "$ac_cv_objext" >&6; }
3830 michael 912 OBJEXT=$ac_cv_objext
3831     ac_objext=$OBJEXT
3832 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3833 db 941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3834 michael 967 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3835 db 941 $as_echo_n "(cached) " >&6
3836 michael 912 else
3837 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3838 michael 912 /* end confdefs.h. */
3839    
3840     int
3841     main ()
3842     {
3843     #ifndef __GNUC__
3844     choke me
3845     #endif
3846    
3847     ;
3848     return 0;
3849     }
3850     _ACEOF
3851 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3852 michael 912 ac_compiler_gnu=yes
3853     else
3854 michael 967 ac_compiler_gnu=no
3855 michael 912 fi
3856     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3857     ac_cv_c_compiler_gnu=$ac_compiler_gnu
3858    
3859     fi
3860 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3861 db 941 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3862     if test $ac_compiler_gnu = yes; then
3863     GCC=yes
3864     else
3865     GCC=
3866     fi
3867 michael 912 ac_test_CFLAGS=${CFLAGS+set}
3868     ac_save_CFLAGS=$CFLAGS
3869 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3870 db 941 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3871 michael 967 if test "${ac_cv_prog_cc_g+set}" = set; then :
3872 db 941 $as_echo_n "(cached) " >&6
3873 michael 912 else
3874     ac_save_c_werror_flag=$ac_c_werror_flag
3875     ac_c_werror_flag=yes
3876     ac_cv_prog_cc_g=no
3877     CFLAGS="-g"
3878 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879 michael 912 /* end confdefs.h. */
3880    
3881     int
3882     main ()
3883     {
3884    
3885     ;
3886     return 0;
3887     }
3888     _ACEOF
3889 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3890 michael 912 ac_cv_prog_cc_g=yes
3891     else
3892 michael 967 CFLAGS=""
3893     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3894 michael 912 /* end confdefs.h. */
3895    
3896     int
3897     main ()
3898     {
3899    
3900     ;
3901     return 0;
3902     }
3903     _ACEOF
3904 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3905    
3906 michael 912 else
3907 michael 967 ac_c_werror_flag=$ac_save_c_werror_flag
3908 michael 912 CFLAGS="-g"
3909 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 michael 912 /* end confdefs.h. */
3911    
3912     int
3913     main ()
3914     {
3915    
3916     ;
3917     return 0;
3918     }
3919     _ACEOF
3920 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
3921 michael 912 ac_cv_prog_cc_g=yes
3922     fi
3923     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924     fi
3925     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926     fi
3927     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928     ac_c_werror_flag=$ac_save_c_werror_flag
3929     fi
3930 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3931 db 941 $as_echo "$ac_cv_prog_cc_g" >&6; }
3932 michael 912 if test "$ac_test_CFLAGS" = set; then
3933     CFLAGS=$ac_save_CFLAGS
3934     elif test $ac_cv_prog_cc_g = yes; then
3935     if test "$GCC" = yes; then
3936     CFLAGS="-g -O2"
3937     else
3938     CFLAGS="-g"
3939     fi
3940     else
3941     if test "$GCC" = yes; then
3942     CFLAGS="-O2"
3943     else
3944     CFLAGS=
3945     fi
3946     fi
3947 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3948 db 941 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3949 michael 967 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3950 db 941 $as_echo_n "(cached) " >&6
3951 michael 912 else
3952     ac_cv_prog_cc_c89=no
3953     ac_save_CC=$CC
3954 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3955 michael 912 /* end confdefs.h. */
3956     #include <stdarg.h>
3957     #include <stdio.h>
3958     #include <sys/types.h>
3959     #include <sys/stat.h>
3960     /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3961     struct buf { int x; };
3962     FILE * (*rcsopen) (struct buf *, struct stat *, int);
3963     static char *e (p, i)
3964     char **p;
3965     int i;
3966     {
3967     return p[i];
3968     }
3969     static char *f (char * (*g) (char **, int), char **p, ...)
3970     {
3971     char *s;
3972     va_list v;
3973     va_start (v,p);
3974     s = g (p, va_arg (v,int));
3975     va_end (v);
3976     return s;
3977     }
3978    
3979     /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3980     function prototypes and stuff, but not '\xHH' hex character constants.
3981     These don't provoke an error unfortunately, instead are silently treated
3982     as 'x'. The following induces an error, until -std is added to get
3983     proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3984     array size at least. It's necessary to write '\x00'==0 to get something
3985     that's true only with -std. */
3986     int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3987    
3988     /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3989     inside strings and character constants. */
3990     #define FOO(x) 'x'
3991     int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3992    
3993     int test (int i, double x);
3994     struct s1 {int (*f) (int a);};
3995     struct s2 {int (*f) (double a);};
3996     int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3997     int argc;
3998     char **argv;
3999     int
4000     main ()
4001     {
4002     return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4003     ;
4004     return 0;
4005     }
4006     _ACEOF
4007     for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4008     -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4009     do
4010     CC="$ac_save_CC $ac_arg"
4011 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
4012 michael 912 ac_cv_prog_cc_c89=$ac_arg
4013     fi
4014     rm -f core conftest.err conftest.$ac_objext
4015     test "x$ac_cv_prog_cc_c89" != "xno" && break
4016     done
4017     rm -f conftest.$ac_ext
4018     CC=$ac_save_CC
4019    
4020     fi
4021     # AC_CACHE_VAL
4022     case "x$ac_cv_prog_cc_c89" in
4023     x)
4024 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4025 db 941 $as_echo "none needed" >&6; } ;;
4026 michael 912 xno)
4027 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4028 db 941 $as_echo "unsupported" >&6; } ;;
4029 michael 912 *)
4030     CC="$CC $ac_cv_prog_cc_c89"
4031 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4032 db 941 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4033 michael 912 esac
4034 michael 967 if test "x$ac_cv_prog_cc_c89" != xno; then :
4035 michael 912
4036 michael 967 fi
4037 michael 912
4038     ac_ext=c
4039     ac_cpp='$CPP $CPPFLAGS'
4040     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4041     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4042     ac_compiler_gnu=$ac_cv_c_compiler_gnu
4043     DEPDIR="${am__leading_dot}deps"
4044    
4045     ac_config_commands="$ac_config_commands depfiles"
4046    
4047    
4048     am_make=${MAKE-make}
4049     cat > confinc << 'END'
4050     am__doit:
4051 michael 945 @echo this is the am__doit target
4052 michael 912 .PHONY: am__doit
4053     END
4054     # If we don't find an include directive, just comment out the code.
4055 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4056 db 941 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4057 michael 912 am__include="#"
4058     am__quote=
4059     _am_result=none
4060     # First try GNU make style include.
4061     echo "include confinc" > confmf
4062 michael 945 # Ignore all kinds of additional output from `make'.
4063     case `$am_make -s -f confmf 2> /dev/null` in #(
4064     *the\ am__doit\ target*)
4065     am__include=include
4066     am__quote=
4067     _am_result=GNU
4068     ;;
4069     esac
4070 michael 912 # Now try BSD make style include.
4071     if test "$am__include" = "#"; then
4072     echo '.include "confinc"' > confmf
4073 michael 945 case `$am_make -s -f confmf 2> /dev/null` in #(
4074     *the\ am__doit\ target*)
4075     am__include=.include
4076     am__quote="\""
4077     _am_result=BSD
4078     ;;
4079     esac
4080 michael 912 fi
4081    
4082    
4083 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4084 db 941 $as_echo "$_am_result" >&6; }
4085 michael 912 rm -f confinc confmf
4086    
4087     # Check whether --enable-dependency-tracking was given.
4088 michael 967 if test "${enable_dependency_tracking+set}" = set; then :
4089 michael 912 enableval=$enable_dependency_tracking;
4090     fi
4091    
4092     if test "x$enable_dependency_tracking" != xno; then
4093     am_depcomp="$ac_aux_dir/depcomp"
4094     AMDEPBACKSLASH='\'
4095     fi
4096     if test "x$enable_dependency_tracking" != xno; then
4097     AMDEP_TRUE=
4098     AMDEP_FALSE='#'
4099     else
4100     AMDEP_TRUE='#'
4101     AMDEP_FALSE=
4102     fi
4103    
4104    
4105    
4106     depcc="$CC" am_compiler_list=
4107    
4108 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4109 db 941 $as_echo_n "checking dependency style of $depcc... " >&6; }
4110 michael 967 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4111 db 941 $as_echo_n "(cached) " >&6
4112 michael 912 else
4113     if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4114     # We make a subdir and do the tests there. Otherwise we can end up
4115     # making bogus files that we don't know about and never remove. For
4116     # instance it was reported that on HP-UX the gcc test will end up
4117     # making a dummy file named `D' -- because `-MD' means `put the output
4118     # in D'.
4119     mkdir conftest.dir
4120     # Copy depcomp to subdir because otherwise we won't find it if we're
4121     # using a relative directory.
4122     cp "$am_depcomp" conftest.dir
4123     cd conftest.dir
4124     # We will build objects and dependencies in a subdirectory because
4125     # it helps to detect inapplicable dependency modes. For instance
4126     # both Tru64's cc and ICC support -MD to output dependencies as a
4127     # side effect of compilation, but ICC will put the dependencies in
4128     # the current directory while Tru64 will put them in the object
4129     # directory.
4130     mkdir sub
4131    
4132     am_cv_CC_dependencies_compiler_type=none
4133     if test "$am_compiler_list" = ""; then
4134     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4135     fi
4136 michael 945 am__universal=false
4137     case " $depcc " in #(
4138     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4139     esac
4140    
4141 michael 912 for depmode in $am_compiler_list; do
4142     # Setup a source with many dependencies, because some compilers
4143     # like to wrap large dependency lists on column 80 (with \), and
4144     # we should not choose a depcomp mode which is confused by this.
4145     #
4146     # We need to recreate these files for each test, as the compiler may
4147     # overwrite some of them when testing with obscure command lines.
4148     # This happens at least with the AIX C compiler.
4149     : > sub/conftest.c
4150     for i in 1 2 3 4 5 6; do
4151     echo '#include "conftst'$i'.h"' >> sub/conftest.c
4152     # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4153     # Solaris 8's {/usr,}/bin/sh.
4154     touch sub/conftst$i.h
4155     done
4156     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4157    
4158 michael 945 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4159     # mode. It turns out that the SunPro C++ compiler does not properly
4160     # handle `-M -o', and we need to detect this. Also, some Intel
4161     # versions had trouble with output in subdirs
4162     am__obj=sub/conftest.${OBJEXT-o}
4163     am__minus_obj="-o $am__obj"
4164 michael 912 case $depmode in
4165 michael 945 gcc)
4166     # This depmode causes a compiler race in universal mode.
4167     test "$am__universal" = false || continue
4168     ;;
4169 michael 912 nosideeffect)
4170     # after this tag, mechanisms are not by side-effect, so they'll
4171     # only be used when explicitly requested
4172     if test "x$enable_dependency_tracking" = xyes; then
4173     continue
4174     else
4175     break
4176     fi
4177     ;;
4178 michael 945 msvisualcpp | msvcmsys)
4179     # This compiler won't grok `-c -o', but also, the minuso test has
4180     # not run yet. These depmodes are late enough in the game, and
4181     # so weak that their functioning should not be impacted.
4182     am__obj=conftest.${OBJEXT-o}
4183     am__minus_obj=
4184     ;;
4185 michael 912 none) break ;;
4186     esac
4187     if depmode=$depmode \
4188 michael 945 source=sub/conftest.c object=$am__obj \
4189 michael 912 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4190 michael 945 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4191 michael 912 >/dev/null 2>conftest.err &&
4192     grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4193     grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4194 michael 945 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4195 michael 912 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4196     # icc doesn't choke on unknown options, it will just issue warnings
4197     # or remarks (even with -Werror). So we grep stderr for any message
4198     # that says an option was ignored or not supported.
4199     # When given -MP, icc 7.0 and 7.1 complain thusly:
4200     # icc: Command line warning: ignoring option '-M'; no argument required
4201     # The diagnosis changed in icc 8.0:
4202     # icc: Command line remark: option '-MP' not supported
4203     if (grep 'ignoring option' conftest.err ||
4204     grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4205     am_cv_CC_dependencies_compiler_type=$depmode
4206     break
4207     fi
4208     fi
4209     done
4210    
4211     cd ..
4212     rm -rf conftest.dir
4213     else
4214     am_cv_CC_dependencies_compiler_type=none
4215     fi
4216    
4217     fi
4218 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4219 db 941 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4220 michael 912 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4221    
4222     if
4223     test "x$enable_dependency_tracking" != xno \
4224     && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4225     am__fastdepCC_TRUE=
4226     am__fastdepCC_FALSE='#'
4227     else
4228     am__fastdepCC_TRUE='#'
4229     am__fastdepCC_FALSE=
4230     fi
4231    
4232    
4233     for ac_prog in 'bison -y' byacc
4234     do
4235     # Extract the first word of "$ac_prog", so it can be a program name with args.
4236     set dummy $ac_prog; ac_word=$2
4237 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4239 michael 967 if test "${ac_cv_prog_YACC+set}" = set; then :
4240 db 941 $as_echo_n "(cached) " >&6
4241 michael 912 else
4242     if test -n "$YACC"; then
4243     ac_cv_prog_YACC="$YACC" # Let the user override the test.
4244     else
4245     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246     for as_dir in $PATH
4247     do
4248     IFS=$as_save_IFS
4249     test -z "$as_dir" && as_dir=.
4250 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4251 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4252     ac_cv_prog_YACC="$ac_prog"
4253 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 michael 912 break 2
4255     fi
4256     done
4257 michael 967 done
4258 michael 912 IFS=$as_save_IFS
4259    
4260     fi
4261     fi
4262     YACC=$ac_cv_prog_YACC
4263     if test -n "$YACC"; then
4264 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4265 db 941 $as_echo "$YACC" >&6; }
4266 michael 912 else
4267 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 db 941 $as_echo "no" >&6; }
4269 michael 912 fi
4270    
4271    
4272     test -n "$YACC" && break
4273     done
4274     test -n "$YACC" || YACC="yacc"
4275    
4276    
4277     for ac_prog in flex lex
4278     do
4279     # Extract the first word of "$ac_prog", so it can be a program name with args.
4280     set dummy $ac_prog; ac_word=$2
4281 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4282 db 941 $as_echo_n "checking for $ac_word... " >&6; }
4283 michael 967 if test "${ac_cv_prog_LEX+set}" = set; then :
4284 db 941 $as_echo_n "(cached) " >&6
4285 michael 912 else
4286     if test -n "$LEX"; then
4287     ac_cv_prog_LEX="$LEX" # Let the user override the test.
4288     else
4289     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4290     for as_dir in $PATH
4291     do
4292     IFS=$as_save_IFS
4293     test -z "$as_dir" && as_dir=.
4294 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
4295 michael 912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4296     ac_cv_prog_LEX="$ac_prog"
4297 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4298 michael 912 break 2
4299     fi
4300     done
4301 michael 967 done
4302 michael 912 IFS=$as_save_IFS
4303    
4304     fi
4305     fi
4306     LEX=$ac_cv_prog_LEX
4307     if test -n "$LEX"; then
4308 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4309 db 941 $as_echo "$LEX" >&6; }
4310 michael 912 else
4311 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4312 db 941 $as_echo "no" >&6; }
4313 michael 912 fi
4314    
4315    
4316     test -n "$LEX" && break
4317     done
4318     test -n "$LEX" || LEX=":"
4319    
4320     if test "x$LEX" != "x:"; then
4321     cat >conftest.l <<_ACEOF
4322     %%
4323     a { ECHO; }
4324     b { REJECT; }
4325     c { yymore (); }
4326     d { yyless (1); }
4327     e { yyless (input () != 0); }
4328     f { unput (yytext[0]); }
4329     . { BEGIN INITIAL; }
4330     %%
4331     #ifdef YYTEXT_POINTER
4332     extern char *yytext;
4333     #endif
4334     int
4335     main (void)
4336     {
4337     return ! yylex () + ! yywrap ();
4338     }
4339     _ACEOF
4340 michael 967 { { ac_try="$LEX conftest.l"
4341 michael 912 case "(($ac_try" in
4342     *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4343     *) ac_try_echo=$ac_try;;
4344     esac
4345 michael 967 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4346     $as_echo "$ac_try_echo"; } >&5
4347 michael 912 (eval "$LEX conftest.l") 2>&5
4348     ac_status=$?
4349 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4350     test $ac_status = 0; }
4351     { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4352 db 941 $as_echo_n "checking lex output file root... " >&6; }
4353 michael 967 if test "${ac_cv_prog_lex_root+set}" = set; then :
4354 db 941 $as_echo_n "(cached) " >&6
4355 michael 912 else
4356    
4357     if test -f lex.yy.c; then
4358     ac_cv_prog_lex_root=lex.yy
4359     elif test -f lexyy.c; then
4360     ac_cv_prog_lex_root=lexyy
4361     else
4362 michael 967 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
4363 michael 912 fi
4364     fi
4365 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4366 db 941 $as_echo "$ac_cv_prog_lex_root" >&6; }
4367 michael 912 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4368    
4369     if test -z "${LEXLIB+set}"; then
4370 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4371 db 941 $as_echo_n "checking lex library... " >&6; }
4372 michael 967 if test "${ac_cv_lib_lex+set}" = set; then :
4373 db 941 $as_echo_n "(cached) " >&6
4374 michael 912 else
4375    
4376     ac_save_LIBS=$LIBS
4377     ac_cv_lib_lex='none needed'
4378     for ac_lib in '' -lfl -ll; do
4379     LIBS="$ac_lib $ac_save_LIBS"
4380 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4381     /* end confdefs.h. */
4382 michael 912 `cat $LEX_OUTPUT_ROOT.c`
4383     _ACEOF
4384 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4385 michael 912 ac_cv_lib_lex=$ac_lib
4386     fi
4387 michael 967 rm -f core conftest.err conftest.$ac_objext \
4388     conftest$ac_exeext conftest.$ac_ext
4389 michael 912 test "$ac_cv_lib_lex" != 'none needed' && break
4390     done
4391     LIBS=$ac_save_LIBS
4392    
4393     fi
4394 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4395 db 941 $as_echo "$ac_cv_lib_lex" >&6; }
4396 michael 912 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4397     fi
4398    
4399    
4400 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4401 db 941 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4402 michael 967 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
4403 db 941 $as_echo_n "(cached) " >&6
4404 michael 912 else
4405     # POSIX says lex can declare yytext either as a pointer or an array; the
4406     # default is implementation-dependent. Figure out which it is, since
4407     # not all implementations provide the %pointer and %array declarations.
4408     ac_cv_prog_lex_yytext_pointer=no
4409     ac_save_LIBS=$LIBS
4410     LIBS="$LEXLIB $ac_save_LIBS"
4411 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4412     /* end confdefs.h. */
4413 michael 912 #define YYTEXT_POINTER 1
4414     `cat $LEX_OUTPUT_ROOT.c`
4415     _ACEOF
4416 michael 967 if ac_fn_c_try_link "$LINENO"; then :
4417 michael 912 ac_cv_prog_lex_yytext_pointer=yes
4418     fi
4419 michael 967 rm -f core conftest.err conftest.$ac_objext \
4420     conftest$ac_exeext conftest.$ac_ext
4421 michael 912 LIBS=$ac_save_LIBS
4422    
4423     fi
4424 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4425 db 941 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4426 michael 912 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4427    
4428 michael 967 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4429 michael 912
4430     fi
4431     rm -f conftest.l $LEX_OUTPUT_ROOT.c
4432    
4433     fi
4434     if test "$LEX" = :; then
4435     LEX=${am_missing_run}flex
4436     fi
4437 db 941
4438 michael 912
4439    
4440 michael 945 #ltdl stuff
4441     case `pwd` in
4442     *\ * | *\ *)
4443 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4444 michael 945 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4445     esac
4446    
4447    
4448    
4449     macro_version='2.2.6'
4450     macro_revision='1.3012'
4451    
4452    
4453    
4454    
4455    
4456    
4457    
4458    
4459    
4460    
4461    
4462    
4463    
4464     ltmain="$ac_aux_dir/ltmain.sh"
4465    
4466 michael 912 # Make sure we can run config.sub.
4467     $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4468 michael 967 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4469 michael 912
4470 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4471 db 941 $as_echo_n "checking build system type... " >&6; }
4472 michael 967 if test "${ac_cv_build+set}" = set; then :
4473 db 941 $as_echo_n "(cached) " >&6
4474 michael 912 else
4475     ac_build_alias=$build_alias
4476     test "x$ac_build_alias" = x &&
4477     ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4478     test "x$ac_build_alias" = x &&
4479 michael 967 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4480 michael 912 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4481 michael 967 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4482 michael 912
4483     fi
4484 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4485 db 941 $as_echo "$ac_cv_build" >&6; }
4486 michael 912 case $ac_cv_build in
4487     *-*-*) ;;
4488 michael 967 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4489 michael 912 esac
4490     build=$ac_cv_build
4491     ac_save_IFS=$IFS; IFS='-'
4492     set x $ac_cv_build
4493     shift
4494     build_cpu=$1
4495     build_vendor=$2
4496     shift; shift
4497     # Remember, the first character of IFS is used to create $*,
4498     # except with old shells:
4499     build_os=$*
4500     IFS=$ac_save_IFS
4501     case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4502    
4503    
4504 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4505 db 941 $as_echo_n "checking host system type... " >&6; }
4506 michael 967 if test "${ac_cv_host+set}" = set; then :
4507 db 941 $as_echo_n "(cached) " >&6
4508 michael 912 else
4509     if test "x$host_alias" = x; then
4510     ac_cv_host=$ac_cv_build
4511     else
4512     ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4513 michael 967 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4514 michael 912 fi
4515    
4516     fi
4517 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4518 db 941 $as_echo "$ac_cv_host" >&6; }
4519 michael 912 case $ac_cv_host in
4520     *-*-*) ;;
4521 michael 967 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4522 michael 912 esac
4523     host=$ac_cv_host
4524     ac_save_IFS=$IFS; IFS='-'
4525     set x $ac_cv_host
4526     shift
4527     host_cpu=$1
4528     host_vendor=$2
4529     shift; shift
4530     # Remember, the first character of IFS is used to create $*,
4531     # except with old shells:
4532     host_os=$*
4533     IFS=$ac_save_IFS
4534     case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4535    
4536    
4537 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4538 db 941 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4539 michael 967 if test "${ac_cv_path_SED+set}" = set; then :
4540 db 941 $as_echo_n "(cached) " >&6
4541 michael 912 else
4542 michael 945 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4543     for ac_i in 1 2 3 4 5 6 7; do
4544     ac_script="$ac_script$as_nl$ac_script"
4545     done
4546     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4547 michael 967 { ac_script=; unset ac_script;}
4548 michael 945 if test -z "$SED"; then
4549     ac_path_SED_found=false
4550     # Loop through the user's path and test for each of PROGNAME-LIST
4551     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552 michael 912 for as_dir in $PATH
4553     do
4554     IFS=$as_save_IFS
4555     test -z "$as_dir" && as_dir=.
4556 michael 967 for ac_prog in sed gsed; do
4557 michael 912 for ac_exec_ext in '' $ac_executable_extensions; do
4558 michael 945 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4559     { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4560     # Check for GNU ac_path_SED and select it if it is found.
4561     # Check for GNU $ac_path_SED
4562     case `"$ac_path_SED" --version 2>&1` in
4563     *GNU*)
4564     ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4565     *)
4566     ac_count=0
4567     $as_echo_n 0123456789 >"conftest.in"
4568     while :
4569     do
4570     cat "conftest.in" "conftest.in" >"conftest.tmp"
4571     mv "conftest.tmp" "conftest.in"
4572     cp "conftest.in" "conftest.nl"
4573     $as_echo '' >> "conftest.nl"
4574     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4577 michael 945 if test $ac_count -gt ${ac_path_SED_max-0}; then
4578     # Best one so far, save it but keep looking for a better one
4579     ac_cv_path_SED="$ac_path_SED"
4580     ac_path_SED_max=$ac_count
4581     fi
4582     # 10*(2^10) chars as input seems more than enough
4583     test $ac_count -gt 10 && break
4584     done
4585     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4586     esac
4587    
4588     $ac_path_SED_found && break 3
4589 michael 912 done
4590     done
4591 michael 967 done
4592 michael 912 IFS=$as_save_IFS
4593 michael 945 if test -z "$ac_cv_path_SED"; then
4594 michael 967 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4595 michael 912 fi
4596 michael 945 else
4597     ac_cv_path_SED=$SED
4598     fi
4599 michael 912
4600     fi
4601 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4602 michael 945 $as_echo "$ac_cv_path_SED" >&6; }
4603     SED="$ac_cv_path_SED"
4604     rm -f conftest.sed
4605 michael 912
4606 michael 945 test -z "$SED" && SED=sed
4607     Xsed="$SED -e 1s/^X//"
4608 michael 912
4609    
4610 michael 945
4611    
4612    
4613    
4614    
4615    
4616    
4617    
4618    
4619 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4620 db 941 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4621 michael 967 if test "${ac_cv_path_GREP+set}" = set; then :
4622 db 941 $as_echo_n "(cached) " >&6
4623 michael 912 else
4624 db 941 if test -z "$GREP"; then
4625 michael 912 ac_path_GREP_found=false
4626 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4627     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4628 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4629     do
4630     IFS=$as_save_IFS
4631     test -z "$as_dir" && as_dir=.
4632 michael 967 for ac_prog in grep ggrep; do
4633 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4634     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4635     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4636     # Check for GNU ac_path_GREP and select it if it is found.
4637 michael 912 # Check for GNU $ac_path_GREP
4638     case `"$ac_path_GREP" --version 2>&1` in
4639     *GNU*)
4640     ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4641     *)
4642     ac_count=0
4643 db 941 $as_echo_n 0123456789 >"conftest.in"
4644 michael 912 while :
4645     do
4646     cat "conftest.in" "conftest.in" >"conftest.tmp"
4647     mv "conftest.tmp" "conftest.in"
4648     cp "conftest.in" "conftest.nl"
4649 db 941 $as_echo 'GREP' >> "conftest.nl"
4650 michael 912 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4651     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4652 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4653 michael 912 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4654     # Best one so far, save it but keep looking for a better one
4655     ac_cv_path_GREP="$ac_path_GREP"
4656     ac_path_GREP_max=$ac_count
4657     fi
4658     # 10*(2^10) chars as input seems more than enough
4659     test $ac_count -gt 10 && break
4660     done
4661     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4662     esac
4663    
4664 db 941 $ac_path_GREP_found && break 3
4665     done
4666 michael 912 done
4667 michael 967 done
4668 michael 912 IFS=$as_save_IFS
4669 db 941 if test -z "$ac_cv_path_GREP"; then
4670 michael 967 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4671 db 941 fi
4672 michael 912 else
4673     ac_cv_path_GREP=$GREP
4674     fi
4675    
4676     fi
4677 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4678 db 941 $as_echo "$ac_cv_path_GREP" >&6; }
4679 michael 912 GREP="$ac_cv_path_GREP"
4680    
4681    
4682 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4683 db 941 $as_echo_n "checking for egrep... " >&6; }
4684 michael 967 if test "${ac_cv_path_EGREP+set}" = set; then :
4685 db 941 $as_echo_n "(cached) " >&6
4686 michael 912 else
4687     if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4688     then ac_cv_path_EGREP="$GREP -E"
4689     else
4690 db 941 if test -z "$EGREP"; then
4691 michael 912 ac_path_EGREP_found=false
4692 db 941 # Loop through the user's path and test for each of PROGNAME-LIST
4693     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4694 michael 912 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4695     do
4696     IFS=$as_save_IFS
4697     test -z "$as_dir" && as_dir=.
4698 michael 967 for ac_prog in egrep; do
4699 db 941 for ac_exec_ext in '' $ac_executable_extensions; do
4700     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4701     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4702     # Check for GNU ac_path_EGREP and select it if it is found.
4703 michael 912 # Check for GNU $ac_path_EGREP
4704     case `"$ac_path_EGREP" --version 2>&1` in
4705     *GNU*)
4706     ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4707     *)
4708     ac_count=0
4709 db 941 $as_echo_n 0123456789 >"conftest.in"
4710 michael 912 while :
4711     do
4712     cat "conftest.in" "conftest.in" >"conftest.tmp"
4713     mv "conftest.tmp" "conftest.in"
4714     cp "conftest.in" "conftest.nl"
4715 db 941 $as_echo 'EGREP' >> "conftest.nl"
4716 michael 912 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4717     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4718 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4719 michael 912 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4720     # Best one so far, save it but keep looking for a better one
4721     ac_cv_path_EGREP="$ac_path_EGREP"
4722     ac_path_EGREP_max=$ac_count
4723     fi
4724     # 10*(2^10) chars as input seems more than enough
4725     test $ac_count -gt 10 && break
4726     done
4727     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4728     esac
4729    
4730 db 941 $ac_path_EGREP_found && break 3
4731     done
4732 michael 912 done
4733 michael 967 done
4734 michael 912 IFS=$as_save_IFS
4735 db 941 if test -z "$ac_cv_path_EGREP"; then
4736 michael 967 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4737 db 941 fi
4738 michael 912 else
4739     ac_cv_path_EGREP=$EGREP
4740     fi
4741    
4742     fi
4743     fi
4744 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4745 db 941 $as_echo "$ac_cv_path_EGREP" >&6; }
4746 michael 912 EGREP="$ac_cv_path_EGREP"
4747    
4748    
4749 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4750 michael 945 $as_echo_n "checking for fgrep... " >&6; }
4751 michael 967 if test "${ac_cv_path_FGREP+set}" = set; then :
4752 michael 945 $as_echo_n "(cached) " >&6
4753     else
4754     if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4755     then ac_cv_path_FGREP="$GREP -F"
4756     else
4757     if test -z "$FGREP"; then
4758     ac_path_FGREP_found=false
4759     # Loop through the user's path and test for each of PROGNAME-LIST
4760     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761     for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4762     do
4763     IFS=$as_save_IFS
4764     test -z "$as_dir" && as_dir=.
4765 michael 967 for ac_prog in fgrep; do
4766 michael 945 for ac_exec_ext in '' $ac_executable_extensions; do
4767     ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4768     { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4769     # Check for GNU ac_path_FGREP and select it if it is found.
4770     # Check for GNU $ac_path_FGREP
4771     case `"$ac_path_FGREP" --version 2>&1` in
4772     *GNU*)
4773     ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4774     *)
4775     ac_count=0
4776     $as_echo_n 0123456789 >"conftest.in"
4777     while :
4778     do
4779     cat "conftest.in" "conftest.in" >"conftest.tmp"
4780     mv "conftest.tmp" "conftest.in"
4781     cp "conftest.in" "conftest.nl"
4782     $as_echo 'FGREP' >> "conftest.nl"
4783     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4784     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4785 michael 967 as_fn_arith $ac_count + 1 && ac_count=$as_val
4786 michael 945 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4787     # Best one so far, save it but keep looking for a better one
4788     ac_cv_path_FGREP="$ac_path_FGREP"
4789     ac_path_FGREP_max=$ac_count
4790     fi
4791     # 10*(2^10) chars as input seems more than enough
4792     test $ac_count -gt 10 && break
4793     done
4794     rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4795     esac
4796 michael 912
4797 michael 945 $ac_path_FGREP_found && break 3
4798     done
4799     done
4800 michael 967 done
4801 michael 945 IFS=$as_save_IFS
4802     if test -z "$ac_cv_path_FGREP"; then
4803 michael 967 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4804 michael 945 fi
4805     else
4806     ac_cv_path_FGREP=$FGREP
4807     fi
4808    
4809     fi
4810     fi
4811 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4812 michael 945 $as_echo "$ac_cv_path_FGREP" >&6; }
4813     FGREP="$ac_cv_path_FGREP"
4814    
4815    
4816     test -z "$GREP" && GREP=grep
4817    
4818    
4819    
4820    
4821    
4822    
4823    
4824    
4825    
4826    
4827    
4828    
4829    
4830    
4831    
4832    
4833    
4834    
4835    
4836 michael 912 # Check whether --with-gnu-ld was given.
4837 michael 967 if test "${with_gnu_ld+set}" = set; then :
4838 michael 912 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4839     else
4840     with_gnu_ld=no
4841     fi
4842    
4843     ac_prog=ld
4844     if test "$GCC" = yes; then
4845     # Check if gcc -print-prog-name=ld gives a path.
4846 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4847 db 941 $as_echo_n "checking for ld used by $CC... " >&6; }
4848 michael 912 case $host in
4849     *-*-mingw*)
4850     # gcc leaves a trailing carriage return which upsets mingw
4851     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4852     *)
4853     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4854     esac
4855     case $ac_prog in
4856     # Accept absolute paths.
4857     [\\/]* | ?:[\\/]*)
4858     re_direlt='/[^/][^/]*/\.\./'
4859     # Canonicalize the pathname of ld
4860 michael 945 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4861     while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4862     ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4863 michael 912 done
4864     test -z "$LD" && LD="$ac_prog"
4865     ;;
4866     "")
4867     # If it fails, then pretend we aren't using GCC.
4868     ac_prog=ld
4869     ;;
4870     *)
4871     # If it is relative, then search for the first ld in PATH.
4872     with_gnu_ld=unknown
4873     ;;
4874     esac
4875     elif test "$with_gnu_ld" = yes; then
4876 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4877 db 941 $as_echo_n "checking for GNU ld... " >&6; }
4878 michael 912 else
4879 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4880 db 941 $as_echo_n "checking for non-GNU ld... " >&6; }
4881 michael 912 fi
4882 michael 967 if test "${lt_cv_path_LD+set}" = set; then :
4883 db 941 $as_echo_n "(cached) " >&6
4884 michael 912 else
4885     if test -z "$LD"; then
4886     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4887     for ac_dir in $PATH; do
4888     IFS="$lt_save_ifs"
4889     test -z "$ac_dir" && ac_dir=.
4890     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4891     lt_cv_path_LD="$ac_dir/$ac_prog"
4892     # Check to see if the program is GNU ld. I'd rather use --version,
4893     # but apparently some variants of GNU ld only accept -v.
4894     # Break only if it was the GNU/non-GNU ld that we prefer.
4895     case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4896     *GNU* | *'with BFD'*)
4897     test "$with_gnu_ld" != no && break
4898     ;;
4899     *)
4900     test "$with_gnu_ld" != yes && break
4901     ;;
4902     esac
4903     fi
4904     done
4905     IFS="$lt_save_ifs"
4906     else
4907     lt_cv_path_LD="$LD" # Let the user override the test with a path.
4908     fi
4909     fi
4910    
4911     LD="$lt_cv_path_LD"
4912     if test -n "$LD"; then
4913 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4914 db 941 $as_echo "$LD" >&6; }
4915 michael 912 else
4916 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 db 941 $as_echo "no" >&6; }
4918 michael 912 fi
4919 michael 967 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4920     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4921 db 941 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4922 michael 967 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4923 db 941 $as_echo_n "(cached) " >&6
4924 michael 912 else
4925     # I'd rather use --version here, but apparently some GNU lds only accept -v.
4926     case `$LD -v 2>&1 </dev/null` in
4927     *GNU* | *'with BFD'*)
4928     lt_cv_prog_gnu_ld=yes
4929     ;;
4930     *)
4931     lt_cv_prog_gnu_ld=no
4932     ;;
4933     esac
4934     fi
4935 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4936 db 941 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4937 michael 912 with_gnu_ld=$lt_cv_prog_gnu_ld
4938    
4939    
4940    
4941 michael 945
4942    
4943    
4944    
4945    
4946    
4947 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4948 michael 945 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4949 michael 967 if test "${lt_cv_path_NM+set}" = set; then :
4950 db 941 $as_echo_n "(cached) " >&6
4951 michael 912 else
4952     if test -n "$NM"; then
4953     # Let the user override the test.
4954     lt_cv_path_NM="$NM"
4955     else
4956     lt_nm_to_check="${ac_tool_prefix}nm"
4957     if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4958     lt_nm_to_check="$lt_nm_to_check nm"
4959     fi
4960     for lt_tmp_nm in $lt_nm_to_check; do
4961     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4962     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4963     IFS="$lt_save_ifs"
4964     test -z "$ac_dir" && ac_dir=.
4965     tmp_nm="$ac_dir/$lt_tmp_nm"
4966     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4967     # Check to see if the nm accepts a BSD-compat flag.
4968     # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4969     # nm: unknown option "B" ignored
4970     # Tru64's nm complains that /dev/null is an invalid object file
4971     case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4972     */dev/null* | *'Invalid file or object type'*)
4973     lt_cv_path_NM="$tmp_nm -B"
4974     break
4975     ;;
4976     *)
4977     case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4978     */dev/null*)
4979     lt_cv_path_NM="$tmp_nm -p"
4980     break
4981     ;;
4982     *)
4983     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4984     continue # so that we can try to find one that supports BSD flags
4985     ;;
4986     esac
4987     ;;
4988     esac
4989     fi
4990     done
4991     IFS="$lt_save_ifs"
4992     done
4993 michael 945 : ${lt_cv_path_NM=no}
4994 michael 912 fi
4995     fi
4996 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4997 db 941 $as_echo "$lt_cv_path_NM" >&6; }
4998 michael 945 if test "$lt_cv_path_NM" != "no"; then
4999     NM="$lt_cv_path_NM"
5000     else
5001     # Didn't find any BSD compatible name lister, look for dumpbin.
5002     if test -n "$ac_tool_prefix"; then
5003     for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5004     do
5005     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5006     set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5007 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5009 michael 967 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5010 michael 945 $as_echo_n "(cached) " >&6
5011     else
5012     if test -n "$DUMPBIN"; then
5013     ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5014     else
5015     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016     for as_dir in $PATH
5017     do
5018     IFS=$as_save_IFS
5019     test -z "$as_dir" && as_dir=.
5020 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5021 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5023 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 michael 945 break 2
5025     fi
5026     done
5027 michael 967 done
5028 michael 945 IFS=$as_save_IFS
5029 michael 912
5030 michael 945 fi
5031     fi
5032     DUMPBIN=$ac_cv_prog_DUMPBIN
5033     if test -n "$DUMPBIN"; then
5034 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5035 michael 945 $as_echo "$DUMPBIN" >&6; }
5036     else
5037 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 michael 945 $as_echo "no" >&6; }
5039     fi
5040    
5041    
5042     test -n "$DUMPBIN" && break
5043     done
5044     fi
5045     if test -z "$DUMPBIN"; then
5046     ac_ct_DUMPBIN=$DUMPBIN
5047     for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5048     do
5049     # Extract the first word of "$ac_prog", so it can be a program name with args.
5050     set dummy $ac_prog; ac_word=$2
5051 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5052 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5053 michael 967 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5054 michael 945 $as_echo_n "(cached) " >&6
5055     else
5056     if test -n "$ac_ct_DUMPBIN"; then
5057     ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5058     else
5059     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060     for as_dir in $PATH
5061     do
5062     IFS=$as_save_IFS
5063     test -z "$as_dir" && as_dir=.
5064 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5065 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5066     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5067 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5068 michael 945 break 2
5069     fi
5070     done
5071 michael 967 done
5072 michael 945 IFS=$as_save_IFS
5073    
5074     fi
5075     fi
5076     ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5077     if test -n "$ac_ct_DUMPBIN"; then
5078 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5079 michael 945 $as_echo "$ac_ct_DUMPBIN" >&6; }
5080     else
5081 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5082 michael 945 $as_echo "no" >&6; }
5083     fi
5084    
5085    
5086     test -n "$ac_ct_DUMPBIN" && break
5087     done
5088    
5089     if test "x$ac_ct_DUMPBIN" = x; then
5090     DUMPBIN=":"
5091     else
5092     case $cross_compiling:$ac_tool_warned in
5093     yes:)
5094 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5095 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5096     ac_tool_warned=yes ;;
5097     esac
5098     DUMPBIN=$ac_ct_DUMPBIN
5099     fi
5100     fi
5101    
5102    
5103     if test "$DUMPBIN" != ":"; then
5104     NM="$DUMPBIN"
5105     fi
5106     fi
5107     test -z "$NM" && NM=nm
5108    
5109    
5110    
5111    
5112    
5113    
5114 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5115 michael 945 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5116 michael 967 if test "${lt_cv_nm_interface+set}" = set; then :
5117 michael 945 $as_echo_n "(cached) " >&6
5118     else
5119     lt_cv_nm_interface="BSD nm"
5120     echo "int some_variable = 0;" > conftest.$ac_ext
5121 michael 982 (eval echo "\"\$as_me:5121: $ac_compile\"" >&5)
5122 michael 945 (eval "$ac_compile" 2>conftest.err)
5123     cat conftest.err >&5
5124 michael 982 (eval echo "\"\$as_me:5124: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5125 michael 945 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5126     cat conftest.err >&5
5127 michael 982 (eval echo "\"\$as_me:5127: output\"" >&5)
5128 michael 945 cat conftest.out >&5
5129     if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5130     lt_cv_nm_interface="MS dumpbin"
5131     fi
5132     rm -f conftest*
5133     fi
5134 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5135 michael 945 $as_echo "$lt_cv_nm_interface" >&6; }
5136    
5137 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5138 db 941 $as_echo_n "checking whether ln -s works... " >&6; }
5139 michael 912 LN_S=$as_ln_s
5140     if test "$LN_S" = "ln -s"; then
5141 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5142 db 941 $as_echo "yes" >&6; }
5143 michael 912 else
5144 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5145 db 941 $as_echo "no, using $LN_S" >&6; }
5146 michael 912 fi
5147    
5148 michael 945 # find the maximum length of command line arguments
5149 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5150 michael 945 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5151 michael 967 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5152 michael 945 $as_echo_n "(cached) " >&6
5153     else
5154     i=0
5155     teststring="ABCD"
5156    
5157     case $build_os in
5158     msdosdjgpp*)
5159     # On DJGPP, this test can blow up pretty badly due to problems in libc
5160     # (any single argument exceeding 2000 bytes causes a buffer overrun
5161     # during glob expansion). Even if it were fixed, the result of this
5162     # check would be larger than it should be.
5163     lt_cv_sys_max_cmd_len=12288; # 12K is about right
5164     ;;
5165    
5166     gnu*)
5167     # Under GNU Hurd, this test is not required because there is
5168     # no limit to the length of command line arguments.
5169     # Libtool will interpret -1 as no limit whatsoever
5170     lt_cv_sys_max_cmd_len=-1;
5171     ;;
5172    
5173     cygwin* | mingw* | cegcc*)
5174     # On Win9x/ME, this test blows up -- it succeeds, but takes
5175     # about 5 minutes as the teststring grows exponentially.
5176     # Worse, since 9x/ME are not pre-emptively multitasking,
5177     # you end up with a "frozen" computer, even though with patience
5178     # the test eventually succeeds (with a max line length of 256k).
5179     # Instead, let's just punt: use the minimum linelength reported by
5180     # all of the supported platforms: 8192 (on NT/2K/XP).
5181     lt_cv_sys_max_cmd_len=8192;
5182     ;;
5183    
5184     amigaos*)
5185     # On AmigaOS with pdksh, this test takes hours, literally.
5186     # So we just punt and use a minimum line length of 8192.
5187     lt_cv_sys_max_cmd_len=8192;
5188     ;;
5189    
5190     netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5191     # This has been around since 386BSD, at least. Likely further.
5192     if test -x /sbin/sysctl; then
5193     lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5194     elif test -x /usr/sbin/sysctl; then
5195     lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5196     else
5197     lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5198     fi
5199     # And add a safety zone
5200     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5201     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5202     ;;
5203    
5204     interix*)
5205     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5206     lt_cv_sys_max_cmd_len=196608
5207     ;;
5208    
5209     osf*)
5210     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5211     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5212     # nice to cause kernel panics so lets avoid the loop below.
5213     # First set a reasonable default.
5214     lt_cv_sys_max_cmd_len=16384
5215     #
5216     if test -x /sbin/sysconfig; then
5217     case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5218     *1*) lt_cv_sys_max_cmd_len=-1 ;;
5219     esac
5220     fi
5221     ;;
5222     sco3.2v5*)
5223     lt_cv_sys_max_cmd_len=102400
5224     ;;
5225     sysv5* | sco5v6* | sysv4.2uw2*)
5226     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5227     if test -n "$kargmax"; then
5228     lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5229     else
5230     lt_cv_sys_max_cmd_len=32768
5231     fi
5232     ;;
5233     *)
5234     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5235     if test -n "$lt_cv_sys_max_cmd_len"; then
5236     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5237     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5238     else
5239     # Make teststring a little bigger before we do anything with it.
5240     # a 1K string should be a reasonable start.
5241     for i in 1 2 3 4 5 6 7 8 ; do
5242     teststring=$teststring$teststring
5243     done
5244     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5245     # If test is not a shell built-in, we'll probably end up computing a
5246     # maximum length that is only half of the actual maximum length, but
5247     # we can't tell.
5248     while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5249     = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5250     test $i != 17 # 1/2 MB should be enough
5251     do
5252     i=`expr $i + 1`
5253     teststring=$teststring$teststring
5254     done
5255     # Only check the string length outside the loop.
5256     lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5257     teststring=
5258     # Add a significant safety factor because C++ compilers can tack on
5259     # massive amounts of additional arguments before passing them to the
5260     # linker. It appears as though 1/2 is a usable value.
5261     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5262     fi
5263     ;;
5264     esac
5265    
5266     fi
5267    
5268     if test -n $lt_cv_sys_max_cmd_len ; then
5269 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5270 michael 945 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5271     else
5272 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5273 michael 945 $as_echo "none" >&6; }
5274     fi
5275     max_cmd_len=$lt_cv_sys_max_cmd_len
5276    
5277    
5278    
5279    
5280    
5281    
5282     : ${CP="cp -f"}
5283     : ${MV="mv -f"}
5284     : ${RM="rm -f"}
5285    
5286 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5287 michael 945 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5288     # Try some XSI features
5289     xsi_shell=no
5290     ( _lt_dummy="a/b/c"
5291     test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5292     = c,a/b,, \
5293     && eval 'test $(( 1 + 1 )) -eq 2 \
5294     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5295     && xsi_shell=yes
5296 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5297 michael 945 $as_echo "$xsi_shell" >&6; }
5298    
5299    
5300 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5301 michael 945 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5302     lt_shell_append=no
5303     ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5304     >/dev/null 2>&1 \
5305     && lt_shell_append=yes
5306 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5307 michael 945 $as_echo "$lt_shell_append" >&6; }
5308    
5309    
5310     if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5311     lt_unset=unset
5312     else
5313     lt_unset=false
5314     fi
5315    
5316    
5317    
5318    
5319    
5320     # test EBCDIC or ASCII
5321     case `echo X|tr X '\101'` in
5322     A) # ASCII based system
5323     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5324     lt_SP2NL='tr \040 \012'
5325     lt_NL2SP='tr \015\012 \040\040'
5326     ;;
5327     *) # EBCDIC based system
5328     lt_SP2NL='tr \100 \n'
5329     lt_NL2SP='tr \r\n \100\100'
5330     ;;
5331     esac
5332    
5333    
5334    
5335    
5336    
5337    
5338    
5339    
5340    
5341 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5342 michael 945 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5343 michael 967 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5344 michael 945 $as_echo_n "(cached) " >&6
5345     else
5346     lt_cv_ld_reload_flag='-r'
5347     fi
5348 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5349 michael 945 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5350     reload_flag=$lt_cv_ld_reload_flag
5351     case $reload_flag in
5352     "" | " "*) ;;
5353     *) reload_flag=" $reload_flag" ;;
5354     esac
5355     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5356     case $host_os in
5357     darwin*)
5358     if test "$GCC" = yes; then
5359     reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5360     else
5361     reload_cmds='$LD$reload_flag -o $output$reload_objs'
5362     fi
5363     ;;
5364     esac
5365    
5366    
5367    
5368    
5369    
5370    
5371    
5372    
5373    
5374     if test -n "$ac_tool_prefix"; then
5375     # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5376     set dummy ${ac_tool_prefix}objdump; ac_word=$2
5377 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5379 michael 967 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5380 michael 945 $as_echo_n "(cached) " >&6
5381     else
5382     if test -n "$OBJDUMP"; then
5383     ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5384     else
5385     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386     for as_dir in $PATH
5387     do
5388     IFS=$as_save_IFS
5389     test -z "$as_dir" && as_dir=.
5390 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5391 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5393 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 michael 945 break 2
5395     fi
5396     done
5397 michael 967 done
5398 michael 945 IFS=$as_save_IFS
5399    
5400     fi
5401     fi
5402     OBJDUMP=$ac_cv_prog_OBJDUMP
5403     if test -n "$OBJDUMP"; then
5404 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5405 michael 945 $as_echo "$OBJDUMP" >&6; }
5406     else
5407 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 michael 945 $as_echo "no" >&6; }
5409     fi
5410    
5411    
5412     fi
5413     if test -z "$ac_cv_prog_OBJDUMP"; then
5414     ac_ct_OBJDUMP=$OBJDUMP
5415     # Extract the first word of "objdump", so it can be a program name with args.
5416     set dummy objdump; ac_word=$2
5417 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5419 michael 967 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5420 michael 945 $as_echo_n "(cached) " >&6
5421     else
5422     if test -n "$ac_ct_OBJDUMP"; then
5423     ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5424     else
5425     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5426     for as_dir in $PATH
5427     do
5428     IFS=$as_save_IFS
5429     test -z "$as_dir" && as_dir=.
5430 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5431 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5432     ac_cv_prog_ac_ct_OBJDUMP="objdump"
5433 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5434 michael 945 break 2
5435     fi
5436     done
5437 michael 967 done
5438 michael 945 IFS=$as_save_IFS
5439    
5440     fi
5441     fi
5442     ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5443     if test -n "$ac_ct_OBJDUMP"; then
5444 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5445 michael 945 $as_echo "$ac_ct_OBJDUMP" >&6; }
5446     else
5447 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 michael 945 $as_echo "no" >&6; }
5449     fi
5450    
5451     if test "x$ac_ct_OBJDUMP" = x; then
5452     OBJDUMP="false"
5453     else
5454     case $cross_compiling:$ac_tool_warned in
5455     yes:)
5456 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5457 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5458     ac_tool_warned=yes ;;
5459     esac
5460     OBJDUMP=$ac_ct_OBJDUMP
5461     fi
5462     else
5463     OBJDUMP="$ac_cv_prog_OBJDUMP"
5464     fi
5465    
5466     test -z "$OBJDUMP" && OBJDUMP=objdump
5467    
5468    
5469    
5470    
5471    
5472    
5473    
5474    
5475    
5476 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5477 db 941 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5478 michael 967 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5479 db 941 $as_echo_n "(cached) " >&6
5480 michael 912 else
5481     lt_cv_file_magic_cmd='$MAGIC_CMD'
5482     lt_cv_file_magic_test_file=
5483     lt_cv_deplibs_check_method='unknown'
5484     # Need to set the preceding variable on all platforms that support
5485     # interlibrary dependencies.
5486     # 'none' -- dependencies not supported.
5487     # `unknown' -- same as none, but documents that we really don't know.
5488     # 'pass_all' -- all dependencies passed with no checks.
5489     # 'test_compile' -- check by making test program.
5490     # 'file_magic [[regex]]' -- check by looking for files in library path
5491     # which responds to the $file_magic_cmd with a given extended regex.
5492     # If you have `file' or equivalent on your system and you're not sure
5493     # whether `pass_all' will *always* work, you probably want this one.
5494    
5495     case $host_os in
5496 db 941 aix[4-9]*)
5497 michael 912 lt_cv_deplibs_check_method=pass_all
5498     ;;
5499    
5500     beos*)
5501     lt_cv_deplibs_check_method=pass_all
5502     ;;
5503    
5504     bsdi[45]*)
5505     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5506     lt_cv_file_magic_cmd='/usr/bin/file -L'
5507     lt_cv_file_magic_test_file=/shlib/libc.so
5508     ;;
5509    
5510     cygwin*)
5511     # func_win32_libid is a shell function defined in ltmain.sh
5512     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5513     lt_cv_file_magic_cmd='func_win32_libid'
5514     ;;
5515    
5516     mingw* | pw32*)
5517     # Base MSYS/MinGW do not provide the 'file' command needed by
5518     # func_win32_libid shell function, so use a weaker test based on 'objdump',
5519     # unless we find 'file', for example because we are cross-compiling.
5520     if ( file / ) >/dev/null 2>&1; then
5521     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5522     lt_cv_file_magic_cmd='func_win32_libid'
5523     else
5524     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5525     lt_cv_file_magic_cmd='$OBJDUMP -f'
5526     fi
5527     ;;
5528    
5529 michael 945 cegcc)
5530     # use the weaker test based on 'objdump'. See mingw*.
5531     lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5532     lt_cv_file_magic_cmd='$OBJDUMP -f'
5533     ;;
5534    
5535 michael 912 darwin* | rhapsody*)
5536     lt_cv_deplibs_check_method=pass_all
5537     ;;
5538    
5539     freebsd* | dragonfly*)
5540 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5541 michael 912 case $host_cpu in
5542     i*86 )
5543     # Not sure whether the presence of OpenBSD here was a mistake.
5544     # Let's accept both of them until this is cleared up.
5545     lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5546     lt_cv_file_magic_cmd=/usr/bin/file
5547     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5548     ;;
5549     esac
5550     else
5551     lt_cv_deplibs_check_method=pass_all
5552     fi
5553     ;;
5554    
5555     gnu*)
5556     lt_cv_deplibs_check_method=pass_all
5557     ;;
5558    
5559     hpux10.20* | hpux11*)
5560     lt_cv_file_magic_cmd=/usr/bin/file
5561     case $host_cpu in
5562     ia64*)
5563     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5564     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5565     ;;
5566     hppa*64*)
5567     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]'
5568     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5569     ;;
5570     *)
5571     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5572     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5573     ;;
5574     esac
5575     ;;
5576    
5577     interix[3-9]*)
5578     # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5579     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5580     ;;
5581    
5582     irix5* | irix6* | nonstopux*)
5583     case $LD in
5584     *-32|*"-32 ") libmagic=32-bit;;
5585     *-n32|*"-n32 ") libmagic=N32;;
5586     *-64|*"-64 ") libmagic=64-bit;;
5587     *) libmagic=never-match;;
5588     esac
5589     lt_cv_deplibs_check_method=pass_all
5590     ;;
5591    
5592     # This must be Linux ELF.
5593     linux* | k*bsd*-gnu)
5594     lt_cv_deplibs_check_method=pass_all
5595     ;;
5596    
5597     netbsd*)
5598 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5599 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5600     else
5601     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5602     fi
5603     ;;
5604    
5605     newos6*)
5606     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5607     lt_cv_file_magic_cmd=/usr/bin/file
5608     lt_cv_file_magic_test_file=/usr/lib/libnls.so
5609     ;;
5610    
5611 michael 945 *nto* | *qnx*)
5612     lt_cv_deplibs_check_method=pass_all
5613 michael 912 ;;
5614    
5615     openbsd*)
5616 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5617 michael 912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5618     else
5619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5620     fi
5621     ;;
5622    
5623     osf3* | osf4* | osf5*)
5624     lt_cv_deplibs_check_method=pass_all
5625     ;;
5626    
5627     rdos*)
5628     lt_cv_deplibs_check_method=pass_all
5629     ;;
5630    
5631     solaris*)
5632     lt_cv_deplibs_check_method=pass_all
5633     ;;
5634    
5635 michael 945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5636     lt_cv_deplibs_check_method=pass_all
5637     ;;
5638    
5639 michael 912 sysv4 | sysv4.3*)
5640     case $host_vendor in
5641     motorola)
5642     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]'
5643     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5644     ;;
5645     ncr)
5646     lt_cv_deplibs_check_method=pass_all
5647     ;;
5648     sequent)
5649     lt_cv_file_magic_cmd='/bin/file'
5650     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5651     ;;
5652     sni)
5653     lt_cv_file_magic_cmd='/bin/file'
5654     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5655     lt_cv_file_magic_test_file=/lib/libc.so
5656     ;;
5657     siemens)
5658     lt_cv_deplibs_check_method=pass_all
5659     ;;
5660     pc)
5661     lt_cv_deplibs_check_method=pass_all
5662     ;;
5663     esac
5664     ;;
5665    
5666 michael 945 tpf*)
5667 michael 912 lt_cv_deplibs_check_method=pass_all
5668     ;;
5669     esac
5670    
5671     fi
5672 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5673 db 941 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5674 michael 912 file_magic_cmd=$lt_cv_file_magic_cmd
5675     deplibs_check_method=$lt_cv_deplibs_check_method
5676     test -z "$deplibs_check_method" && deplibs_check_method=unknown
5677    
5678    
5679    
5680    
5681 michael 945
5682    
5683    
5684    
5685    
5686    
5687    
5688    
5689     if test -n "$ac_tool_prefix"; then
5690     # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5691     set dummy ${ac_tool_prefix}ar; ac_word=$2
5692 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5693 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5694 michael 967 if test "${ac_cv_prog_AR+set}" = set; then :
5695 michael 945 $as_echo_n "(cached) " >&6
5696     else
5697     if test -n "$AR"; then
5698     ac_cv_prog_AR="$AR" # Let the user override the test.
5699     else
5700     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701     for as_dir in $PATH
5702     do
5703     IFS=$as_save_IFS
5704     test -z "$as_dir" && as_dir=.
5705 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5706 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5707     ac_cv_prog_AR="${ac_tool_prefix}ar"
5708 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5709 michael 945 break 2
5710     fi
5711     done
5712 michael 967 done
5713 michael 945 IFS=$as_save_IFS
5714    
5715     fi
5716     fi
5717     AR=$ac_cv_prog_AR
5718     if test -n "$AR"; then
5719 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5720 michael 945 $as_echo "$AR" >&6; }
5721     else
5722 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5723 michael 945 $as_echo "no" >&6; }
5724     fi
5725    
5726    
5727     fi
5728     if test -z "$ac_cv_prog_AR"; then
5729     ac_ct_AR=$AR
5730     # Extract the first word of "ar", so it can be a program name with args.
5731     set dummy ar; ac_word=$2
5732 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5734 michael 967 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5735 michael 945 $as_echo_n "(cached) " >&6
5736     else
5737     if test -n "$ac_ct_AR"; then
5738     ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5739     else
5740     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5741     for as_dir in $PATH
5742     do
5743     IFS=$as_save_IFS
5744     test -z "$as_dir" && as_dir=.
5745 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5746 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747     ac_cv_prog_ac_ct_AR="ar"
5748 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5749 michael 945 break 2
5750     fi
5751     done
5752 michael 967 done
5753 michael 945 IFS=$as_save_IFS
5754    
5755     fi
5756     fi
5757     ac_ct_AR=$ac_cv_prog_ac_ct_AR
5758     if test -n "$ac_ct_AR"; then
5759 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5760 michael 945 $as_echo "$ac_ct_AR" >&6; }
5761     else
5762 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763 michael 945 $as_echo "no" >&6; }
5764     fi
5765    
5766     if test "x$ac_ct_AR" = x; then
5767     AR="false"
5768     else
5769     case $cross_compiling:$ac_tool_warned in
5770     yes:)
5771 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5772 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5773     ac_tool_warned=yes ;;
5774     esac
5775     AR=$ac_ct_AR
5776     fi
5777     else
5778     AR="$ac_cv_prog_AR"
5779     fi
5780    
5781     test -z "$AR" && AR=ar
5782     test -z "$AR_FLAGS" && AR_FLAGS=cru
5783    
5784    
5785    
5786    
5787    
5788    
5789    
5790    
5791    
5792    
5793    
5794     if test -n "$ac_tool_prefix"; then
5795     # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5796     set dummy ${ac_tool_prefix}strip; ac_word=$2
5797 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5799 michael 967 if test "${ac_cv_prog_STRIP+set}" = set; then :
5800 michael 945 $as_echo_n "(cached) " >&6
5801     else
5802     if test -n "$STRIP"; then
5803     ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5804     else
5805     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806     for as_dir in $PATH
5807     do
5808     IFS=$as_save_IFS
5809     test -z "$as_dir" && as_dir=.
5810 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5811 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5813 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 michael 945 break 2
5815     fi
5816     done
5817 michael 967 done
5818 michael 945 IFS=$as_save_IFS
5819    
5820     fi
5821     fi
5822     STRIP=$ac_cv_prog_STRIP
5823     if test -n "$STRIP"; then
5824 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5825 michael 945 $as_echo "$STRIP" >&6; }
5826     else
5827 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 michael 945 $as_echo "no" >&6; }
5829     fi
5830    
5831    
5832     fi
5833     if test -z "$ac_cv_prog_STRIP"; then
5834     ac_ct_STRIP=$STRIP
5835     # Extract the first word of "strip", so it can be a program name with args.
5836     set dummy strip; ac_word=$2
5837 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5839 michael 967 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5840 michael 945 $as_echo_n "(cached) " >&6
5841     else
5842     if test -n "$ac_ct_STRIP"; then
5843     ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5844     else
5845     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846     for as_dir in $PATH
5847     do
5848     IFS=$as_save_IFS
5849     test -z "$as_dir" && as_dir=.
5850 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5851 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852     ac_cv_prog_ac_ct_STRIP="strip"
5853 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 michael 945 break 2
5855     fi
5856     done
5857 michael 967 done
5858 michael 945 IFS=$as_save_IFS
5859    
5860     fi
5861     fi
5862     ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5863     if test -n "$ac_ct_STRIP"; then
5864 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5865 michael 945 $as_echo "$ac_ct_STRIP" >&6; }
5866     else
5867 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 michael 945 $as_echo "no" >&6; }
5869     fi
5870    
5871     if test "x$ac_ct_STRIP" = x; then
5872     STRIP=":"
5873     else
5874     case $cross_compiling:$ac_tool_warned in
5875     yes:)
5876 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878     ac_tool_warned=yes ;;
5879     esac
5880     STRIP=$ac_ct_STRIP
5881     fi
5882     else
5883     STRIP="$ac_cv_prog_STRIP"
5884     fi
5885    
5886     test -z "$STRIP" && STRIP=:
5887    
5888    
5889    
5890    
5891    
5892    
5893     if test -n "$ac_tool_prefix"; then
5894     # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5895     set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5896 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5898 michael 967 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5899 michael 945 $as_echo_n "(cached) " >&6
5900     else
5901     if test -n "$RANLIB"; then
5902     ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5903     else
5904     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905     for as_dir in $PATH
5906     do
5907     IFS=$as_save_IFS
5908     test -z "$as_dir" && as_dir=.
5909 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5910 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5912 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 michael 945 break 2
5914     fi
5915     done
5916 michael 967 done
5917 michael 945 IFS=$as_save_IFS
5918    
5919     fi
5920     fi
5921     RANLIB=$ac_cv_prog_RANLIB
5922     if test -n "$RANLIB"; then
5923 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5924 michael 945 $as_echo "$RANLIB" >&6; }
5925     else
5926 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 michael 945 $as_echo "no" >&6; }
5928     fi
5929    
5930    
5931     fi
5932     if test -z "$ac_cv_prog_RANLIB"; then
5933     ac_ct_RANLIB=$RANLIB
5934     # Extract the first word of "ranlib", so it can be a program name with args.
5935     set dummy ranlib; ac_word=$2
5936 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
5938 michael 967 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5939 michael 945 $as_echo_n "(cached) " >&6
5940     else
5941     if test -n "$ac_ct_RANLIB"; then
5942     ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5943     else
5944     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945     for as_dir in $PATH
5946     do
5947     IFS=$as_save_IFS
5948     test -z "$as_dir" && as_dir=.
5949 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
5950 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951     ac_cv_prog_ac_ct_RANLIB="ranlib"
5952 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 michael 945 break 2
5954     fi
5955     done
5956 michael 967 done
5957 michael 945 IFS=$as_save_IFS
5958    
5959     fi
5960     fi
5961     ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5962     if test -n "$ac_ct_RANLIB"; then
5963 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5964 michael 945 $as_echo "$ac_ct_RANLIB" >&6; }
5965     else
5966 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 michael 945 $as_echo "no" >&6; }
5968     fi
5969    
5970     if test "x$ac_ct_RANLIB" = x; then
5971     RANLIB=":"
5972     else
5973     case $cross_compiling:$ac_tool_warned in
5974     yes:)
5975 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977     ac_tool_warned=yes ;;
5978     esac
5979     RANLIB=$ac_ct_RANLIB
5980     fi
5981     else
5982     RANLIB="$ac_cv_prog_RANLIB"
5983     fi
5984    
5985     test -z "$RANLIB" && RANLIB=:
5986    
5987    
5988    
5989    
5990    
5991    
5992     # Determine commands to create old-style static archives.
5993     old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5994     old_postinstall_cmds='chmod 644 $oldlib'
5995     old_postuninstall_cmds=
5996    
5997     if test -n "$RANLIB"; then
5998     case $host_os in
5999     openbsd*)
6000     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6001     ;;
6002     *)
6003     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6004     ;;
6005     esac
6006     old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6007     fi
6008    
6009    
6010    
6011    
6012    
6013    
6014    
6015    
6016    
6017    
6018    
6019    
6020    
6021    
6022    
6023    
6024    
6025    
6026    
6027    
6028    
6029    
6030    
6031    
6032    
6033    
6034    
6035    
6036    
6037    
6038    
6039    
6040    
6041    
6042 michael 912 # If no C compiler was specified, use CC.
6043     LTCC=${LTCC-"$CC"}
6044    
6045     # If no C compiler flags were specified, use CFLAGS.
6046     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6047    
6048     # Allow CC to be a program name with arguments.
6049     compiler=$CC
6050    
6051 michael 945
6052     # Check for command to grab the raw symbol name followed by C symbol from nm.
6053 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6054 michael 945 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6055 michael 967 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6056 michael 945 $as_echo_n "(cached) " >&6
6057     else
6058    
6059     # These are sane defaults that work on at least a few old systems.
6060     # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6061    
6062     # Character class describing NM global symbol codes.
6063     symcode='[BCDEGRST]'
6064    
6065     # Regexp to match symbols that can be accessed directly from C.
6066     sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6067    
6068     # Define system-specific variables.
6069     case $host_os in
6070     aix*)
6071     symcode='[BCDT]'
6072     ;;
6073     cygwin* | mingw* | pw32* | cegcc*)
6074     symcode='[ABCDGISTW]'
6075     ;;
6076     hpux*)
6077     if test "$host_cpu" = ia64; then
6078     symcode='[ABCDEGRST]'
6079     fi
6080     ;;
6081     irix* | nonstopux*)
6082     symcode='[BCDEGRST]'
6083     ;;
6084     osf*)
6085     symcode='[BCDEGQRST]'
6086     ;;
6087     solaris*)
6088     symcode='[BDRT]'
6089     ;;
6090     sco3.2v5*)
6091     symcode='[DT]'
6092     ;;
6093     sysv4.2uw2*)
6094     symcode='[DT]'
6095     ;;
6096     sysv5* | sco5v6* | unixware* | OpenUNIX*)
6097     symcode='[ABDT]'
6098     ;;
6099     sysv4)
6100     symcode='[DFNSTU]'
6101     ;;
6102     esac
6103    
6104     # If we're using GNU nm, then use its standard symbol codes.
6105     case `$NM -V 2>&1` in
6106     *GNU* | *'with BFD'*)
6107     symcode='[ABCDGIRSTW]' ;;
6108     esac
6109    
6110     # Transform an extracted symbol line into a proper C declaration.
6111     # Some systems (esp. on ia64) link data and code symbols differently,
6112     # so use this general approach.
6113     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6114    
6115     # Transform an extracted symbol line into symbol name and symbol address
6116     lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6117     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'"
6118    
6119     # Handle CRLF in mingw tool chain
6120     opt_cr=
6121     case $build_os in
6122     mingw*)
6123     opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6124     ;;
6125     esac
6126    
6127     # Try without a prefix underscore, then with it.
6128     for ac_symprfx in "" "_"; do
6129    
6130     # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6131     symxfrm="\\1 $ac_symprfx\\2 \\2"
6132    
6133     # Write the raw and C identifiers.
6134     if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6135     # Fake it for dumpbin and say T for any non-static function
6136     # and D for any global variable.
6137     # Also find C++ and __fastcall symbols from MSVC++,
6138     # which start with @ or ?.
6139     lt_cv_sys_global_symbol_pipe="$AWK '"\
6140     " {last_section=section; section=\$ 3};"\
6141     " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6142     " \$ 0!~/External *\|/{next};"\
6143     " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6144     " {if(hide[section]) next};"\
6145     " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6146     " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6147     " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6148     " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6149     " ' prfx=^$ac_symprfx"
6150     else
6151     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6152     fi
6153    
6154     # Check to see that the pipe works correctly.
6155     pipe_works=no
6156    
6157     rm -f conftest*
6158     cat > conftest.$ac_ext <<_LT_EOF
6159     #ifdef __cplusplus
6160     extern "C" {
6161     #endif
6162     char nm_test_var;
6163     void nm_test_func(void);
6164     void nm_test_func(void){}
6165     #ifdef __cplusplus
6166     }
6167     #endif
6168     int main(){nm_test_var='a';nm_test_func();return(0);}
6169     _LT_EOF
6170    
6171 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6172 michael 945 (eval $ac_compile) 2>&5
6173     ac_status=$?
6174 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6175     test $ac_status = 0; }; then
6176 michael 945 # Now try to grab the symbols.
6177     nlist=conftest.nm
6178 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6179 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6180     ac_status=$?
6181 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6182     test $ac_status = 0; } && test -s "$nlist"; then
6183 michael 945 # Try sorting and uniquifying the output.
6184     if sort "$nlist" | uniq > "$nlist"T; then
6185     mv -f "$nlist"T "$nlist"
6186     else
6187     rm -f "$nlist"T
6188     fi
6189    
6190     # Make sure that we snagged all the symbols we need.
6191     if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6192     if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6193     cat <<_LT_EOF > conftest.$ac_ext
6194     #ifdef __cplusplus
6195     extern "C" {
6196     #endif
6197    
6198     _LT_EOF
6199     # Now generate the symbol file.
6200     eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6201    
6202     cat <<_LT_EOF >> conftest.$ac_ext
6203    
6204     /* The mapping between symbol names and symbols. */
6205     const struct {
6206     const char *name;
6207     void *address;
6208     }
6209     lt__PROGRAM__LTX_preloaded_symbols[] =
6210     {
6211     { "@PROGRAM@", (void *) 0 },
6212     _LT_EOF
6213     $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6214     cat <<\_LT_EOF >> conftest.$ac_ext
6215     {0, (void *) 0}
6216     };
6217    
6218     /* This works around a problem in FreeBSD linker */
6219     #ifdef FREEBSD_WORKAROUND
6220     static const void *lt_preloaded_setup() {
6221     return lt__PROGRAM__LTX_preloaded_symbols;
6222     }
6223     #endif
6224    
6225     #ifdef __cplusplus
6226     }
6227     #endif
6228     _LT_EOF
6229     # Now try linking the two files.
6230     mv conftest.$ac_objext conftstm.$ac_objext
6231     lt_save_LIBS="$LIBS"
6232     lt_save_CFLAGS="$CFLAGS"
6233     LIBS="conftstm.$ac_objext"
6234     CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6235 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6236 michael 945 (eval $ac_link) 2>&5
6237     ac_status=$?
6238 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6239     test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6240 michael 945 pipe_works=yes
6241     fi
6242     LIBS="$lt_save_LIBS"
6243     CFLAGS="$lt_save_CFLAGS"
6244     else
6245     echo "cannot find nm_test_func in $nlist" >&5
6246     fi
6247     else
6248     echo "cannot find nm_test_var in $nlist" >&5
6249     fi
6250     else
6251     echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6252     fi
6253     else
6254     echo "$progname: failed program was:" >&5
6255     cat conftest.$ac_ext >&5
6256     fi
6257     rm -rf conftest* conftst*
6258    
6259     # Do not use the global_symbol_pipe unless it works.
6260     if test "$pipe_works" = yes; then
6261     break
6262     else
6263     lt_cv_sys_global_symbol_pipe=
6264     fi
6265     done
6266    
6267     fi
6268    
6269     if test -z "$lt_cv_sys_global_symbol_pipe"; then
6270     lt_cv_sys_global_symbol_to_cdecl=
6271     fi
6272     if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6273 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6274 michael 945 $as_echo "failed" >&6; }
6275     else
6276 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6277 michael 945 $as_echo "ok" >&6; }
6278     fi
6279    
6280    
6281    
6282    
6283    
6284    
6285    
6286    
6287    
6288    
6289    
6290    
6291    
6292    
6293    
6294    
6295    
6296    
6297    
6298    
6299    
6300    
6301 michael 912 # Check whether --enable-libtool-lock was given.
6302 michael 967 if test "${enable_libtool_lock+set}" = set; then :
6303 michael 912 enableval=$enable_libtool_lock;
6304     fi
6305    
6306     test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6307    
6308     # Some flags need to be propagated to the compiler or linker for good
6309     # libtool support.
6310     case $host in
6311     ia64-*-hpux*)
6312     # Find out which ABI we are using.
6313     echo 'int i;' > conftest.$ac_ext
6314 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6315 michael 912 (eval $ac_compile) 2>&5
6316     ac_status=$?
6317 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6318     test $ac_status = 0; }; then
6319 michael 912 case `/usr/bin/file conftest.$ac_objext` in
6320 michael 945 *ELF-32*)
6321     HPUX_IA64_MODE="32"
6322     ;;
6323     *ELF-64*)
6324     HPUX_IA64_MODE="64"
6325     ;;
6326 michael 912 esac
6327     fi
6328     rm -rf conftest*
6329     ;;
6330     *-*-irix6*)
6331     # Find out which ABI we are using.
6332 michael 982 echo '#line 6332 "configure"' > conftest.$ac_ext
6333 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6334 michael 912 (eval $ac_compile) 2>&5
6335     ac_status=$?
6336 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6337     test $ac_status = 0; }; then
6338 michael 945 if test "$lt_cv_prog_gnu_ld" = yes; then
6339     case `/usr/bin/file conftest.$ac_objext` in
6340     *32-bit*)
6341     LD="${LD-ld} -melf32bsmip"
6342     ;;
6343     *N32*)
6344     LD="${LD-ld} -melf32bmipn32"
6345     ;;
6346     *64-bit*)
6347     LD="${LD-ld} -melf64bmip"
6348     ;;
6349     esac
6350     else
6351     case `/usr/bin/file conftest.$ac_objext` in
6352     *32-bit*)
6353     LD="${LD-ld} -32"
6354     ;;
6355     *N32*)
6356     LD="${LD-ld} -n32"
6357     ;;
6358     *64-bit*)
6359     LD="${LD-ld} -64"
6360     ;;
6361     esac
6362     fi
6363 michael 912 fi
6364     rm -rf conftest*
6365     ;;
6366    
6367     x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6368 michael 945 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6369 michael 912 # Find out which ABI we are using.
6370     echo 'int i;' > 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 912 case `/usr/bin/file conftest.o` in
6377 michael 945 *32-bit*)
6378     case $host in
6379     x86_64-*kfreebsd*-gnu)
6380     LD="${LD-ld} -m elf_i386_fbsd"
6381     ;;
6382     x86_64-*linux*)
6383     LD="${LD-ld} -m elf_i386"
6384     ;;
6385     ppc64-*linux*|powerpc64-*linux*)
6386     LD="${LD-ld} -m elf32ppclinux"
6387     ;;
6388     s390x-*linux*)
6389     LD="${LD-ld} -m elf_s390"
6390     ;;
6391     sparc64-*linux*)
6392     LD="${LD-ld} -m elf32_sparc"
6393     ;;
6394     esac
6395     ;;
6396     *64-bit*)
6397     case $host in
6398     x86_64-*kfreebsd*-gnu)
6399     LD="${LD-ld} -m elf_x86_64_fbsd"
6400     ;;
6401     x86_64-*linux*)
6402     LD="${LD-ld} -m elf_x86_64"
6403     ;;
6404     ppc*-*linux*|powerpc*-*linux*)
6405     LD="${LD-ld} -m elf64ppc"
6406     ;;
6407     s390*-*linux*|s390*-*tpf*)
6408     LD="${LD-ld} -m elf64_s390"
6409     ;;
6410     sparc*-*linux*)
6411     LD="${LD-ld} -m elf64_sparc"
6412     ;;
6413     esac
6414     ;;
6415 michael 912 esac
6416     fi
6417     rm -rf conftest*
6418     ;;
6419    
6420     *-*-sco3.2v5*)
6421     # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6422     SAVE_CFLAGS="$CFLAGS"
6423     CFLAGS="$CFLAGS -belf"
6424 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6425 db 941 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6426 michael 967 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6427 db 941 $as_echo_n "(cached) " >&6
6428 michael 912 else
6429     ac_ext=c
6430     ac_cpp='$CPP $CPPFLAGS'
6431     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6432     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6433     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6434    
6435 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6436 michael 912 /* end confdefs.h. */
6437    
6438     int
6439     main ()
6440     {
6441    
6442     ;
6443     return 0;
6444     }
6445     _ACEOF
6446 michael 967 if ac_fn_c_try_link "$LINENO"; then :
6447 michael 912 lt_cv_cc_needs_belf=yes
6448     else
6449 michael 967 lt_cv_cc_needs_belf=no
6450 michael 912 fi
6451 michael 967 rm -f core conftest.err conftest.$ac_objext \
6452     conftest$ac_exeext conftest.$ac_ext
6453 michael 912 ac_ext=c
6454     ac_cpp='$CPP $CPPFLAGS'
6455     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6456     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6457     ac_compiler_gnu=$ac_cv_c_compiler_gnu
6458    
6459     fi
6460 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6461 db 941 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6462 michael 912 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6463     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6464     CFLAGS="$SAVE_CFLAGS"
6465     fi
6466     ;;
6467     sparc*-*solaris*)
6468     # Find out which ABI we are using.
6469     echo 'int i;' > conftest.$ac_ext
6470 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6471 michael 912 (eval $ac_compile) 2>&5
6472     ac_status=$?
6473 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6474     test $ac_status = 0; }; then
6475 michael 912 case `/usr/bin/file conftest.o` in
6476     *64-bit*)
6477     case $lt_cv_prog_gnu_ld in
6478     yes*) LD="${LD-ld} -m elf64_sparc" ;;
6479 db 941 *)
6480 michael 945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6481 db 941 LD="${LD-ld} -64"
6482     fi
6483     ;;
6484 michael 912 esac
6485     ;;
6486     esac
6487     fi
6488     rm -rf conftest*
6489     ;;
6490 michael 945 esac
6491 michael 912
6492 michael 945 need_locks="$enable_libtool_lock"
6493 michael 912
6494 michael 945
6495     case $host_os in
6496     rhapsody* | darwin*)
6497     if test -n "$ac_tool_prefix"; then
6498     # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6499     set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6500 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6501 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6502 michael 967 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6503 michael 945 $as_echo_n "(cached) " >&6
6504     else
6505     if test -n "$DSYMUTIL"; then
6506     ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6507     else
6508     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509     for as_dir in $PATH
6510     do
6511     IFS=$as_save_IFS
6512     test -z "$as_dir" && as_dir=.
6513 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6514 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6515     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6516 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6517 michael 945 break 2
6518     fi
6519     done
6520 michael 967 done
6521 michael 945 IFS=$as_save_IFS
6522    
6523     fi
6524     fi
6525     DSYMUTIL=$ac_cv_prog_DSYMUTIL
6526     if test -n "$DSYMUTIL"; then
6527 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6528 michael 945 $as_echo "$DSYMUTIL" >&6; }
6529     else
6530 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6531 michael 945 $as_echo "no" >&6; }
6532     fi
6533    
6534    
6535     fi
6536     if test -z "$ac_cv_prog_DSYMUTIL"; then
6537     ac_ct_DSYMUTIL=$DSYMUTIL
6538     # Extract the first word of "dsymutil", so it can be a program name with args.
6539     set dummy dsymutil; ac_word=$2
6540 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6541 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6542 michael 967 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6543 michael 945 $as_echo_n "(cached) " >&6
6544     else
6545     if test -n "$ac_ct_DSYMUTIL"; then
6546     ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6547     else
6548     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6549     for as_dir in $PATH
6550     do
6551     IFS=$as_save_IFS
6552     test -z "$as_dir" && as_dir=.
6553 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6554 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6555     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6556 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6557 michael 945 break 2
6558     fi
6559     done
6560 michael 967 done
6561 michael 945 IFS=$as_save_IFS
6562    
6563     fi
6564     fi
6565     ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6566     if test -n "$ac_ct_DSYMUTIL"; then
6567 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6568 michael 945 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6569     else
6570 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 michael 945 $as_echo "no" >&6; }
6572     fi
6573    
6574     if test "x$ac_ct_DSYMUTIL" = x; then
6575     DSYMUTIL=":"
6576     else
6577     case $cross_compiling:$ac_tool_warned in
6578     yes:)
6579 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6580 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6581     ac_tool_warned=yes ;;
6582 michael 912 esac
6583 michael 945 DSYMUTIL=$ac_ct_DSYMUTIL
6584     fi
6585     else
6586     DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6587     fi
6588 michael 912
6589 michael 945 if test -n "$ac_tool_prefix"; then
6590     # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6591     set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6592 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6593 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6594 michael 967 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6595 michael 945 $as_echo_n "(cached) " >&6
6596     else
6597     if test -n "$NMEDIT"; then
6598     ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6599     else
6600     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6601     for as_dir in $PATH
6602     do
6603     IFS=$as_save_IFS
6604     test -z "$as_dir" && as_dir=.
6605 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6606 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6607     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6608 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6609 michael 945 break 2
6610     fi
6611     done
6612 michael 967 done
6613 michael 945 IFS=$as_save_IFS
6614 michael 912
6615 michael 945 fi
6616     fi
6617     NMEDIT=$ac_cv_prog_NMEDIT
6618     if test -n "$NMEDIT"; then
6619 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6620 michael 945 $as_echo "$NMEDIT" >&6; }
6621     else
6622 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6623 michael 945 $as_echo "no" >&6; }
6624     fi
6625 michael 912
6626 michael 945
6627     fi
6628     if test -z "$ac_cv_prog_NMEDIT"; then
6629     ac_ct_NMEDIT=$NMEDIT
6630     # Extract the first word of "nmedit", so it can be a program name with args.
6631     set dummy nmedit; ac_word=$2
6632 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6633 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6634 michael 967 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6635 michael 945 $as_echo_n "(cached) " >&6
6636     else
6637     if test -n "$ac_ct_NMEDIT"; then
6638     ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6639     else
6640     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6641     for as_dir in $PATH
6642     do
6643     IFS=$as_save_IFS
6644     test -z "$as_dir" && as_dir=.
6645 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6646 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6647     ac_cv_prog_ac_ct_NMEDIT="nmedit"
6648 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6649 michael 945 break 2
6650     fi
6651     done
6652 michael 967 done
6653 michael 945 IFS=$as_save_IFS
6654    
6655     fi
6656     fi
6657     ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6658     if test -n "$ac_ct_NMEDIT"; then
6659 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6660 michael 945 $as_echo "$ac_ct_NMEDIT" >&6; }
6661     else
6662 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6663 michael 945 $as_echo "no" >&6; }
6664     fi
6665    
6666     if test "x$ac_ct_NMEDIT" = x; then
6667     NMEDIT=":"
6668     else
6669     case $cross_compiling:$ac_tool_warned in
6670     yes:)
6671 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6672 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6673     ac_tool_warned=yes ;;
6674     esac
6675     NMEDIT=$ac_ct_NMEDIT
6676     fi
6677     else
6678     NMEDIT="$ac_cv_prog_NMEDIT"
6679     fi
6680    
6681     if test -n "$ac_tool_prefix"; then
6682     # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6683     set dummy ${ac_tool_prefix}lipo; ac_word=$2
6684 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6686 michael 967 if test "${ac_cv_prog_LIPO+set}" = set; then :
6687 michael 945 $as_echo_n "(cached) " >&6
6688     else
6689     if test -n "$LIPO"; then
6690     ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6691     else
6692     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693     for as_dir in $PATH
6694     do
6695     IFS=$as_save_IFS
6696     test -z "$as_dir" && as_dir=.
6697 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6698 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6700 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 michael 945 break 2
6702     fi
6703     done
6704 michael 967 done
6705 michael 945 IFS=$as_save_IFS
6706    
6707     fi
6708     fi
6709     LIPO=$ac_cv_prog_LIPO
6710     if test -n "$LIPO"; then
6711 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6712 michael 945 $as_echo "$LIPO" >&6; }
6713     else
6714 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 michael 945 $as_echo "no" >&6; }
6716     fi
6717    
6718    
6719     fi
6720     if test -z "$ac_cv_prog_LIPO"; then
6721     ac_ct_LIPO=$LIPO
6722     # Extract the first word of "lipo", so it can be a program name with args.
6723     set dummy lipo; ac_word=$2
6724 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6725 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6726 michael 967 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6727 michael 945 $as_echo_n "(cached) " >&6
6728     else
6729     if test -n "$ac_ct_LIPO"; then
6730     ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6731     else
6732     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6733     for as_dir in $PATH
6734     do
6735     IFS=$as_save_IFS
6736     test -z "$as_dir" && as_dir=.
6737 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6738 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6739     ac_cv_prog_ac_ct_LIPO="lipo"
6740 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 michael 945 break 2
6742     fi
6743     done
6744 michael 967 done
6745 michael 945 IFS=$as_save_IFS
6746    
6747     fi
6748     fi
6749     ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6750     if test -n "$ac_ct_LIPO"; then
6751 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6752 michael 945 $as_echo "$ac_ct_LIPO" >&6; }
6753     else
6754 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6755 michael 945 $as_echo "no" >&6; }
6756     fi
6757    
6758     if test "x$ac_ct_LIPO" = x; then
6759     LIPO=":"
6760     else
6761     case $cross_compiling:$ac_tool_warned in
6762     yes:)
6763 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6764 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6765     ac_tool_warned=yes ;;
6766     esac
6767     LIPO=$ac_ct_LIPO
6768     fi
6769     else
6770     LIPO="$ac_cv_prog_LIPO"
6771     fi
6772    
6773     if test -n "$ac_tool_prefix"; then
6774     # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6775     set dummy ${ac_tool_prefix}otool; ac_word=$2
6776 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6777 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6778 michael 967 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6779 michael 945 $as_echo_n "(cached) " >&6
6780     else
6781     if test -n "$OTOOL"; then
6782     ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6783     else
6784     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6785     for as_dir in $PATH
6786     do
6787     IFS=$as_save_IFS
6788     test -z "$as_dir" && as_dir=.
6789 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6790 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6791     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6792 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6793 michael 945 break 2
6794     fi
6795     done
6796 michael 967 done
6797 michael 945 IFS=$as_save_IFS
6798    
6799     fi
6800     fi
6801     OTOOL=$ac_cv_prog_OTOOL
6802     if test -n "$OTOOL"; then
6803 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6804 michael 945 $as_echo "$OTOOL" >&6; }
6805     else
6806 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6807 michael 945 $as_echo "no" >&6; }
6808     fi
6809    
6810    
6811     fi
6812     if test -z "$ac_cv_prog_OTOOL"; then
6813     ac_ct_OTOOL=$OTOOL
6814     # Extract the first word of "otool", so it can be a program name with args.
6815     set dummy otool; ac_word=$2
6816 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6817 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6818 michael 967 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6819 michael 945 $as_echo_n "(cached) " >&6
6820     else
6821     if test -n "$ac_ct_OTOOL"; then
6822     ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6823     else
6824     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825     for as_dir in $PATH
6826     do
6827     IFS=$as_save_IFS
6828     test -z "$as_dir" && as_dir=.
6829 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6830 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_prog_ac_ct_OTOOL="otool"
6832 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 michael 945 break 2
6834     fi
6835     done
6836 michael 967 done
6837 michael 945 IFS=$as_save_IFS
6838    
6839     fi
6840     fi
6841     ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6842     if test -n "$ac_ct_OTOOL"; then
6843 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6844 michael 945 $as_echo "$ac_ct_OTOOL" >&6; }
6845     else
6846 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6847 michael 945 $as_echo "no" >&6; }
6848     fi
6849    
6850     if test "x$ac_ct_OTOOL" = x; then
6851     OTOOL=":"
6852     else
6853     case $cross_compiling:$ac_tool_warned in
6854     yes:)
6855 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6856 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6857     ac_tool_warned=yes ;;
6858     esac
6859     OTOOL=$ac_ct_OTOOL
6860     fi
6861     else
6862     OTOOL="$ac_cv_prog_OTOOL"
6863     fi
6864    
6865     if test -n "$ac_tool_prefix"; then
6866     # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6867     set dummy ${ac_tool_prefix}otool64; ac_word=$2
6868 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6869 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6870 michael 967 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6871 michael 945 $as_echo_n "(cached) " >&6
6872     else
6873     if test -n "$OTOOL64"; then
6874     ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6875     else
6876     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6877     for as_dir in $PATH
6878     do
6879     IFS=$as_save_IFS
6880     test -z "$as_dir" && as_dir=.
6881 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6882 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6883     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6884 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 michael 945 break 2
6886     fi
6887     done
6888 michael 967 done
6889 michael 945 IFS=$as_save_IFS
6890    
6891     fi
6892     fi
6893     OTOOL64=$ac_cv_prog_OTOOL64
6894     if test -n "$OTOOL64"; then
6895 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6896 michael 945 $as_echo "$OTOOL64" >&6; }
6897     else
6898 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899 michael 945 $as_echo "no" >&6; }
6900     fi
6901    
6902    
6903     fi
6904     if test -z "$ac_cv_prog_OTOOL64"; then
6905     ac_ct_OTOOL64=$OTOOL64
6906     # Extract the first word of "otool64", so it can be a program name with args.
6907     set dummy otool64; ac_word=$2
6908 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6909 michael 945 $as_echo_n "checking for $ac_word... " >&6; }
6910 michael 967 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6911 michael 945 $as_echo_n "(cached) " >&6
6912     else
6913     if test -n "$ac_ct_OTOOL64"; then
6914     ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6915     else
6916     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917     for as_dir in $PATH
6918     do
6919     IFS=$as_save_IFS
6920     test -z "$as_dir" && as_dir=.
6921 michael 967 for ac_exec_ext in '' $ac_executable_extensions; do
6922 michael 945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6923     ac_cv_prog_ac_ct_OTOOL64="otool64"
6924 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 michael 945 break 2
6926     fi
6927     done
6928 michael 967 done
6929 michael 945 IFS=$as_save_IFS
6930    
6931     fi
6932     fi
6933     ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6934     if test -n "$ac_ct_OTOOL64"; then
6935 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6936 michael 945 $as_echo "$ac_ct_OTOOL64" >&6; }
6937     else
6938 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6939 michael 945 $as_echo "no" >&6; }
6940     fi
6941    
6942     if test "x$ac_ct_OTOOL64" = x; then
6943     OTOOL64=":"
6944     else
6945     case $cross_compiling:$ac_tool_warned in
6946     yes:)
6947 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6948 michael 945 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6949     ac_tool_warned=yes ;;
6950     esac
6951     OTOOL64=$ac_ct_OTOOL64
6952     fi
6953     else
6954     OTOOL64="$ac_cv_prog_OTOOL64"
6955     fi
6956    
6957    
6958    
6959    
6960    
6961    
6962    
6963    
6964    
6965    
6966    
6967    
6968    
6969    
6970    
6971    
6972    
6973    
6974    
6975    
6976    
6977    
6978    
6979    
6980    
6981    
6982    
6983 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6984 michael 945 $as_echo_n "checking for -single_module linker flag... " >&6; }
6985 michael 967 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6986 michael 945 $as_echo_n "(cached) " >&6
6987     else
6988     lt_cv_apple_cc_single_mod=no
6989     if test -z "${LT_MULTI_MODULE}"; then
6990     # By default we will add the -single_module flag. You can override
6991     # by either setting the environment variable LT_MULTI_MODULE
6992     # non-empty at configure time, or by adding -multi_module to the
6993     # link flags.
6994     rm -rf libconftest.dylib*
6995     echo "int foo(void){return 1;}" > conftest.c
6996     echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6997     -dynamiclib -Wl,-single_module conftest.c" >&5
6998     $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6999     -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7000     _lt_result=$?
7001     if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7002     lt_cv_apple_cc_single_mod=yes
7003     else
7004     cat conftest.err >&5
7005     fi
7006     rm -rf libconftest.dylib*
7007     rm -f conftest.*
7008     fi
7009     fi
7010 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7011 michael 945 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7012 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7013 michael 945 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7014 michael 967 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7015 michael 945 $as_echo_n "(cached) " >&6
7016     else
7017     lt_cv_ld_exported_symbols_list=no
7018     save_LDFLAGS=$LDFLAGS
7019     echo "_main" > conftest.sym
7020     LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7021 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 michael 945 /* end confdefs.h. */
7023    
7024     int
7025     main ()
7026     {
7027    
7028     ;
7029     return 0;
7030     }
7031     _ACEOF
7032 michael 967 if ac_fn_c_try_link "$LINENO"; then :
7033 michael 945 lt_cv_ld_exported_symbols_list=yes
7034     else
7035 michael 967 lt_cv_ld_exported_symbols_list=no
7036 michael 945 fi
7037 michael 967 rm -f core conftest.err conftest.$ac_objext \
7038     conftest$ac_exeext conftest.$ac_ext
7039 michael 945 LDFLAGS="$save_LDFLAGS"
7040    
7041     fi
7042 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7043 michael 945 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7044     case $host_os in
7045     rhapsody* | darwin1.[012])
7046     _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7047     darwin1.*)
7048     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7049     darwin*) # darwin 5.x on
7050     # if running on 10.5 or later, the deployment target defaults
7051     # to the OS version, if on x86, and 10.4, the deployment
7052     # target defaults to 10.4. Don't you love it?
7053     case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7054     10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7055     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7056     10.[012]*)
7057     _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7058     10.*)
7059     _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7060     esac
7061     ;;
7062     esac
7063     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7064     _lt_dar_single_mod='$single_module'
7065     fi
7066     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7067     _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7068     else
7069     _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7070     fi
7071     if test "$DSYMUTIL" != ":"; then
7072     _lt_dsymutil='~$DSYMUTIL $lib || :'
7073     else
7074     _lt_dsymutil=
7075     fi
7076     ;;
7077     esac
7078    
7079 michael 912 ac_ext=c
7080     ac_cpp='$CPP $CPPFLAGS'
7081     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7082     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7083     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7084 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7085 db 941 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7086 michael 912 # On Suns, sometimes $CPP names a directory.
7087     if test -n "$CPP" && test -d "$CPP"; then
7088     CPP=
7089     fi
7090     if test -z "$CPP"; then
7091 michael 967 if test "${ac_cv_prog_CPP+set}" = set; then :
7092 db 941 $as_echo_n "(cached) " >&6
7093 michael 912 else
7094     # Double quotes because CPP needs to be expanded
7095     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7096     do
7097     ac_preproc_ok=false
7098     for ac_c_preproc_warn_flag in '' yes
7099     do
7100     # Use a header file that comes with gcc, so configuring glibc
7101     # with a fresh cross-compiler works.
7102     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7103     # <limits.h> exists even on freestanding compilers.
7104     # On the NeXT, cc -E runs the code through the compiler's parser,
7105     # not just through cpp. "Syntax error" is here to catch this case.
7106 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 michael 912 /* end confdefs.h. */
7108     #ifdef __STDC__
7109     # include <limits.h>
7110     #else
7111     # include <assert.h>
7112     #endif
7113     Syntax error
7114     _ACEOF
7115 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7116    
7117 michael 912 else
7118     # Broken: fails on valid input.
7119     continue
7120     fi
7121     rm -f conftest.err conftest.$ac_ext
7122    
7123     # OK, works on sane cases. Now check whether nonexistent headers
7124     # can be detected and how.
7125 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7126 michael 912 /* end confdefs.h. */
7127     #include <ac_nonexistent.h>
7128     _ACEOF
7129 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7130 michael 912 # Broken: success on invalid input.
7131     continue
7132     else
7133     # Passes both tests.
7134     ac_preproc_ok=:
7135     break
7136     fi
7137     rm -f conftest.err conftest.$ac_ext
7138    
7139     done
7140     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7141     rm -f conftest.err conftest.$ac_ext
7142 michael 967 if $ac_preproc_ok; then :
7143 michael 912 break
7144     fi
7145    
7146     done
7147     ac_cv_prog_CPP=$CPP
7148    
7149     fi
7150     CPP=$ac_cv_prog_CPP
7151     else
7152     ac_cv_prog_CPP=$CPP
7153     fi
7154 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7155 db 941 $as_echo "$CPP" >&6; }
7156 michael 912 ac_preproc_ok=false
7157     for ac_c_preproc_warn_flag in '' yes
7158     do
7159     # Use a header file that comes with gcc, so configuring glibc
7160     # with a fresh cross-compiler works.
7161     # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7162     # <limits.h> exists even on freestanding compilers.
7163     # On the NeXT, cc -E runs the code through the compiler's parser,
7164     # not just through cpp. "Syntax error" is here to catch this case.
7165 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 michael 912 /* end confdefs.h. */
7167     #ifdef __STDC__
7168     # include <limits.h>
7169     #else
7170     # include <assert.h>
7171     #endif
7172     Syntax error
7173     _ACEOF
7174 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7175    
7176 michael 912 else
7177     # Broken: fails on valid input.
7178     continue
7179     fi
7180     rm -f conftest.err conftest.$ac_ext
7181    
7182     # OK, works on sane cases. Now check whether nonexistent headers
7183     # can be detected and how.
7184 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7185 michael 912 /* end confdefs.h. */
7186     #include <ac_nonexistent.h>
7187     _ACEOF
7188 michael 967 if ac_fn_c_try_cpp "$LINENO"; then :
7189 michael 912 # Broken: success on invalid input.
7190     continue
7191     else
7192     # Passes both tests.
7193     ac_preproc_ok=:
7194     break
7195     fi
7196     rm -f conftest.err conftest.$ac_ext
7197    
7198     done
7199     # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7200     rm -f conftest.err conftest.$ac_ext
7201 michael 967 if $ac_preproc_ok; then :
7202    
7203 michael 912 else
7204 michael 967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7205 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7206 michael 967 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7207     See \`config.log' for more details." "$LINENO" 5; }
7208 michael 912 fi
7209    
7210     ac_ext=c
7211     ac_cpp='$CPP $CPPFLAGS'
7212     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7213     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7214     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7215    
7216    
7217 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7218 db 941 $as_echo_n "checking for ANSI C header files... " >&6; }
7219 michael 967 if test "${ac_cv_header_stdc+set}" = set; then :
7220 db 941 $as_echo_n "(cached) " >&6
7221 michael 912 else
7222 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7223 michael 912 /* end confdefs.h. */
7224     #include <stdlib.h>
7225     #include <stdarg.h>
7226     #include <string.h>
7227     #include <float.h>
7228    
7229     int
7230     main ()
7231     {
7232    
7233     ;
7234     return 0;
7235     }
7236     _ACEOF
7237 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
7238 michael 912 ac_cv_header_stdc=yes
7239     else
7240 michael 967 ac_cv_header_stdc=no
7241 michael 912 fi
7242     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243    
7244     if test $ac_cv_header_stdc = yes; then
7245     # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7246 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 michael 912 /* end confdefs.h. */
7248     #include <string.h>
7249    
7250     _ACEOF
7251     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7252 michael 967 $EGREP "memchr" >/dev/null 2>&1; then :
7253    
7254 michael 912 else
7255     ac_cv_header_stdc=no
7256     fi
7257     rm -f conftest*
7258    
7259     fi
7260    
7261     if test $ac_cv_header_stdc = yes; then
7262     # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7263 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7264 michael 912 /* end confdefs.h. */
7265     #include <stdlib.h>
7266    
7267     _ACEOF
7268     if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7269 michael 967 $EGREP "free" >/dev/null 2>&1; then :
7270    
7271 michael 912 else
7272     ac_cv_header_stdc=no
7273     fi
7274     rm -f conftest*
7275    
7276     fi
7277    
7278     if test $ac_cv_header_stdc = yes; then
7279     # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7280 michael 967 if test "$cross_compiling" = yes; then :
7281 michael 912 :
7282     else
7283 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7284 michael 912 /* end confdefs.h. */
7285     #include <ctype.h>
7286     #include <stdlib.h>
7287     #if ((' ' & 0x0FF) == 0x020)
7288     # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7289     # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7290     #else
7291     # define ISLOWER(c) \
7292     (('a' <= (c) && (c) <= 'i') \
7293     || ('j' <= (c) && (c) <= 'r') \
7294     || ('s' <= (c) && (c) <= 'z'))
7295     # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7296     #endif
7297    
7298     #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7299     int
7300     main ()
7301     {
7302     int i;
7303     for (i = 0; i < 256; i++)
7304     if (XOR (islower (i), ISLOWER (i))
7305     || toupper (i) != TOUPPER (i))
7306     return 2;
7307     return 0;
7308     }
7309     _ACEOF
7310 michael 967 if ac_fn_c_try_run "$LINENO"; then :
7311    
7312 michael 912 else
7313 michael 967 ac_cv_header_stdc=no
7314 michael 912 fi
7315 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7316     conftest.$ac_objext conftest.beam conftest.$ac_ext
7317 michael 912 fi
7318    
7319     fi
7320     fi
7321 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7322 db 941 $as_echo "$ac_cv_header_stdc" >&6; }
7323 michael 912 if test $ac_cv_header_stdc = yes; then
7324    
7325 michael 967 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7326 michael 912
7327     fi
7328    
7329     # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7330     for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7331     inttypes.h stdint.h unistd.h
7332 michael 967 do :
7333     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7334     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7335     "
7336     eval as_val=\$$as_ac_Header
7337     if test "x$as_val" = x""yes; then :
7338 michael 912 cat >>confdefs.h <<_ACEOF
7339 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7340 michael 912 _ACEOF
7341    
7342     fi
7343    
7344     done
7345    
7346    
7347     for ac_header in dlfcn.h
7348 michael 967 do :
7349     ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7350     "
7351     if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7352 michael 912 cat >>confdefs.h <<_ACEOF
7353 michael 967 #define HAVE_DLFCN_H 1
7354 michael 912 _ACEOF
7355    
7356     fi
7357    
7358     done
7359    
7360    
7361    
7362 michael 945 # Set options
7363     enable_dlopen=yes
7364 michael 977 # Check whether --enable-static was given.
7365     if test "${enable_static+set}" = set; then :
7366     enableval=$enable_static; p=${PACKAGE-default}
7367 michael 945 case $enableval in
7368 michael 977 yes) enable_static=yes ;;
7369     no) enable_static=no ;;
7370 michael 945 *)
7371 michael 977 enable_static=no
7372 michael 945 # Look at the argument we got. We use all the common list separators.
7373     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7374     for pkg in $enableval; do
7375     IFS="$lt_save_ifs"
7376     if test "X$pkg" = "X$p"; then
7377 michael 977 enable_static=yes
7378 michael 945 fi
7379     done
7380     IFS="$lt_save_ifs"
7381     ;;
7382     esac
7383 michael 912 else
7384 michael 977 enable_static=no
7385 michael 912 fi
7386    
7387    
7388    
7389    
7390    
7391    
7392    
7393    
7394    
7395 michael 977
7396    
7397     enable_win32_dll=no
7398    
7399    
7400     # Check whether --enable-shared was given.
7401     if test "${enable_shared+set}" = set; then :
7402     enableval=$enable_shared; p=${PACKAGE-default}
7403 michael 945 case $enableval in
7404 michael 977 yes) enable_shared=yes ;;
7405     no) enable_shared=no ;;
7406 michael 945 *)
7407 michael 977 enable_shared=no
7408 michael 945 # Look at the argument we got. We use all the common list separators.
7409     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7410     for pkg in $enableval; do
7411     IFS="$lt_save_ifs"
7412     if test "X$pkg" = "X$p"; then
7413 michael 977 enable_shared=yes
7414 michael 945 fi
7415     done
7416     IFS="$lt_save_ifs"
7417 michael 912 ;;
7418     esac
7419     else
7420 michael 977 enable_shared=yes
7421 michael 912 fi
7422    
7423    
7424    
7425    
7426    
7427    
7428    
7429    
7430    
7431    
7432 michael 977
7433 michael 945 # Check whether --with-pic was given.
7434 michael 967 if test "${with_pic+set}" = set; then :
7435 michael 945 withval=$with_pic; pic_mode="$withval"
7436 michael 912 else
7437 michael 945 pic_mode=default
7438 michael 912 fi
7439    
7440    
7441 michael 945 test -z "$pic_mode" && pic_mode=default
7442 michael 912
7443    
7444    
7445    
7446    
7447    
7448    
7449 michael 945 # Check whether --enable-fast-install was given.
7450 michael 967 if test "${enable_fast_install+set}" = set; then :
7451 michael 945 enableval=$enable_fast_install; p=${PACKAGE-default}
7452     case $enableval in
7453     yes) enable_fast_install=yes ;;
7454     no) enable_fast_install=no ;;
7455     *)
7456     enable_fast_install=no
7457     # Look at the argument we got. We use all the common list separators.
7458     lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7459     for pkg in $enableval; do
7460     IFS="$lt_save_ifs"
7461     if test "X$pkg" = "X$p"; then
7462     enable_fast_install=yes
7463     fi
7464     done
7465     IFS="$lt_save_ifs"
7466     ;;
7467     esac
7468 michael 912 else
7469 michael 945 enable_fast_install=yes
7470 michael 912 fi
7471    
7472    
7473    
7474    
7475    
7476    
7477    
7478    
7479    
7480    
7481    
7482 michael 945 # This can be used to rebuild libtool when needed
7483     LIBTOOL_DEPS="$ltmain"
7484 michael 912
7485 michael 945 # Always use our own libtool.
7486     LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7487 michael 912
7488    
7489    
7490    
7491    
7492    
7493    
7494    
7495    
7496    
7497    
7498    
7499    
7500    
7501    
7502    
7503    
7504    
7505    
7506    
7507    
7508    
7509    
7510    
7511    
7512 michael 945 test -z "$LN_S" && LN_S="ln -s"
7513 michael 912
7514    
7515    
7516    
7517    
7518    
7519    
7520    
7521    
7522    
7523    
7524    
7525    
7526    
7527 michael 945 if test -n "${ZSH_VERSION+set}" ; then
7528     setopt NO_GLOB_SUBST
7529 michael 912 fi
7530    
7531 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7532 db 941 $as_echo_n "checking for objdir... " >&6; }
7533 michael 967 if test "${lt_cv_objdir+set}" = set; then :
7534 db 941 $as_echo_n "(cached) " >&6
7535 michael 912 else
7536     rm -f .libs 2>/dev/null
7537     mkdir .libs 2>/dev/null
7538     if test -d .libs; then
7539     lt_cv_objdir=.libs
7540     else
7541     # MS-DOS does not allow filenames that begin with a dot.
7542     lt_cv_objdir=_libs
7543     fi
7544     rmdir .libs 2>/dev/null
7545     fi
7546 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7547 db 941 $as_echo "$lt_cv_objdir" >&6; }
7548 michael 912 objdir=$lt_cv_objdir
7549    
7550    
7551    
7552    
7553    
7554 michael 945 cat >>confdefs.h <<_ACEOF
7555     #define LT_OBJDIR "$lt_cv_objdir/"
7556     _ACEOF
7557    
7558    
7559    
7560    
7561    
7562    
7563    
7564    
7565    
7566    
7567    
7568    
7569    
7570    
7571    
7572    
7573    
7574 michael 912 case $host_os in
7575     aix3*)
7576     # AIX sometimes has problems with the GCC collect2 program. For some
7577     # reason, if we set the COLLECT_NAMES environment variable, the problems
7578     # vanish in a puff of smoke.
7579     if test "X${COLLECT_NAMES+set}" != Xset; then
7580     COLLECT_NAMES=
7581     export COLLECT_NAMES
7582     fi
7583     ;;
7584     esac
7585    
7586     # Sed substitution that helps us do robust quoting. It backslashifies
7587     # metacharacters that are still active within double-quoted strings.
7588 michael 945 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7589 michael 912
7590     # Same as above, but do not quote variable references.
7591 michael 945 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7592 michael 912
7593     # Sed substitution to delay expansion of an escaped shell variable in a
7594     # double_quote_subst'ed string.
7595     delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7596    
7597 michael 945 # Sed substitution to delay expansion of an escaped single quote.
7598     delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7599    
7600 michael 912 # Sed substitution to avoid accidental globbing in evaled expressions
7601     no_glob_subst='s/\*/\\\*/g'
7602    
7603     # Global variables:
7604 michael 945 ofile=libtool
7605 michael 912 can_build_shared=yes
7606    
7607     # All known linkers require a `.a' archive for static linking (except MSVC,
7608     # which needs '.lib').
7609     libext=a
7610 michael 945
7611 michael 912 with_gnu_ld="$lt_cv_prog_gnu_ld"
7612    
7613     old_CC="$CC"
7614     old_CFLAGS="$CFLAGS"
7615    
7616     # Set sane defaults for various variables
7617     test -z "$CC" && CC=cc
7618     test -z "$LTCC" && LTCC=$CC
7619     test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7620     test -z "$LD" && LD=ld
7621     test -z "$ac_objext" && ac_objext=o
7622    
7623     for cc_temp in $compiler""; do
7624     case $cc_temp in
7625     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7626     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7627     \-*) ;;
7628     *) break;;
7629     esac
7630     done
7631 michael 945 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7632 michael 912
7633    
7634     # Only perform the check for file, if the check method requires it
7635 michael 945 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7636 michael 912 case $deplibs_check_method in
7637     file_magic*)
7638     if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7639 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7640 db 941 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7641 michael 967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7642 db 941 $as_echo_n "(cached) " >&6
7643 michael 912 else
7644     case $MAGIC_CMD in
7645     [\\/*] | ?:[\\/]*)
7646     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7647     ;;
7648     *)
7649     lt_save_MAGIC_CMD="$MAGIC_CMD"
7650     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7651     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7652     for ac_dir in $ac_dummy; do
7653     IFS="$lt_save_ifs"
7654     test -z "$ac_dir" && ac_dir=.
7655     if test -f $ac_dir/${ac_tool_prefix}file; then
7656     lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7657     if test -n "$file_magic_test_file"; then
7658     case $deplibs_check_method in
7659     "file_magic "*)
7660     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7661     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7662     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7663     $EGREP "$file_magic_regex" > /dev/null; then
7664     :
7665     else
7666 michael 945 cat <<_LT_EOF 1>&2
7667 michael 912
7668     *** Warning: the command libtool uses to detect shared libraries,
7669     *** $file_magic_cmd, produces output that libtool cannot recognize.
7670     *** The result is that libtool may fail to recognize shared libraries
7671     *** as such. This will affect the creation of libtool libraries that
7672     *** depend on shared libraries, but programs linked with such libtool
7673     *** libraries will work regardless of this problem. Nevertheless, you
7674     *** may want to report the problem to your system manager and/or to
7675     *** bug-libtool@gnu.org
7676    
7677 michael 945 _LT_EOF
7678 michael 912 fi ;;
7679     esac
7680     fi
7681     break
7682     fi
7683     done
7684     IFS="$lt_save_ifs"
7685     MAGIC_CMD="$lt_save_MAGIC_CMD"
7686     ;;
7687     esac
7688     fi
7689    
7690     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7691     if test -n "$MAGIC_CMD"; then
7692 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7693 db 941 $as_echo "$MAGIC_CMD" >&6; }
7694 michael 912 else
7695 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 db 941 $as_echo "no" >&6; }
7697 michael 912 fi
7698    
7699 michael 945
7700    
7701    
7702    
7703 michael 912 if test -z "$lt_cv_path_MAGIC_CMD"; then
7704     if test -n "$ac_tool_prefix"; then
7705 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7706 db 941 $as_echo_n "checking for file... " >&6; }
7707 michael 967 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7708 db 941 $as_echo_n "(cached) " >&6
7709 michael 912 else
7710     case $MAGIC_CMD in
7711     [\\/*] | ?:[\\/]*)
7712     lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7713     ;;
7714     *)
7715     lt_save_MAGIC_CMD="$MAGIC_CMD"
7716     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7717     ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7718     for ac_dir in $ac_dummy; do
7719     IFS="$lt_save_ifs"
7720     test -z "$ac_dir" && ac_dir=.
7721     if test -f $ac_dir/file; then
7722     lt_cv_path_MAGIC_CMD="$ac_dir/file"
7723     if test -n "$file_magic_test_file"; then
7724     case $deplibs_check_method in
7725     "file_magic "*)
7726     file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7727     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7728     if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7729     $EGREP "$file_magic_regex" > /dev/null; then
7730     :
7731     else
7732 michael 945 cat <<_LT_EOF 1>&2
7733 michael 912
7734     *** Warning: the command libtool uses to detect shared libraries,
7735     *** $file_magic_cmd, produces output that libtool cannot recognize.
7736     *** The result is that libtool may fail to recognize shared libraries
7737     *** as such. This will affect the creation of libtool libraries that
7738     *** depend on shared libraries, but programs linked with such libtool
7739     *** libraries will work regardless of this problem. Nevertheless, you
7740     *** may want to report the problem to your system manager and/or to
7741     *** bug-libtool@gnu.org
7742    
7743 michael 945 _LT_EOF
7744 michael 912 fi ;;
7745     esac
7746     fi
7747     break
7748     fi
7749     done
7750     IFS="$lt_save_ifs"
7751     MAGIC_CMD="$lt_save_MAGIC_CMD"
7752     ;;
7753     esac
7754     fi
7755    
7756     MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7757     if test -n "$MAGIC_CMD"; then
7758 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7759 db 941 $as_echo "$MAGIC_CMD" >&6; }
7760 michael 912 else
7761 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7762 db 941 $as_echo "no" >&6; }
7763 michael 912 fi
7764    
7765 michael 945
7766 michael 912 else
7767     MAGIC_CMD=:
7768     fi
7769     fi
7770    
7771     fi
7772     ;;
7773     esac
7774    
7775 michael 945 # Use C for the default configuration in the libtool script
7776 db 941
7777 michael 912 lt_save_CC="$CC"
7778     ac_ext=c
7779     ac_cpp='$CPP $CPPFLAGS'
7780     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7781     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7782     ac_compiler_gnu=$ac_cv_c_compiler_gnu
7783    
7784    
7785     # Source file extension for C test sources.
7786     ac_ext=c
7787    
7788     # Object file extension for compiled C test sources.
7789     objext=o
7790     objext=$objext
7791    
7792     # Code to be used in simple compile tests
7793     lt_simple_compile_test_code="int some_variable = 0;"
7794    
7795     # Code to be used in simple link tests
7796     lt_simple_link_test_code='int main(){return(0);}'
7797    
7798    
7799 michael 945
7800    
7801    
7802    
7803    
7804 michael 912 # If no C compiler was specified, use CC.
7805     LTCC=${LTCC-"$CC"}
7806    
7807     # If no C compiler flags were specified, use CFLAGS.
7808     LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7809    
7810     # Allow CC to be a program name with arguments.
7811     compiler=$CC
7812    
7813 michael 945 # Save the default compiler, since it gets overwritten when the other
7814     # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7815     compiler_DEFAULT=$CC
7816 michael 912
7817     # save warnings/boilerplate of simple test code
7818     ac_outfile=conftest.$ac_objext
7819     echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7820     eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7821     _lt_compiler_boilerplate=`cat conftest.err`
7822 michael 945 $RM conftest*
7823 michael 912
7824     ac_outfile=conftest.$ac_objext
7825     echo "$lt_simple_link_test_code" >conftest.$ac_ext
7826     eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7827     _lt_linker_boilerplate=`cat conftest.err`
7828 michael 945 $RM -r conftest*
7829 michael 912
7830    
7831 michael 945 if test -n "$compiler"; then
7832 michael 912
7833     lt_prog_compiler_no_builtin_flag=
7834    
7835     if test "$GCC" = yes; then
7836     lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7837    
7838 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7839 db 941 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7840 michael 967 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7841 db 941 $as_echo_n "(cached) " >&6
7842 michael 912 else
7843     lt_cv_prog_compiler_rtti_exceptions=no
7844 michael 945 ac_outfile=conftest.$ac_objext
7845 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7846     lt_compiler_flag="-fno-rtti -fno-exceptions"
7847     # Insert the option either (1) after the last *FLAGS variable, or
7848     # (2) before a word containing "conftest.", or (3) at the end.
7849     # Note that $ac_compile itself does not contain backslashes and begins
7850     # with a dollar sign (not a hyphen), so the echo should work correctly.
7851     # The option is referenced via a variable to avoid confusing sed.
7852     lt_compile=`echo "$ac_compile" | $SED \
7853     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7854     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7855     -e 's:$: $lt_compiler_flag:'`
7856 michael 982 (eval echo "\"\$as_me:7856: $lt_compile\"" >&5)
7857 michael 912 (eval "$lt_compile" 2>conftest.err)
7858     ac_status=$?
7859     cat conftest.err >&5
7860 michael 982 echo "$as_me:7860: \$? = $ac_status" >&5
7861 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
7862     # The compiler can only warn and ignore the option if not recognized
7863     # So say no if there are warnings other than the usual output.
7864 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7865 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7866     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7867     lt_cv_prog_compiler_rtti_exceptions=yes
7868     fi
7869     fi
7870 michael 945 $RM conftest*
7871 michael 912
7872     fi
7873 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7874 db 941 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7875 michael 912
7876     if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7877     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7878     else
7879     :
7880     fi
7881    
7882     fi
7883    
7884 michael 945
7885    
7886    
7887    
7888    
7889     lt_prog_compiler_wl=
7890 michael 912 lt_prog_compiler_pic=
7891     lt_prog_compiler_static=
7892    
7893 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7894 db 941 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7895 michael 912
7896     if test "$GCC" = yes; then
7897     lt_prog_compiler_wl='-Wl,'
7898     lt_prog_compiler_static='-static'
7899    
7900     case $host_os in
7901     aix*)
7902     # All AIX code is PIC.
7903     if test "$host_cpu" = ia64; then
7904     # AIX 5 now supports IA64 processor
7905     lt_prog_compiler_static='-Bstatic'
7906     fi
7907     ;;
7908    
7909     amigaos*)
7910 michael 945 case $host_cpu in
7911     powerpc)
7912     # see comment about AmigaOS4 .so support
7913     lt_prog_compiler_pic='-fPIC'
7914     ;;
7915     m68k)
7916     # FIXME: we need at least 68020 code to build shared libraries, but
7917     # adding the `-m68020' flag to GCC prevents building anything better,
7918     # like `-m68040'.
7919     lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7920     ;;
7921     esac
7922 michael 912 ;;
7923    
7924     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7925     # PIC is the default for these OSes.
7926     ;;
7927    
7928 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
7929 michael 912 # This hack is so that the source file can tell whether it is being
7930     # built for inclusion in a dll (and should export symbols for example).
7931     # Although the cygwin gcc ignores -fPIC, still need this for old-style
7932     # (--disable-auto-import) libraries
7933     lt_prog_compiler_pic='-DDLL_EXPORT'
7934     ;;
7935    
7936     darwin* | rhapsody*)
7937     # PIC is the default on this platform
7938     # Common symbols not allowed in MH_DYLIB files
7939     lt_prog_compiler_pic='-fno-common'
7940     ;;
7941    
7942 michael 945 hpux*)
7943     # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7944     # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7945     # sets the default TLS model and affects inlining.
7946     case $host_cpu in
7947     hppa*64*)
7948     # +Z the default
7949     ;;
7950     *)
7951     lt_prog_compiler_pic='-fPIC'
7952     ;;
7953     esac
7954     ;;
7955    
7956 michael 912 interix[3-9]*)
7957     # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7958     # Instead, we relocate shared libraries at runtime.
7959     ;;
7960    
7961     msdosdjgpp*)
7962     # Just because we use GCC doesn't mean we suddenly get shared libraries
7963     # on systems that don't support them.
7964     lt_prog_compiler_can_build_shared=no
7965     enable_shared=no
7966     ;;
7967    
7968 michael 945 *nto* | *qnx*)
7969     # QNX uses GNU C++, but need to define -shared option too, otherwise
7970     # it will coredump.
7971     lt_prog_compiler_pic='-fPIC -shared'
7972     ;;
7973    
7974 michael 912 sysv4*MP*)
7975     if test -d /usr/nec; then
7976     lt_prog_compiler_pic=-Kconform_pic
7977     fi
7978     ;;
7979    
7980     *)
7981     lt_prog_compiler_pic='-fPIC'
7982     ;;
7983     esac
7984     else
7985     # PORTME Check for flag to pass linker flags through the system compiler.
7986     case $host_os in
7987     aix*)
7988     lt_prog_compiler_wl='-Wl,'
7989     if test "$host_cpu" = ia64; then
7990     # AIX 5 now supports IA64 processor
7991     lt_prog_compiler_static='-Bstatic'
7992     else
7993     lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7994     fi
7995     ;;
7996    
7997 michael 945 mingw* | cygwin* | pw32* | os2* | cegcc*)
7998 michael 912 # This hack is so that the source file can tell whether it is being
7999     # built for inclusion in a dll (and should export symbols for example).
8000     lt_prog_compiler_pic='-DDLL_EXPORT'
8001     ;;
8002    
8003     hpux9* | hpux10* | hpux11*)
8004     lt_prog_compiler_wl='-Wl,'
8005     # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8006     # not for PA HP-UX.
8007     case $host_cpu in
8008     hppa*64*|ia64*)
8009     # +Z the default
8010     ;;
8011     *)
8012     lt_prog_compiler_pic='+Z'
8013     ;;
8014     esac
8015     # Is there a better lt_prog_compiler_static that works with the bundled CC?
8016     lt_prog_compiler_static='${wl}-a ${wl}archive'
8017     ;;
8018    
8019     irix5* | irix6* | nonstopux*)
8020     lt_prog_compiler_wl='-Wl,'
8021     # PIC (with -KPIC) is the default.
8022     lt_prog_compiler_static='-non_shared'
8023     ;;
8024    
8025     linux* | k*bsd*-gnu)
8026     case $cc_basename in
8027 michael 945 # old Intel for x86_64 which still supported -KPIC.
8028     ecc*)
8029 michael 912 lt_prog_compiler_wl='-Wl,'
8030     lt_prog_compiler_pic='-KPIC'
8031     lt_prog_compiler_static='-static'
8032     ;;
8033 michael 945 # icc used to be incompatible with GCC.
8034     # ICC 10 doesn't accept -KPIC any more.
8035     icc* | ifort*)
8036     lt_prog_compiler_wl='-Wl,'
8037     lt_prog_compiler_pic='-fPIC'
8038     lt_prog_compiler_static='-static'
8039     ;;
8040     # Lahey Fortran 8.1.
8041     lf95*)
8042     lt_prog_compiler_wl='-Wl,'
8043     lt_prog_compiler_pic='--shared'
8044     lt_prog_compiler_static='--static'
8045     ;;
8046 michael 912 pgcc* | pgf77* | pgf90* | pgf95*)
8047     # Portland Group compilers (*not* the Pentium gcc compiler,
8048     # which looks to be a dead project)
8049     lt_prog_compiler_wl='-Wl,'
8050     lt_prog_compiler_pic='-fpic'
8051     lt_prog_compiler_static='-Bstatic'
8052     ;;
8053     ccc*)
8054     lt_prog_compiler_wl='-Wl,'
8055     # All Alpha code is PIC.
8056     lt_prog_compiler_static='-non_shared'
8057     ;;
8058 michael 945 xl*)
8059     # IBM XL C 8.0/Fortran 10.1 on PPC
8060     lt_prog_compiler_wl='-Wl,'
8061     lt_prog_compiler_pic='-qpic'
8062     lt_prog_compiler_static='-qstaticlink'
8063     ;;
8064 michael 912 *)
8065 michael 945 case `$CC -V 2>&1 | sed 5q` in
8066 michael 912 *Sun\ C*)
8067     # Sun C 5.9
8068     lt_prog_compiler_pic='-KPIC'
8069     lt_prog_compiler_static='-Bstatic'
8070     lt_prog_compiler_wl='-Wl,'
8071     ;;
8072     *Sun\ F*)
8073     # Sun Fortran 8.3 passes all unrecognized flags to the linker
8074     lt_prog_compiler_pic='-KPIC'
8075     lt_prog_compiler_static='-Bstatic'
8076     lt_prog_compiler_wl=''
8077     ;;
8078     esac
8079     ;;
8080     esac
8081     ;;
8082    
8083 michael 945 newsos6)
8084     lt_prog_compiler_pic='-KPIC'
8085     lt_prog_compiler_static='-Bstatic'
8086     ;;
8087    
8088     *nto* | *qnx*)
8089     # QNX uses GNU C++, but need to define -shared option too, otherwise
8090     # it will coredump.
8091     lt_prog_compiler_pic='-fPIC -shared'
8092     ;;
8093    
8094 michael 912 osf3* | osf4* | osf5*)
8095     lt_prog_compiler_wl='-Wl,'
8096     # All OSF/1 code is PIC.
8097     lt_prog_compiler_static='-non_shared'
8098     ;;
8099    
8100     rdos*)
8101     lt_prog_compiler_static='-non_shared'
8102     ;;
8103    
8104     solaris*)
8105     lt_prog_compiler_pic='-KPIC'
8106     lt_prog_compiler_static='-Bstatic'
8107     case $cc_basename in
8108     f77* | f90* | f95*)
8109     lt_prog_compiler_wl='-Qoption ld ';;
8110     *)
8111     lt_prog_compiler_wl='-Wl,';;
8112     esac
8113     ;;
8114    
8115     sunos4*)
8116     lt_prog_compiler_wl='-Qoption ld '
8117     lt_prog_compiler_pic='-PIC'
8118     lt_prog_compiler_static='-Bstatic'
8119     ;;
8120    
8121     sysv4 | sysv4.2uw2* | sysv4.3*)
8122     lt_prog_compiler_wl='-Wl,'
8123     lt_prog_compiler_pic='-KPIC'
8124     lt_prog_compiler_static='-Bstatic'
8125     ;;
8126    
8127     sysv4*MP*)
8128     if test -d /usr/nec ;then
8129     lt_prog_compiler_pic='-Kconform_pic'
8130     lt_prog_compiler_static='-Bstatic'
8131     fi
8132     ;;
8133    
8134     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8135     lt_prog_compiler_wl='-Wl,'
8136     lt_prog_compiler_pic='-KPIC'
8137     lt_prog_compiler_static='-Bstatic'
8138     ;;
8139    
8140     unicos*)
8141     lt_prog_compiler_wl='-Wl,'
8142     lt_prog_compiler_can_build_shared=no
8143     ;;
8144    
8145     uts4*)
8146     lt_prog_compiler_pic='-pic'
8147     lt_prog_compiler_static='-Bstatic'
8148     ;;
8149    
8150     *)
8151     lt_prog_compiler_can_build_shared=no
8152     ;;
8153     esac
8154     fi
8155    
8156 michael 945 case $host_os in
8157     # For platforms which do not support PIC, -DPIC is meaningless:
8158     *djgpp*)
8159     lt_prog_compiler_pic=
8160     ;;
8161     *)
8162     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8163     ;;
8164     esac
8165 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8166 db 941 $as_echo "$lt_prog_compiler_pic" >&6; }
8167 michael 912
8168 michael 945
8169    
8170    
8171    
8172    
8173 michael 912 #
8174     # Check to make sure the PIC flag actually works.
8175     #
8176     if test -n "$lt_prog_compiler_pic"; then
8177 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8178 db 941 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8179 michael 967 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8180 db 941 $as_echo_n "(cached) " >&6
8181 michael 912 else
8182 db 941 lt_cv_prog_compiler_pic_works=no
8183 michael 945 ac_outfile=conftest.$ac_objext
8184 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8185     lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8186     # Insert the option either (1) after the last *FLAGS variable, or
8187     # (2) before a word containing "conftest.", or (3) at the end.
8188     # Note that $ac_compile itself does not contain backslashes and begins
8189     # with a dollar sign (not a hyphen), so the echo should work correctly.
8190     # The option is referenced via a variable to avoid confusing sed.
8191     lt_compile=`echo "$ac_compile" | $SED \
8192     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8193     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8194     -e 's:$: $lt_compiler_flag:'`
8195 michael 982 (eval echo "\"\$as_me:8195: $lt_compile\"" >&5)
8196 michael 912 (eval "$lt_compile" 2>conftest.err)
8197     ac_status=$?
8198     cat conftest.err >&5
8199 michael 982 echo "$as_me:8199: \$? = $ac_status" >&5
8200 michael 912 if (exit $ac_status) && test -s "$ac_outfile"; then
8201     # The compiler can only warn and ignore the option if not recognized
8202     # So say no if there are warnings other than the usual output.
8203 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8204 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8205     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8206 db 941 lt_cv_prog_compiler_pic_works=yes
8207 michael 912 fi
8208     fi
8209 michael 945 $RM conftest*
8210 michael 912
8211     fi
8212 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8213 db 941 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8214 michael 912
8215 db 941 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8216 michael 912 case $lt_prog_compiler_pic in
8217     "" | " "*) ;;
8218     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8219     esac
8220     else
8221     lt_prog_compiler_pic=
8222     lt_prog_compiler_can_build_shared=no
8223     fi
8224    
8225     fi
8226    
8227 michael 945
8228    
8229    
8230    
8231    
8232 michael 912 #
8233     # Check to make sure the static flag actually works.
8234     #
8235     wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8236 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8237 db 941 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8238 michael 967 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8239 db 941 $as_echo_n "(cached) " >&6
8240 michael 912 else
8241 db 941 lt_cv_prog_compiler_static_works=no
8242 michael 912 save_LDFLAGS="$LDFLAGS"
8243     LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8244     echo "$lt_simple_link_test_code" > conftest.$ac_ext
8245     if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8246     # The linker can only warn and ignore the option if not recognized
8247     # So say no if there are warnings
8248     if test -s conftest.err; then
8249     # Append any errors to the config.log.
8250     cat conftest.err 1>&5
8251 michael 945 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8252 michael 912 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8253     if diff conftest.exp conftest.er2 >/dev/null; then
8254 db 941 lt_cv_prog_compiler_static_works=yes
8255 michael 912 fi
8256     else
8257 db 941 lt_cv_prog_compiler_static_works=yes
8258 michael 912 fi
8259     fi
8260 michael 945 $RM -r conftest*
8261 michael 912 LDFLAGS="$save_LDFLAGS"
8262    
8263     fi
8264 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8265 db 941 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8266 michael 912
8267 db 941 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8268 michael 912 :
8269     else
8270     lt_prog_compiler_static=
8271     fi
8272    
8273    
8274 michael 945
8275    
8276    
8277    
8278    
8279 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8280 db 941 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8281 michael 967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8282 db 941 $as_echo_n "(cached) " >&6
8283 michael 912 else
8284     lt_cv_prog_compiler_c_o=no
8285 michael 945 $RM -r conftest 2>/dev/null
8286 michael 912 mkdir conftest
8287     cd conftest
8288     mkdir out
8289     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8290    
8291     lt_compiler_flag="-o out/conftest2.$ac_objext"
8292     # Insert the option either (1) after the last *FLAGS variable, or
8293     # (2) before a word containing "conftest.", or (3) at the end.
8294     # Note that $ac_compile itself does not contain backslashes and begins
8295     # with a dollar sign (not a hyphen), so the echo should work correctly.
8296     lt_compile=`echo "$ac_compile" | $SED \
8297     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8298     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8299     -e 's:$: $lt_compiler_flag:'`
8300 michael 982 (eval echo "\"\$as_me:8300: $lt_compile\"" >&5)
8301 michael 912 (eval "$lt_compile" 2>out/conftest.err)
8302     ac_status=$?
8303     cat out/conftest.err >&5
8304 michael 982 echo "$as_me:8304: \$? = $ac_status" >&5
8305 michael 912 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8306     then
8307     # The compiler can only warn and ignore the option if not recognized
8308     # So say no if there are warnings
8309 michael 945 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8310 michael 912 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8311     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8312     lt_cv_prog_compiler_c_o=yes
8313     fi
8314     fi
8315     chmod u+w . 2>&5
8316 michael 945 $RM conftest*
8317 michael 912 # SGI C++ compiler will create directory out/ii_files/ for
8318     # template instantiation
8319 michael 945 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8320     $RM out/* && rmdir out
8321 michael 912 cd ..
8322 michael 945 $RM -r conftest
8323     $RM conftest*
8324 michael 912
8325     fi
8326 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8327 db 941 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8328 michael 912
8329    
8330 michael 945
8331    
8332    
8333    
8334 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8335 michael 945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8336 michael 967 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8337 michael 945 $as_echo_n "(cached) " >&6
8338     else
8339     lt_cv_prog_compiler_c_o=no
8340     $RM -r conftest 2>/dev/null
8341     mkdir conftest
8342     cd conftest
8343     mkdir out
8344     echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8345    
8346     lt_compiler_flag="-o out/conftest2.$ac_objext"
8347     # Insert the option either (1) after the last *FLAGS variable, or
8348     # (2) before a word containing "conftest.", or (3) at the end.
8349     # Note that $ac_compile itself does not contain backslashes and begins
8350     # with a dollar sign (not a hyphen), so the echo should work correctly.
8351     lt_compile=`echo "$ac_compile" | $SED \
8352     -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8353     -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8354     -e 's:$: $lt_compiler_flag:'`
8355 michael 982 (eval echo "\"\$as_me:8355: $lt_compile\"" >&5)
8356 michael 945 (eval "$lt_compile" 2>out/conftest.err)
8357     ac_status=$?
8358     cat out/conftest.err >&5
8359 michael 982 echo "$as_me:8359: \$? = $ac_status" >&5
8360 michael 945 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8361     then
8362     # The compiler can only warn and ignore the option if not recognized
8363     # So say no if there are warnings
8364     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8365     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8366     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8367     lt_cv_prog_compiler_c_o=yes
8368     fi
8369     fi
8370     chmod u+w . 2>&5
8371     $RM conftest*
8372     # SGI C++ compiler will create directory out/ii_files/ for
8373     # template instantiation
8374     test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8375     $RM out/* && rmdir out
8376     cd ..
8377     $RM -r conftest
8378     $RM conftest*
8379    
8380     fi
8381 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8382 michael 945 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8383    
8384    
8385    
8386    
8387 michael 912 hard_links="nottested"
8388     if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8389     # do not overwrite the value of need_locks provided by the user
8390 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8391 db 941 $as_echo_n "checking if we can lock with hard links... " >&6; }
8392 michael 912 hard_links=yes
8393 michael 945 $RM conftest*
8394 michael 912 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8395     touch conftest.a
8396     ln conftest.a conftest.b 2>&5 || hard_links=no
8397     ln conftest.a conftest.b 2>/dev/null && hard_links=no
8398 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8399 db 941 $as_echo "$hard_links" >&6; }
8400 michael 912 if test "$hard_links" = no; then
8401 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8402 db 941 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8403 michael 912 need_locks=warn
8404     fi
8405     else
8406     need_locks=no
8407     fi
8408    
8409 michael 945
8410    
8411    
8412    
8413    
8414 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8415 db 941 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8416 michael 912
8417     runpath_var=
8418     allow_undefined_flag=
8419 michael 945 always_export_symbols=no
8420 michael 912 archive_cmds=
8421     archive_expsym_cmds=
8422 michael 945 compiler_needs_object=no
8423     enable_shared_with_static_runtimes=no
8424 michael 912 export_dynamic_flag_spec=
8425 michael 945 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8426     hardcode_automatic=no
8427     hardcode_direct=no
8428     hardcode_direct_absolute=no
8429 michael 912 hardcode_libdir_flag_spec=
8430     hardcode_libdir_flag_spec_ld=
8431     hardcode_libdir_separator=
8432     hardcode_minus_L=no
8433     hardcode_shlibpath_var=unsupported
8434 michael 945 inherit_rpath=no
8435 michael 912 link_all_deplibs=unknown
8436     module_cmds=
8437     module_expsym_cmds=
8438 michael 945 old_archive_from_new_cmds=
8439     old_archive_from_expsyms_cmds=
8440     thread_safe_flag_spec=
8441     whole_archive_flag_spec=
8442 michael 912 # include_expsyms should be a list of space-separated symbols to be *always*
8443     # included in the symbol list
8444     include_expsyms=
8445     # exclude_expsyms can be an extended regexp of symbols to exclude
8446     # it will be wrapped by ` (' and `)$', so one must not match beginning or
8447     # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8448     # as well as any symbol that contains `d'.
8449 db 941 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8450 michael 912 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8451     # platforms (ab)use it in PIC code, but their linkers get confused if
8452     # the symbol is explicitly referenced. Since portable code cannot
8453     # rely on this symbol name, it's probably fine to never include it in
8454     # preloaded symbol tables.
8455 db 941 # Exclude shared library initialization/finalization symbols.
8456 michael 912 extract_expsyms_cmds=
8457    
8458     case $host_os in
8459 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8460 michael 912 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8461     # When not using gcc, we currently assume that we are using
8462     # Microsoft Visual C++.
8463     if test "$GCC" != yes; then
8464     with_gnu_ld=no
8465     fi
8466     ;;
8467     interix*)
8468     # we just hope/assume this is gcc and not c89 (= MSVC++)
8469     with_gnu_ld=yes
8470     ;;
8471     openbsd*)
8472     with_gnu_ld=no
8473     ;;
8474     esac
8475    
8476     ld_shlibs=yes
8477     if test "$with_gnu_ld" = yes; then
8478     # If archive_cmds runs LD, not CC, wlarc should be empty
8479     wlarc='${wl}'
8480    
8481     # Set some defaults for GNU ld with shared library support. These
8482     # are reset later if shared libraries are not supported. Putting them
8483     # here allows them to be overridden if necessary.
8484     runpath_var=LD_RUN_PATH
8485 michael 945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8486 michael 912 export_dynamic_flag_spec='${wl}--export-dynamic'
8487     # ancient GNU ld didn't support --whole-archive et. al.
8488 michael 945 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8489     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8490     else
8491     whole_archive_flag_spec=
8492 michael 912 fi
8493     supports_anon_versioning=no
8494 michael 945 case `$LD -v 2>&1` in
8495 michael 912 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8496     *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8497     *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8498     *\ 2.11.*) ;; # other 2.11 versions
8499     *) supports_anon_versioning=yes ;;
8500     esac
8501    
8502     # See if GNU ld supports shared libraries.
8503     case $host_os in
8504 db 941 aix[3-9]*)
8505 michael 912 # On AIX/PPC, the GNU linker is very broken
8506     if test "$host_cpu" != ia64; then
8507     ld_shlibs=no
8508 michael 945 cat <<_LT_EOF 1>&2
8509 michael 912
8510     *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8511     *** to be unable to reliably create shared libraries on AIX.
8512     *** Therefore, libtool is disabling shared libraries support. If you
8513     *** really care for shared libraries, you may want to modify your PATH
8514     *** so that a non-GNU linker is found, and then restart.
8515    
8516 michael 945 _LT_EOF
8517 michael 912 fi
8518     ;;
8519    
8520     amigaos*)
8521 michael 945 case $host_cpu in
8522     powerpc)
8523     # see comment about AmigaOS4 .so support
8524     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8525     archive_expsym_cmds=''
8526     ;;
8527     m68k)
8528     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)'
8529     hardcode_libdir_flag_spec='-L$libdir'
8530     hardcode_minus_L=yes
8531     ;;
8532     esac
8533 michael 912 ;;
8534    
8535     beos*)
8536 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8537 michael 912 allow_undefined_flag=unsupported
8538     # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8539     # support --undefined. This deserves some investigation. FIXME
8540     archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8541     else
8542     ld_shlibs=no
8543     fi
8544     ;;
8545    
8546 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8547     # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8548 michael 912 # as there is no search path for DLLs.
8549     hardcode_libdir_flag_spec='-L$libdir'
8550     allow_undefined_flag=unsupported
8551     always_export_symbols=no
8552     enable_shared_with_static_runtimes=yes
8553 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'
8554 michael 912
8555 michael 945 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8556 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8557     # If the export-symbols file already is a .def file (1st line
8558     # is EXPORTS), use it as is; otherwise, prepend...
8559     archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8560     cp $export_symbols $output_objdir/$soname.def;
8561     else
8562     echo EXPORTS > $output_objdir/$soname.def;
8563     cat $export_symbols >> $output_objdir/$soname.def;
8564     fi~
8565     $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8566     else
8567     ld_shlibs=no
8568     fi
8569     ;;
8570    
8571     interix[3-9]*)
8572     hardcode_direct=no
8573     hardcode_shlibpath_var=no
8574     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8575     export_dynamic_flag_spec='${wl}-E'
8576     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8577     # Instead, shared libraries are loaded at an image base (0x10000000 by
8578     # default) and relocated if they conflict, which is a slow very memory
8579     # consuming and fragmenting process. To avoid this, we pick a random,
8580     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8581     # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8582     archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8583     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'
8584     ;;
8585    
8586 michael 945 gnu* | linux* | tpf* | k*bsd*-gnu)
8587     tmp_diet=no
8588     if test "$host_os" = linux-dietlibc; then
8589     case $cc_basename in
8590     diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8591     esac
8592     fi
8593     if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8594     && test "$tmp_diet" = no
8595     then
8596 michael 912 tmp_addflag=
8597 michael 945 tmp_sharedflag='-shared'
8598 michael 912 case $cc_basename,$host_cpu in
8599 michael 945 pgcc*) # Portland Group C compiler
8600     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'
8601 michael 912 tmp_addflag=' $pic_flag'
8602     ;;
8603     pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8604 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'
8605 michael 912 tmp_addflag=' $pic_flag -Mnomain' ;;
8606 michael 945 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8607 michael 912 tmp_addflag=' -i_dynamic' ;;
8608     efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8609     tmp_addflag=' -i_dynamic -nofor_main' ;;
8610     ifc* | ifort*) # Intel Fortran compiler
8611     tmp_addflag=' -nofor_main' ;;
8612 michael 945 lf95*) # Lahey Fortran 8.1
8613     whole_archive_flag_spec=
8614     tmp_sharedflag='--shared' ;;
8615     xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8616     tmp_sharedflag='-qmkshrobj'
8617     tmp_addflag= ;;
8618 michael 912 esac
8619     case `$CC -V 2>&1 | sed 5q` in
8620     *Sun\ C*) # Sun C 5.9
8621 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'
8622     compiler_needs_object=yes
8623 michael 912 tmp_sharedflag='-G' ;;
8624     *Sun\ F*) # Sun Fortran 8.3
8625     tmp_sharedflag='-G' ;;
8626     esac
8627     archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8628    
8629 michael 945 if test "x$supports_anon_versioning" = xyes; then
8630     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8631     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8632     echo "local: *; };" >> $output_objdir/$libname.ver~
8633     $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8634     fi
8635    
8636     case $cc_basename in
8637     xlf*)
8638     # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8639     whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8640     hardcode_libdir_flag_spec=
8641     hardcode_libdir_flag_spec_ld='-rpath $libdir'
8642     archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8643     if test "x$supports_anon_versioning" = xyes; then
8644     archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8645     cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8646     echo "local: *; };" >> $output_objdir/$libname.ver~
8647     $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8648     fi
8649     ;;
8650     esac
8651 michael 912 else
8652 michael 945 ld_shlibs=no
8653 michael 912 fi
8654     ;;
8655    
8656     netbsd*)
8657 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8658 michael 912 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8659     wlarc=
8660     else
8661     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8662     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8663     fi
8664     ;;
8665    
8666     solaris*)
8667 michael 945 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8668 michael 912 ld_shlibs=no
8669 michael 945 cat <<_LT_EOF 1>&2
8670 michael 912
8671     *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8672     *** create shared libraries on Solaris systems. Therefore, libtool
8673     *** is disabling shared libraries support. We urge you to upgrade GNU
8674     *** binutils to release 2.9.1 or newer. Another option is to modify
8675     *** your PATH or compiler configuration so that the native linker is
8676     *** used, and then restart.
8677    
8678 michael 945 _LT_EOF
8679     elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8680 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8681     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8682     else
8683     ld_shlibs=no
8684     fi
8685     ;;
8686    
8687     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8688     case `$LD -v 2>&1` in
8689     *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8690     ld_shlibs=no
8691     cat <<_LT_EOF 1>&2
8692    
8693     *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8694     *** reliably create shared libraries on SCO systems. Therefore, libtool
8695     *** is disabling shared libraries support. We urge you to upgrade GNU
8696     *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8697     *** your PATH or compiler configuration so that the native linker is
8698     *** used, and then restart.
8699    
8700     _LT_EOF
8701     ;;
8702     *)
8703 michael 945 # For security reasons, it is highly recommended that you always
8704     # use absolute paths for naming shared libraries, and exclude the
8705     # DT_RUNPATH tag from executables and libraries. But doing so
8706     # requires that you compile everything twice, which is a pain.
8707     if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8708     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8709     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8710     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711 michael 912 else
8712     ld_shlibs=no
8713     fi
8714     ;;
8715     esac
8716     ;;
8717    
8718     sunos4*)
8719     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8720     wlarc=
8721     hardcode_direct=yes
8722     hardcode_shlibpath_var=no
8723     ;;
8724    
8725     *)
8726 michael 945 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8727 michael 912 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8728     archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8729     else
8730     ld_shlibs=no
8731     fi
8732     ;;
8733     esac
8734    
8735     if test "$ld_shlibs" = no; then
8736     runpath_var=
8737     hardcode_libdir_flag_spec=
8738     export_dynamic_flag_spec=
8739     whole_archive_flag_spec=
8740     fi
8741     else
8742     # PORTME fill in a description of your system's linker (not GNU ld)
8743     case $host_os in
8744     aix3*)
8745     allow_undefined_flag=unsupported
8746     always_export_symbols=yes
8747     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'
8748     # Note: this linker hardcodes the directories in LIBPATH if there
8749     # are no directories specified by -L.
8750     hardcode_minus_L=yes
8751     if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8752     # Neither direct hardcoding nor static linking is supported with a
8753     # broken collect2.
8754     hardcode_direct=unsupported
8755     fi
8756     ;;
8757    
8758 db 941 aix[4-9]*)
8759 michael 912 if test "$host_cpu" = ia64; then
8760     # On IA64, the linker does run time linking by default, so we don't
8761     # have to do anything special.
8762     aix_use_runtimelinking=no
8763     exp_sym_flag='-Bexport'
8764     no_entry_flag=""
8765     else
8766     # If we're using GNU nm, then we don't want the "-C" option.
8767     # -C means demangle to AIX nm, but means don't demangle with GNU nm
8768 michael 945 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8769     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'
8770 michael 912 else
8771 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'
8772 michael 912 fi
8773     aix_use_runtimelinking=no
8774    
8775     # Test if we are trying to use run time linking or normal
8776     # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8777     # need to do runtime linking.
8778 db 941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8779 michael 912 for ld_flag in $LDFLAGS; do
8780 michael 945 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8781     aix_use_runtimelinking=yes
8782     break
8783     fi
8784 michael 912 done
8785     ;;
8786     esac
8787    
8788     exp_sym_flag='-bexport'
8789     no_entry_flag='-bnoentry'
8790     fi
8791    
8792     # When large executables or shared objects are built, AIX ld can
8793     # have problems creating the table of contents. If linking a library
8794     # or program results in "error TOC overflow" add -mminimal-toc to
8795     # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8796     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8797    
8798     archive_cmds=''
8799     hardcode_direct=yes
8800 michael 945 hardcode_direct_absolute=yes
8801 michael 912 hardcode_libdir_separator=':'
8802     link_all_deplibs=yes
8803 michael 945 file_list_spec='${wl}-f,'
8804 michael 912
8805     if test "$GCC" = yes; then
8806     case $host_os in aix4.[012]|aix4.[012].*)
8807     # We only want to do this on AIX 4.2 and lower, the check
8808     # below for broken collect2 doesn't work under 4.3+
8809     collect2name=`${CC} -print-prog-name=collect2`
8810 michael 945 if test -f "$collect2name" &&
8811     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8812 michael 912 then
8813 michael 945 # We have reworked collect2
8814     :
8815 michael 912 else
8816 michael 945 # We have old collect2
8817     hardcode_direct=unsupported
8818     # It fails to find uninstalled libraries when the uninstalled
8819     # path is not listed in the libpath. Setting hardcode_minus_L
8820     # to unsupported forces relinking
8821     hardcode_minus_L=yes
8822     hardcode_libdir_flag_spec='-L$libdir'
8823     hardcode_libdir_separator=
8824 michael 912 fi
8825     ;;
8826     esac
8827     shared_flag='-shared'
8828     if test "$aix_use_runtimelinking" = yes; then
8829     shared_flag="$shared_flag "'${wl}-G'
8830     fi
8831 michael 945 link_all_deplibs=no
8832 michael 912 else
8833     # not using gcc
8834     if test "$host_cpu" = ia64; then
8835 michael 945 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8836     # chokes on -Wl,-G. The following line is correct:
8837 michael 912 shared_flag='-G'
8838     else
8839     if test "$aix_use_runtimelinking" = yes; then
8840     shared_flag='${wl}-G'
8841     else
8842     shared_flag='${wl}-bM:SRE'
8843     fi
8844     fi
8845     fi
8846    
8847 michael 945 export_dynamic_flag_spec='${wl}-bexpall'
8848 michael 912 # It seems that -bexpall does not export symbols beginning with
8849     # underscore (_), so it is better to generate a list of symbols to export.
8850     always_export_symbols=yes
8851     if test "$aix_use_runtimelinking" = yes; then
8852     # Warning - without using the other runtime loading flags (-brtl),
8853     # -berok will link without error, but may produce a broken library.
8854     allow_undefined_flag='-berok'
8855 michael 945 # Determine the default libpath from the value encoded in an
8856     # empty executable.
8857 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 michael 912 /* end confdefs.h. */
8859    
8860     int
8861     main ()
8862     {
8863    
8864     ;
8865     return 0;
8866     }
8867     _ACEOF
8868 michael 967 if ac_fn_c_try_link "$LINENO"; then :
8869 michael 912
8870     lt_aix_libpath_sed='
8871     /Import File Strings/,/^$/ {
8872     /^0/ {
8873     s/^0 *\(.*\)$/\1/
8874     p
8875     }
8876     }'
8877     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8878     # Check for a 64-bit object if we didn't find anything.
8879     if test -z "$aix_libpath"; then
8880     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8881     fi
8882     fi
8883 michael 967 rm -f core conftest.err conftest.$ac_objext \
8884     conftest$ac_exeext conftest.$ac_ext
8885 michael 912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8886    
8887 michael 945 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8888     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"
8889     else
8890 michael 912 if test "$host_cpu" = ia64; then
8891     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8892     allow_undefined_flag="-z nodefs"
8893     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"
8894     else
8895 michael 945 # Determine the default libpath from the value encoded in an
8896     # empty executable.
8897 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8898 michael 912 /* end confdefs.h. */
8899    
8900     int
8901     main ()
8902     {
8903    
8904     ;
8905     return 0;
8906     }
8907     _ACEOF
8908 michael 967 if ac_fn_c_try_link "$LINENO"; then :
8909 michael 912
8910     lt_aix_libpath_sed='
8911     /Import File Strings/,/^$/ {
8912     /^0/ {
8913     s/^0 *\(.*\)$/\1/
8914     p
8915     }
8916     }'
8917     aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8918     # Check for a 64-bit object if we didn't find anything.
8919     if test -z "$aix_libpath"; then
8920     aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8921     fi
8922     fi
8923 michael 967 rm -f core conftest.err conftest.$ac_objext \
8924     conftest$ac_exeext conftest.$ac_ext
8925 michael 912 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8926    
8927     hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8928     # Warning - without using the other run time loading flags,
8929     # -berok will link without error, but may produce a broken library.
8930     no_undefined_flag=' ${wl}-bernotok'
8931     allow_undefined_flag=' ${wl}-berok'
8932     # Exported symbols can be pulled into shared objects from archives
8933     whole_archive_flag_spec='$convenience'
8934     archive_cmds_need_lc=yes
8935     # This is similar to how AIX traditionally builds its shared libraries.
8936     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'
8937     fi
8938     fi
8939     ;;
8940    
8941     amigaos*)
8942 michael 945 case $host_cpu in
8943     powerpc)
8944     # see comment about AmigaOS4 .so support
8945     archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8946     archive_expsym_cmds=''
8947     ;;
8948     m68k)
8949     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)'
8950     hardcode_libdir_flag_spec='-L$libdir'
8951     hardcode_minus_L=yes
8952     ;;
8953     esac
8954 michael 912 ;;
8955    
8956     bsdi[45]*)
8957     export_dynamic_flag_spec=-rdynamic
8958     ;;
8959    
8960 michael 945 cygwin* | mingw* | pw32* | cegcc*)
8961 michael 912 # When not using gcc, we currently assume that we are using
8962     # Microsoft Visual C++.
8963     # hardcode_libdir_flag_spec is actually meaningless, as there is
8964     # no search path for DLLs.
8965     hardcode_libdir_flag_spec=' '
8966     allow_undefined_flag=unsupported
8967     # Tell ltmain to make .lib files, not .a files.
8968     libext=lib
8969     # Tell ltmain to make .dll files, not .so files.
8970     shrext_cmds=".dll"
8971     # FIXME: Setting linknames here is a bad hack.
8972 michael 945 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8973 michael 912 # The linker will automatically build a .lib file if we build a DLL.
8974 michael 945 old_archive_from_new_cmds='true'
8975 michael 912 # FIXME: Should let the user specify the lib program.
8976     old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8977     fix_srcfile_path='`cygpath -w "$srcfile"`'
8978     enable_shared_with_static_runtimes=yes
8979     ;;
8980    
8981     darwin* | rhapsody*)
8982 michael 945
8983    
8984     archive_cmds_need_lc=no
8985     hardcode_direct=no
8986     hardcode_automatic=yes
8987     hardcode_shlibpath_var=unsupported
8988     whole_archive_flag_spec=''
8989     link_all_deplibs=yes
8990     allow_undefined_flag="$_lt_dar_allow_undefined"
8991     case $cc_basename in
8992     ifort*) _lt_dar_can_shared=yes ;;
8993     *) _lt_dar_can_shared=$GCC ;;
8994     esac
8995     if test "$_lt_dar_can_shared" = "yes"; then
8996     output_verbose_link_cmd=echo
8997     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8998     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8999     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}"
9000     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}"
9001    
9002     else
9003     ld_shlibs=no
9004     fi
9005    
9006 michael 912 ;;
9007    
9008     dgux*)
9009     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9010     hardcode_libdir_flag_spec='-L$libdir'
9011     hardcode_shlibpath_var=no
9012     ;;
9013    
9014     freebsd1*)
9015     ld_shlibs=no
9016     ;;
9017    
9018     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9019     # support. Future versions do this automatically, but an explicit c++rt0.o
9020     # does not break anything, and helps significantly (at the cost of a little
9021     # extra space).
9022     freebsd2.2*)
9023     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9024     hardcode_libdir_flag_spec='-R$libdir'
9025     hardcode_direct=yes
9026     hardcode_shlibpath_var=no
9027     ;;
9028    
9029     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9030     freebsd2*)
9031     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9032     hardcode_direct=yes
9033     hardcode_minus_L=yes
9034     hardcode_shlibpath_var=no
9035     ;;
9036    
9037     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9038     freebsd* | dragonfly*)
9039     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9040     hardcode_libdir_flag_spec='-R$libdir'
9041     hardcode_direct=yes
9042     hardcode_shlibpath_var=no
9043     ;;
9044    
9045     hpux9*)
9046     if test "$GCC" = yes; then
9047 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'
9048 michael 912 else
9049 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'
9050 michael 912 fi
9051     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9052     hardcode_libdir_separator=:
9053     hardcode_direct=yes
9054    
9055     # hardcode_minus_L: Not really in the search PATH,
9056     # but as the default location of the library.
9057     hardcode_minus_L=yes
9058     export_dynamic_flag_spec='${wl}-E'
9059     ;;
9060    
9061     hpux10*)
9062     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9063     archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9064     else
9065     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9066     fi
9067     if test "$with_gnu_ld" = no; then
9068     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9069 michael 945 hardcode_libdir_flag_spec_ld='+b $libdir'
9070 michael 912 hardcode_libdir_separator=:
9071     hardcode_direct=yes
9072 michael 945 hardcode_direct_absolute=yes
9073 michael 912 export_dynamic_flag_spec='${wl}-E'
9074     # hardcode_minus_L: Not really in the search PATH,
9075     # but as the default location of the library.
9076     hardcode_minus_L=yes
9077     fi
9078     ;;
9079    
9080     hpux11*)
9081     if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9082     case $host_cpu in
9083     hppa*64*)
9084     archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9085     ;;
9086     ia64*)
9087 michael 945 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9088 michael 912 ;;
9089     *)
9090     archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9091     ;;
9092     esac
9093     else
9094     case $host_cpu in
9095     hppa*64*)
9096     archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9097     ;;
9098     ia64*)
9099     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9100     ;;
9101     *)
9102     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9103     ;;
9104     esac
9105     fi
9106     if test "$with_gnu_ld" = no; then
9107     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9108     hardcode_libdir_separator=:
9109    
9110     case $host_cpu in
9111     hppa*64*|ia64*)
9112     hardcode_direct=no
9113     hardcode_shlibpath_var=no
9114     ;;
9115     *)
9116     hardcode_direct=yes
9117 michael 945 hardcode_direct_absolute=yes
9118 michael 912 export_dynamic_flag_spec='${wl}-E'
9119    
9120     # hardcode_minus_L: Not really in the search PATH,
9121     # but as the default location of the library.
9122     hardcode_minus_L=yes
9123     ;;
9124     esac
9125     fi
9126     ;;
9127    
9128     irix5* | irix6* | nonstopux*)
9129     if test "$GCC" = yes; then
9130 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'
9131     # Try to use the -exported_symbol ld option, if it does not
9132     # work, assume that -exports_file does not work either and
9133     # implicitly export all symbols.
9134     save_LDFLAGS="$LDFLAGS"
9135     LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9136 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9137     /* end confdefs.h. */
9138 michael 945 int foo(void) {}
9139     _ACEOF
9140 michael 967 if ac_fn_c_try_link "$LINENO"; then :
9141 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'
9142    
9143     fi
9144 michael 967 rm -f core conftest.err conftest.$ac_objext \
9145     conftest$ac_exeext conftest.$ac_ext
9146 michael 945 LDFLAGS="$save_LDFLAGS"
9147 michael 912 else
9148 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'
9149     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'
9150 michael 912 fi
9151 michael 945 archive_cmds_need_lc='no'
9152 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9153     hardcode_libdir_separator=:
9154 michael 945 inherit_rpath=yes
9155 michael 912 link_all_deplibs=yes
9156     ;;
9157    
9158     netbsd*)
9159 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9160 michael 912 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9161     else
9162     archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9163     fi
9164     hardcode_libdir_flag_spec='-R$libdir'
9165     hardcode_direct=yes
9166     hardcode_shlibpath_var=no
9167     ;;
9168    
9169     newsos6)
9170     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9171     hardcode_direct=yes
9172     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9173     hardcode_libdir_separator=:
9174     hardcode_shlibpath_var=no
9175     ;;
9176    
9177 michael 945 *nto* | *qnx*)
9178     ;;
9179    
9180 michael 912 openbsd*)
9181     if test -f /usr/libexec/ld.so; then
9182     hardcode_direct=yes
9183     hardcode_shlibpath_var=no
9184 michael 945 hardcode_direct_absolute=yes
9185     if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9186 michael 912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9187     archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9188     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9189     export_dynamic_flag_spec='${wl}-E'
9190     else
9191     case $host_os in
9192     openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9193     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9194     hardcode_libdir_flag_spec='-R$libdir'
9195     ;;
9196     *)
9197     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9198     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9199     ;;
9200     esac
9201 michael 945 fi
9202 michael 912 else
9203     ld_shlibs=no
9204     fi
9205     ;;
9206    
9207     os2*)
9208     hardcode_libdir_flag_spec='-L$libdir'
9209     hardcode_minus_L=yes
9210     allow_undefined_flag=unsupported
9211 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'
9212     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9213 michael 912 ;;
9214    
9215     osf3*)
9216     if test "$GCC" = yes; then
9217     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9218 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'
9219 michael 912 else
9220     allow_undefined_flag=' -expect_unresolved \*'
9221 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'
9222 michael 912 fi
9223 michael 945 archive_cmds_need_lc='no'
9224 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9225     hardcode_libdir_separator=:
9226     ;;
9227    
9228     osf4* | osf5*) # as osf3* with the addition of -msym flag
9229     if test "$GCC" = yes; then
9230     allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9231 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'
9232 michael 912 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233     else
9234     allow_undefined_flag=' -expect_unresolved \*'
9235 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'
9236     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~
9237     $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'
9238 michael 912
9239     # Both c and cxx compiler support -rpath directly
9240     hardcode_libdir_flag_spec='-rpath $libdir'
9241     fi
9242 michael 945 archive_cmds_need_lc='no'
9243 michael 912 hardcode_libdir_separator=:
9244     ;;
9245    
9246     solaris*)
9247 michael 945 no_undefined_flag=' -z defs'
9248 michael 912 if test "$GCC" = yes; then
9249     wlarc='${wl}'
9250 michael 945 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9251     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9252     $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9253 michael 912 else
9254 michael 945 case `$CC -V 2>&1` in
9255     *"Compilers 5.0"*)
9256     wlarc=''
9257     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9258     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9259     $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9260     ;;
9261     *)
9262     wlarc='${wl}'
9263     archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9264     archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9265     $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9266     ;;
9267     esac
9268 michael 912 fi
9269     hardcode_libdir_flag_spec='-R$libdir'
9270     hardcode_shlibpath_var=no
9271     case $host_os in
9272     solaris2.[0-5] | solaris2.[0-5].*) ;;
9273     *)
9274     # The compiler driver will combine and reorder linker options,
9275     # but understands `-z linker_flag'. GCC discards it without `$wl',
9276     # but is careful enough not to reorder.
9277 michael 945 # Supported since Solaris 2.6 (maybe 2.5.1?)
9278 michael 912 if test "$GCC" = yes; then
9279     whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9280     else
9281     whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9282     fi
9283     ;;
9284     esac
9285     link_all_deplibs=yes
9286     ;;
9287    
9288     sunos4*)
9289     if test "x$host_vendor" = xsequent; then
9290     # Use $CC to link under sequent, because it throws in some extra .o
9291     # files that make .init and .fini sections work.
9292     archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9293     else
9294     archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9295     fi
9296     hardcode_libdir_flag_spec='-L$libdir'
9297     hardcode_direct=yes
9298     hardcode_minus_L=yes
9299     hardcode_shlibpath_var=no
9300     ;;
9301    
9302     sysv4)
9303     case $host_vendor in
9304     sni)
9305     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9306     hardcode_direct=yes # is this really true???
9307     ;;
9308     siemens)
9309     ## LD is ld it makes a PLAMLIB
9310     ## CC just makes a GrossModule.
9311     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9312     reload_cmds='$CC -r -o $output$reload_objs'
9313     hardcode_direct=no
9314     ;;
9315     motorola)
9316     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9317     hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9318     ;;
9319     esac
9320     runpath_var='LD_RUN_PATH'
9321     hardcode_shlibpath_var=no
9322     ;;
9323    
9324     sysv4.3*)
9325     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9326     hardcode_shlibpath_var=no
9327     export_dynamic_flag_spec='-Bexport'
9328     ;;
9329    
9330     sysv4*MP*)
9331     if test -d /usr/nec; then
9332     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333     hardcode_shlibpath_var=no
9334     runpath_var=LD_RUN_PATH
9335     hardcode_runpath_var=yes
9336     ld_shlibs=yes
9337     fi
9338     ;;
9339    
9340     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9341     no_undefined_flag='${wl}-z,text'
9342     archive_cmds_need_lc=no
9343     hardcode_shlibpath_var=no
9344     runpath_var='LD_RUN_PATH'
9345    
9346     if test "$GCC" = yes; then
9347     archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9348     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9349     else
9350     archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9352     fi
9353     ;;
9354    
9355     sysv5* | sco3.2v5* | sco5v6*)
9356     # Note: We can NOT use -z defs as we might desire, because we do not
9357     # link with -lc, and that would cause any symbols used from libc to
9358     # always be unresolved, which means just about no library would
9359     # ever link correctly. If we're not using GNU ld we use -z text
9360     # though, which does catch some bad symbols but isn't as heavy-handed
9361     # as -z defs.
9362     no_undefined_flag='${wl}-z,text'
9363     allow_undefined_flag='${wl}-z,nodefs'
9364     archive_cmds_need_lc=no
9365     hardcode_shlibpath_var=no
9366 michael 945 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9367 michael 912 hardcode_libdir_separator=':'
9368     link_all_deplibs=yes
9369     export_dynamic_flag_spec='${wl}-Bexport'
9370     runpath_var='LD_RUN_PATH'
9371    
9372     if test "$GCC" = yes; then
9373 michael 945 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9374     archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9375 michael 912 else
9376 michael 945 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377     archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9378 michael 912 fi
9379     ;;
9380    
9381     uts4*)
9382     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9383     hardcode_libdir_flag_spec='-L$libdir'
9384     hardcode_shlibpath_var=no
9385     ;;
9386    
9387     *)
9388     ld_shlibs=no
9389     ;;
9390     esac
9391 michael 945
9392     if test x$host_vendor = xsni; then
9393     case $host in
9394     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9395     export_dynamic_flag_spec='${wl}-Blargedynsym'
9396     ;;
9397     esac
9398     fi
9399 michael 912 fi
9400    
9401 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9402 db 941 $as_echo "$ld_shlibs" >&6; }
9403 michael 912 test "$ld_shlibs" = no && can_build_shared=no
9404    
9405 michael 945 with_gnu_ld=$with_gnu_ld
9406    
9407    
9408    
9409    
9410    
9411    
9412    
9413    
9414    
9415    
9416    
9417    
9418    
9419    
9420    
9421 michael 912 #
9422     # Do we need to explicitly link libc?
9423     #
9424     case "x$archive_cmds_need_lc" in
9425     x|xyes)
9426     # Assume -lc should be added
9427     archive_cmds_need_lc=yes
9428    
9429     if test "$enable_shared" = yes && test "$GCC" = yes; then
9430     case $archive_cmds in
9431     *'~'*)
9432     # FIXME: we may have to deal with multi-command sequences.
9433     ;;
9434     '$CC '*)
9435     # Test whether the compiler implicitly links with -lc since on some
9436     # systems, -lgcc has to come before -lc. If gcc already passes -lc
9437     # to ld, don't add -lc before -lgcc.
9438 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9439 db 941 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9440 michael 945 $RM conftest*
9441 michael 912 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9442    
9443 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9444 michael 912 (eval $ac_compile) 2>&5
9445     ac_status=$?
9446 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9447     test $ac_status = 0; } 2>conftest.err; then
9448 michael 912 soname=conftest
9449     lib=conftest
9450     libobjs=conftest.$ac_objext
9451     deplibs=
9452     wl=$lt_prog_compiler_wl
9453     pic_flag=$lt_prog_compiler_pic
9454     compiler_flags=-v
9455     linker_flags=-v
9456     verstring=
9457     output_objdir=.
9458     libname=conftest
9459     lt_save_allow_undefined_flag=$allow_undefined_flag
9460     allow_undefined_flag=
9461 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9462 michael 945 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9463 michael 912 ac_status=$?
9464 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9465     test $ac_status = 0; }
9466 michael 912 then
9467     archive_cmds_need_lc=no
9468     else
9469     archive_cmds_need_lc=yes
9470     fi
9471     allow_undefined_flag=$lt_save_allow_undefined_flag
9472     else
9473     cat conftest.err 1>&5
9474     fi
9475 michael 945 $RM conftest*
9476 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9477 db 941 $as_echo "$archive_cmds_need_lc" >&6; }
9478 michael 912 ;;
9479     esac
9480     fi
9481     ;;
9482     esac
9483    
9484 michael 945
9485    
9486    
9487    
9488    
9489    
9490    
9491    
9492    
9493    
9494    
9495    
9496    
9497    
9498    
9499    
9500    
9501    
9502    
9503    
9504    
9505    
9506    
9507    
9508    
9509    
9510    
9511    
9512    
9513    
9514    
9515    
9516    
9517    
9518    
9519    
9520    
9521    
9522    
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 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9641 db 941 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9642 michael 912
9643     if test "$GCC" = yes; then
9644     case $host_os in
9645     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9646     *) lt_awk_arg="/^libraries:/" ;;
9647     esac
9648     lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9649 michael 945 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9650 michael 912 # if the path contains ";" then we assume it to be the separator
9651     # otherwise default to the standard path separator (i.e. ":") - it is
9652     # assumed that no part of a normal pathname contains ";" but that should
9653     # okay in the real world where ";" in dirpaths is itself problematic.
9654 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9655 michael 912 else
9656 michael 945 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9657 michael 912 fi
9658     # Ok, now we have the path, separated by spaces, we can step through it
9659     # and add multilib dir if necessary.
9660     lt_tmp_lt_search_path_spec=
9661     lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9662     for lt_sys_path in $lt_search_path_spec; do
9663     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9664     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9665     else
9666     test -d "$lt_sys_path" && \
9667     lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9668     fi
9669     done
9670 michael 945 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9671 michael 912 BEGIN {RS=" "; FS="/|\n";} {
9672     lt_foo="";
9673     lt_count=0;
9674     for (lt_i = NF; lt_i > 0; lt_i--) {
9675     if ($lt_i != "" && $lt_i != ".") {
9676     if ($lt_i == "..") {
9677     lt_count++;
9678     } else {
9679     if (lt_count == 0) {
9680     lt_foo="/" $lt_i lt_foo;
9681     } else {
9682     lt_count--;
9683     }
9684     }
9685     }
9686     }
9687     if (lt_foo != "") { lt_freq[lt_foo]++; }
9688     if (lt_freq[lt_foo] == 1) { print lt_foo; }
9689     }'`
9690 michael 945 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9691 michael 912 else
9692     sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9693     fi
9694 michael 945 library_names_spec=
9695     libname_spec='lib$name'
9696     soname_spec=
9697     shrext_cmds=".so"
9698     postinstall_cmds=
9699     postuninstall_cmds=
9700     finish_cmds=
9701     finish_eval=
9702     shlibpath_var=
9703     shlibpath_overrides_runpath=unknown
9704     version_type=none
9705     dynamic_linker="$host_os ld.so"
9706     sys_lib_dlsearch_path_spec="/lib /usr/lib"
9707 michael 912 need_lib_prefix=unknown
9708     hardcode_into_libs=no
9709    
9710     # when you set need_version to no, make sure it does not cause -set_version
9711     # flags to be left without arguments
9712     need_version=unknown
9713    
9714     case $host_os in
9715     aix3*)
9716     version_type=linux
9717     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9718     shlibpath_var=LIBPATH
9719    
9720     # AIX 3 has no versioning support, so we append a major version to the name.
9721     soname_spec='${libname}${release}${shared_ext}$major'
9722     ;;
9723    
9724 db 941 aix[4-9]*)
9725 michael 912 version_type=linux
9726     need_lib_prefix=no
9727     need_version=no
9728     hardcode_into_libs=yes
9729     if test "$host_cpu" = ia64; then
9730     # AIX 5 supports IA64
9731     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9732     shlibpath_var=LD_LIBRARY_PATH
9733     else
9734     # With GCC up to 2.95.x, collect2 would create an import file
9735     # for dependence libraries. The import file would start with
9736     # the line `#! .'. This would cause the generated library to
9737     # depend on `.', always an invalid library. This was fixed in
9738     # development snapshots of GCC prior to 3.0.
9739     case $host_os in
9740     aix4 | aix4.[01] | aix4.[01].*)
9741     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9742     echo ' yes '
9743 michael 945 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9744 michael 912 :
9745     else
9746     can_build_shared=no
9747     fi
9748     ;;
9749     esac
9750     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9751     # soname into executable. Probably we can add versioning support to
9752     # collect2, so additional links can be useful in future.
9753     if test "$aix_use_runtimelinking" = yes; then
9754     # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9755     # instead of lib<name>.a to let people know that these are not
9756     # typical AIX shared libraries.
9757     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9758     else
9759     # We preserve .a as extension for shared libraries through AIX4.2
9760     # and later when we are not doing run time linking.
9761     library_names_spec='${libname}${release}.a $libname.a'
9762     soname_spec='${libname}${release}${shared_ext}$major'
9763     fi
9764     shlibpath_var=LIBPATH
9765     fi
9766     ;;
9767    
9768     amigaos*)
9769 michael 945 case $host_cpu in
9770     powerpc)
9771     # Since July 2007 AmigaOS4 officially supports .so libraries.
9772     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9773     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9774     ;;
9775     m68k)
9776     library_names_spec='$libname.ixlibrary $libname.a'
9777     # Create ${libname}_ixlibrary.a entries in /sys/libs.
9778     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'
9779     ;;
9780     esac
9781 michael 912 ;;
9782    
9783     beos*)
9784     library_names_spec='${libname}${shared_ext}'
9785     dynamic_linker="$host_os ld.so"
9786     shlibpath_var=LIBRARY_PATH
9787     ;;
9788    
9789     bsdi[45]*)
9790     version_type=linux
9791     need_version=no
9792     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793     soname_spec='${libname}${release}${shared_ext}$major'
9794     finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9795     shlibpath_var=LD_LIBRARY_PATH
9796     sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9797     sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9798     # the default ld.so.conf also contains /usr/contrib/lib and
9799     # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9800     # libtool to hard-code these into programs
9801     ;;
9802    
9803 michael 945 cygwin* | mingw* | pw32* | cegcc*)
9804 michael 912 version_type=windows
9805     shrext_cmds=".dll"
9806     need_version=no
9807     need_lib_prefix=no
9808    
9809     case $GCC,$host_os in
9810 michael 945 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9811 michael 912 library_names_spec='$libname.dll.a'
9812     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9813     postinstall_cmds='base_file=`basename \${file}`~
9814 michael 945 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9815 michael 912 dldir=$destdir/`dirname \$dlpath`~
9816     test -d \$dldir || mkdir -p \$dldir~
9817     $install_prog $dir/$dlname \$dldir/$dlname~
9818 michael 945 chmod a+x \$dldir/$dlname~
9819     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9820     eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9821     fi'
9822 michael 912 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9823     dlpath=$dir/\$dldll~
9824 michael 945 $RM \$dlpath'
9825 michael 912 shlibpath_overrides_runpath=yes
9826    
9827     case $host_os in
9828     cygwin*)
9829     # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9830     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9831     sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9832     ;;
9833 michael 945 mingw* | cegcc*)
9834 michael 912 # MinGW DLLs use traditional 'lib' prefix
9835     soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9836 michael 945 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9837     if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9838 michael 912 # It is most probably a Windows format PATH printed by
9839     # mingw gcc, but we are running on Cygwin. Gcc prints its search
9840     # path with ; separators, and with drive letters. We can handle the
9841     # drive letters (cygwin fileutils understands them), so leave them,
9842     # especially as we might pass files found there to a mingw objdump,
9843     # which wouldn't understand a cygwinified path. Ahh.
9844 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9845 michael 912 else
9846 michael 945 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9847 michael 912 fi
9848     ;;
9849     pw32*)
9850     # pw32 DLLs use 'pw' prefix rather than 'lib'
9851     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9852     ;;
9853     esac
9854     ;;
9855    
9856     *)
9857     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9858     ;;
9859     esac
9860     dynamic_linker='Win32 ld.exe'
9861     # FIXME: first we should search . and the directory the executable is in
9862     shlibpath_var=PATH
9863     ;;
9864    
9865     darwin* | rhapsody*)
9866     dynamic_linker="$host_os dyld"
9867     version_type=darwin
9868     need_lib_prefix=no
9869     need_version=no
9870 michael 945 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9871 michael 912 soname_spec='${libname}${release}${major}$shared_ext'
9872     shlibpath_overrides_runpath=yes
9873     shlibpath_var=DYLD_LIBRARY_PATH
9874     shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9875    
9876     sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9877     sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9878     ;;
9879    
9880     dgux*)
9881     version_type=linux
9882     need_lib_prefix=no
9883     need_version=no
9884     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9885     soname_spec='${libname}${release}${shared_ext}$major'
9886     shlibpath_var=LD_LIBRARY_PATH
9887     ;;
9888    
9889     freebsd1*)
9890     dynamic_linker=no
9891     ;;
9892    
9893     freebsd* | dragonfly*)
9894     # DragonFly does not have aout. When/if they implement a new
9895     # versioning mechanism, adjust this.
9896     if test -x /usr/bin/objformat; then
9897     objformat=`/usr/bin/objformat`
9898     else
9899     case $host_os in
9900     freebsd[123]*) objformat=aout ;;
9901     *) objformat=elf ;;
9902     esac
9903     fi
9904     version_type=freebsd-$objformat
9905     case $version_type in
9906     freebsd-elf*)
9907     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9908     need_version=no
9909     need_lib_prefix=no
9910     ;;
9911     freebsd-*)
9912     library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9913     need_version=yes
9914     ;;
9915     esac
9916     shlibpath_var=LD_LIBRARY_PATH
9917     case $host_os in
9918     freebsd2*)
9919     shlibpath_overrides_runpath=yes
9920     ;;
9921     freebsd3.[01]* | freebsdelf3.[01]*)
9922     shlibpath_overrides_runpath=yes
9923     hardcode_into_libs=yes
9924     ;;
9925     freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9926     freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9927     shlibpath_overrides_runpath=no
9928     hardcode_into_libs=yes
9929     ;;
9930     *) # from 4.6 on, and DragonFly
9931     shlibpath_overrides_runpath=yes
9932     hardcode_into_libs=yes
9933     ;;
9934     esac
9935     ;;
9936    
9937     gnu*)
9938     version_type=linux
9939     need_lib_prefix=no
9940     need_version=no
9941     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9942     soname_spec='${libname}${release}${shared_ext}$major'
9943     shlibpath_var=LD_LIBRARY_PATH
9944     hardcode_into_libs=yes
9945     ;;
9946    
9947     hpux9* | hpux10* | hpux11*)
9948     # Give a soname corresponding to the major version so that dld.sl refuses to
9949     # link against other versions.
9950     version_type=sunos
9951     need_lib_prefix=no
9952     need_version=no
9953     case $host_cpu in
9954     ia64*)
9955     shrext_cmds='.so'
9956     hardcode_into_libs=yes
9957     dynamic_linker="$host_os dld.so"
9958     shlibpath_var=LD_LIBRARY_PATH
9959     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9960     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9961     soname_spec='${libname}${release}${shared_ext}$major'
9962     if test "X$HPUX_IA64_MODE" = X32; then
9963     sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9964     else
9965     sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9966     fi
9967     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9968     ;;
9969 michael 945 hppa*64*)
9970 michael 912 shrext_cmds='.sl'
9971 michael 945 hardcode_into_libs=yes
9972 michael 912 dynamic_linker="$host_os dld.sl"
9973 michael 945 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9974     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9975     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976     soname_spec='${libname}${release}${shared_ext}$major'
9977     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9978     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9979     ;;
9980     *)
9981     shrext_cmds='.sl'
9982     dynamic_linker="$host_os dld.sl"
9983 michael 912 shlibpath_var=SHLIB_PATH
9984     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9986     soname_spec='${libname}${release}${shared_ext}$major'
9987     ;;
9988     esac
9989     # HP-UX runs *really* slowly unless shared libraries are mode 555.
9990     postinstall_cmds='chmod 555 $lib'
9991     ;;
9992    
9993     interix[3-9]*)
9994     version_type=linux
9995     need_lib_prefix=no
9996     need_version=no
9997     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9998     soname_spec='${libname}${release}${shared_ext}$major'
9999     dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10000     shlibpath_var=LD_LIBRARY_PATH
10001     shlibpath_overrides_runpath=no
10002     hardcode_into_libs=yes
10003     ;;
10004    
10005     irix5* | irix6* | nonstopux*)
10006     case $host_os in
10007     nonstopux*) version_type=nonstopux ;;
10008     *)
10009     if test "$lt_cv_prog_gnu_ld" = yes; then
10010     version_type=linux
10011     else
10012     version_type=irix
10013     fi ;;
10014     esac
10015     need_lib_prefix=no
10016     need_version=no
10017     soname_spec='${libname}${release}${shared_ext}$major'
10018     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10019     case $host_os in
10020     irix5* | nonstopux*)
10021     libsuff= shlibsuff=
10022     ;;
10023     *)
10024     case $LD in # libtool.m4 will add one of these switches to LD
10025     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10026     libsuff= shlibsuff= libmagic=32-bit;;
10027     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10028     libsuff=32 shlibsuff=N32 libmagic=N32;;
10029     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10030     libsuff=64 shlibsuff=64 libmagic=64-bit;;
10031     *) libsuff= shlibsuff= libmagic=never-match;;
10032     esac
10033     ;;
10034     esac
10035     shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10036     shlibpath_overrides_runpath=no
10037     sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10038     sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10039     hardcode_into_libs=yes
10040     ;;
10041    
10042     # No shared lib support for Linux oldld, aout, or coff.
10043     linux*oldld* | linux*aout* | linux*coff*)
10044     dynamic_linker=no
10045     ;;
10046    
10047     # This must be Linux ELF.
10048     linux* | k*bsd*-gnu)
10049     version_type=linux
10050     need_lib_prefix=no
10051     need_version=no
10052     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10053     soname_spec='${libname}${release}${shared_ext}$major'
10054     finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10055     shlibpath_var=LD_LIBRARY_PATH
10056     shlibpath_overrides_runpath=no
10057 michael 945 # Some binutils ld are patched to set DT_RUNPATH
10058     save_LDFLAGS=$LDFLAGS
10059     save_libdir=$libdir
10060     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10061     LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10062 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10063 michael 945 /* end confdefs.h. */
10064    
10065     int
10066     main ()
10067     {
10068    
10069     ;
10070     return 0;
10071     }
10072     _ACEOF
10073 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10074     if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10075 michael 945 shlibpath_overrides_runpath=yes
10076     fi
10077     fi
10078 michael 967 rm -f core conftest.err conftest.$ac_objext \
10079     conftest$ac_exeext conftest.$ac_ext
10080 michael 945 LDFLAGS=$save_LDFLAGS
10081     libdir=$save_libdir
10082    
10083 michael 912 # This implies no fast_install, which is unacceptable.
10084     # Some rework will be needed to allow for fast_install
10085     # before this can be enabled.
10086     hardcode_into_libs=yes
10087    
10088 michael 945 # find out which ABI we are using
10089     libsuff=
10090     case "$host_cpu" in
10091     x86_64*|s390x*|powerpc64*)
10092 michael 982 echo '#line 10092 "configure"' > conftest.$ac_ext
10093 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10094 michael 945 (eval $ac_compile) 2>&5
10095     ac_status=$?
10096 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10097     test $ac_status = 0; }; then
10098 michael 945 case `/usr/bin/file conftest.$ac_objext` in
10099     *64-bit*)
10100     libsuff=64
10101     ;;
10102     esac
10103     fi
10104     rm -rf conftest*
10105     ;;
10106     esac
10107    
10108     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
10109    
10110 michael 912 # Append ld.so.conf contents to the search path
10111     if test -f /etc/ld.so.conf; then
10112 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' ' '`
10113     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10114 michael 912 fi
10115    
10116     # We used to test for /lib/ld.so.1 and disable shared libraries on
10117     # powerpc, because MkLinux only supported shared libraries with the
10118     # GNU dynamic linker. Since this was broken with cross compilers,
10119     # most powerpc-linux boxes support dynamic linking these days and
10120     # people can always --disable-shared, the test was removed, and we
10121     # assume the GNU/Linux dynamic linker is in use.
10122     dynamic_linker='GNU/Linux ld.so'
10123     ;;
10124    
10125     netbsd*)
10126     version_type=sunos
10127     need_lib_prefix=no
10128     need_version=no
10129 michael 945 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10130 michael 912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10131     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10132     dynamic_linker='NetBSD (a.out) ld.so'
10133     else
10134     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10135     soname_spec='${libname}${release}${shared_ext}$major'
10136     dynamic_linker='NetBSD ld.elf_so'
10137     fi
10138     shlibpath_var=LD_LIBRARY_PATH
10139     shlibpath_overrides_runpath=yes
10140     hardcode_into_libs=yes
10141     ;;
10142    
10143     newsos6)
10144     version_type=linux
10145     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146     shlibpath_var=LD_LIBRARY_PATH
10147     shlibpath_overrides_runpath=yes
10148     ;;
10149    
10150 michael 945 *nto* | *qnx*)
10151     version_type=qnx
10152 michael 912 need_lib_prefix=no
10153     need_version=no
10154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155     soname_spec='${libname}${release}${shared_ext}$major'
10156     shlibpath_var=LD_LIBRARY_PATH
10157 michael 945 shlibpath_overrides_runpath=no
10158     hardcode_into_libs=yes
10159     dynamic_linker='ldqnx.so'
10160 michael 912 ;;
10161    
10162     openbsd*)
10163     version_type=sunos
10164     sys_lib_dlsearch_path_spec="/usr/lib"
10165     need_lib_prefix=no
10166     # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10167     case $host_os in
10168 michael 945 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10169     *) need_version=no ;;
10170 michael 912 esac
10171     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10172     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10173     shlibpath_var=LD_LIBRARY_PATH
10174 michael 945 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10175 michael 912 case $host_os in
10176     openbsd2.[89] | openbsd2.[89].*)
10177     shlibpath_overrides_runpath=no
10178     ;;
10179     *)
10180     shlibpath_overrides_runpath=yes
10181     ;;
10182     esac
10183     else
10184     shlibpath_overrides_runpath=yes
10185     fi
10186     ;;
10187    
10188     os2*)
10189     libname_spec='$name'
10190     shrext_cmds=".dll"
10191     need_lib_prefix=no
10192     library_names_spec='$libname${shared_ext} $libname.a'
10193     dynamic_linker='OS/2 ld.exe'
10194     shlibpath_var=LIBPATH
10195     ;;
10196    
10197     osf3* | osf4* | osf5*)
10198     version_type=osf
10199     need_lib_prefix=no
10200     need_version=no
10201     soname_spec='${libname}${release}${shared_ext}$major'
10202     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203     shlibpath_var=LD_LIBRARY_PATH
10204     sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10205     sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10206     ;;
10207    
10208     rdos*)
10209     dynamic_linker=no
10210     ;;
10211    
10212     solaris*)
10213     version_type=linux
10214     need_lib_prefix=no
10215     need_version=no
10216     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10217     soname_spec='${libname}${release}${shared_ext}$major'
10218     shlibpath_var=LD_LIBRARY_PATH
10219     shlibpath_overrides_runpath=yes
10220     hardcode_into_libs=yes
10221     # ldd complains unless libraries are executable
10222     postinstall_cmds='chmod +x $lib'
10223     ;;
10224    
10225     sunos4*)
10226     version_type=sunos
10227     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10228     finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10229     shlibpath_var=LD_LIBRARY_PATH
10230     shlibpath_overrides_runpath=yes
10231     if test "$with_gnu_ld" = yes; then
10232     need_lib_prefix=no
10233     fi
10234     need_version=yes
10235     ;;
10236    
10237     sysv4 | sysv4.3*)
10238     version_type=linux
10239     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10240     soname_spec='${libname}${release}${shared_ext}$major'
10241     shlibpath_var=LD_LIBRARY_PATH
10242     case $host_vendor in
10243     sni)
10244     shlibpath_overrides_runpath=no
10245     need_lib_prefix=no
10246     runpath_var=LD_RUN_PATH
10247     ;;
10248     siemens)
10249     need_lib_prefix=no
10250     ;;
10251     motorola)
10252     need_lib_prefix=no
10253     need_version=no
10254     shlibpath_overrides_runpath=no
10255     sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10256     ;;
10257     esac
10258     ;;
10259    
10260     sysv4*MP*)
10261     if test -d /usr/nec ;then
10262     version_type=linux
10263     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10264     soname_spec='$libname${shared_ext}.$major'
10265     shlibpath_var=LD_LIBRARY_PATH
10266     fi
10267     ;;
10268    
10269     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10270     version_type=freebsd-elf
10271     need_lib_prefix=no
10272     need_version=no
10273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10274     soname_spec='${libname}${release}${shared_ext}$major'
10275     shlibpath_var=LD_LIBRARY_PATH
10276 michael 945 shlibpath_overrides_runpath=yes
10277 michael 912 hardcode_into_libs=yes
10278     if test "$with_gnu_ld" = yes; then
10279     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10280     else
10281     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10282     case $host_os in
10283     sco3.2v5*)
10284     sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10285     ;;
10286     esac
10287     fi
10288     sys_lib_dlsearch_path_spec='/usr/lib'
10289     ;;
10290    
10291 michael 945 tpf*)
10292     # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10293     version_type=linux
10294     need_lib_prefix=no
10295     need_version=no
10296     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297     shlibpath_var=LD_LIBRARY_PATH
10298     shlibpath_overrides_runpath=no
10299     hardcode_into_libs=yes
10300     ;;
10301    
10302 michael 912 uts4*)
10303     version_type=linux
10304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10305     soname_spec='${libname}${release}${shared_ext}$major'
10306     shlibpath_var=LD_LIBRARY_PATH
10307     ;;
10308    
10309     *)
10310     dynamic_linker=no
10311     ;;
10312     esac
10313 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10314 db 941 $as_echo "$dynamic_linker" >&6; }
10315 michael 912 test "$dynamic_linker" = no && can_build_shared=no
10316    
10317 michael 945 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10318     if test "$GCC" = yes; then
10319     variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10320     fi
10321    
10322 db 941 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10323 michael 945 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10324 db 941 fi
10325     if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10326 michael 945 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10327 db 941 fi
10328    
10329    
10330 michael 912
10331 michael 945
10332    
10333    
10334    
10335    
10336    
10337    
10338    
10339    
10340    
10341    
10342    
10343    
10344    
10345    
10346    
10347    
10348    
10349    
10350    
10351    
10352    
10353    
10354    
10355    
10356    
10357    
10358    
10359    
10360    
10361    
10362    
10363    
10364    
10365    
10366    
10367    
10368    
10369    
10370    
10371    
10372    
10373    
10374    
10375    
10376    
10377    
10378    
10379    
10380    
10381    
10382    
10383    
10384    
10385    
10386    
10387    
10388    
10389    
10390    
10391    
10392    
10393    
10394    
10395    
10396    
10397    
10398    
10399    
10400    
10401    
10402    
10403    
10404    
10405    
10406    
10407    
10408    
10409    
10410    
10411    
10412    
10413    
10414    
10415 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10416 db 941 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10417 michael 912 hardcode_action=
10418 michael 945 if test -n "$hardcode_libdir_flag_spec" ||
10419     test -n "$runpath_var" ||
10420 michael 912 test "X$hardcode_automatic" = "Xyes" ; then
10421    
10422 michael 945 # We can hardcode non-existent directories.
10423 michael 912 if test "$hardcode_direct" != no &&
10424     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10425     # have to relink, otherwise we might link with an installed library
10426     # when we should be linking with a yet-to-be-installed one
10427 michael 945 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10428 michael 912 test "$hardcode_minus_L" != no; then
10429     # Linking always hardcodes the temporary library directory.
10430     hardcode_action=relink
10431     else
10432     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10433     hardcode_action=immediate
10434     fi
10435     else
10436     # We cannot hardcode anything, or else we can only hardcode existing
10437     # directories.
10438     hardcode_action=unsupported
10439     fi
10440 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10441 db 941 $as_echo "$hardcode_action" >&6; }
10442 michael 912
10443 michael 945 if test "$hardcode_action" = relink ||
10444     test "$inherit_rpath" = yes; then
10445 michael 912 # Fast installation is not supported
10446     enable_fast_install=no
10447     elif test "$shlibpath_overrides_runpath" = yes ||
10448     test "$enable_shared" = no; then
10449     # Fast installation is not necessary
10450     enable_fast_install=needless
10451     fi
10452    
10453    
10454 michael 945
10455    
10456    
10457    
10458     if test "x$enable_dlopen" != xyes; then
10459 michael 912 enable_dlopen=unknown
10460     enable_dlopen_self=unknown
10461     enable_dlopen_self_static=unknown
10462     else
10463     lt_cv_dlopen=no
10464     lt_cv_dlopen_libs=
10465    
10466     case $host_os in
10467     beos*)
10468     lt_cv_dlopen="load_add_on"
10469     lt_cv_dlopen_libs=
10470     lt_cv_dlopen_self=yes
10471     ;;
10472    
10473 michael 945 mingw* | pw32* | cegcc*)
10474 michael 912 lt_cv_dlopen="LoadLibrary"
10475     lt_cv_dlopen_libs=
10476 michael 945 ;;
10477 michael 912
10478     cygwin*)
10479     lt_cv_dlopen="dlopen"
10480     lt_cv_dlopen_libs=
10481 michael 945 ;;
10482 michael 912
10483     darwin*)
10484     # if libdl is installed we need to link against it
10485 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10486 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10487 michael 967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10488 db 941 $as_echo_n "(cached) " >&6
10489 michael 912 else
10490     ac_check_lib_save_LIBS=$LIBS
10491     LIBS="-ldl $LIBS"
10492 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 michael 912 /* end confdefs.h. */
10494    
10495     /* Override any GCC internal prototype to avoid an error.
10496     Use char because int might match the return type of a GCC
10497     builtin and then its argument prototype would still apply. */
10498     #ifdef __cplusplus
10499     extern "C"
10500     #endif
10501     char dlopen ();
10502     int
10503     main ()
10504     {
10505     return dlopen ();
10506     ;
10507     return 0;
10508     }
10509     _ACEOF
10510 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10511 michael 912 ac_cv_lib_dl_dlopen=yes
10512     else
10513 michael 967 ac_cv_lib_dl_dlopen=no
10514 michael 912 fi
10515 michael 967 rm -f core conftest.err conftest.$ac_objext \
10516     conftest$ac_exeext conftest.$ac_ext
10517 michael 912 LIBS=$ac_check_lib_save_LIBS
10518     fi
10519 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10520 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10521 michael 967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10522 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10523     else
10524    
10525     lt_cv_dlopen="dyld"
10526     lt_cv_dlopen_libs=
10527     lt_cv_dlopen_self=yes
10528    
10529     fi
10530    
10531 michael 945 ;;
10532 michael 912
10533     *)
10534 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10535     if test "x$ac_cv_func_shl_load" = x""yes; then :
10536 michael 912 lt_cv_dlopen="shl_load"
10537     else
10538 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10539 db 941 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10540 michael 967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10541 db 941 $as_echo_n "(cached) " >&6
10542 michael 912 else
10543     ac_check_lib_save_LIBS=$LIBS
10544     LIBS="-ldld $LIBS"
10545 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10546 michael 912 /* end confdefs.h. */
10547    
10548     /* Override any GCC internal prototype to avoid an error.
10549     Use char because int might match the return type of a GCC
10550     builtin and then its argument prototype would still apply. */
10551     #ifdef __cplusplus
10552     extern "C"
10553     #endif
10554     char shl_load ();
10555     int
10556     main ()
10557     {
10558     return shl_load ();
10559     ;
10560     return 0;
10561     }
10562     _ACEOF
10563 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10564 michael 912 ac_cv_lib_dld_shl_load=yes
10565     else
10566 michael 967 ac_cv_lib_dld_shl_load=no
10567 michael 912 fi
10568 michael 967 rm -f core conftest.err conftest.$ac_objext \
10569     conftest$ac_exeext conftest.$ac_ext
10570 michael 912 LIBS=$ac_check_lib_save_LIBS
10571     fi
10572 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10573 db 941 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10574 michael 967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10575 db 941 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10576 michael 912 else
10577 michael 967 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10578     if test "x$ac_cv_func_dlopen" = x""yes; then :
10579 michael 912 lt_cv_dlopen="dlopen"
10580     else
10581 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10582 db 941 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10583 michael 967 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10584 db 941 $as_echo_n "(cached) " >&6
10585 michael 912 else
10586     ac_check_lib_save_LIBS=$LIBS
10587     LIBS="-ldl $LIBS"
10588 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 michael 912 /* end confdefs.h. */
10590    
10591     /* Override any GCC internal prototype to avoid an error.
10592     Use char because int might match the return type of a GCC
10593     builtin and then its argument prototype would still apply. */
10594     #ifdef __cplusplus
10595     extern "C"
10596     #endif
10597     char dlopen ();
10598     int
10599     main ()
10600     {
10601     return dlopen ();
10602     ;
10603     return 0;
10604     }
10605     _ACEOF
10606 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10607 michael 912 ac_cv_lib_dl_dlopen=yes
10608     else
10609 michael 967 ac_cv_lib_dl_dlopen=no
10610 michael 912 fi
10611 michael 967 rm -f core conftest.err conftest.$ac_objext \
10612     conftest$ac_exeext conftest.$ac_ext
10613 michael 912 LIBS=$ac_check_lib_save_LIBS
10614     fi
10615 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10616 db 941 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10617 michael 967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10618 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10619     else
10620 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10621 db 941 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10622 michael 967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10623 db 941 $as_echo_n "(cached) " >&6
10624 michael 912 else
10625     ac_check_lib_save_LIBS=$LIBS
10626     LIBS="-lsvld $LIBS"
10627 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10628 michael 912 /* end confdefs.h. */
10629    
10630     /* Override any GCC internal prototype to avoid an error.
10631     Use char because int might match the return type of a GCC
10632     builtin and then its argument prototype would still apply. */
10633     #ifdef __cplusplus
10634     extern "C"
10635     #endif
10636     char dlopen ();
10637     int
10638     main ()
10639     {
10640     return dlopen ();
10641     ;
10642     return 0;
10643     }
10644     _ACEOF
10645 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10646 michael 912 ac_cv_lib_svld_dlopen=yes
10647     else
10648 michael 967 ac_cv_lib_svld_dlopen=no
10649 michael 912 fi
10650 michael 967 rm -f core conftest.err conftest.$ac_objext \
10651     conftest$ac_exeext conftest.$ac_ext
10652 michael 912 LIBS=$ac_check_lib_save_LIBS
10653     fi
10654 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10655 db 941 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10656 michael 967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10657 michael 912 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10658     else
10659 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10660 db 941 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10661 michael 967 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10662 db 941 $as_echo_n "(cached) " >&6
10663 michael 912 else
10664     ac_check_lib_save_LIBS=$LIBS
10665     LIBS="-ldld $LIBS"
10666 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 michael 912 /* end confdefs.h. */
10668    
10669     /* Override any GCC internal prototype to avoid an error.
10670     Use char because int might match the return type of a GCC
10671     builtin and then its argument prototype would still apply. */
10672     #ifdef __cplusplus
10673     extern "C"
10674     #endif
10675     char dld_link ();
10676     int
10677     main ()
10678     {
10679     return dld_link ();
10680     ;
10681     return 0;
10682     }
10683     _ACEOF
10684 michael 967 if ac_fn_c_try_link "$LINENO"; then :
10685 michael 912 ac_cv_lib_dld_dld_link=yes
10686     else
10687 michael 967 ac_cv_lib_dld_dld_link=no
10688 michael 912 fi
10689 michael 967 rm -f core conftest.err conftest.$ac_objext \
10690     conftest$ac_exeext conftest.$ac_ext
10691 michael 912 LIBS=$ac_check_lib_save_LIBS
10692     fi
10693 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10694 db 941 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10695 michael 967 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10696 db 941 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10697 michael 912 fi
10698    
10699    
10700     fi
10701    
10702    
10703     fi
10704    
10705    
10706     fi
10707    
10708    
10709     fi
10710    
10711    
10712     fi
10713    
10714     ;;
10715     esac
10716    
10717     if test "x$lt_cv_dlopen" != xno; then
10718     enable_dlopen=yes
10719     else
10720     enable_dlopen=no
10721     fi
10722    
10723     case $lt_cv_dlopen in
10724     dlopen)
10725     save_CPPFLAGS="$CPPFLAGS"
10726     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10727    
10728     save_LDFLAGS="$LDFLAGS"
10729     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10730    
10731     save_LIBS="$LIBS"
10732     LIBS="$lt_cv_dlopen_libs $LIBS"
10733    
10734 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10735 db 941 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10736 michael 967 if test "${lt_cv_dlopen_self+set}" = set; then :
10737 db 941 $as_echo_n "(cached) " >&6
10738 michael 912 else
10739     if test "$cross_compiling" = yes; then :
10740     lt_cv_dlopen_self=cross
10741     else
10742     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10743     lt_status=$lt_dlunknown
10744 michael 945 cat > conftest.$ac_ext <<_LT_EOF
10745 michael 982 #line 10745 "configure"
10746 michael 912 #include "confdefs.h"
10747    
10748     #if HAVE_DLFCN_H
10749     #include <dlfcn.h>
10750     #endif
10751    
10752     #include <stdio.h>
10753    
10754     #ifdef RTLD_GLOBAL
10755     # define LT_DLGLOBAL RTLD_GLOBAL
10756     #else
10757     # ifdef DL_GLOBAL
10758     # define LT_DLGLOBAL DL_GLOBAL
10759     # else
10760     # define LT_DLGLOBAL 0
10761     # endif
10762     #endif
10763    
10764     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10765     find out it does not work in some platform. */
10766     #ifndef LT_DLLAZY_OR_NOW
10767     # ifdef RTLD_LAZY
10768     # define LT_DLLAZY_OR_NOW RTLD_LAZY
10769     # else
10770     # ifdef DL_LAZY
10771     # define LT_DLLAZY_OR_NOW DL_LAZY
10772     # else
10773     # ifdef RTLD_NOW
10774     # define LT_DLLAZY_OR_NOW RTLD_NOW
10775     # else
10776     # ifdef DL_NOW
10777     # define LT_DLLAZY_OR_NOW DL_NOW
10778     # else
10779     # define LT_DLLAZY_OR_NOW 0
10780     # endif
10781     # endif
10782     # endif
10783     # endif
10784     #endif
10785    
10786     void fnord() { int i=42;}
10787     int main ()
10788     {
10789     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10790     int status = $lt_dlunknown;
10791    
10792     if (self)
10793     {
10794     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10795     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10796     /* dlclose (self); */
10797     }
10798     else
10799     puts (dlerror ());
10800    
10801 michael 945 return status;
10802 michael 912 }
10803 michael 945 _LT_EOF
10804 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10805 michael 912 (eval $ac_link) 2>&5
10806     ac_status=$?
10807 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10808     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10809 michael 912 (./conftest; exit; ) >&5 2>/dev/null
10810     lt_status=$?
10811     case x$lt_status in
10812     x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10813     x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10814     x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10815     esac
10816     else :
10817     # compilation failed
10818     lt_cv_dlopen_self=no
10819     fi
10820     fi
10821     rm -fr conftest*
10822    
10823    
10824     fi
10825 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10826 db 941 $as_echo "$lt_cv_dlopen_self" >&6; }
10827 michael 912
10828     if test "x$lt_cv_dlopen_self" = xyes; then
10829     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10830 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10831 db 941 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10832 michael 967 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10833 db 941 $as_echo_n "(cached) " >&6
10834 michael 912 else
10835     if test "$cross_compiling" = yes; then :
10836     lt_cv_dlopen_self_static=cross
10837     else
10838     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10839     lt_status=$lt_dlunknown
10840 michael 945 cat > conftest.$ac_ext <<_LT_EOF
10841 michael 982 #line 10841 "configure"
10842 michael 912 #include "confdefs.h"
10843    
10844     #if HAVE_DLFCN_H
10845     #include <dlfcn.h>
10846     #endif
10847    
10848     #include <stdio.h>
10849    
10850     #ifdef RTLD_GLOBAL
10851     # define LT_DLGLOBAL RTLD_GLOBAL
10852     #else
10853     # ifdef DL_GLOBAL
10854     # define LT_DLGLOBAL DL_GLOBAL
10855     # else
10856     # define LT_DLGLOBAL 0
10857     # endif
10858     #endif
10859    
10860     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10861     find out it does not work in some platform. */
10862     #ifndef LT_DLLAZY_OR_NOW
10863     # ifdef RTLD_LAZY
10864     # define LT_DLLAZY_OR_NOW RTLD_LAZY
10865     # else
10866     # ifdef DL_LAZY
10867     # define LT_DLLAZY_OR_NOW DL_LAZY
10868     # else
10869     # ifdef RTLD_NOW
10870     # define LT_DLLAZY_OR_NOW RTLD_NOW
10871     # else
10872     # ifdef DL_NOW
10873     # define LT_DLLAZY_OR_NOW DL_NOW
10874     # else
10875     # define LT_DLLAZY_OR_NOW 0
10876     # endif
10877     # endif
10878     # endif
10879     # endif
10880     #endif
10881    
10882     void fnord() { int i=42;}
10883     int main ()
10884     {
10885     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10886     int status = $lt_dlunknown;
10887    
10888     if (self)
10889     {
10890     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10891     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10892     /* dlclose (self); */
10893     }
10894     else
10895     puts (dlerror ());
10896    
10897 michael 945 return status;
10898 michael 912 }
10899 michael 945 _LT_EOF
10900 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10901 michael 912 (eval $ac_link) 2>&5
10902     ac_status=$?
10903 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10904     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10905 michael 912 (./conftest; exit; ) >&5 2>/dev/null
10906     lt_status=$?
10907     case x$lt_status in
10908     x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10909     x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10910     x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10911     esac
10912     else :
10913     # compilation failed
10914     lt_cv_dlopen_self_static=no
10915     fi
10916     fi
10917     rm -fr conftest*
10918    
10919    
10920     fi
10921 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10922 db 941 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10923 michael 912 fi
10924    
10925     CPPFLAGS="$save_CPPFLAGS"
10926     LDFLAGS="$save_LDFLAGS"
10927     LIBS="$save_LIBS"
10928     ;;
10929     esac
10930    
10931     case $lt_cv_dlopen_self in
10932     yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10933     *) enable_dlopen_self=unknown ;;
10934     esac
10935    
10936     case $lt_cv_dlopen_self_static in
10937     yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10938     *) enable_dlopen_self_static=unknown ;;
10939     esac
10940     fi
10941    
10942    
10943    
10944    
10945    
10946    
10947    
10948    
10949    
10950    
10951    
10952    
10953    
10954    
10955    
10956    
10957    
10958 michael 945 striplib=
10959     old_striplib=
10960 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10961 michael 945 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10962     if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10963     test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10964     test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10965 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10966 michael 945 $as_echo "yes" >&6; }
10967     else
10968     # FIXME - insert some real tests, host_os isn't really good enough
10969     case $host_os in
10970     darwin*)
10971     if test -n "$STRIP" ; then
10972     striplib="$STRIP -x"
10973     old_striplib="$STRIP -S"
10974 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10975 michael 945 $as_echo "yes" >&6; }
10976     else
10977 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10978 michael 945 $as_echo "no" >&6; }
10979     fi
10980     ;;
10981     *)
10982 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10983 michael 945 $as_echo "no" >&6; }
10984     ;;
10985     esac
10986     fi
10987 michael 912
10988    
10989    
10990    
10991    
10992    
10993    
10994    
10995    
10996    
10997    
10998    
10999 michael 945 # Report which library types will actually be built
11000 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11001 michael 945 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11002 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11003 michael 945 $as_echo "$can_build_shared" >&6; }
11004 michael 912
11005 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11006 michael 945 $as_echo_n "checking whether to build shared libraries... " >&6; }
11007     test "$can_build_shared" = "no" && enable_shared=no
11008 michael 912
11009 michael 945 # On AIX, shared libraries and static libraries use the same namespace, and
11010     # are all built from PIC.
11011 michael 912 case $host_os in
11012     aix3*)
11013 michael 945 test "$enable_shared" = yes && enable_static=no
11014     if test -n "$RANLIB"; then
11015     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11016     postinstall_cmds='$RANLIB $lib'
11017     fi
11018     ;;
11019 michael 912
11020 michael 945 aix[4-9]*)
11021     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11022     test "$enable_shared" = yes && enable_static=no
11023     fi
11024 michael 912 ;;
11025     esac
11026 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11027 michael 945 $as_echo "$enable_shared" >&6; }
11028 michael 912
11029 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11030 michael 945 $as_echo_n "checking whether to build static libraries... " >&6; }
11031     # Make sure either enable_shared or enable_static is yes.
11032     test "$enable_shared" = yes || enable_static=yes
11033 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11034 michael 945 $as_echo "$enable_static" >&6; }
11035 michael 912
11036    
11037    
11038    
11039 michael 945 fi
11040 michael 912 ac_ext=c
11041     ac_cpp='$CPP $CPPFLAGS'
11042     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11043     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11044     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11045    
11046     CC="$lt_save_CC"
11047    
11048    
11049    
11050    
11051    
11052    
11053    
11054    
11055    
11056    
11057    
11058    
11059    
11060 michael 945 ac_config_commands="$ac_config_commands libtool"
11061 michael 912
11062    
11063    
11064    
11065 michael 945 # Only expand once:
11066 michael 912
11067    
11068 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11069 michael 945 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11070 michael 967 if test "${libltdl_cv_shlibext+set}" = set; then :
11071 michael 945 $as_echo_n "(cached) " >&6
11072 michael 912 else
11073    
11074 michael 945 module=yes
11075     eval libltdl_cv_shlibext=$shrext_cmds
11076 michael 912
11077     fi
11078 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11079 michael 945 $as_echo "$libltdl_cv_shlibext" >&6; }
11080     if test -n "$libltdl_cv_shlibext"; then
11081 michael 912
11082 michael 945 cat >>confdefs.h <<_ACEOF
11083     #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11084     _ACEOF
11085 michael 912
11086     fi
11087    
11088 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11089 michael 945 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11090 michael 967 if test "${lt_cv_module_path_var+set}" = set; then :
11091 db 941 $as_echo_n "(cached) " >&6
11092 michael 912 else
11093 michael 945 lt_cv_module_path_var="$shlibpath_var"
11094 michael 912 fi
11095 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11096 michael 945 $as_echo "$lt_cv_module_path_var" >&6; }
11097     if test -n "$lt_cv_module_path_var"; then
11098    
11099     cat >>confdefs.h <<_ACEOF
11100     #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11101     _ACEOF
11102    
11103 michael 912 fi
11104    
11105 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11106 michael 945 $as_echo_n "checking for the default library search path... " >&6; }
11107 michael 967 if test "${lt_cv_sys_dlsearch_path+set}" = set; then :
11108 db 941 $as_echo_n "(cached) " >&6
11109 michael 912 else
11110 michael 945 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
11111 michael 912 fi
11112 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
11113 michael 945 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
11114     if test -n "$lt_cv_sys_dlsearch_path"; then
11115     sys_dlsearch_path=
11116     for dir in $lt_cv_sys_dlsearch_path; do
11117     if test -z "$sys_dlsearch_path"; then
11118     sys_dlsearch_path="$dir"
11119 michael 912 else
11120 michael 945 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
11121 michael 912 fi
11122 michael 945 done
11123 michael 912
11124 michael 945 cat >>confdefs.h <<_ACEOF
11125     #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
11126     _ACEOF
11127 michael 912
11128     fi
11129    
11130    
11131 michael 945 LT_DLLOADERS=
11132 michael 912
11133    
11134 michael 945 ac_ext=c
11135     ac_cpp='$CPP $CPPFLAGS'
11136     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11137     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11138     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11139 michael 912
11140    
11141 michael 945 LIBADD_DLOPEN=
11142 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
11143 michael 945 $as_echo_n "checking for library containing dlopen... " >&6; }
11144 michael 967 if test "${ac_cv_search_dlopen+set}" = set; then :
11145 michael 945 $as_echo_n "(cached) " >&6
11146     else
11147     ac_func_search_save_LIBS=$LIBS
11148 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 michael 912 /* end confdefs.h. */
11150    
11151 michael 945 /* Override any GCC internal prototype to avoid an error.
11152     Use char because int might match the return type of a GCC
11153     builtin and then its argument prototype would still apply. */
11154     #ifdef __cplusplus
11155     extern "C"
11156     #endif
11157     char dlopen ();
11158 michael 912 int
11159     main ()
11160     {
11161 michael 945 return dlopen ();
11162 michael 912 ;
11163     return 0;
11164     }
11165     _ACEOF
11166 michael 945 for ac_lib in '' dl; do
11167     if test -z "$ac_lib"; then
11168     ac_res="none required"
11169     else
11170     ac_res=-l$ac_lib
11171     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11172     fi
11173 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11174 michael 945 ac_cv_search_dlopen=$ac_res
11175 michael 912 fi
11176 michael 967 rm -f core conftest.err conftest.$ac_objext \
11177     conftest$ac_exeext
11178     if test "${ac_cv_search_dlopen+set}" = set; then :
11179 michael 945 break
11180     fi
11181     done
11182 michael 967 if test "${ac_cv_search_dlopen+set}" = set; then :
11183    
11184 michael 945 else
11185     ac_cv_search_dlopen=no
11186     fi
11187     rm conftest.$ac_ext
11188     LIBS=$ac_func_search_save_LIBS
11189     fi
11190 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
11191 michael 945 $as_echo "$ac_cv_search_dlopen" >&6; }
11192     ac_res=$ac_cv_search_dlopen
11193 michael 967 if test "$ac_res" != no; then :
11194 michael 945 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11195 michael 912
11196 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11197 michael 912
11198 michael 945 if test "$ac_cv_search_dlopen" != "none required" ; then
11199     LIBADD_DLOPEN="-ldl"
11200     fi
11201     libltdl_cv_lib_dl_dlopen="yes"
11202     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11203     else
11204 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205 michael 912 /* end confdefs.h. */
11206 michael 945 #if HAVE_DLFCN_H
11207     # include <dlfcn.h>
11208     #endif
11209 michael 912
11210     int
11211     main ()
11212     {
11213 michael 945 dlopen(0, 0);
11214 michael 912 ;
11215     return 0;
11216     }
11217     _ACEOF
11218 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11219 michael 912
11220 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11221 michael 945
11222     libltdl_cv_func_dlopen="yes"
11223     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11224 michael 912 else
11225 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11226 michael 945 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11227 michael 967 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11228 michael 945 $as_echo_n "(cached) " >&6
11229     else
11230     ac_check_lib_save_LIBS=$LIBS
11231     LIBS="-lsvld $LIBS"
11232 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11233 michael 945 /* end confdefs.h. */
11234 michael 912
11235 michael 945 /* Override any GCC internal prototype to avoid an error.
11236     Use char because int might match the return type of a GCC
11237     builtin and then its argument prototype would still apply. */
11238     #ifdef __cplusplus
11239     extern "C"
11240     #endif
11241     char dlopen ();
11242     int
11243     main ()
11244     {
11245     return dlopen ();
11246     ;
11247     return 0;
11248     }
11249     _ACEOF
11250 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11251 michael 945 ac_cv_lib_svld_dlopen=yes
11252 michael 912 else
11253 michael 967 ac_cv_lib_svld_dlopen=no
11254 db 941 fi
11255 michael 967 rm -f core conftest.err conftest.$ac_objext \
11256     conftest$ac_exeext conftest.$ac_ext
11257 michael 945 LIBS=$ac_check_lib_save_LIBS
11258 michael 912 fi
11259 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11260 michael 945 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11261 michael 967 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11262 michael 912
11263 michael 967 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
11264 michael 912
11265 michael 945 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
11266     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
11267 michael 912 fi
11268    
11269     fi
11270 michael 967 rm -f core conftest.err conftest.$ac_objext \
11271     conftest$ac_exeext conftest.$ac_ext
11272 michael 912 fi
11273    
11274 michael 945 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11275     then
11276     lt_save_LIBS="$LIBS"
11277     LIBS="$LIBS $LIBADD_DLOPEN"
11278 michael 967 for ac_func in dlerror
11279     do :
11280     ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
11281     if test "x$ac_cv_func_dlerror" = x""yes; then :
11282 michael 945 cat >>confdefs.h <<_ACEOF
11283 michael 967 #define HAVE_DLERROR 1
11284 michael 945 _ACEOF
11285 michael 912
11286     fi
11287 michael 945 done
11288 michael 912
11289 michael 945 LIBS="$lt_save_LIBS"
11290 michael 912 fi
11291    
11292    
11293 michael 945 LIBADD_SHL_LOAD=
11294 michael 967 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11295     if test "x$ac_cv_func_shl_load" = x""yes; then :
11296 michael 912
11297 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11298 michael 912
11299 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11300 michael 912 else
11301 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11302 michael 945 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11303 michael 967 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11304 db 941 $as_echo_n "(cached) " >&6
11305 michael 912 else
11306 michael 945 ac_check_lib_save_LIBS=$LIBS
11307     LIBS="-ldld $LIBS"
11308 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 michael 945 /* end confdefs.h. */
11310 michael 912
11311 michael 945 /* Override any GCC internal prototype to avoid an error.
11312     Use char because int might match the return type of a GCC
11313     builtin and then its argument prototype would still apply. */
11314     #ifdef __cplusplus
11315     extern "C"
11316     #endif
11317     char shl_load ();
11318     int
11319     main ()
11320     {
11321     return shl_load ();
11322     ;
11323     return 0;
11324     }
11325 michael 912 _ACEOF
11326 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11327 michael 945 ac_cv_lib_dld_shl_load=yes
11328 michael 912 else
11329 michael 967 ac_cv_lib_dld_shl_load=no
11330 michael 912 fi
11331 michael 967 rm -f core conftest.err conftest.$ac_objext \
11332     conftest$ac_exeext conftest.$ac_ext
11333 michael 945 LIBS=$ac_check_lib_save_LIBS
11334     fi
11335 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11336 michael 945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11337 michael 967 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11338 michael 912
11339 michael 967 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
11340 michael 912
11341 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
11342     LIBADD_SHL_LOAD="-ldld"
11343     fi
11344    
11345     fi
11346    
11347    
11348    
11349     case $host_os in
11350     darwin[1567].*)
11351     # We only want this for pre-Mac OS X 10.4.
11352 michael 967 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
11353     if test "x$ac_cv_func__dyld_func_lookup" = x""yes; then :
11354 michael 945
11355 michael 967 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
11356 michael 945
11357     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
11358     fi
11359 michael 912
11360 michael 945 ;;
11361     beos*)
11362     LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
11363     ;;
11364     cygwin* | mingw* | os2* | pw32*)
11365 michael 967 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
11366     "
11367     if test "x$ac_cv_have_decl_cygwin_conv_path" = x""yes; then :
11368     ac_have_decl=1
11369 michael 945 else
11370 michael 967 ac_have_decl=0
11371 michael 945 fi
11372 michael 912
11373 michael 945 cat >>confdefs.h <<_ACEOF
11374 michael 967 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
11375 michael 945 _ACEOF
11376 michael 912
11377 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
11378     ;;
11379     esac
11380 michael 912
11381 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11382 michael 945 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11383 michael 967 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11384 michael 945 $as_echo_n "(cached) " >&6
11385     else
11386     ac_check_lib_save_LIBS=$LIBS
11387     LIBS="-ldld $LIBS"
11388 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11389 michael 945 /* end confdefs.h. */
11390 michael 912
11391 michael 945 /* Override any GCC internal prototype to avoid an error.
11392     Use char because int might match the return type of a GCC
11393     builtin and then its argument prototype would still apply. */
11394     #ifdef __cplusplus
11395     extern "C"
11396     #endif
11397     char dld_link ();
11398     int
11399     main ()
11400     {
11401     return dld_link ();
11402     ;
11403     return 0;
11404     }
11405     _ACEOF
11406 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11407 michael 945 ac_cv_lib_dld_dld_link=yes
11408     else
11409 michael 967 ac_cv_lib_dld_dld_link=no
11410 michael 945 fi
11411 michael 967 rm -f core conftest.err conftest.$ac_objext \
11412     conftest$ac_exeext conftest.$ac_ext
11413 michael 945 LIBS=$ac_check_lib_save_LIBS
11414     fi
11415 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11416 michael 945 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11417 michael 967 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11418 michael 912
11419 michael 967 $as_echo "#define HAVE_DLD 1" >>confdefs.h
11420 michael 912
11421 michael 945 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
11422     fi
11423 michael 912
11424    
11425    
11426    
11427 michael 945 LT_DLPREOPEN=
11428     if test -n "$LT_DLLOADERS"
11429     then
11430     for lt_loader in $LT_DLLOADERS; do
11431     LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
11432     done
11433 michael 912
11434 michael 967 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
11435 michael 912
11436 michael 945 fi
11437 michael 912
11438    
11439 michael 945 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
11440 michael 912
11441    
11442 michael 945 ac_ext=c
11443     ac_cpp='$CPP $CPPFLAGS'
11444     ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11445     ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11446     ac_compiler_gnu=$ac_cv_c_compiler_gnu
11447 michael 912
11448    
11449 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
11450 michael 945 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
11451 michael 967 if test "${lt_cv_sys_symbol_underscore+set}" = set; then :
11452 michael 945 $as_echo_n "(cached) " >&6
11453     else
11454     lt_cv_sys_symbol_underscore=no
11455     cat > conftest.$ac_ext <<_LT_EOF
11456     void nm_test_func(){}
11457     int main(){nm_test_func;return 0;}
11458     _LT_EOF
11459 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11460 michael 912 (eval $ac_compile) 2>&5
11461     ac_status=$?
11462 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11463     test $ac_status = 0; }; then
11464 michael 945 # Now try to grab the symbols.
11465     ac_nlist=conftest.nm
11466 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
11467 michael 945 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11468 michael 912 ac_status=$?
11469 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11470     test $ac_status = 0; } && test -s "$ac_nlist"; then
11471 michael 945 # See whether the symbols have a leading underscore.
11472     if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11473     lt_cv_sys_symbol_underscore=yes
11474     else
11475     if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11476     :
11477 michael 912 else
11478 michael 945 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11479 michael 912 fi
11480     fi
11481 michael 945 else
11482     echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11483     fi
11484     else
11485     echo "configure: failed program was:" >&5
11486     cat conftest.c >&5
11487 michael 912 fi
11488 michael 945 rm -rf conftest*
11489 michael 912
11490 michael 945 fi
11491 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
11492 michael 945 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
11493     sys_symbol_underscore=$lt_cv_sys_symbol_underscore
11494 michael 912
11495    
11496 michael 945 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
11497     if test x"$libltdl_cv_func_dlopen" = xyes ||
11498     test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11499 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
11500 michael 945 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
11501 michael 967 if test "${libltdl_cv_need_uscore+set}" = set; then :
11502 michael 945 $as_echo_n "(cached) " >&6
11503     else
11504     libltdl_cv_need_uscore=unknown
11505     save_LIBS="$LIBS"
11506     LIBS="$LIBS $LIBADD_DLOPEN"
11507     if test "$cross_compiling" = yes; then :
11508     libltdl_cv_need_uscore=cross
11509     else
11510     lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11511     lt_status=$lt_dlunknown
11512     cat > conftest.$ac_ext <<_LT_EOF
11513 michael 982 #line 11513 "configure"
11514 michael 945 #include "confdefs.h"
11515 michael 912
11516 michael 945 #if HAVE_DLFCN_H
11517     #include <dlfcn.h>
11518     #endif
11519 michael 912
11520 michael 945 #include <stdio.h>
11521 michael 912
11522 michael 945 #ifdef RTLD_GLOBAL
11523     # define LT_DLGLOBAL RTLD_GLOBAL
11524     #else
11525     # ifdef DL_GLOBAL
11526     # define LT_DLGLOBAL DL_GLOBAL
11527     # else
11528     # define LT_DLGLOBAL 0
11529     # endif
11530     #endif
11531    
11532     /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11533     find out it does not work in some platform. */
11534     #ifndef LT_DLLAZY_OR_NOW
11535     # ifdef RTLD_LAZY
11536     # define LT_DLLAZY_OR_NOW RTLD_LAZY
11537     # else
11538     # ifdef DL_LAZY
11539     # define LT_DLLAZY_OR_NOW DL_LAZY
11540     # else
11541     # ifdef RTLD_NOW
11542     # define LT_DLLAZY_OR_NOW RTLD_NOW
11543     # else
11544     # ifdef DL_NOW
11545     # define LT_DLLAZY_OR_NOW DL_NOW
11546     # else
11547     # define LT_DLLAZY_OR_NOW 0
11548     # endif
11549     # endif
11550     # endif
11551     # endif
11552     #endif
11553    
11554     void fnord() { int i=42;}
11555     int main ()
11556     {
11557     void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11558     int status = $lt_dlunknown;
11559    
11560     if (self)
11561     {
11562     if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11563     else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11564     /* dlclose (self); */
11565     }
11566 michael 912 else
11567 michael 945 puts (dlerror ());
11568    
11569     return status;
11570     }
11571     _LT_EOF
11572 michael 967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11573 michael 945 (eval $ac_link) 2>&5
11574     ac_status=$?
11575 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11576     test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11577 michael 945 (./conftest; exit; ) >&5 2>/dev/null
11578     lt_status=$?
11579     case x$lt_status in
11580     x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11581     x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11582     x$lt_dlunknown|x*) ;;
11583 michael 912 esac
11584 michael 945 else :
11585     # compilation failed
11586    
11587 michael 912 fi
11588 michael 945 fi
11589     rm -fr conftest*
11590 michael 912
11591 michael 945 LIBS="$save_LIBS"
11592 michael 912
11593 michael 945 fi
11594 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
11595 michael 945 $as_echo "$libltdl_cv_need_uscore" >&6; }
11596     fi
11597     fi
11598 michael 912
11599 michael 945 if test x"$libltdl_cv_need_uscore" = xyes; then
11600 michael 912
11601 michael 967 $as_echo "#define NEED_USCORE 1" >>confdefs.h
11602 michael 912
11603 michael 945 fi
11604 michael 912
11605 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
11606 michael 945 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
11607 michael 967 if test "${lt_cv_sys_dlopen_deplibs+set}" = set; then :
11608 michael 945 $as_echo_n "(cached) " >&6
11609     else
11610     # PORTME does your system automatically load deplibs for dlopen?
11611     # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11612     # For now, we just catch OSes we know something about -- in the
11613     # future, we'll try test this programmatically.
11614     lt_cv_sys_dlopen_deplibs=unknown
11615     case $host_os in
11616     aix3*|aix4.1.*|aix4.2.*)
11617     # Unknown whether this is true for these versions of AIX, but
11618     # we want this `case' here to explicitly catch those versions.
11619     lt_cv_sys_dlopen_deplibs=unknown
11620     ;;
11621     aix[4-9]*)
11622     lt_cv_sys_dlopen_deplibs=yes
11623     ;;
11624     amigaos*)
11625     case $host_cpu in
11626     powerpc)
11627     lt_cv_sys_dlopen_deplibs=no
11628 michael 912 ;;
11629     esac
11630     ;;
11631 michael 945 darwin*)
11632     # Assuming the user has installed a libdl from somewhere, this is true
11633     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11634     lt_cv_sys_dlopen_deplibs=yes
11635 michael 912 ;;
11636 michael 945 freebsd* | dragonfly*)
11637     lt_cv_sys_dlopen_deplibs=yes
11638 michael 912 ;;
11639 michael 945 gnu* | linux* | k*bsd*-gnu)
11640     # GNU and its variants, using gnu ld.so (Glibc)
11641     lt_cv_sys_dlopen_deplibs=yes
11642 michael 912 ;;
11643 michael 945 hpux10*|hpux11*)
11644     lt_cv_sys_dlopen_deplibs=yes
11645 michael 912 ;;
11646 michael 945 interix*)
11647     lt_cv_sys_dlopen_deplibs=yes
11648 michael 912 ;;
11649 michael 945 irix[12345]*|irix6.[01]*)
11650     # Catch all versions of IRIX before 6.2, and indicate that we don't
11651     # know how it worked for any of those versions.
11652     lt_cv_sys_dlopen_deplibs=unknown
11653 michael 912 ;;
11654 michael 945 irix*)
11655     # The case above catches anything before 6.2, and it's known that
11656     # at 6.2 and later dlopen does load deplibs.
11657     lt_cv_sys_dlopen_deplibs=yes
11658 michael 912 ;;
11659 michael 945 netbsd*)
11660     lt_cv_sys_dlopen_deplibs=yes
11661 michael 912 ;;
11662 michael 945 openbsd*)
11663     lt_cv_sys_dlopen_deplibs=yes
11664 michael 912 ;;
11665 michael 945 osf[1234]*)
11666     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11667     # it did *not* use an RPATH in a shared library to find objects the
11668     # library depends on, so we explicitly say `no'.
11669     lt_cv_sys_dlopen_deplibs=no
11670     ;;
11671     osf5.0|osf5.0a|osf5.1)
11672     # dlopen *does* load deplibs and with the right loader patch applied
11673     # it even uses RPATH in a shared library to search for shared objects
11674     # that the library depends on, but there's no easy way to know if that
11675     # patch is installed. Since this is the case, all we can really
11676     # say is unknown -- it depends on the patch being installed. If
11677     # it is, this changes to `yes'. Without it, it would be `no'.
11678     lt_cv_sys_dlopen_deplibs=unknown
11679     ;;
11680     osf*)
11681     # the two cases above should catch all versions of osf <= 5.1. Read
11682     # the comments above for what we know about them.
11683     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11684     # is used to find them so we can finally say `yes'.
11685     lt_cv_sys_dlopen_deplibs=yes
11686     ;;
11687     qnx*)
11688     lt_cv_sys_dlopen_deplibs=yes
11689     ;;
11690     solaris*)
11691     lt_cv_sys_dlopen_deplibs=yes
11692     ;;
11693     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11694     libltdl_cv_sys_dlopen_deplibs=yes
11695     ;;
11696 michael 912 esac
11697    
11698 michael 945 fi
11699 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
11700 michael 945 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
11701     if test "$lt_cv_sys_dlopen_deplibs" != yes; then
11702 michael 912
11703 michael 967 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
11704 michael 912
11705 michael 945 fi
11706 michael 912
11707 michael 945 :
11708 michael 912
11709 michael 945 for ac_header in argz.h
11710 michael 967 do :
11711     ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
11712     "
11713     if test "x$ac_cv_header_argz_h" = x""yes; then :
11714 michael 945 cat >>confdefs.h <<_ACEOF
11715 michael 967 #define HAVE_ARGZ_H 1
11716 michael 945 _ACEOF
11717 michael 912
11718     fi
11719    
11720 michael 945 done
11721 michael 912
11722    
11723 michael 967 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
11724 michael 945 # include <argz.h>
11725     #endif
11726 michael 967 "
11727     if test "x$ac_cv_type_error_t" = x""yes; then :
11728 michael 912
11729 michael 945 cat >>confdefs.h <<_ACEOF
11730     #define HAVE_ERROR_T 1
11731     _ACEOF
11732 michael 912
11733    
11734 michael 945 else
11735 michael 912
11736 michael 967 $as_echo "#define error_t int" >>confdefs.h
11737 michael 912
11738    
11739 michael 967 $as_echo "#define __error_t_defined 1" >>confdefs.h
11740 michael 912
11741 michael 945 fi
11742 michael 912
11743    
11744 michael 945 ARGZ_H=
11745     for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
11746     argz_next argz_stringify
11747 michael 967 do :
11748     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11749     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11750     eval as_val=\$$as_ac_var
11751     if test "x$as_val" = x""yes; then :
11752 michael 945 cat >>confdefs.h <<_ACEOF
11753     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11754     _ACEOF
11755 michael 912
11756 michael 945 else
11757     ARGZ_H=argz.h;
11758 michael 912
11759 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11760 michael 912
11761 michael 945 fi
11762     done
11763 michael 912
11764    
11765 michael 967 if test -z "$ARGZ_H"; then :
11766     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
11767 michael 945 $as_echo_n "checking if argz actually works... " >&6; }
11768 michael 967 if test "${lt_cv_sys_argz_works+set}" = set; then :
11769 michael 945 $as_echo_n "(cached) " >&6
11770 michael 912 else
11771 michael 945 case $host_os in #(
11772     *cygwin*)
11773     lt_cv_sys_argz_works=no
11774     if test "$cross_compiling" != no; then
11775     lt_cv_sys_argz_works="guessing no"
11776     else
11777     lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
11778     save_IFS=$IFS
11779     IFS=-.
11780     set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
11781     IFS=$save_IFS
11782     lt_os_major=${2-0}
11783     lt_os_minor=${3-0}
11784     lt_os_micro=${4-0}
11785     if test "$lt_os_major" -gt 1 \
11786     || { test "$lt_os_major" -eq 1 \
11787     && { test "$lt_os_minor" -gt 5 \
11788     || { test "$lt_os_minor" -eq 5 \
11789     && test "$lt_os_micro" -gt 24; }; }; }; then
11790     lt_cv_sys_argz_works=yes
11791     fi
11792     fi
11793     ;; #(
11794     *) lt_cv_sys_argz_works=yes ;;
11795     esac
11796 michael 912 fi
11797 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
11798 michael 945 $as_echo "$lt_cv_sys_argz_works" >&6; }
11799 michael 967 if test $lt_cv_sys_argz_works = yes; then :
11800 michael 912
11801 michael 967 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
11802 michael 912
11803 michael 945 else
11804     ARGZ_H=argz.h
11805 michael 912
11806    
11807 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
11808 michael 912
11809 michael 945 fi
11810     fi
11811 michael 912
11812    
11813    
11814 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
11815 michael 945 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
11816 michael 967 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
11817 db 941 $as_echo_n "(cached) " >&6
11818 michael 912 else
11819 michael 945 if test -n "$lt_cv_sys_global_symbol_pipe"; then
11820     libltdl_cv_preloaded_symbols=yes
11821     else
11822     libltdl_cv_preloaded_symbols=no
11823     fi
11824 michael 912
11825     fi
11826 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
11827 michael 945 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
11828     if test x"$libltdl_cv_preloaded_symbols" = xyes; then
11829 michael 912
11830 michael 967 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
11831 michael 912
11832     fi
11833    
11834    
11835    
11836 michael 945 # Set options
11837 michael 912
11838    
11839    
11840    
11841 db 941
11842 michael 912
11843    
11844    
11845    
11846    
11847    
11848    
11849 michael 945 # Check whether --with-included_ltdl was given.
11850 michael 967 if test "${with_included_ltdl+set}" = set; then :
11851 michael 945 withval=$with_included_ltdl;
11852     fi
11853 db 941
11854 michael 912
11855 michael 945 if test "x$with_included_ltdl" != xyes; then
11856     # We are not being forced to use the included libltdl sources, so
11857     # decide whether there is a useful installed version we can use.
11858 michael 967 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
11859 michael 912
11860 michael 967 "
11861     if test "x$ac_cv_header_ltdl_h" = x""yes; then :
11862     ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
11863 michael 945 #include <ltdl.h>
11864 michael 967 "
11865     if test "x$ac_cv_have_decl_lt_dlinterface_register" = x""yes; then :
11866     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
11867 michael 945 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
11868 michael 967 if test "${ac_cv_lib_ltdl_lt_dladvise_preload+set}" = set; then :
11869 michael 945 $as_echo_n "(cached) " >&6
11870     else
11871     ac_check_lib_save_LIBS=$LIBS
11872     LIBS="-lltdl $LIBS"
11873 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11874 michael 912 /* end confdefs.h. */
11875    
11876 michael 945 /* Override any GCC internal prototype to avoid an error.
11877     Use char because int might match the return type of a GCC
11878     builtin and then its argument prototype would still apply. */
11879     #ifdef __cplusplus
11880     extern "C"
11881     #endif
11882     char lt_dladvise_preload ();
11883 michael 912 int
11884     main ()
11885     {
11886 michael 945 return lt_dladvise_preload ();
11887 michael 912 ;
11888     return 0;
11889     }
11890     _ACEOF
11891 michael 967 if ac_fn_c_try_link "$LINENO"; then :
11892 michael 945 ac_cv_lib_ltdl_lt_dladvise_preload=yes
11893 michael 912 else
11894 michael 967 ac_cv_lib_ltdl_lt_dladvise_preload=no
11895 michael 912 fi
11896 michael 967 rm -f core conftest.err conftest.$ac_objext \
11897     conftest$ac_exeext conftest.$ac_ext
11898 michael 945 LIBS=$ac_check_lib_save_LIBS
11899     fi
11900 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
11901 michael 945 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
11902 michael 967 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = x""yes; then :
11903 michael 945 with_included_ltdl=no
11904     else
11905     with_included_ltdl=yes
11906     fi
11907 michael 912
11908 michael 945 else
11909     with_included_ltdl=yes
11910     fi
11911 michael 912
11912 michael 945 else
11913     with_included_ltdl=yes
11914     fi
11915 michael 912
11916    
11917 michael 945 fi
11918 michael 912
11919    
11920    
11921    
11922    
11923    
11924    
11925    
11926    
11927 michael 945 # Check whether --with-ltdl_include was given.
11928 michael 967 if test "${with_ltdl_include+set}" = set; then :
11929 michael 945 withval=$with_ltdl_include;
11930     fi
11931 michael 912
11932    
11933 michael 945 if test -n "$with_ltdl_include"; then
11934     if test -f "$with_ltdl_include/ltdl.h"; then :
11935 michael 912 else
11936 michael 967 as_fn_error "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
11937 michael 912 fi
11938 michael 945 else
11939     with_ltdl_include=no
11940     fi
11941 michael 912
11942    
11943 michael 945 # Check whether --with-ltdl_lib was given.
11944 michael 967 if test "${with_ltdl_lib+set}" = set; then :
11945 michael 945 withval=$with_ltdl_lib;
11946     fi
11947 michael 912
11948    
11949 michael 945 if test -n "$with_ltdl_lib"; then
11950     if test -f "$with_ltdl_lib/libltdl.la"; then :
11951 michael 912 else
11952 michael 967 as_fn_error "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
11953 michael 912 fi
11954 michael 945 else
11955     with_ltdl_lib=no
11956     fi
11957 michael 912
11958 michael 945 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
11959     ,yes,no,no,)
11960     case $enable_ltdl_convenience in
11961 michael 967 no) as_fn_error "this package needs a convenience libltdl" "$LINENO" 5 ;;
11962 michael 945 "") enable_ltdl_convenience=yes
11963     ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
11964     esac
11965     LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
11966     LTDLDEPS=$LIBLTDL
11967     LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
11968 michael 912
11969    
11970    
11971    
11972    
11973 michael 945 # For backwards non-gettext consistent compatibility...
11974     INCLTDL="$LTDLINCL"
11975 michael 912
11976    
11977 michael 945 ;;
11978     ,no,no,no,)
11979     # If the included ltdl is not to be used, then use the
11980     # preinstalled libltdl we found.
11981 michael 912
11982 michael 967 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
11983 michael 912
11984 michael 945 LIBLTDL=-lltdl
11985     LTDLDEPS=
11986     LTDLINCL=
11987 michael 912 ;;
11988 michael 945 ,no*,no,*)
11989 michael 967 as_fn_error "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
11990 michael 912 ;;
11991 michael 945 *) with_included_ltdl=no
11992     LIBLTDL="-L$with_ltdl_lib -lltdl"
11993     LTDLDEPS=
11994     LTDLINCL="-I$with_ltdl_include"
11995     ;;
11996     esac
11997     INCLTDL="$LTDLINCL"
11998 michael 912
11999 michael 945 # Report our decision...
12000 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12001 michael 945 $as_echo_n "checking where to find libltdl headers... " >&6; }
12002 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12003 michael 945 $as_echo "$LTDLINCL" >&6; }
12004 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12005 michael 945 $as_echo_n "checking where to find libltdl library... " >&6; }
12006 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12007 michael 945 $as_echo "$LIBLTDL" >&6; }
12008 michael 912
12009    
12010    
12011 michael 945 # Check whether --enable-ltdl-install was given.
12012 michael 967 if test "${enable_ltdl_install+set}" = set; then :
12013 michael 945 enableval=$enable_ltdl_install;
12014     fi
12015 michael 912
12016    
12017 michael 945 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12018     *yes*) ;;
12019     *) enable_ltdl_convenience=yes ;;
12020 michael 912 esac
12021    
12022 michael 945 if test x"${enable_ltdl_install-no}" != xno; then
12023     INSTALL_LTDL_TRUE=
12024     INSTALL_LTDL_FALSE='#'
12025 db 941 else
12026 michael 945 INSTALL_LTDL_TRUE='#'
12027     INSTALL_LTDL_FALSE=
12028 db 941 fi
12029    
12030 michael 945 if test x"${enable_ltdl_convenience-no}" != xno; then
12031     CONVENIENCE_LTDL_TRUE=
12032     CONVENIENCE_LTDL_FALSE='#'
12033 db 941 else
12034 michael 945 CONVENIENCE_LTDL_TRUE='#'
12035     CONVENIENCE_LTDL_FALSE=
12036 db 941 fi
12037    
12038    
12039 michael 912
12040 michael 945 subdirs="$subdirs libltdl"
12041 michael 912
12042    
12043    
12044    
12045    
12046 michael 945 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12047     # the user used. This is so that ltdl.h can pick up the parent projects
12048     # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12049     # definitions required by ltdl.c.
12050     # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12051 michael 912
12052    
12053    
12054 michael 945 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12055 michael 967 do :
12056     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12057     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12058     "
12059     eval as_val=\$$as_ac_Header
12060     if test "x$as_val" = x""yes; then :
12061 michael 945 cat >>confdefs.h <<_ACEOF
12062     #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12063     _ACEOF
12064 michael 912
12065 michael 945 fi
12066 michael 912
12067 michael 945 done
12068 michael 912
12069    
12070 michael 945 for ac_func in closedir opendir readdir
12071 michael 967 do :
12072     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12073     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12074     eval as_val=\$$as_ac_var
12075     if test "x$as_val" = x""yes; then :
12076 michael 945 cat >>confdefs.h <<_ACEOF
12077     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12078     _ACEOF
12079 michael 912
12080 michael 945 else
12081 michael 912
12082    
12083 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12084 michael 912
12085     fi
12086     done
12087    
12088 michael 945 for ac_func in strlcat strlcpy
12089 michael 967 do :
12090     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12091     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12092     eval as_val=\$$as_ac_var
12093     if test "x$as_val" = x""yes; then :
12094 michael 945 cat >>confdefs.h <<_ACEOF
12095     #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12096     _ACEOF
12097 michael 912
12098     else
12099    
12100    
12101 michael 945 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12102 michael 912
12103     fi
12104 michael 945 done
12105 michael 912
12106    
12107    
12108 michael 945 cat >>confdefs.h <<_ACEOF
12109     #define LT_LIBEXT "$libext"
12110     _ACEOF
12111 michael 912
12112    
12113 michael 945 name=ltdl
12114     LTDLOPEN=`eval "\\$ECHO \"$libname_spec\""`
12115 michael 912
12116    
12117    
12118    
12119    
12120    
12121    
12122    
12123 michael 945 # Only expand once:
12124 michael 912
12125    
12126     LIBTOOL="$LIBTOOL --silent"
12127    
12128 michael 923
12129 michael 912 # Checks for libraries.
12130    
12131 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12132 db 941 $as_echo_n "checking for library containing socket... " >&6; }
12133 michael 967 if test "${ac_cv_search_socket+set}" = set; then :
12134 db 941 $as_echo_n "(cached) " >&6
12135 michael 912 else
12136     ac_func_search_save_LIBS=$LIBS
12137 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12138 michael 912 /* end confdefs.h. */
12139    
12140     /* Override any GCC internal prototype to avoid an error.
12141     Use char because int might match the return type of a GCC
12142     builtin and then its argument prototype would still apply. */
12143     #ifdef __cplusplus
12144     extern "C"
12145     #endif
12146     char socket ();
12147     int
12148     main ()
12149     {
12150     return socket ();
12151     ;
12152     return 0;
12153     }
12154     _ACEOF
12155     for ac_lib in '' socket; do
12156     if test -z "$ac_lib"; then
12157     ac_res="none required"
12158     else
12159     ac_res=-l$ac_lib
12160     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12161     fi
12162 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12163 michael 912 ac_cv_search_socket=$ac_res
12164     fi
12165 michael 967 rm -f core conftest.err conftest.$ac_objext \
12166     conftest$ac_exeext
12167     if test "${ac_cv_search_socket+set}" = set; then :
12168 michael 912 break
12169     fi
12170     done
12171 michael 967 if test "${ac_cv_search_socket+set}" = set; then :
12172    
12173 michael 912 else
12174     ac_cv_search_socket=no
12175     fi
12176     rm conftest.$ac_ext
12177     LIBS=$ac_func_search_save_LIBS
12178     fi
12179 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12180 db 941 $as_echo "$ac_cv_search_socket" >&6; }
12181 michael 912 ac_res=$ac_cv_search_socket
12182 michael 967 if test "$ac_res" != no; then :
12183 michael 912 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12184    
12185     else
12186 michael 967 as_fn_error "socket library not found" "$LINENO" 5
12187 michael 912 fi
12188    
12189 michael 967 for ac_func in inet_aton inet_ntop inet_pton
12190     do :
12191     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12192     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12193     eval as_val=\$$as_ac_var
12194     if test "x$as_val" = x""yes; then :
12195 michael 912 cat >>confdefs.h <<_ACEOF
12196 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12197 michael 912 _ACEOF
12198    
12199     fi
12200     done
12201    
12202 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in" "ac_cv_type_struct_sockaddr_in" "#include <sys/types.h>
12203 db 941 #include <sys/socket.h>
12204     #include <netdb.h>
12205    
12206 michael 967 "
12207     if test "x$ac_cv_type_struct_sockaddr_in" = x""yes; then :
12208 db 941
12209 michael 912 cat >>confdefs.h <<_ACEOF
12210     #define HAVE_STRUCT_SOCKADDR_IN 1
12211     _ACEOF
12212    
12213    
12214     fi
12215 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "#include <sys/types.h>
12216 db 941 #include <sys/socket.h>
12217     #include <netdb.h>
12218    
12219 michael 967 "
12220     if test "x$ac_cv_type_struct_sockaddr_storage" = x""yes; then :
12221 db 941
12222 michael 912 cat >>confdefs.h <<_ACEOF
12223     #define HAVE_STRUCT_SOCKADDR_STORAGE 1
12224     _ACEOF
12225    
12226    
12227     fi
12228 michael 967 ac_fn_c_check_type "$LINENO" "struct addrinfo" "ac_cv_type_struct_addrinfo" "#include <sys/types.h>
12229 db 941 #include <sys/socket.h>
12230     #include <netdb.h>
12231    
12232 michael 967 "
12233     if test "x$ac_cv_type_struct_addrinfo" = x""yes; then :
12234 db 941
12235 michael 912 cat >>confdefs.h <<_ACEOF
12236     #define HAVE_STRUCT_ADDRINFO 1
12237     _ACEOF
12238    
12239    
12240     fi
12241    
12242 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>
12243 db 941 <sys/socket.h>
12244 michael 967 "
12245     if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = x""yes; then :
12246 michael 912
12247     cat >>confdefs.h <<_ACEOF
12248     #define HAVE_STRUCT_SOCKADDR_IN_SIN_LEN 1
12249     _ACEOF
12250    
12251    
12252     fi
12253    
12254    
12255    
12256 michael 967 ac_fn_c_check_type "$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "$ac_includes_default"
12257     if test "x$ac_cv_type_struct_sockaddr_in6" = x""yes; then :
12258 michael 912
12259     cat >>confdefs.h <<_ACEOF
12260     #define HAVE_STRUCT_SOCKADDR_IN6 1
12261     _ACEOF
12262    
12263    
12264     else
12265    
12266 michael 967 $as_echo "#define IPV6 1" >>confdefs.h
12267 michael 912
12268     fi
12269    
12270    
12271    
12272    
12273     # Checks for typedefs, structures, and compiler characteristics.
12274 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12275 db 941 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12276 michael 967 if test "${ac_cv_c_const+set}" = set; then :
12277 db 941 $as_echo_n "(cached) " >&6
12278 michael 912 else
12279 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 michael 912 /* end confdefs.h. */
12281    
12282     int
12283     main ()
12284     {
12285     /* FIXME: Include the comments suggested by Paul. */
12286     #ifndef __cplusplus
12287     /* Ultrix mips cc rejects this. */
12288     typedef int charset[2];
12289     const charset cs;
12290     /* SunOS 4.1.1 cc rejects this. */
12291     char const *const *pcpcc;
12292     char **ppc;
12293     /* NEC SVR4.0.2 mips cc rejects this. */
12294     struct point {int x, y;};
12295     static struct point const zero = {0,0};
12296     /* AIX XL C 1.02.0.0 rejects this.
12297     It does not let you subtract one const X* pointer from another in
12298     an arm of an if-expression whose if-part is not a constant
12299     expression */
12300     const char *g = "string";
12301     pcpcc = &g + (g ? g-g : 0);
12302     /* HPUX 7.0 cc rejects these. */
12303     ++pcpcc;
12304     ppc = (char**) pcpcc;
12305     pcpcc = (char const *const *) ppc;
12306     { /* SCO 3.2v4 cc rejects this. */
12307     char *t;
12308     char const *s = 0 ? (char *) 0 : (char const *) 0;
12309    
12310     *t++ = 0;
12311     if (s) return 0;
12312     }
12313     { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12314     int x[] = {25, 17};
12315     const int *foo = &x[0];
12316     ++foo;
12317     }
12318     { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12319     typedef const int *iptr;
12320     iptr p = 0;
12321     ++p;
12322     }
12323     { /* AIX XL C 1.02.0.0 rejects this saying
12324     "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12325     struct s { int j; const int *ap[3]; };
12326     struct s *b; b->j = 5;
12327     }
12328     { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12329     const int foo = 10;
12330     if (!foo) return 0;
12331     }
12332     return !cs[0] && !zero.x;
12333     #endif
12334    
12335     ;
12336     return 0;
12337     }
12338     _ACEOF
12339 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12340 michael 912 ac_cv_c_const=yes
12341     else
12342 michael 967 ac_cv_c_const=no
12343 michael 912 fi
12344     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12345     fi
12346 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12347 db 941 $as_echo "$ac_cv_c_const" >&6; }
12348 michael 912 if test $ac_cv_c_const = no; then
12349    
12350 michael 967 $as_echo "#define const /**/" >>confdefs.h
12351 michael 912
12352     fi
12353    
12354 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12355 db 941 $as_echo_n "checking for inline... " >&6; }
12356 michael 967 if test "${ac_cv_c_inline+set}" = set; then :
12357 db 941 $as_echo_n "(cached) " >&6
12358 michael 912 else
12359     ac_cv_c_inline=no
12360     for ac_kw in inline __inline__ __inline; do
12361 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12362 michael 912 /* end confdefs.h. */
12363     #ifndef __cplusplus
12364     typedef int foo_t;
12365     static $ac_kw foo_t static_foo () {return 0; }
12366     $ac_kw foo_t foo () {return 0; }
12367     #endif
12368    
12369     _ACEOF
12370 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12371 michael 912 ac_cv_c_inline=$ac_kw
12372     fi
12373     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12374     test "$ac_cv_c_inline" != no && break
12375     done
12376    
12377     fi
12378 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12379 db 941 $as_echo "$ac_cv_c_inline" >&6; }
12380 michael 912
12381     case $ac_cv_c_inline in
12382     inline | yes) ;;
12383     *)
12384     case $ac_cv_c_inline in
12385     no) ac_val=;;
12386     *) ac_val=$ac_cv_c_inline;;
12387     esac
12388     cat >>confdefs.h <<_ACEOF
12389     #ifndef __cplusplus
12390     #define inline $ac_val
12391     #endif
12392     _ACEOF
12393     ;;
12394     esac
12395    
12396 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12397 db 941 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12398 michael 967 if test "${ac_cv_c_bigendian+set}" = set; then :
12399 db 941 $as_echo_n "(cached) " >&6
12400 michael 912 else
12401 db 941 ac_cv_c_bigendian=unknown
12402 michael 942 # See if we're dealing with a universal compiler.
12403 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12404 michael 912 /* end confdefs.h. */
12405 michael 942 #ifndef __APPLE_CC__
12406     not a universal capable compiler
12407 db 941 #endif
12408     typedef int dummy;
12409    
12410     _ACEOF
12411 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12412 michael 942
12413     # Check for potential -arch flags. It is not universal unless
12414 michael 967 # there are at least two -arch flags with different values.
12415     ac_arch=
12416     ac_prev=
12417     for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12418     if test -n "$ac_prev"; then
12419     case $ac_word in
12420     i?86 | x86_64 | ppc | ppc64)
12421     if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12422     ac_arch=$ac_word
12423     else
12424     ac_cv_c_bigendian=universal
12425     break
12426     fi
12427     ;;
12428     esac
12429     ac_prev=
12430     elif test "x$ac_word" = "x-arch"; then
12431     ac_prev=arch
12432     fi
12433     done
12434 db 941 fi
12435     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12436     if test $ac_cv_c_bigendian = unknown; then
12437     # See if sys/param.h defines the BYTE_ORDER macro.
12438 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12439 db 941 /* end confdefs.h. */
12440 michael 912 #include <sys/types.h>
12441 db 941 #include <sys/param.h>
12442 michael 912
12443     int
12444     main ()
12445     {
12446 db 941 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12447     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12448     && LITTLE_ENDIAN)
12449     bogus endian macros
12450     #endif
12451 michael 912
12452     ;
12453     return 0;
12454     }
12455     _ACEOF
12456 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12457 michael 912 # It does; now see whether it defined to BIG_ENDIAN or not.
12458 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12459 michael 912 /* end confdefs.h. */
12460     #include <sys/types.h>
12461 db 941 #include <sys/param.h>
12462 michael 912
12463     int
12464     main ()
12465     {
12466     #if BYTE_ORDER != BIG_ENDIAN
12467 db 941 not big endian
12468     #endif
12469 michael 912
12470     ;
12471     return 0;
12472     }
12473     _ACEOF
12474 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12475 michael 912 ac_cv_c_bigendian=yes
12476     else
12477 michael 967 ac_cv_c_bigendian=no
12478 michael 912 fi
12479     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12480 db 941 fi
12481     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12482     fi
12483     if test $ac_cv_c_bigendian = unknown; then
12484     # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12485 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12486 michael 912 /* end confdefs.h. */
12487 db 941 #include <limits.h>
12488    
12489 michael 912 int
12490     main ()
12491     {
12492 db 941 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12493     bogus endian macros
12494     #endif
12495    
12496 michael 912 ;
12497     return 0;
12498     }
12499     _ACEOF
12500 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12501 db 941 # It does; now see whether it defined to _BIG_ENDIAN or not.
12502 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 michael 912 /* end confdefs.h. */
12504 db 941 #include <limits.h>
12505    
12506 michael 912 int
12507     main ()
12508     {
12509 db 941 #ifndef _BIG_ENDIAN
12510     not big endian
12511     #endif
12512 michael 912
12513     ;
12514     return 0;
12515     }
12516     _ACEOF
12517 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12518 db 941 ac_cv_c_bigendian=yes
12519 michael 912 else
12520 michael 967 ac_cv_c_bigendian=no
12521 michael 912 fi
12522 db 941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523 michael 912 fi
12524     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12525 db 941 fi
12526     if test $ac_cv_c_bigendian = unknown; then
12527     # Compile a test program.
12528 michael 967 if test "$cross_compiling" = yes; then :
12529 db 941 # Try to guess by grepping values from an object file.
12530 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12531 michael 912 /* end confdefs.h. */
12532 db 941 short int ascii_mm[] =
12533     { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12534     short int ascii_ii[] =
12535     { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12536     int use_ascii (int i) {
12537     return ascii_mm[i] + ascii_ii[i];
12538     }
12539     short int ebcdic_ii[] =
12540     { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12541     short int ebcdic_mm[] =
12542     { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12543     int use_ebcdic (int i) {
12544     return ebcdic_mm[i] + ebcdic_ii[i];
12545     }
12546     extern int foo;
12547    
12548 michael 912 int
12549     main ()
12550     {
12551 db 941 return use_ascii (foo) == use_ebcdic (foo);
12552 michael 912 ;
12553     return 0;
12554     }
12555     _ACEOF
12556 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
12557 db 941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12558     ac_cv_c_bigendian=yes
12559     fi
12560     if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12561     if test "$ac_cv_c_bigendian" = unknown; then
12562     ac_cv_c_bigendian=no
12563     else
12564     # finding both strings is unlikely to happen, but who knows?
12565     ac_cv_c_bigendian=unknown
12566     fi
12567     fi
12568 michael 912 fi
12569     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 db 941 else
12571 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12572 db 941 /* end confdefs.h. */
12573     $ac_includes_default
12574     int
12575     main ()
12576     {
12577    
12578     /* Are we little or big endian? From Harbison&Steele. */
12579     union
12580     {
12581     long int l;
12582     char c[sizeof (long int)];
12583     } u;
12584     u.l = 1;
12585     return u.c[sizeof (long int) - 1] == 1;
12586    
12587     ;
12588     return 0;
12589     }
12590     _ACEOF
12591 michael 967 if ac_fn_c_try_run "$LINENO"; then :
12592 db 941 ac_cv_c_bigendian=no
12593     else
12594 michael 967 ac_cv_c_bigendian=yes
12595 michael 912 fi
12596 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12597     conftest.$ac_objext conftest.beam conftest.$ac_ext
12598 db 941 fi
12599 michael 912
12600 db 941 fi
12601     fi
12602 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12603 db 941 $as_echo "$ac_cv_c_bigendian" >&6; }
12604     case $ac_cv_c_bigendian in #(
12605     yes)
12606 michael 967 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
12607 db 941 ;; #(
12608     no)
12609     ;; #(
12610     universal)
12611 michael 942
12612 michael 967 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12613 michael 942
12614     ;; #(
12615 db 941 *)
12616 michael 967 as_fn_error "unknown endianness
12617     presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12618 db 941 esac
12619    
12620    
12621 michael 912 # The cast to long int works around a bug in the HP C Compiler
12622     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12623     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12624     # This bug is HP SR number 8606223364.
12625 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int64_t" >&5
12626 db 941 $as_echo_n "checking size of int64_t... " >&6; }
12627 michael 967 if test "${ac_cv_sizeof_int64_t+set}" = set; then :
12628 db 941 $as_echo_n "(cached) " >&6
12629 michael 912 else
12630 michael 967 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int64_t))" "ac_cv_sizeof_int64_t" "$ac_includes_default"; then :
12631 michael 912
12632     else
12633 michael 967 if test "$ac_cv_type_int64_t" = yes; then
12634     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12635 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12636 michael 967 { as_fn_set_status 77
12637     as_fn_error "cannot compute sizeof (int64_t)
12638     See \`config.log' for more details." "$LINENO" 5; }; }
12639 michael 912 else
12640     ac_cv_sizeof_int64_t=0
12641     fi
12642     fi
12643 michael 967
12644 michael 912 fi
12645 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int64_t" >&5
12646 db 941 $as_echo "$ac_cv_sizeof_int64_t" >&6; }
12647 michael 912
12648    
12649    
12650     cat >>confdefs.h <<_ACEOF
12651     #define SIZEOF_INT64_T $ac_cv_sizeof_int64_t
12652     _ACEOF
12653    
12654    
12655     # The cast to long int works around a bug in the HP C Compiler
12656     # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12657     # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12658     # This bug is HP SR number 8606223364.
12659 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12660 db 941 $as_echo_n "checking size of long long... " >&6; }
12661 michael 967 if test "${ac_cv_sizeof_long_long+set}" = set; then :
12662 db 941 $as_echo_n "(cached) " >&6
12663 michael 912 else
12664 michael 967 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
12665 michael 912
12666     else
12667 michael 967 if test "$ac_cv_type_long_long" = yes; then
12668     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12669 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12670 michael 967 { as_fn_set_status 77
12671     as_fn_error "cannot compute sizeof (long long)
12672     See \`config.log' for more details." "$LINENO" 5; }; }
12673 michael 912 else
12674     ac_cv_sizeof_long_long=0
12675     fi
12676     fi
12677 michael 967
12678 michael 912 fi
12679 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12680 db 941 $as_echo "$ac_cv_sizeof_long_long" >&6; }
12681 michael 912
12682    
12683    
12684     cat >>confdefs.h <<_ACEOF
12685     #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12686     _ACEOF
12687    
12688    
12689    
12690     if test "$ac_cv_sizeof_int64_t" = 8; then
12691 michael 967 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12692     if test "x$ac_cv_type_uint64_t" = x""yes; then :
12693 michael 912
12694     fi
12695    
12696 michael 967 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12697     if test "x$ac_cv_type_int64_t" = x""yes; then :
12698 db 941
12699 michael 912 fi
12700    
12701     elif test "$ac_cv_sizeof_long_long" = 8; then
12702 michael 967 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
12703     if test "x$ac_cv_type_uint64_t" = x""yes; then :
12704 michael 912
12705 db 941 else
12706    
12707 michael 912 cat >>confdefs.h <<_ACEOF
12708     #define uint64_t unsigned long long
12709     _ACEOF
12710    
12711     fi
12712    
12713 michael 967 ac_fn_c_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
12714     if test "x$ac_cv_type_int64_t" = x""yes; then :
12715 michael 912
12716 db 941 else
12717    
12718 michael 912 cat >>confdefs.h <<_ACEOF
12719     #define int64_t long long
12720     _ACEOF
12721    
12722     fi
12723    
12724     else
12725 michael 967 as_fn_error "Your system doesn't appear to have 64 bit integers. Aborting." "$LINENO" 5
12726 michael 912 fi
12727    
12728    
12729     # Checks for library functions.
12730    
12731    
12732    
12733 michael 967 for ac_func in $ac_func_list
12734     do :
12735     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12736     ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12737     eval as_val=\$$as_ac_var
12738     if test "x$as_val" = x""yes; then :
12739 michael 912 cat >>confdefs.h <<_ACEOF
12740 db 941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12741 michael 912 _ACEOF
12742    
12743     fi
12744     done
12745    
12746    
12747    
12748    
12749    
12750    
12751    
12752    
12753    
12754    
12755 michael 942
12756    
12757    
12758    
12759    
12760    
12761    
12762 michael 923 # Checks for header files.
12763 michael 912
12764    
12765    
12766 michael 967 for ac_header in $ac_header_list
12767     do :
12768     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12769     ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12770     "
12771     eval as_val=\$$as_ac_Header
12772     if test "x$as_val" = x""yes; then :
12773 michael 912 cat >>confdefs.h <<_ACEOF
12774 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12775 michael 912 _ACEOF
12776    
12777     fi
12778    
12779     done
12780    
12781    
12782    
12783    
12784    
12785    
12786    
12787    
12788    
12789    
12790    
12791    
12792    
12793    
12794    
12795    
12796    
12797    
12798    
12799    
12800    
12801    
12802    
12803    
12804    
12805    
12806    
12807    
12808    
12809    
12810    
12811 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/null" >&5
12812 db 941 $as_echo_n "checking for /dev/null... " >&6; }
12813 michael 923 if test -c /dev/null ; then
12814 michael 915
12815 michael 967 $as_echo "#define PATH_DEVNULL \"/dev/null\"" >>confdefs.h
12816 michael 915
12817 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12818 db 941 $as_echo "yes" >&6; }
12819 michael 923 else
12820    
12821 michael 967 $as_echo "#define PATH_DEVNULL \"devnull.log\"" >>confdefs.h
12822 michael 923
12823 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - using devnull.log" >&5
12824 db 941 $as_echo "no - using devnull.log" >&6; }
12825 michael 923 fi
12826    
12827    
12828 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing crypt" >&5
12829 db 941 $as_echo_n "checking for library containing crypt... " >&6; }
12830 michael 967 if test "${ac_cv_search_crypt+set}" = set; then :
12831 db 941 $as_echo_n "(cached) " >&6
12832 michael 923 else
12833     ac_func_search_save_LIBS=$LIBS
12834 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12835 michael 923 /* end confdefs.h. */
12836    
12837     /* Override any GCC internal prototype to avoid an error.
12838     Use char because int might match the return type of a GCC
12839     builtin and then its argument prototype would still apply. */
12840     #ifdef __cplusplus
12841     extern "C"
12842     #endif
12843     char crypt ();
12844     int
12845     main ()
12846     {
12847     return crypt ();
12848     ;
12849     return 0;
12850     }
12851     _ACEOF
12852 michael 977 for ac_lib in '' crypt; do
12853 michael 923 if test -z "$ac_lib"; then
12854     ac_res="none required"
12855     else
12856     ac_res=-l$ac_lib
12857     LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12858     fi
12859 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12860 michael 923 ac_cv_search_crypt=$ac_res
12861     fi
12862 michael 967 rm -f core conftest.err conftest.$ac_objext \
12863     conftest$ac_exeext
12864     if test "${ac_cv_search_crypt+set}" = set; then :
12865 michael 923 break
12866     fi
12867     done
12868 michael 967 if test "${ac_cv_search_crypt+set}" = set; then :
12869    
12870 michael 923 else
12871     ac_cv_search_crypt=no
12872     fi
12873     rm conftest.$ac_ext
12874     LIBS=$ac_func_search_save_LIBS
12875     fi
12876 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_crypt" >&5
12877 db 941 $as_echo "$ac_cv_search_crypt" >&6; }
12878 michael 923 ac_res=$ac_cv_search_crypt
12879 michael 967 if test "$ac_res" != no; then :
12880 michael 923 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12881    
12882     fi
12883    
12884    
12885    
12886    
12887     # Check whether --with-zlib-path was given.
12888 michael 967 if test "${with_zlib_path+set}" = set; then :
12889 michael 923 withval=$with_zlib_path; LDFLAGS="-L$withval $LDFLAGS"
12890     fi
12891    
12892    
12893     # Check whether --enable-zlib was given.
12894 michael 967 if test "${enable_zlib+set}" = set; then :
12895 michael 923 enableval=$enable_zlib; zlib=$enableval
12896     else
12897     zlib=yes
12898     fi
12899    
12900    
12901     if test "$zlib" = yes; then
12902 michael 967 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
12903     if test "x$ac_cv_header_zlib_h" = x""yes; then :
12904     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlibVersion in -lz" >&5
12905 db 941 $as_echo_n "checking for zlibVersion in -lz... " >&6; }
12906 michael 967 if test "${ac_cv_lib_z_zlibVersion+set}" = set; then :
12907 db 941 $as_echo_n "(cached) " >&6
12908 michael 923 else
12909     ac_check_lib_save_LIBS=$LIBS
12910     LIBS="-lz $LIBS"
12911 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 michael 923 /* end confdefs.h. */
12913    
12914     /* Override any GCC internal prototype to avoid an error.
12915     Use char because int might match the return type of a GCC
12916     builtin and then its argument prototype would still apply. */
12917     #ifdef __cplusplus
12918     extern "C"
12919     #endif
12920     char zlibVersion ();
12921     int
12922     main ()
12923     {
12924     return zlibVersion ();
12925     ;
12926     return 0;
12927     }
12928     _ACEOF
12929 michael 967 if ac_fn_c_try_link "$LINENO"; then :
12930 michael 923 ac_cv_lib_z_zlibVersion=yes
12931     else
12932 michael 967 ac_cv_lib_z_zlibVersion=no
12933 michael 923 fi
12934 michael 967 rm -f core conftest.err conftest.$ac_objext \
12935     conftest$ac_exeext conftest.$ac_ext
12936 michael 923 LIBS=$ac_check_lib_save_LIBS
12937     fi
12938 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_zlibVersion" >&5
12939 db 941 $as_echo "$ac_cv_lib_z_zlibVersion" >&6; }
12940 michael 967 if test "x$ac_cv_lib_z_zlibVersion" = x""yes; then :
12941 michael 923
12942     LIBS="-lz $LIBS"
12943    
12944 michael 967 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
12945 michael 923
12946    
12947     else
12948     zlib=no
12949     fi
12950    
12951    
12952     else
12953     zlib=no
12954     fi
12955    
12956    
12957     fi
12958    
12959    
12960 michael 912 # Check whether --enable-openssl was given.
12961 michael 967 if test "${enable_openssl+set}" = set; then :
12962 michael 912 enableval=$enable_openssl; cf_enable_openssl=$enableval
12963     else
12964     cf_enable_openssl="auto"
12965     fi
12966    
12967 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
12968 db 941 $as_echo_n "checking for OpenSSL... " >&6; }
12969 michael 912 if test "$cf_enable_openssl" != "no"; then
12970     cf_openssl_basedir=""
12971     if test "$cf_enable_openssl" != "auto" &&
12972     test "$cf_enable_openssl" != "yes"; then
12973     cf_openssl_basedir="${cf_enable_openssl}"
12974     else
12975     for dirs in /usr/local/ssl /usr/pkg /usr/local /usr/lib /usr/lib/ssl\
12976     /opt /opt/openssl /usr/local/openssl; do
12977     if test -f "${dirs}/include/openssl/opensslv.h"; then
12978     cf_openssl_basedir="${dirs}"
12979     break
12980     fi
12981     done
12982     unset dirs
12983     fi
12984    
12985     if test ! -z "$cf_openssl_basedir"; then
12986     if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h"; then
12987     CPPFLAGS="-I${cf_openssl_basedir}/include $CPPFLAGS"
12988     LDFLAGS="-L${cf_openssl_basedir}/lib $LDFLAGS"
12989     else
12990     cf_openssl_basedir=""
12991     fi
12992     else
12993     if test -f "/usr/include/openssl/opensslv.h"; then
12994     cf_openssl_basedir="/usr"
12995     fi
12996     fi
12997    
12998     if test ! -z "$cf_openssl_basedir"; then
12999     LIBS="-lcrypto -lssl $LIBS"
13000 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
13001 db 941 $as_echo "$cf_openssl_basedir" >&6; }
13002 michael 912 cf_enable_openssl="yes"
13003 michael 924
13004 michael 967 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
13005 michael 912
13006     else
13007 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Please check your path." >&5
13008 db 941 $as_echo "not found. Please check your path." >&6; }
13009 michael 912 cf_enable_openssl="no"
13010     fi
13011     unset cf_openssl_basedir
13012     else
13013 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
13014 db 941 $as_echo "disabled" >&6; }
13015 michael 912 fi
13016 michael 924 if test "$cf_enable_openssl" = yes; then
13017 michael 912 ENABLE_SSL_TRUE=
13018     ENABLE_SSL_FALSE='#'
13019     else
13020     ENABLE_SSL_TRUE='#'
13021     ENABLE_SSL_FALSE=
13022     fi
13023    
13024    
13025    
13026 michael 924 # Check whether --enable-assert was given.
13027 michael 967 if test "${enable_assert+set}" = set; then :
13028 michael 924 enableval=$enable_assert; assert=$enableval
13029     else
13030     assert=no
13031     fi
13032    
13033     if test "$assert" = no; then
13034    
13035 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
13036 michael 925
13037 michael 924 fi
13038    
13039    
13040 michael 925 # Check whether --enable-small-net was given.
13041 michael 967 if test "${enable_small_net+set}" = set; then :
13042 michael 925 enableval=$enable_small_net; small_net=$enableval
13043     else
13044     small_net=no
13045     fi
13046    
13047    
13048     if test "$small_net" = yes; then
13049    
13050 michael 967 $as_echo "#define NICKNAMEHISTORYLENGTH 1500" >>confdefs.h
13051 michael 925
13052    
13053 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 256" >>confdefs.h
13054 michael 925
13055    
13056 michael 967 $as_echo "#define BAN_HEAP_SIZE 128" >>confdefs.h
13057 michael 925
13058    
13059 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 256" >>confdefs.h
13060 michael 925
13061    
13062 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 128" >>confdefs.h
13063 michael 925
13064    
13065 michael 967 $as_echo "#define DNODE_HEAP_SIZE 256" >>confdefs.h
13066 michael 925
13067    
13068 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 256" >>confdefs.h
13069 michael 925
13070    
13071 michael 967 $as_echo "#define DBUF_HEAP_SIZE 64" >>confdefs.h
13072 michael 925
13073 michael 998
13074     $as_echo "#define AUTH_HEAP_SIZE 128" >>confdefs.h
13075    
13076    
13077     $as_echo "#define DNS_HEAP_SIZE 128" >>confdefs.h
13078    
13079 michael 925 else
13080    
13081 michael 967 $as_echo "#define NICKNAMEHISTORYLENGTH 15000" >>confdefs.h
13082 michael 925
13083    
13084 michael 967 $as_echo "#define CHANNEL_HEAP_SIZE 1024" >>confdefs.h
13085 michael 925
13086    
13087 michael 967 $as_echo "#define BAN_HEAP_SIZE 1024" >>confdefs.h
13088 michael 925
13089    
13090 michael 967 $as_echo "#define CLIENT_HEAP_SIZE 1024" >>confdefs.h
13091 michael 925
13092    
13093 michael 967 $as_echo "#define LCLIENT_HEAP_SIZE 512" >>confdefs.h
13094 michael 925
13095    
13096 michael 967 $as_echo "#define DNODE_HEAP_SIZE 1024" >>confdefs.h
13097 michael 925
13098    
13099 michael 967 $as_echo "#define TOPIC_HEAP_SIZE 1024" >>confdefs.h
13100 michael 925
13101    
13102 michael 967 $as_echo "#define DBUF_HEAP_SIZE 512" >>confdefs.h
13103 michael 925
13104 michael 998
13105     $as_echo "#define AUTH_HEAP_SIZE 512" >>confdefs.h
13106    
13107    
13108     $as_echo "#define DNS_HEAP_SIZE 512" >>confdefs.h
13109    
13110 michael 925 fi
13111    
13112 db 941
13113 michael 912 # Argument processing.
13114    
13115     desired_iopoll_mechanism="none"
13116     # Check whether --enable-kqueue was given.
13117 michael 967 if test "${enable_kqueue+set}" = set; then :
13118 michael 912 enableval=$enable_kqueue; desired_iopoll_mechanism="kqueue"
13119     fi
13120    
13121     # Check whether --enable-epoll was given.
13122 michael 967 if test "${enable_epoll+set}" = set; then :
13123 michael 912 enableval=$enable_epoll; desired_iopoll_mechanism="epoll"
13124     fi
13125    
13126     # Check whether --enable-devpoll was given.
13127 michael 967 if test "${enable_devpoll+set}" = set; then :
13128 michael 912 enableval=$enable_devpoll; desired_iopoll_mechanism="devpoll"
13129     fi
13130    
13131     # Check whether --enable-rtsigio was given.
13132 michael 967 if test "${enable_rtsigio+set}" = set; then :
13133 michael 912 enableval=$enable_rtsigio; desired_iopoll_mechanism="rtsigio"
13134     fi
13135    
13136     # Check whether --enable-poll was given.
13137 michael 967 if test "${enable_poll+set}" = set; then :
13138 michael 912 enableval=$enable_poll; desired_iopoll_mechanism="poll"
13139     fi
13140    
13141     # Check whether --enable-select was given.
13142 michael 967 if test "${enable_select+set}" = set; then :
13143 michael 912 enableval=$enable_select; desired_iopoll_mechanism="select"
13144     fi
13145    
13146 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optimal/desired iopoll mechanism" >&5
13147 db 941 $as_echo_n "checking for optimal/desired iopoll mechanism... " >&6; }
13148 michael 912 iopoll_mechanism_none=0
13149    
13150     cat >>confdefs.h <<_ACEOF
13151     #define __IOPOLL_MECHANISM_NONE $iopoll_mechanism_none
13152     _ACEOF
13153    
13154     iopoll_mechanism_kqueue=1
13155    
13156     cat >>confdefs.h <<_ACEOF
13157     #define __IOPOLL_MECHANISM_KQUEUE $iopoll_mechanism_kqueue
13158     _ACEOF
13159    
13160 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13161 michael 912 /* end confdefs.h. */
13162     /* Define kevent to an innocuous variant, in case <limits.h> declares kevent.
13163     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13164     #define kevent innocuous_kevent
13165    
13166     /* System header to define __stub macros and hopefully few prototypes,
13167     which can conflict with char kevent (); below.
13168     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13169     <limits.h> exists even on freestanding compilers. */
13170    
13171     #ifdef __STDC__
13172     # include <limits.h>
13173     #else
13174     # include <assert.h>
13175     #endif
13176    
13177     #undef kevent
13178    
13179     /* Override any GCC internal prototype to avoid an error.
13180     Use char because int might match the return type of a GCC
13181     builtin and then its argument prototype would still apply. */
13182     #ifdef __cplusplus
13183     extern "C"
13184     #endif
13185     char kevent ();
13186     /* The GNU C library defines this for functions which it implements
13187     to always fail with ENOSYS. Some functions are actually named
13188     something starting with __ and the normal name is an alias. */
13189     #if defined __stub_kevent || defined __stub___kevent
13190     choke me
13191     #endif
13192    
13193     int
13194     main ()
13195     {
13196     return kevent ();
13197     ;
13198     return 0;
13199     }
13200     _ACEOF
13201 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13202 michael 912 is_kqueue_mechanism_available="yes"
13203     else
13204 michael 967 is_kqueue_mechanism_available="no"
13205 michael 912 fi
13206 michael 967 rm -f core conftest.err conftest.$ac_objext \
13207     conftest$ac_exeext conftest.$ac_ext
13208 michael 912 iopoll_mechanism_epoll=2
13209    
13210     cat >>confdefs.h <<_ACEOF
13211     #define __IOPOLL_MECHANISM_EPOLL $iopoll_mechanism_epoll
13212     _ACEOF
13213    
13214 michael 967 if test "$cross_compiling" = yes; then :
13215     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13216 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13217 michael 967 as_fn_error "cannot run test program while cross compiling
13218     See \`config.log' for more details." "$LINENO" 5; }
13219 michael 912 else
13220 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221     /* end confdefs.h. */
13222 michael 912
13223     #include <sys/epoll.h>
13224     #include <sys/syscall.h>
13225     #if defined(__stub_epoll_create) || defined(__stub___epoll_create) || defined(EPOLL_NEED_BODY)
13226     #if !defined(__NR_epoll_create)
13227     #if defined(__ia64__)
13228     #define __NR_epoll_create 1243
13229     #elif defined(__x86_64__)
13230     #define __NR_epoll_create 214
13231     #elif defined(__sparc64__) || defined(__sparc__)
13232     #define __NR_epoll_create 193
13233     #elif defined(__s390__) || defined(__m68k__)
13234     #define __NR_epoll_create 249
13235     #elif defined(__ppc64__) || defined(__ppc__)
13236     #define __NR_epoll_create 236
13237     #elif defined(__parisc__) || defined(__arm26__) || defined(__arm__)
13238     #define __NR_epoll_create 224
13239     #elif defined(__alpha__)
13240     #define __NR_epoll_create 407
13241     #elif defined(__sh64__)
13242     #define __NR_epoll_create 282
13243     #elif defined(__i386__) || defined(__sh__) || defined(__m32r__) || defined(__h8300__) || defined(__frv__)
13244     #define __NR_epoll_create 254
13245     #else
13246     #error No system call numbers defined for epoll family.
13247     #endif
13248     #endif
13249     _syscall1(int, epoll_create, int, size)
13250     #endif
13251     main() { return epoll_create(256) == -1 ? 1 : 0; }
13252    
13253     _ACEOF
13254 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13255 michael 912 is_epoll_mechanism_available="yes"
13256     else
13257 michael 967 is_epoll_mechanism_available="no"
13258 michael 912 fi
13259 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13260     conftest.$ac_objext conftest.beam conftest.$ac_ext
13261 michael 912 fi
13262    
13263     iopoll_mechanism_devpoll=3
13264    
13265     cat >>confdefs.h <<_ACEOF
13266     #define __IOPOLL_MECHANISM_DEVPOLL $iopoll_mechanism_devpoll
13267     _ACEOF
13268    
13269 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13270 michael 912 /* end confdefs.h. */
13271     #include <devpoll.h>
13272     int
13273     main ()
13274     {
13275    
13276     ;
13277     return 0;
13278     }
13279     _ACEOF
13280 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13281 michael 912 is_devpoll_mechanism_available="yes"
13282     else
13283 michael 967 is_devpoll_mechanism_available="no"
13284 michael 912 fi
13285     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13286     if test "$is_devpoll_mechanism_available" = "yes" ; then
13287    
13288 michael 967 $as_echo "#define HAVE_DEVPOLL_H 1" >>confdefs.h
13289 michael 912
13290     fi
13291 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13292 michael 912 /* end confdefs.h. */
13293     #include <sys/devpoll.h>
13294     int
13295     main ()
13296     {
13297    
13298     ;
13299     return 0;
13300     }
13301     _ACEOF
13302 michael 967 if ac_fn_c_try_compile "$LINENO"; then :
13303 michael 912 is_devpoll_mechanism_available="yes"
13304     else
13305 michael 967 is_devpoll_mechanism_available="no"
13306 michael 912 fi
13307     rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13308     if test "$is_devpoll_mechanism_available" = "yes" ; then
13309    
13310 michael 967 $as_echo "#define HAVE_SYS_DEVPOLL_H 1" >>confdefs.h
13311 michael 912
13312     fi
13313     iopoll_mechanism_rtsigio=4
13314    
13315     cat >>confdefs.h <<_ACEOF
13316     #define __IOPOLL_MECHANISM_RTSIGIO $iopoll_mechanism_rtsigio
13317     _ACEOF
13318    
13319 michael 967 if test "$cross_compiling" = yes; then :
13320     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13321 michael 942 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13322 michael 967 as_fn_error "cannot run test program while cross compiling
13323     See \`config.log' for more details." "$LINENO" 5; }
13324 michael 912 else
13325 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 michael 912 /* end confdefs.h. */
13327    
13328     #include <fcntl.h>
13329     #ifdef F_SETSIG
13330     main () { return 0; } /* F_SETSIG defined */
13331     #else
13332     main () { return 1; } /* F_SETSIG not defined */
13333     #endif
13334    
13335     int
13336     main ()
13337     {
13338    
13339     ;
13340     return 0;
13341     }
13342     _ACEOF
13343 michael 967 if ac_fn_c_try_run "$LINENO"; then :
13344 michael 912 is_rtsigio_mechanism_available="yes"
13345     else
13346 michael 967 is_rtsigio_mechanism_available="no"
13347 michael 912 fi
13348 michael 967 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13349     conftest.$ac_objext conftest.beam conftest.$ac_ext
13350 michael 912 fi
13351    
13352     iopoll_mechanism_poll=5
13353    
13354     cat >>confdefs.h <<_ACEOF
13355     #define __IOPOLL_MECHANISM_POLL $iopoll_mechanism_poll
13356     _ACEOF
13357    
13358 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13359 michael 912 /* end confdefs.h. */
13360     /* Define poll to an innocuous variant, in case <limits.h> declares poll.
13361     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13362     #define poll innocuous_poll
13363    
13364     /* System header to define __stub macros and hopefully few prototypes,
13365     which can conflict with char poll (); below.
13366     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13367     <limits.h> exists even on freestanding compilers. */
13368    
13369     #ifdef __STDC__
13370     # include <limits.h>
13371     #else
13372     # include <assert.h>
13373     #endif
13374    
13375     #undef poll
13376    
13377     /* Override any GCC internal prototype to avoid an error.
13378     Use char because int might match the return type of a GCC
13379     builtin and then its argument prototype would still apply. */
13380     #ifdef __cplusplus
13381     extern "C"
13382     #endif
13383     char poll ();
13384     /* The GNU C library defines this for functions which it implements
13385     to always fail with ENOSYS. Some functions are actually named
13386     something starting with __ and the normal name is an alias. */
13387     #if defined __stub_poll || defined __stub___poll
13388     choke me
13389     #endif
13390    
13391     int
13392     main ()
13393     {
13394     return poll ();
13395     ;
13396     return 0;
13397     }
13398     _ACEOF
13399 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13400 michael 912 is_poll_mechanism_available="yes"
13401     else
13402 michael 967 is_poll_mechanism_available="no"
13403 michael 912 fi
13404 michael 967 rm -f core conftest.err conftest.$ac_objext \
13405     conftest$ac_exeext conftest.$ac_ext
13406 michael 912 iopoll_mechanism_select=6
13407    
13408     cat >>confdefs.h <<_ACEOF
13409     #define __IOPOLL_MECHANISM_SELECT $iopoll_mechanism_select
13410     _ACEOF
13411    
13412 michael 967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13413 michael 912 /* end confdefs.h. */
13414     /* Define select to an innocuous variant, in case <limits.h> declares select.
13415     For example, HP-UX 11i <limits.h> declares gettimeofday. */
13416     #define select innocuous_select
13417    
13418     /* System header to define __stub macros and hopefully few prototypes,
13419     which can conflict with char select (); below.
13420     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13421     <limits.h> exists even on freestanding compilers. */
13422    
13423     #ifdef __STDC__
13424     # include <limits.h>
13425     #else
13426     # include <assert.h>
13427     #endif
13428    
13429     #undef select
13430    
13431     /* Override any GCC internal prototype to avoid an error.
13432     Use char because int might match the return type of a GCC
13433     builtin and then its argument prototype would still apply. */
13434     #ifdef __cplusplus
13435     extern "C"
13436     #endif
13437     char select ();
13438     /* The GNU C library defines this for functions which it implements
13439     to always fail with ENOSYS. Some functions are actually named
13440     something starting with __ and the normal name is an alias. */
13441     #if defined __stub_select || defined __stub___select
13442     choke me
13443     #endif
13444    
13445     int
13446     main ()
13447     {
13448     return select ();
13449     ;
13450     return 0;
13451     }
13452     _ACEOF
13453 michael 967 if ac_fn_c_try_link "$LINENO"; then :
13454 michael 912 is_select_mechanism_available="yes"
13455     else
13456 michael 967 is_select_mechanism_available="no"
13457 michael 912 fi
13458 michael 967 rm -f core conftest.err conftest.$ac_objext \
13459     conftest$ac_exeext conftest.$ac_ext
13460 michael 912 optimal_iopoll_mechanism="none"
13461     for mechanism in "kqueue" "epoll" "devpoll" "rtsigio" "poll" "select" ; do # order is important
13462     eval "is_optimal_iopoll_mechanism_available=\$is_${mechanism}_mechanism_available"
13463     if test "$is_optimal_iopoll_mechanism_available" = "yes" ; then
13464     optimal_iopoll_mechanism="$mechanism"
13465     break
13466     fi
13467     done
13468     if test "$desired_iopoll_mechanism" = "none" ; then
13469     if test "$optimal_iopoll_mechanism" = "none" ; then
13470 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13471 db 941 $as_echo "none" >&6; }
13472 michael 967 as_fn_error "no iopoll mechanism found!" "$LINENO" 5
13473 michael 912 else
13474     selected_iopoll_mechanism=$optimal_iopoll_mechanism
13475 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13476 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
13477 michael 912 fi
13478     else
13479     eval "is_desired_iopoll_mechanism_available=\$is_${desired_iopoll_mechanism}_mechanism_available"
13480     if test "$is_desired_iopoll_mechanism_available" = "yes" ; then
13481     selected_iopoll_mechanism=$desired_iopoll_mechanism
13482 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $selected_iopoll_mechanism" >&5
13483 db 941 $as_echo "$selected_iopoll_mechanism" >&6; }
13484 michael 912 else
13485 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
13486 db 941 $as_echo "none" >&6; }
13487 michael 967 as_fn_error "desired iopoll mechanism, $desired_iopoll_mechanism, is not available" "$LINENO" 5
13488 michael 912 fi
13489     fi
13490     eval "use_iopoll_mechanism=\$iopoll_mechanism_${selected_iopoll_mechanism}"
13491    
13492     cat >>confdefs.h <<_ACEOF
13493     #define USE_IOPOLL_MECHANISM $use_iopoll_mechanism
13494     _ACEOF
13495    
13496    
13497    
13498    
13499     # Check whether --with-nicklen was given.
13500 michael 967 if test "${with_nicklen+set}" = set; then :
13501 michael 912 withval=$with_nicklen; nicklen="$withval"
13502     else
13503     nicklen="9"
13504     fi
13505    
13506    
13507     cat >>confdefs.h <<_ACEOF
13508     #define NICKLEN ($nicklen+1)
13509     _ACEOF
13510    
13511    
13512    
13513    
13514     # Check whether --with-topiclen was given.
13515 michael 967 if test "${with_topiclen+set}" = set; then :
13516 michael 912 withval=$with_topiclen; topiclen="$withval"
13517     else
13518     topiclen="160"
13519     fi
13520    
13521    
13522     cat >>confdefs.h <<_ACEOF
13523     #define TOPICLEN ($topiclen+1)
13524     _ACEOF
13525    
13526    
13527    
13528    
13529     # Check whether --with-syslog-facility was given.
13530 michael 967 if test "${with_syslog_facility+set}" = set; then :
13531 michael 912 withval=$with_syslog_facility; syslog_facility="$withval"
13532     else
13533     syslog_facility="LOG_LOCAL4"
13534     fi
13535    
13536    
13537     cat >>confdefs.h <<_ACEOF
13538     #define LOG_FACILITY $syslog_facility
13539     _ACEOF
13540    
13541    
13542    
13543     # Check whether --enable-efnet was given.
13544 michael 967 if test "${enable_efnet+set}" = set; then :
13545 michael 912 enableval=$enable_efnet; efnet="$enableval"
13546     else
13547     efnet="no"
13548     fi
13549    
13550     if test "$efnet" = "yes" ; then
13551     use_efnet="yes"
13552    
13553 michael 967 $as_echo "#define EFNET 1" >>confdefs.h
13554 michael 912
13555    
13556 michael 967 $as_echo "#define TS5_ONLY 1" >>confdefs.h
13557 michael 912
13558     else
13559    
13560 michael 967 $as_echo "#define INVARIANTS 1" >>confdefs.h
13561 michael 912
13562     use_efnet="no"
13563     fi
13564     if test "$use_efnet" = "yes"; then
13565     EFNET_TRUE=
13566     EFNET_FALSE='#'
13567     else
13568     EFNET_TRUE='#'
13569     EFNET_FALSE=
13570     fi
13571    
13572    
13573    
13574     # Check whether --enable-halfops was given.
13575 michael 967 if test "${enable_halfops+set}" = set; then :
13576 michael 912 enableval=$enable_halfops; halfops="$enableval"
13577     else
13578     halfops="no"
13579     fi
13580    
13581     if test "$halfops" = "yes" ; then
13582    
13583 michael 967 $as_echo "#define HALFOPS 1" >>confdefs.h
13584 michael 912
13585     fi
13586    
13587    
13588     # Check whether --enable-debugging was given.
13589 michael 967 if test "${enable_debugging+set}" = set; then :
13590 michael 912 enableval=$enable_debugging; debugging="$enableval"
13591     else
13592     debugging="no"
13593     fi
13594    
13595     if test "$debugging" = "yes" ; then
13596    
13597 michael 967 $as_echo "#define DEBUG 1" >>confdefs.h
13598 michael 912
13599     CFLAGS="$CFLAGS -Wall -Werror -g -O0"
13600     else
13601    
13602 michael 967 $as_echo "#define NDEBUG 1" >>confdefs.h
13603 michael 912
13604     fi
13605    
13606    
13607     # Check whether --enable-warnings was given.
13608 michael 967 if test "${enable_warnings+set}" = set; then :
13609 michael 912 enableval=$enable_warnings; warnings="$enableval"
13610     else
13611     warnings="no"
13612     fi
13613    
13614     if test "$warnings" = "yes" ; then
13615 michael 989 CFLAGS="-Wall -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wredundant-decls -Wshadow -Wwrite-strings -Wno-unused -Wundef"
13616 michael 912 fi
13617    
13618    
13619 michael 967 for ac_header in syslog.h sys/syslog.h
13620     do :
13621     as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13622     ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13623     eval as_val=\$$as_ac_Header
13624     if test "x$as_val" = x""yes; then :
13625 michael 912 cat >>confdefs.h <<_ACEOF
13626 db 941 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13627 michael 912 _ACEOF
13628    
13629     fi
13630    
13631     done
13632    
13633     # Check whether --enable-syslog was given.
13634 michael 967 if test "${enable_syslog+set}" = set; then :
13635 michael 912 enableval=$enable_syslog; syslog="$enableval"
13636     else
13637     syslog="no"
13638     fi
13639    
13640     if test "$enableval" != "no" ; then
13641     for option in $enableval ; do
13642     case "$option" in
13643     users)
13644 michael 967 $as_echo "#define SYSLOG_USERS 1" >>confdefs.h
13645 michael 912 ;;
13646     oper)
13647 michael 967 $as_echo "#define SYSLOG_OPER 1" >>confdefs.h
13648 michael 912 ;;
13649     yes) : ;;
13650 michael 967 *) as_fn_error "invalid value for --enable-syslog: $option" "$LINENO" 5 ;;
13651 michael 912 esac
13652     done
13653    
13654 michael 967 $as_echo "#define USE_SYSLOG 1" >>confdefs.h
13655 michael 912
13656     fi
13657    
13658    
13659    
13660     prefix_NONE=
13661     exec_prefix_NONE=
13662     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13663     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13664     eval ac_define_dir="\"$prefix\""
13665     eval ac_define_dir="\"$ac_define_dir\""
13666     PREFIX="$ac_define_dir"
13667    
13668    
13669     cat >>confdefs.h <<_ACEOF
13670     #define PREFIX "$ac_define_dir"
13671     _ACEOF
13672    
13673     test "$prefix_NONE" && prefix=NONE
13674     test "$exec_prefix_NONE" && exec_prefix=NONE
13675    
13676    
13677     prefix_NONE=
13678     exec_prefix_NONE=
13679     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13680     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13681     eval ac_define_dir="\"$sysconfdir\""
13682     eval ac_define_dir="\"$ac_define_dir\""
13683     SYSCONFDIR="$ac_define_dir"
13684    
13685    
13686     cat >>confdefs.h <<_ACEOF
13687     #define SYSCONFDIR "$ac_define_dir"
13688     _ACEOF
13689    
13690     test "$prefix_NONE" && prefix=NONE
13691     test "$exec_prefix_NONE" && exec_prefix=NONE
13692    
13693    
13694     prefix_NONE=
13695     exec_prefix_NONE=
13696     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13697     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13698     eval ac_define_dir="\"$libdir\""
13699     eval ac_define_dir="\"$ac_define_dir\""
13700     LIBDIR="$ac_define_dir"
13701    
13702    
13703     cat >>confdefs.h <<_ACEOF
13704     #define LIBDIR "$ac_define_dir"
13705     _ACEOF
13706    
13707     test "$prefix_NONE" && prefix=NONE
13708     test "$exec_prefix_NONE" && exec_prefix=NONE
13709    
13710    
13711     prefix_NONE=
13712     exec_prefix_NONE=
13713     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13714     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13715     eval ac_define_dir="\"$datadir\""
13716     eval ac_define_dir="\"$ac_define_dir\""
13717     DATADIR="$ac_define_dir"
13718    
13719    
13720     cat >>confdefs.h <<_ACEOF
13721     #define DATADIR "$ac_define_dir"
13722     _ACEOF
13723    
13724     test "$prefix_NONE" && prefix=NONE
13725     test "$exec_prefix_NONE" && exec_prefix=NONE
13726    
13727    
13728     prefix_NONE=
13729     exec_prefix_NONE=
13730     test "x$prefix" = xNONE && prefix_NONE=yes && prefix=$ac_default_prefix
13731     test "x$exec_prefix" = xNONE && exec_prefix_NONE=yes && exec_prefix=$prefix
13732     eval ac_define_dir="\"$localstatedir\""
13733     eval ac_define_dir="\"$ac_define_dir\""
13734     LOCALSTATEDIR="$ac_define_dir"
13735    
13736    
13737     cat >>confdefs.h <<_ACEOF
13738     #define LOCALSTATEDIR "$ac_define_dir"
13739     _ACEOF
13740    
13741     test "$prefix_NONE" && prefix=NONE
13742     test "$exec_prefix_NONE" && exec_prefix=NONE
13743    
13744 db 941
13745 michael 922 ac_config_files="$ac_config_files Makefile etc/Makefile etc/example.conf etc/example.conf.quick etc/example.efnet.conf 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 lib/Makefile lib/pcre/Makefile tools/Makefile"
13746 michael 912
13747    
13748     cat >confcache <<\_ACEOF
13749     # This file is a shell script that caches the results of configure
13750     # tests run on this system so they can be shared between configure
13751     # scripts and configure runs, see configure's option --config-cache.
13752     # It is not useful on other systems. If it contains results you don't
13753     # want to keep, you may remove or edit it.
13754     #
13755     # config.status only pays attention to the cache file if you give it
13756     # the --recheck option to rerun configure.
13757     #
13758     # `ac_cv_env_foo' variables (set or unset) will be overridden when
13759     # loading this file, other *unset* `ac_cv_foo' will be assigned the
13760     # following values.
13761    
13762     _ACEOF
13763    
13764     # The following way of writing the cache mishandles newlines in values,
13765     # but we know of no workaround that is simple, portable, and efficient.
13766     # So, we kill variables containing newlines.
13767     # Ultrix sh set writes to stderr and can't be redirected directly,
13768     # and sets the high bit in the cache file unless we assign to the vars.
13769     (
13770     for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13771     eval ac_val=\$$ac_var
13772     case $ac_val in #(
13773     *${as_nl}*)
13774     case $ac_var in #(
13775 michael 967 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13776 michael 942 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13777 michael 912 esac
13778     case $ac_var in #(
13779     _ | IFS | as_nl) ;; #(
13780 db 941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13781 michael 967 *) { eval $ac_var=; unset $ac_var;} ;;
13782 michael 912 esac ;;
13783     esac
13784     done
13785    
13786     (set) 2>&1 |
13787     case $as_nl`(ac_space=' '; set) 2>&1` in #(
13788     *${as_nl}ac_space=\ *)
13789 michael 967 # `set' does not quote correctly, so add quotes: double-quote
13790     # substitution turns \\\\ into \\, and sed turns \\ into \.
13791 michael 912 sed -n \
13792     "s/'/'\\\\''/g;
13793     s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13794     ;; #(
13795     *)
13796     # `set' quotes correctly as required by POSIX, so do not add quotes.
13797     sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13798     ;;
13799     esac |
13800     sort
13801     ) |
13802     sed '
13803     /^ac_cv_env_/b end
13804     t clear
13805     :clear
13806     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13807     t end
13808     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13809     :end' >>confcache
13810     if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13811     if test -w "$cache_file"; then
13812     test "x$cache_file" != "x/dev/null" &&
13813 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13814 db 941 $as_echo "$as_me: updating cache $cache_file" >&6;}
13815 michael 912 cat confcache >$cache_file
13816     else
13817 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13818 db 941 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13819 michael 912 fi
13820     fi
13821     rm -f confcache
13822    
13823     test "x$prefix" = xNONE && prefix=$ac_default_prefix
13824     # Let make expand exec_prefix.
13825     test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13826    
13827     DEFS=-DHAVE_CONFIG_H
13828    
13829     ac_libobjs=
13830     ac_ltlibobjs=
13831     for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13832     # 1. Remove the extension, and $U if already installed.
13833     ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13834 db 941 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13835 michael 912 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13836     # will be set to the directory where LIBOBJS objects are built.
13837 michael 967 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13838     as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13839 michael 912 done
13840     LIBOBJS=$ac_libobjs
13841    
13842     LTLIBOBJS=$ac_ltlibobjs
13843    
13844    
13845 michael 945 if test -n "$EXEEXT"; then
13846     am__EXEEXT_TRUE=
13847     am__EXEEXT_FALSE='#'
13848     else
13849     am__EXEEXT_TRUE='#'
13850     am__EXEEXT_FALSE=
13851     fi
13852    
13853 michael 912 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
13854 michael 967 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
13855     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13856 michael 912 fi
13857     if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13858 michael 967 as_fn_error "conditional \"AMDEP\" was never defined.
13859     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13860 michael 912 fi
13861     if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13862 michael 967 as_fn_error "conditional \"am__fastdepCC\" was never defined.
13863     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13864 michael 912 fi
13865 michael 945 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13866 michael 967 as_fn_error "conditional \"INSTALL_LTDL\" was never defined.
13867     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13868 michael 912 fi
13869 michael 945 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13870 michael 967 as_fn_error "conditional \"CONVENIENCE_LTDL\" was never defined.
13871     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13872 michael 945 fi
13873     LT_CONFIG_H=config.h
13874 michael 942
13875 michael 945 _ltdl_libobjs=
13876     _ltdl_ltlibobjs=
13877     if test -n "$_LT_LIBOBJS"; then
13878     # Remove the extension.
13879     _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
13880     for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
13881     _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
13882     _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
13883     done
13884     fi
13885     ltdl_LIBOBJS=$_ltdl_libobjs
13886    
13887     ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
13888    
13889    
13890    
13891 michael 912 if test -z "${ENABLE_SSL_TRUE}" && test -z "${ENABLE_SSL_FALSE}"; then
13892 michael 967 as_fn_error "conditional \"ENABLE_SSL\" was never defined.
13893     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13894 michael 912 fi
13895     if test -z "${EFNET_TRUE}" && test -z "${EFNET_FALSE}"; then
13896 michael 967 as_fn_error "conditional \"EFNET\" was never defined.
13897     Usually this means the macro was only invoked conditionally." "$LINENO" 5
13898 michael 912 fi
13899    
13900     : ${CONFIG_STATUS=./config.status}
13901 db 941 ac_write_fail=0
13902 michael 912 ac_clean_files_save=$ac_clean_files
13903     ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13904 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13905 db 941 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13906 michael 967 as_write_fail=0
13907     cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13908 michael 912 #! $SHELL
13909     # Generated by $as_me.
13910     # Run this file to recreate the current configuration.
13911     # Compiler output produced by configure, useful for debugging
13912     # configure, is in config.log if it exists.
13913    
13914     debug=false
13915     ac_cs_recheck=false
13916     ac_cs_silent=false
13917 michael 967
13918 michael 912 SHELL=\${CONFIG_SHELL-$SHELL}
13919 michael 967 export SHELL
13920     _ASEOF
13921     cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13922     ## -------------------- ##
13923     ## M4sh Initialization. ##
13924     ## -------------------- ##
13925 michael 912
13926     # Be more Bourne compatible
13927     DUALCASE=1; export DUALCASE # for MKS sh
13928 michael 967 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13929 michael 912 emulate sh
13930     NULLCMD=:
13931 db 941 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13932 michael 912 # is contrary to our usage. Disable this feature.
13933     alias -g '${1+"$@"}'='"$@"'
13934     setopt NO_GLOB_SUBST
13935     else
13936 michael 967 case `(set -o) 2>/dev/null` in #(
13937     *posix*) :
13938     set -o posix ;; #(
13939     *) :
13940     ;;
13941 michael 912 esac
13942     fi
13943    
13944    
13945 db 941 as_nl='
13946     '
13947     export as_nl
13948     # Printing a long string crashes Solaris 7 /usr/bin/printf.
13949     as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13950     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13951     as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13952 michael 967 # Prefer a ksh shell builtin over an external printf program on Solaris,
13953     # but without wasting forks for bash or zsh.
13954     if test -z "$BASH_VERSION$ZSH_VERSION" \
13955     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13956     as_echo='print -r --'
13957     as_echo_n='print -rn --'
13958     elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13959 db 941 as_echo='printf %s\n'
13960     as_echo_n='printf %s'
13961     else
13962     if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13963     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13964     as_echo_n='/usr/ucb/echo -n'
13965 michael 912 else
13966 db 941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13967     as_echo_n_body='eval
13968     arg=$1;
13969 michael 967 case $arg in #(
13970 db 941 *"$as_nl"*)
13971     expr "X$arg" : "X\\(.*\\)$as_nl";
13972     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13973     esac;
13974     expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13975     '
13976     export as_echo_n_body
13977     as_echo_n='sh -c $as_echo_n_body as_echo'
13978 michael 912 fi
13979 db 941 export as_echo_body
13980     as_echo='sh -c $as_echo_body as_echo'
13981 michael 912 fi
13982    
13983 db 941 # The user is always right.
13984     if test "${PATH_SEPARATOR+set}" != set; then
13985     PATH_SEPARATOR=:
13986     (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13987     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13988     PATH_SEPARATOR=';'
13989     }
13990     fi
13991    
13992 michael 912
13993     # IFS
13994     # We need space, tab and new line, in precisely that order. Quoting is
13995     # there to prevent editors from complaining about space-tab.
13996     # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13997     # splitting by setting IFS to empty value.)
13998     IFS=" "" $as_nl"
13999    
14000     # Find who we are. Look in the path if we contain no directory separator.
14001 michael 967 case $0 in #((
14002 michael 912 *[\\/]* ) as_myself=$0 ;;
14003     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14004     for as_dir in $PATH
14005     do
14006     IFS=$as_save_IFS
14007     test -z "$as_dir" && as_dir=.
14008 michael 967 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14009     done
14010 michael 912 IFS=$as_save_IFS
14011    
14012     ;;
14013     esac
14014     # We did not find ourselves, most probably we were run as `sh COMMAND'
14015     # in which case we are not to be found in the path.
14016     if test "x$as_myself" = x; then
14017     as_myself=$0
14018     fi
14019     if test ! -f "$as_myself"; then
14020 db 941 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14021 michael 967 exit 1
14022 michael 912 fi
14023    
14024 michael 967 # Unset variables that we do not need and which cause bugs (e.g. in
14025     # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14026     # suppresses any "Segmentation fault" message there. '((' could
14027     # trigger a bug in pdksh 5.2.14.
14028     for as_var in BASH_ENV ENV MAIL MAILPATH
14029     do eval test x\${$as_var+set} = xset \
14030     && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14031 michael 912 done
14032     PS1='$ '
14033     PS2='> '
14034     PS4='+ '
14035    
14036     # NLS nuisances.
14037 db 941 LC_ALL=C
14038     export LC_ALL
14039     LANGUAGE=C
14040     export LANGUAGE
14041 michael 912
14042 michael 967 # CDPATH.
14043     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14044    
14045    
14046     # as_fn_error ERROR [LINENO LOG_FD]
14047     # ---------------------------------
14048     # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14049     # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14050     # script with status $?, using 1 if that was 0.
14051     as_fn_error ()
14052     {
14053     as_status=$?; test $as_status -eq 0 && as_status=1
14054     if test "$3"; then
14055     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14056     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14057     fi
14058     $as_echo "$as_me: error: $1" >&2
14059     as_fn_exit $as_status
14060     } # as_fn_error
14061    
14062    
14063     # as_fn_set_status STATUS
14064     # -----------------------
14065     # Set $? to STATUS, without forking.
14066     as_fn_set_status ()
14067     {
14068     return $1
14069     } # as_fn_set_status
14070    
14071     # as_fn_exit STATUS
14072     # -----------------
14073     # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14074     as_fn_exit ()
14075     {
14076     set +e
14077     as_fn_set_status $1
14078     exit $1
14079     } # as_fn_exit
14080    
14081     # as_fn_unset VAR
14082     # ---------------
14083     # Portably unset VAR.
14084     as_fn_unset ()
14085     {
14086     { eval $1=; unset $1;}
14087     }
14088     as_unset=as_fn_unset
14089     # as_fn_append VAR VALUE
14090     # ----------------------
14091     # Append the text in VALUE to the end of the definition contained in VAR. Take
14092     # advantage of any shell optimizations that allow amortized linear growth over
14093     # repeated appends, instead of the typical quadratic growth present in naive
14094     # implementations.
14095     if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14096     eval 'as_fn_append ()
14097     {
14098     eval $1+=\$2
14099     }'
14100     else
14101     as_fn_append ()
14102     {
14103     eval $1=\$$1\$2
14104     }
14105     fi # as_fn_append
14106    
14107     # as_fn_arith ARG...
14108     # ------------------
14109     # Perform arithmetic evaluation on the ARGs, and store the result in the
14110     # global $as_val. Take advantage of shells that can avoid forks. The arguments
14111     # must be portable across $(()) and expr.
14112     if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14113     eval 'as_fn_arith ()
14114     {
14115     as_val=$(( $* ))
14116     }'
14117     else
14118     as_fn_arith ()
14119     {
14120     as_val=`expr "$@" || test $? -eq 1`
14121     }
14122     fi # as_fn_arith
14123    
14124    
14125 michael 912 if expr a : '\(a\)' >/dev/null 2>&1 &&
14126     test "X`expr 00001 : '.*\(...\)'`" = X001; then
14127     as_expr=expr
14128     else
14129     as_expr=false
14130     fi
14131    
14132     if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14133     as_basename=basename
14134     else
14135     as_basename=false
14136     fi
14137    
14138 michael 967 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14139     as_dirname=dirname
14140     else
14141     as_dirname=false
14142     fi
14143 michael 912
14144     as_me=`$as_basename -- "$0" ||
14145     $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14146     X"$0" : 'X\(//\)$' \| \
14147     X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14148 db 941 $as_echo X/"$0" |
14149 michael 912 sed '/^.*\/\([^/][^/]*\)\/*$/{
14150     s//\1/
14151     q
14152     }
14153     /^X\/\(\/\/\)$/{
14154     s//\1/
14155     q
14156     }
14157     /^X\/\(\/\).*/{
14158     s//\1/
14159     q
14160     }
14161     s/.*/./; q'`
14162    
14163 michael 967 # Avoid depending upon Character Ranges.
14164     as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14165     as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14166     as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14167     as_cr_digits='0123456789'
14168     as_cr_alnum=$as_cr_Letters$as_cr_digits
14169 michael 912
14170     ECHO_C= ECHO_N= ECHO_T=
14171 michael 967 case `echo -n x` in #(((((
14172 michael 912 -n*)
14173 michael 967 case `echo 'xy\c'` in
14174 michael 912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14175 michael 967 xy) ECHO_C='\c';;
14176     *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14177     ECHO_T=' ';;
14178 michael 912 esac;;
14179     *)
14180     ECHO_N='-n';;
14181     esac
14182    
14183     rm -f conf$$ conf$$.exe conf$$.file
14184     if test -d conf$$.dir; then
14185     rm -f conf$$.dir/conf$$.file
14186     else
14187     rm -f conf$$.dir
14188 db 941 mkdir conf$$.dir 2>/dev/null
14189 michael 912 fi
14190 db 941 if (echo >conf$$.file) 2>/dev/null; then
14191     if ln -s conf$$.file conf$$ 2>/dev/null; then
14192     as_ln_s='ln -s'
14193     # ... but there are two gotchas:
14194     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14195     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14196     # In both cases, we have to default to `cp -p'.
14197     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14198     as_ln_s='cp -p'
14199     elif ln conf$$.file conf$$ 2>/dev/null; then
14200     as_ln_s=ln
14201     else
14202 michael 912 as_ln_s='cp -p'
14203 db 941 fi
14204 michael 912 else
14205     as_ln_s='cp -p'
14206     fi
14207     rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14208     rmdir conf$$.dir 2>/dev/null
14209    
14210 michael 967
14211     # as_fn_mkdir_p
14212     # -------------
14213     # Create "$as_dir" as a directory, including parents if necessary.
14214     as_fn_mkdir_p ()
14215     {
14216    
14217     case $as_dir in #(
14218     -*) as_dir=./$as_dir;;
14219     esac
14220     test -d "$as_dir" || eval $as_mkdir_p || {
14221     as_dirs=
14222     while :; do
14223     case $as_dir in #(
14224     *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14225     *) as_qdir=$as_dir;;
14226     esac
14227     as_dirs="'$as_qdir' $as_dirs"
14228     as_dir=`$as_dirname -- "$as_dir" ||
14229     $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14230     X"$as_dir" : 'X\(//\)[^/]' \| \
14231     X"$as_dir" : 'X\(//\)$' \| \
14232     X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14233     $as_echo X"$as_dir" |
14234     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14235     s//\1/
14236     q
14237     }
14238     /^X\(\/\/\)[^/].*/{
14239     s//\1/
14240     q
14241     }
14242     /^X\(\/\/\)$/{
14243     s//\1/
14244     q
14245     }
14246     /^X\(\/\).*/{
14247     s//\1/
14248     q
14249     }
14250     s/.*/./; q'`
14251     test -d "$as_dir" && break
14252     done
14253     test -z "$as_dirs" || eval "mkdir $as_dirs"
14254     } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14255    
14256    
14257     } # as_fn_mkdir_p
14258 michael 912 if mkdir -p . 2>/dev/null; then
14259 michael 967 as_mkdir_p='mkdir -p "$as_dir"'
14260 michael 912 else
14261     test -d ./-p && rmdir ./-p
14262     as_mkdir_p=false
14263     fi
14264    
14265     if test -x / >/dev/null 2>&1; then
14266     as_test_x='test -x'
14267     else
14268     if ls -dL / >/dev/null 2>&1; then
14269     as_ls_L_option=L
14270     else
14271     as_ls_L_option=
14272     fi
14273     as_test_x='
14274     eval sh -c '\''
14275     if test -d "$1"; then
14276 db 941 test -d "$1/.";
14277 michael 912 else
14278 michael 967 case $1 in #(
14279 db 941 -*)set "./$1";;
14280 michael 912 esac;
14281 michael 967 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14282 michael 912 ???[sx]*):;;*)false;;esac;fi
14283     '\'' sh
14284     '
14285     fi
14286     as_executable_p=$as_test_x
14287    
14288     # Sed expression to map a string onto a valid CPP name.
14289     as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14290    
14291     # Sed expression to map a string onto a valid variable name.
14292     as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14293    
14294    
14295     exec 6>&1
14296 michael 967 ## ----------------------------------- ##
14297     ## Main body of $CONFIG_STATUS script. ##
14298     ## ----------------------------------- ##
14299     _ASEOF
14300     test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14301 michael 912
14302 michael 967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14303     # Save the log message, to keep $0 and so on meaningful, and to
14304 michael 912 # report actual input values of CONFIG_FILES etc. instead of their
14305     # values after options handling.
14306     ac_log="
14307     This file was extended by ircd-hybrid $as_me 7.2.4, which was
14308 michael 967 generated by GNU Autoconf 2.64. Invocation command line was
14309 michael 912
14310     CONFIG_FILES = $CONFIG_FILES
14311     CONFIG_HEADERS = $CONFIG_HEADERS
14312     CONFIG_LINKS = $CONFIG_LINKS
14313     CONFIG_COMMANDS = $CONFIG_COMMANDS
14314     $ $0 $@
14315    
14316     on `(hostname || uname -n) 2>/dev/null | sed 1q`
14317     "
14318    
14319     _ACEOF
14320    
14321 michael 942 case $ac_config_files in *"
14322     "*) set x $ac_config_files; shift; ac_config_files=$*;;
14323     esac
14324    
14325     case $ac_config_headers in *"
14326     "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14327     esac
14328    
14329    
14330 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14331 michael 912 # Files that config.status was made for.
14332 michael 967 config_files="$ac_config_files"
14333     config_headers="$ac_config_headers"
14334     config_commands="$ac_config_commands"
14335 michael 912
14336     _ACEOF
14337    
14338 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14339 michael 912 ac_cs_usage="\
14340 michael 967 \`$as_me' instantiates files and other configuration actions
14341     from templates according to the current configuration. Unless the files
14342     and actions are specified as TAGs, all are instantiated by default.
14343 michael 912
14344 michael 967 Usage: $0 [OPTION]... [TAG]...
14345 michael 912
14346     -h, --help print this help, then exit
14347     -V, --version print version number and configuration settings, then exit
14348 michael 942 -q, --quiet, --silent
14349     do not print progress messages
14350 michael 912 -d, --debug don't remove temporary files
14351     --recheck update $as_me by reconfiguring in the same conditions
14352 michael 942 --file=FILE[:TEMPLATE]
14353 db 941 instantiate the configuration file FILE
14354 michael 942 --header=FILE[:TEMPLATE]
14355 db 941 instantiate the configuration header FILE
14356 michael 912
14357     Configuration files:
14358     $config_files
14359    
14360     Configuration headers:
14361     $config_headers
14362    
14363     Configuration commands:
14364     $config_commands
14365    
14366 michael 967 Report bugs to the package provider."
14367 michael 912
14368     _ACEOF
14369 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14370 michael 912 ac_cs_version="\\
14371     ircd-hybrid config.status 7.2.4
14372 michael 967 configured by $0, generated by GNU Autoconf 2.64,
14373 db 941 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
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 912 --debug | --debu | --deb | --de | --d | -d )
14412     debug=: ;;
14413     --file | --fil | --fi | --f )
14414     $ac_shift
14415 db 941 case $ac_optarg in
14416     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14417     esac
14418 michael 967 as_fn_append CONFIG_FILES " '$ac_optarg'"
14419 michael 912 ac_need_defaults=false;;
14420     --header | --heade | --head | --hea )
14421     $ac_shift
14422 db 941 case $ac_optarg in
14423     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14424     esac
14425 michael 967 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14426 michael 912 ac_need_defaults=false;;
14427     --he | --h)
14428     # Conflict between --help and --header
14429 michael 967 as_fn_error "ambiguous option: \`$1'
14430     Try \`$0 --help' for more information.";;
14431 michael 912 --help | --hel | -h )
14432 db 941 $as_echo "$ac_cs_usage"; exit ;;
14433 michael 912 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14434     | -silent | --silent | --silen | --sile | --sil | --si | --s)
14435     ac_cs_silent=: ;;
14436    
14437     # This is an error.
14438 michael 967 -*) as_fn_error "unrecognized option: \`$1'
14439     Try \`$0 --help' for more information." ;;
14440 michael 912
14441 michael 967 *) as_fn_append ac_config_targets " $1"
14442 michael 912 ac_need_defaults=false ;;
14443    
14444     esac
14445     shift
14446     done
14447    
14448     ac_configure_extra_args=
14449    
14450     if $ac_cs_silent; then
14451     exec 6>/dev/null
14452     ac_configure_extra_args="$ac_configure_extra_args --silent"
14453     fi
14454    
14455     _ACEOF
14456 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14457 michael 912 if \$ac_cs_recheck; then
14458 db 941 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14459     shift
14460     \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14461     CONFIG_SHELL='$SHELL'
14462 michael 912 export CONFIG_SHELL
14463 db 941 exec "\$@"
14464 michael 912 fi
14465    
14466     _ACEOF
14467 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14468 michael 912 exec 5>>config.log
14469     {
14470     echo
14471     sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14472     ## Running $as_me. ##
14473     _ASBOX
14474 db 941 $as_echo "$ac_log"
14475 michael 912 } >&5
14476    
14477     _ACEOF
14478 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14479 michael 912 #
14480     # INIT-COMMANDS
14481     #
14482     AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14483    
14484 michael 945
14485     # The HP-UX ksh and POSIX shell print the target directory to stdout
14486     # if CDPATH is set.
14487     (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14488    
14489     sed_quote_subst='$sed_quote_subst'
14490     double_quote_subst='$double_quote_subst'
14491     delay_variable_subst='$delay_variable_subst'
14492     macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
14493     macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
14494 michael 977 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
14495 michael 945 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
14496     pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
14497     enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
14498     host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
14499     host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
14500     host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
14501     build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
14502     build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
14503     build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
14504     SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
14505     Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
14506     GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
14507     EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
14508     FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
14509     LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
14510     NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
14511     LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
14512     max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
14513     ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
14514     exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
14515     lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
14516     lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
14517     lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
14518     reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
14519     reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14520     OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
14521     deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
14522     file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
14523     AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
14524     AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14525     STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
14526     RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
14527     old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14528     old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14529     old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14530     CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
14531     CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
14532     compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
14533     GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
14534     lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
14535     lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
14536     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"`'
14537     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"`'
14538     objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
14539     SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
14540     ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
14541     MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
14542     lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
14543     lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
14544     lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
14545     lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
14546     lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
14547     need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
14548     DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
14549     NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
14550     LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
14551     OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
14552     OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
14553     libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
14554     shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14555     extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14556     archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
14557     enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
14558     export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14559     whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14560     compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
14561     old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14562     old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14563     archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14564     archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14565     module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14566     module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14567     with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
14568     allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14569     no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
14570     hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
14571     hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
14572     hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
14573     hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
14574     hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
14575     hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
14576     hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14577     hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
14578     inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
14579     link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
14580     fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
14581     always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
14582     export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14583     exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14584     include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
14585     prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14586     file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
14587     variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
14588     need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
14589     need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
14590     version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
14591     runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14592     shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
14593     shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
14594     libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14595     library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
14596     soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
14597     postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14598     postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14599     finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
14600     finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
14601     hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
14602     sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14603     sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
14604     hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
14605     enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
14606     enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
14607     enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
14608     old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
14609     striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
14610    
14611     LTCC='$LTCC'
14612     LTCFLAGS='$LTCFLAGS'
14613     compiler='$compiler_DEFAULT'
14614    
14615     # Quote evaled strings.
14616     for var in SED \
14617     GREP \
14618     EGREP \
14619     FGREP \
14620     LD \
14621     NM \
14622     LN_S \
14623     lt_SP2NL \
14624     lt_NL2SP \
14625     reload_flag \
14626     OBJDUMP \
14627     deplibs_check_method \
14628     file_magic_cmd \
14629     AR \
14630     AR_FLAGS \
14631     STRIP \
14632     RANLIB \
14633     CC \
14634     CFLAGS \
14635     compiler \
14636     lt_cv_sys_global_symbol_pipe \
14637     lt_cv_sys_global_symbol_to_cdecl \
14638     lt_cv_sys_global_symbol_to_c_name_address \
14639     lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
14640     SHELL \
14641     ECHO \
14642     lt_prog_compiler_no_builtin_flag \
14643     lt_prog_compiler_wl \
14644     lt_prog_compiler_pic \
14645     lt_prog_compiler_static \
14646     lt_cv_prog_compiler_c_o \
14647     need_locks \
14648     DSYMUTIL \
14649     NMEDIT \
14650     LIPO \
14651     OTOOL \
14652     OTOOL64 \
14653     shrext_cmds \
14654     export_dynamic_flag_spec \
14655     whole_archive_flag_spec \
14656     compiler_needs_object \
14657     with_gnu_ld \
14658     allow_undefined_flag \
14659     no_undefined_flag \
14660     hardcode_libdir_flag_spec \
14661     hardcode_libdir_flag_spec_ld \
14662     hardcode_libdir_separator \
14663     fix_srcfile_path \
14664     exclude_expsyms \
14665     include_expsyms \
14666     file_list_spec \
14667     variables_saved_for_relink \
14668     libname_spec \
14669     library_names_spec \
14670     soname_spec \
14671     finish_eval \
14672     old_striplib \
14673     striplib; do
14674     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14675     *[\\\\\\\`\\"\\\$]*)
14676     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
14677     ;;
14678     *)
14679     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14680     ;;
14681     esac
14682     done
14683    
14684     # Double-quote double-evaled strings.
14685     for var in reload_cmds \
14686     old_postinstall_cmds \
14687     old_postuninstall_cmds \
14688     old_archive_cmds \
14689     extract_expsyms_cmds \
14690     old_archive_from_new_cmds \
14691     old_archive_from_expsyms_cmds \
14692     archive_cmds \
14693     archive_expsym_cmds \
14694     module_cmds \
14695     module_expsym_cmds \
14696     export_symbols_cmds \
14697     prelink_cmds \
14698     postinstall_cmds \
14699     postuninstall_cmds \
14700     finish_cmds \
14701     sys_lib_search_path_spec \
14702     sys_lib_dlsearch_path_spec; do
14703     case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
14704     *[\\\\\\\`\\"\\\$]*)
14705     eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
14706     ;;
14707     *)
14708     eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
14709     ;;
14710     esac
14711     done
14712    
14713     # Fix-up fallback echo if it was mangled by the above quoting rules.
14714     case \$lt_ECHO in
14715     *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
14716     ;;
14717     esac
14718    
14719     ac_aux_dir='$ac_aux_dir'
14720     xsi_shell='$xsi_shell'
14721     lt_shell_append='$lt_shell_append'
14722    
14723     # See if we are running on zsh, and set the options which allow our
14724     # commands through without removal of \ escapes INIT.
14725     if test -n "\${ZSH_VERSION+set}" ; then
14726     setopt NO_GLOB_SUBST
14727     fi
14728    
14729    
14730     PACKAGE='$PACKAGE'
14731     VERSION='$VERSION'
14732     TIMESTAMP='$TIMESTAMP'
14733     RM='$RM'
14734     ofile='$ofile'
14735    
14736    
14737    
14738    
14739 michael 912 _ACEOF
14740    
14741 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14742 michael 912
14743     # Handling of arguments.
14744     for ac_config_target in $ac_config_targets
14745     do
14746     case $ac_config_target in
14747     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
14748     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
14749 michael 945 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
14750 michael 912 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14751     "etc/Makefile") CONFIG_FILES="$CONFIG_FILES etc/Makefile" ;;
14752     "etc/example.conf") CONFIG_FILES="$CONFIG_FILES etc/example.conf" ;;
14753     "etc/example.conf.quick") CONFIG_FILES="$CONFIG_FILES etc/example.conf.quick" ;;
14754     "etc/example.efnet.conf") CONFIG_FILES="$CONFIG_FILES etc/example.efnet.conf" ;;
14755     "servlink/Makefile") CONFIG_FILES="$CONFIG_FILES servlink/Makefile" ;;
14756     "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
14757     "contrib/help/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/help/Makefile" ;;
14758     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14759     "messages/Makefile") CONFIG_FILES="$CONFIG_FILES messages/Makefile" ;;
14760     "modules/Makefile") CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
14761     "modules/core/Makefile") CONFIG_FILES="$CONFIG_FILES modules/core/Makefile" ;;
14762     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14763     "help/Makefile") CONFIG_FILES="$CONFIG_FILES help/Makefile" ;;
14764     "help/opers/Makefile") CONFIG_FILES="$CONFIG_FILES help/opers/Makefile" ;;
14765     "help/users/Makefile") CONFIG_FILES="$CONFIG_FILES help/users/Makefile" ;;
14766     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
14767     "lib/pcre/Makefile") CONFIG_FILES="$CONFIG_FILES lib/pcre/Makefile" ;;
14768 michael 922 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
14769 michael 912
14770 michael 967 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
14771 michael 912 esac
14772     done
14773    
14774    
14775     # If the user did not use the arguments to specify the items to instantiate,
14776     # then the envvar interface is used. Set only those that are not.
14777     # We use the long form for the default assignment because of an extremely
14778     # bizarre bug on SunOS 4.1.3.
14779     if $ac_need_defaults; then
14780     test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14781     test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14782     test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14783     fi
14784    
14785     # Have a temporary directory for convenience. Make it in the build tree
14786     # simply because there is no reason against having it here, and in addition,
14787     # creating and moving files from /tmp can sometimes cause problems.
14788     # Hook for its removal unless debugging.
14789     # Note that there is a small window in which the directory will not be cleaned:
14790     # after its creation but before its name has been assigned to `$tmp'.
14791     $debug ||
14792     {
14793     tmp=
14794     trap 'exit_status=$?
14795     { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14796     ' 0
14797 michael 967 trap 'as_fn_exit 1' 1 2 13 15
14798 michael 912 }
14799     # Create a (secure) tmp directory for tmp files.
14800    
14801     {
14802     tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14803     test -n "$tmp" && test -d "$tmp"
14804     } ||
14805     {
14806     tmp=./conf$$-$RANDOM
14807     (umask 077 && mkdir "$tmp")
14808 michael 967 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
14809 michael 912
14810 db 941 # Set up the scripts for CONFIG_FILES section.
14811     # No need to generate them if there are no CONFIG_FILES.
14812     # This happens for instance with `./config.status config.h'.
14813 michael 912 if test -n "$CONFIG_FILES"; then
14814    
14815 db 941
14816 michael 967 ac_cr=`echo X | tr X '\015'`
14817     # On cygwin, bash can eat \r inside `` if the user requested igncr.
14818     # But we know of no other shell where ac_cr would be empty at this
14819     # point, so we can use a bashism as a fallback.
14820     if test "x$ac_cr" = x; then
14821     eval ac_cr=\$\'\\r\'
14822     fi
14823 db 941 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14824     if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14825 michael 967 ac_cs_awk_cr='\r'
14826 db 941 else
14827     ac_cs_awk_cr=$ac_cr
14828     fi
14829    
14830     echo 'BEGIN {' >"$tmp/subs1.awk" &&
14831 michael 912 _ACEOF
14832    
14833    
14834 db 941 {
14835     echo "cat >conf$$subs.awk <<_ACEOF" &&
14836     echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14837     echo "_ACEOF"
14838     } >conf$$subs.sh ||
14839 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14840 db 941 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14841 michael 912 ac_delim='%!_!# '
14842     for ac_last_try in false false false false false :; do
14843 db 941 . ./conf$$subs.sh ||
14844 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14845 michael 912
14846 michael 942 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14847     if test $ac_delim_n = $ac_delim_num; then
14848 michael 912 break
14849     elif $ac_last_try; then
14850 michael 967 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
14851 michael 912 else
14852     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14853     fi
14854     done
14855 db 941 rm -f conf$$subs.sh
14856 michael 912
14857 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14858     cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
14859 michael 912 _ACEOF
14860 db 941 sed -n '
14861     h
14862     s/^/S["/; s/!.*/"]=/
14863     p
14864     g
14865     s/^[^!]*!//
14866     :repl
14867     t repl
14868     s/'"$ac_delim"'$//
14869     t delim
14870     :nl
14871     h
14872     s/\(.\{148\}\).*/\1/
14873     t more1
14874     s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14875     p
14876     n
14877     b repl
14878     :more1
14879     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14880     p
14881     g
14882     s/.\{148\}//
14883     t nl
14884     :delim
14885     h
14886     s/\(.\{148\}\).*/\1/
14887     t more2
14888     s/["\\]/\\&/g; s/^/"/; s/$/"/
14889     p
14890     b
14891     :more2
14892     s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14893     p
14894     g
14895     s/.\{148\}//
14896     t delim
14897     ' <conf$$subs.awk | sed '
14898     /^[^""]/{
14899     N
14900     s/\n//
14901     }
14902     ' >>$CONFIG_STATUS || ac_write_fail=1
14903     rm -f conf$$subs.awk
14904     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14905     _ACAWK
14906     cat >>"\$tmp/subs1.awk" <<_ACAWK &&
14907     for (key in S) S_is_set[key] = 1
14908     FS = ""
14909 michael 912
14910 db 941 }
14911     {
14912     line = $ 0
14913     nfields = split(line, field, "@")
14914     substed = 0
14915     len = length(field[1])
14916     for (i = 2; i < nfields; i++) {
14917     key = field[i]
14918     keylen = length(key)
14919     if (S_is_set[key]) {
14920     value = S[key]
14921     line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14922     len += length(value) + length(field[++i])
14923     substed = 1
14924     } else
14925     len += 1 + keylen
14926     }
14927 michael 912
14928 db 941 print line
14929     }
14930    
14931     _ACAWK
14932 michael 912 _ACEOF
14933 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14934     if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14935     sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14936     else
14937     cat
14938     fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14939 michael 967 || as_fn_error "could not setup config files machinery" "$LINENO" 5
14940 michael 912 _ACEOF
14941    
14942     # VPATH may cause trouble with some makes, so we remove $(srcdir),
14943     # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14944     # trailing colons and then remove the whole line if VPATH becomes empty
14945     # (actually we leave an empty line to preserve line numbers).
14946     if test "x$srcdir" = x.; then
14947     ac_vpsub='/^[ ]*VPATH[ ]*=/{
14948     s/:*\$(srcdir):*/:/
14949     s/:*\${srcdir}:*/:/
14950     s/:*@srcdir@:*/:/
14951     s/^\([^=]*=[ ]*\):*/\1/
14952     s/:*$//
14953     s/^[^=]*=[ ]*$//
14954     }'
14955     fi
14956    
14957 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14958 michael 912 fi # test -n "$CONFIG_FILES"
14959    
14960 db 941 # Set up the scripts for CONFIG_HEADERS section.
14961     # No need to generate them if there are no CONFIG_HEADERS.
14962     # This happens for instance with `./config.status Makefile'.
14963     if test -n "$CONFIG_HEADERS"; then
14964     cat >"$tmp/defines.awk" <<\_ACAWK ||
14965     BEGIN {
14966     _ACEOF
14967 michael 912
14968 db 941 # Transform confdefs.h into an awk script `defines.awk', embedded as
14969     # here-document in config.status, that substitutes the proper values into
14970     # config.h.in to produce config.h.
14971    
14972     # Create a delimiter string that does not exist in confdefs.h, to ease
14973     # handling of long lines.
14974     ac_delim='%!_!# '
14975     for ac_last_try in false false :; do
14976     ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14977     if test -z "$ac_t"; then
14978     break
14979     elif $ac_last_try; then
14980 michael 967 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
14981 db 941 else
14982     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14983     fi
14984     done
14985    
14986     # For the awk script, D is an array of macro values keyed by name,
14987     # likewise P contains macro parameters if any. Preserve backslash
14988     # newline sequences.
14989    
14990     ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14991     sed -n '
14992     s/.\{148\}/&'"$ac_delim"'/g
14993     t rset
14994     :rset
14995     s/^[ ]*#[ ]*define[ ][ ]*/ /
14996     t def
14997     d
14998     :def
14999     s/\\$//
15000     t bsnl
15001     s/["\\]/\\&/g
15002     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15003     D["\1"]=" \3"/p
15004     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15005     d
15006     :bsnl
15007     s/["\\]/\\&/g
15008     s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15009     D["\1"]=" \3\\\\\\n"\\/p
15010     t cont
15011     s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15012     t cont
15013     d
15014     :cont
15015     n
15016     s/.\{148\}/&'"$ac_delim"'/g
15017     t clear
15018     :clear
15019     s/\\$//
15020     t bsnlc
15021     s/["\\]/\\&/g; s/^/"/; s/$/"/p
15022     d
15023     :bsnlc
15024     s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15025     b cont
15026     ' <confdefs.h | sed '
15027     s/'"$ac_delim"'/"\\\
15028     "/g' >>$CONFIG_STATUS || ac_write_fail=1
15029    
15030     cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15031     for (key in D) D_is_set[key] = 1
15032     FS = ""
15033     }
15034     /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15035     line = \$ 0
15036     split(line, arg, " ")
15037     if (arg[1] == "#") {
15038     defundef = arg[2]
15039     mac1 = arg[3]
15040     } else {
15041     defundef = substr(arg[1], 2)
15042     mac1 = arg[2]
15043     }
15044     split(mac1, mac2, "(") #)
15045     macro = mac2[1]
15046 michael 942 prefix = substr(line, 1, index(line, defundef) - 1)
15047 db 941 if (D_is_set[macro]) {
15048     # Preserve the white space surrounding the "#".
15049     print prefix "define", macro P[macro] D[macro]
15050     next
15051     } else {
15052     # Replace #undef with comments. This is necessary, for example,
15053     # in the case of _POSIX_SOURCE, which is predefined and required
15054     # on some systems where configure will not decide to define it.
15055     if (defundef == "undef") {
15056 michael 942 print "/*", prefix defundef, macro, "*/"
15057 db 941 next
15058     }
15059     }
15060     }
15061     { print }
15062     _ACAWK
15063     _ACEOF
15064     cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15065 michael 967 as_fn_error "could not setup config headers machinery" "$LINENO" 5
15066 db 941 fi # test -n "$CONFIG_HEADERS"
15067    
15068    
15069     eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15070     shift
15071     for ac_tag
15072 michael 912 do
15073     case $ac_tag in
15074     :[FHLC]) ac_mode=$ac_tag; continue;;
15075     esac
15076     case $ac_mode$ac_tag in
15077     :[FHL]*:*);;
15078 michael 967 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15079 michael 912 :[FH]-) ac_tag=-:-;;
15080     :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15081     esac
15082     ac_save_IFS=$IFS
15083     IFS=:
15084     set x $ac_tag
15085     IFS=$ac_save_IFS
15086     shift
15087     ac_file=$1
15088     shift
15089    
15090     case $ac_mode in
15091     :L) ac_source=$1;;
15092     :[FH])
15093     ac_file_inputs=
15094     for ac_f
15095     do
15096     case $ac_f in
15097     -) ac_f="$tmp/stdin";;
15098     *) # Look for the file first in the build tree, then in the source tree
15099     # (if the path is not absolute). The absolute path cannot be DOS-style,
15100     # because $ac_f cannot contain `:'.
15101     test -f "$ac_f" ||
15102     case $ac_f in
15103     [\\/$]*) false;;
15104     *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15105     esac ||
15106 michael 967 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15107 michael 912 esac
15108 db 941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15109 michael 967 as_fn_append ac_file_inputs " '$ac_f'"
15110 michael 912 done
15111    
15112     # Let's still pretend it is `configure' which instantiates (i.e., don't
15113     # use $as_me), people would be surprised to read:
15114     # /* config.h. Generated by config.status. */
15115 db 941 configure_input='Generated from '`
15116     $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15117     `' by configure.'
15118 michael 912 if test x"$ac_file" != x-; then
15119     configure_input="$ac_file. $configure_input"
15120 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15121 db 941 $as_echo "$as_me: creating $ac_file" >&6;}
15122 michael 912 fi
15123 db 941 # Neutralize special characters interpreted by sed in replacement strings.
15124     case $configure_input in #(
15125     *\&* | *\|* | *\\* )
15126     ac_sed_conf_input=`$as_echo "$configure_input" |
15127     sed 's/[\\\\&|]/\\\\&/g'`;; #(
15128     *) ac_sed_conf_input=$configure_input;;
15129     esac
15130 michael 912
15131     case $ac_tag in
15132 db 941 *:-:* | *:-) cat >"$tmp/stdin" \
15133 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15134 michael 912 esac
15135     ;;
15136     esac
15137    
15138     ac_dir=`$as_dirname -- "$ac_file" ||
15139     $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15140     X"$ac_file" : 'X\(//\)[^/]' \| \
15141     X"$ac_file" : 'X\(//\)$' \| \
15142     X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15143 db 941 $as_echo X"$ac_file" |
15144 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15145     s//\1/
15146     q
15147     }
15148     /^X\(\/\/\)[^/].*/{
15149     s//\1/
15150     q
15151     }
15152     /^X\(\/\/\)$/{
15153     s//\1/
15154     q
15155     }
15156     /^X\(\/\).*/{
15157     s//\1/
15158     q
15159     }
15160     s/.*/./; q'`
15161 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
15162 michael 912 ac_builddir=.
15163    
15164     case "$ac_dir" in
15165     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15166     *)
15167 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15168 michael 912 # A ".." for each directory in $ac_dir_suffix.
15169 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15170 michael 912 case $ac_top_builddir_sub in
15171     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15172     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15173     esac ;;
15174     esac
15175     ac_abs_top_builddir=$ac_pwd
15176     ac_abs_builddir=$ac_pwd$ac_dir_suffix
15177     # for backward compatibility:
15178     ac_top_builddir=$ac_top_build_prefix
15179    
15180     case $srcdir in
15181     .) # We are building in place.
15182     ac_srcdir=.
15183     ac_top_srcdir=$ac_top_builddir_sub
15184     ac_abs_top_srcdir=$ac_pwd ;;
15185     [\\/]* | ?:[\\/]* ) # Absolute name.
15186     ac_srcdir=$srcdir$ac_dir_suffix;
15187     ac_top_srcdir=$srcdir
15188     ac_abs_top_srcdir=$srcdir ;;
15189     *) # Relative name.
15190     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15191     ac_top_srcdir=$ac_top_build_prefix$srcdir
15192     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15193     esac
15194     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15195    
15196    
15197     case $ac_mode in
15198     :F)
15199     #
15200     # CONFIG_FILE
15201     #
15202    
15203     case $INSTALL in
15204     [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15205     *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15206     esac
15207     ac_MKDIR_P=$MKDIR_P
15208     case $MKDIR_P in
15209     [\\/$]* | ?:[\\/]* ) ;;
15210     */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15211     esac
15212     _ACEOF
15213    
15214 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15215 michael 912 # If the template does not know about datarootdir, expand it.
15216     # FIXME: This hack should be removed a few years after 2.60.
15217     ac_datarootdir_hack=; ac_datarootdir_seen=
15218 db 941 ac_sed_dataroot='
15219     /datarootdir/ {
15220 michael 912 p
15221     q
15222     }
15223     /@datadir@/p
15224     /@docdir@/p
15225     /@infodir@/p
15226     /@localedir@/p
15227 michael 967 /@mandir@/p'
15228 db 941 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15229 michael 912 *datarootdir*) ac_datarootdir_seen=yes;;
15230     *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15231 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15232 db 941 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15233 michael 912 _ACEOF
15234 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15235 michael 912 ac_datarootdir_hack='
15236     s&@datadir@&$datadir&g
15237     s&@docdir@&$docdir&g
15238     s&@infodir@&$infodir&g
15239     s&@localedir@&$localedir&g
15240     s&@mandir@&$mandir&g
15241 michael 967 s&\\\${datarootdir}&$datarootdir&g' ;;
15242 michael 912 esac
15243     _ACEOF
15244    
15245     # Neutralize VPATH when `$srcdir' = `.'.
15246     # Shell code in configure.ac might set extrasub.
15247     # FIXME: do we really want to maintain this feature?
15248 db 941 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15249     ac_sed_extra="$ac_vpsub
15250 michael 912 $extrasub
15251     _ACEOF
15252 db 941 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15253 michael 912 :t
15254     /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15255 db 941 s|@configure_input@|$ac_sed_conf_input|;t t
15256 michael 912 s&@top_builddir@&$ac_top_builddir_sub&;t t
15257 db 941 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15258 michael 912 s&@srcdir@&$ac_srcdir&;t t
15259     s&@abs_srcdir@&$ac_abs_srcdir&;t t
15260     s&@top_srcdir@&$ac_top_srcdir&;t t
15261     s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15262     s&@builddir@&$ac_builddir&;t t
15263     s&@abs_builddir@&$ac_abs_builddir&;t t
15264     s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15265     s&@INSTALL@&$ac_INSTALL&;t t
15266     s&@MKDIR_P@&$ac_MKDIR_P&;t t
15267     $ac_datarootdir_hack
15268 db 941 "
15269     eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15270 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15271 michael 912
15272     test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15273     { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15274     { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15275 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15276 michael 912 which seems to be undefined. Please make sure it is defined." >&5
15277 db 941 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15278 michael 912 which seems to be undefined. Please make sure it is defined." >&2;}
15279    
15280     rm -f "$tmp/stdin"
15281     case $ac_file in
15282 db 941 -) cat "$tmp/out" && rm -f "$tmp/out";;
15283     *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15284     esac \
15285 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15286 michael 912 ;;
15287     :H)
15288     #
15289     # CONFIG_HEADER
15290     #
15291     if test x"$ac_file" != x-; then
15292 db 941 {
15293     $as_echo "/* $configure_input */" \
15294     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15295     } >"$tmp/config.h" \
15296 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15297 db 941 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15298 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15299 db 941 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15300 michael 912 else
15301 db 941 rm -f "$ac_file"
15302     mv "$tmp/config.h" "$ac_file" \
15303 michael 967 || as_fn_error "could not create $ac_file" "$LINENO" 5
15304 michael 912 fi
15305     else
15306 db 941 $as_echo "/* $configure_input */" \
15307     && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15308 michael 967 || as_fn_error "could not create -" "$LINENO" 5
15309 michael 912 fi
15310 db 941 # Compute "$ac_file"'s index in $config_headers.
15311     _am_arg="$ac_file"
15312 michael 912 _am_stamp_count=1
15313     for _am_header in $config_headers :; do
15314     case $_am_header in
15315 db 941 $_am_arg | $_am_arg:* )
15316 michael 912 break ;;
15317     * )
15318     _am_stamp_count=`expr $_am_stamp_count + 1` ;;
15319     esac
15320     done
15321 db 941 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
15322     $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15323     X"$_am_arg" : 'X\(//\)[^/]' \| \
15324     X"$_am_arg" : 'X\(//\)$' \| \
15325     X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
15326     $as_echo X"$_am_arg" |
15327 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15328     s//\1/
15329     q
15330     }
15331     /^X\(\/\/\)[^/].*/{
15332     s//\1/
15333     q
15334     }
15335     /^X\(\/\/\)$/{
15336     s//\1/
15337     q
15338     }
15339     /^X\(\/\).*/{
15340     s//\1/
15341     q
15342     }
15343     s/.*/./; q'`/stamp-h$_am_stamp_count
15344     ;;
15345    
15346 michael 967 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15347 db 941 $as_echo "$as_me: executing $ac_file commands" >&6;}
15348 michael 912 ;;
15349     esac
15350    
15351    
15352     case $ac_file$ac_mode in
15353 michael 945 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15354     # Autoconf 2.62 quotes --file arguments for eval, but not when files
15355     # are listed without --file. Let's play safe and only enable the eval
15356     # if we detect the quoting.
15357     case $CONFIG_FILES in
15358     *\'*) eval set x "$CONFIG_FILES" ;;
15359     *) set x $CONFIG_FILES ;;
15360     esac
15361     shift
15362     for mf
15363     do
15364     # Strip MF so we end up with the name of the file.
15365     mf=`echo "$mf" | sed -e 's/:.*$//'`
15366     # Check whether this is an Automake generated Makefile or not.
15367     # We used to match only the files named `Makefile.in', but
15368     # some people rename them; so instead we look at the file content.
15369     # Grep'ing the first line is not enough: some people post-process
15370     # each Makefile.in and add a new line on top of each file to say so.
15371     # Grep'ing the whole file is not good either: AIX grep has a line
15372     # limit of 2048, but all sed's we know have understand at least 4000.
15373     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15374     dirpart=`$as_dirname -- "$mf" ||
15375 michael 912 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15376     X"$mf" : 'X\(//\)[^/]' \| \
15377     X"$mf" : 'X\(//\)$' \| \
15378     X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15379 db 941 $as_echo X"$mf" |
15380 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15381     s//\1/
15382     q
15383     }
15384     /^X\(\/\/\)[^/].*/{
15385     s//\1/
15386     q
15387     }
15388     /^X\(\/\/\)$/{
15389     s//\1/
15390     q
15391     }
15392     /^X\(\/\).*/{
15393     s//\1/
15394     q
15395     }
15396     s/.*/./; q'`
15397 michael 945 else
15398     continue
15399     fi
15400     # Extract the definition of DEPDIR, am__include, and am__quote
15401     # from the Makefile without running `make'.
15402     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15403     test -z "$DEPDIR" && continue
15404     am__include=`sed -n 's/^am__include = //p' < "$mf"`
15405     test -z "am__include" && continue
15406     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15407     # When using ansi2knr, U may be empty or an underscore; expand it
15408     U=`sed -n 's/^U = //p' < "$mf"`
15409     # Find all dependency output files, they are included files with
15410     # $(DEPDIR) in their names. We invoke sed twice because it is the
15411     # simplest approach to changing $(DEPDIR) to its actual value in the
15412     # expansion.
15413     for file in `sed -n "
15414     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15415     sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15416     # Make sure the directory exists.
15417     test -f "$dirpart/$file" && continue
15418     fdir=`$as_dirname -- "$file" ||
15419 michael 912 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15420     X"$file" : 'X\(//\)[^/]' \| \
15421     X"$file" : 'X\(//\)$' \| \
15422     X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15423 db 941 $as_echo X"$file" |
15424 michael 912 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15425     s//\1/
15426     q
15427     }
15428     /^X\(\/\/\)[^/].*/{
15429     s//\1/
15430     q
15431     }
15432     /^X\(\/\/\)$/{
15433     s//\1/
15434     q
15435     }
15436     /^X\(\/\).*/{
15437     s//\1/
15438     q
15439     }
15440     s/.*/./; q'`
15441 michael 967 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15442 michael 945 # echo "creating $dirpart/$file"
15443     echo '# dummy' > "$dirpart/$file"
15444     done
15445 michael 912 done
15446 michael 945 }
15447 michael 912 ;;
15448 michael 945 "libtool":C)
15449 michael 912
15450 michael 945 # See if we are running on zsh, and set the options which allow our
15451     # commands through without removal of \ escapes.
15452     if test -n "${ZSH_VERSION+set}" ; then
15453     setopt NO_GLOB_SUBST
15454     fi
15455    
15456     cfgfile="${ofile}T"
15457     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15458     $RM "$cfgfile"
15459    
15460     cat <<_LT_EOF >> "$cfgfile"
15461     #! $SHELL
15462    
15463     # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15464     # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15465     # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15466     # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15467     #
15468     # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15469     # 2006, 2007, 2008 Free Software Foundation, Inc.
15470     # Written by Gordon Matzigkeit, 1996
15471     #
15472     # This file is part of GNU Libtool.
15473     #
15474     # GNU Libtool is free software; you can redistribute it and/or
15475     # modify it under the terms of the GNU General Public License as
15476     # published by the Free Software Foundation; either version 2 of
15477     # the License, or (at your option) any later version.
15478     #
15479     # As a special exception to the GNU General Public License,
15480     # if you distribute this file as part of a program or library that
15481     # is built using GNU Libtool, you may include this file under the
15482     # same distribution terms that you use for the rest of that program.
15483     #
15484     # GNU Libtool is distributed in the hope that it will be useful,
15485     # but WITHOUT ANY WARRANTY; without even the implied warranty of
15486     # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15487     # GNU General Public License for more details.
15488     #
15489     # You should have received a copy of the GNU General Public License
15490     # along with GNU Libtool; see the file COPYING. If not, a copy
15491     # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15492     # obtained by writing to the Free Software Foundation, Inc.,
15493     # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15494    
15495    
15496     # The names of the tagged configurations supported by this script.
15497     available_tags=""
15498    
15499     # ### BEGIN LIBTOOL CONFIG
15500    
15501     # Which release of libtool.m4 was used?
15502     macro_version=$macro_version
15503     macro_revision=$macro_revision
15504    
15505 michael 977 # Whether or not to build static libraries.
15506     build_old_libs=$enable_static
15507    
15508 michael 945 # Whether or not to build shared libraries.
15509     build_libtool_libs=$enable_shared
15510    
15511     # What type of objects to build.
15512     pic_mode=$pic_mode
15513    
15514     # Whether or not to optimize for fast installation.
15515     fast_install=$enable_fast_install
15516    
15517     # The host system.
15518     host_alias=$host_alias
15519     host=$host
15520     host_os=$host_os
15521    
15522     # The build system.
15523     build_alias=$build_alias
15524     build=$build
15525     build_os=$build_os
15526    
15527     # A sed program that does not truncate output.
15528     SED=$lt_SED
15529    
15530     # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15531     Xsed="\$SED -e 1s/^X//"
15532    
15533     # A grep program that handles long lines.
15534     GREP=$lt_GREP
15535    
15536     # An ERE matcher.
15537     EGREP=$lt_EGREP
15538    
15539     # A literal string matcher.
15540     FGREP=$lt_FGREP
15541    
15542     # A BSD- or MS-compatible name lister.
15543     NM=$lt_NM
15544    
15545     # Whether we need soft or hard links.
15546     LN_S=$lt_LN_S
15547    
15548     # What is the maximum length of a command?
15549     max_cmd_len=$max_cmd_len
15550    
15551     # Object file suffix (normally "o").
15552     objext=$ac_objext
15553    
15554     # Executable file suffix (normally "").
15555     exeext=$exeext
15556    
15557     # whether the shell understands "unset".
15558     lt_unset=$lt_unset
15559    
15560     # turn spaces into newlines.
15561     SP2NL=$lt_lt_SP2NL
15562    
15563     # turn newlines into spaces.
15564     NL2SP=$lt_lt_NL2SP
15565    
15566     # How to create reloadable object files.
15567     reload_flag=$lt_reload_flag
15568     reload_cmds=$lt_reload_cmds
15569    
15570     # An object symbol dumper.
15571     OBJDUMP=$lt_OBJDUMP
15572    
15573     # Method to check whether dependent libraries are shared objects.
15574     deplibs_check_method=$lt_deplibs_check_method
15575    
15576     # Command to use when deplibs_check_method == "file_magic".
15577     file_magic_cmd=$lt_file_magic_cmd
15578    
15579     # The archiver.
15580     AR=$lt_AR
15581     AR_FLAGS=$lt_AR_FLAGS
15582    
15583     # A symbol stripping program.
15584     STRIP=$lt_STRIP
15585    
15586     # Commands used to install an old-style archive.
15587     RANLIB=$lt_RANLIB
15588     old_postinstall_cmds=$lt_old_postinstall_cmds
15589     old_postuninstall_cmds=$lt_old_postuninstall_cmds
15590    
15591     # A C compiler.
15592     LTCC=$lt_CC
15593    
15594     # LTCC compiler flags.
15595     LTCFLAGS=$lt_CFLAGS
15596    
15597     # Take the output of nm and produce a listing of raw symbols and C names.
15598     global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15599    
15600     # Transform the output of nm in a proper C declaration.
15601     global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15602    
15603     # Transform the output of nm in a C name address pair.
15604     global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15605    
15606     # Transform the output of nm in a C name address pair when lib prefix is needed.
15607     global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15608    
15609     # The name of the directory that contains temporary libtool files.
15610     objdir=$objdir
15611    
15612     # Shell to use when invoking shell scripts.
15613     SHELL=$lt_SHELL
15614    
15615     # An echo program that does not interpret backslashes.
15616     ECHO=$lt_ECHO
15617    
15618     # Used to examine libraries when file_magic_cmd begins with "file".
15619     MAGIC_CMD=$MAGIC_CMD
15620    
15621     # Must we lock files when doing compilation?
15622     need_locks=$lt_need_locks
15623    
15624     # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15625     DSYMUTIL=$lt_DSYMUTIL
15626    
15627     # Tool to change global to local symbols on Mac OS X.
15628     NMEDIT=$lt_NMEDIT
15629    
15630     # Tool to manipulate fat objects and archives on Mac OS X.
15631     LIPO=$lt_LIPO
15632    
15633     # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15634     OTOOL=$lt_OTOOL
15635    
15636     # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15637     OTOOL64=$lt_OTOOL64
15638    
15639     # Old archive suffix (normally "a").
15640     libext=$libext
15641    
15642     # Shared library suffix (normally ".so").
15643     shrext_cmds=$lt_shrext_cmds
15644    
15645     # The commands to extract the exported symbol list from a shared archive.
15646     extract_expsyms_cmds=$lt_extract_expsyms_cmds
15647    
15648     # Variables whose values should be saved in libtool wrapper scripts and
15649     # restored at link time.
15650     variables_saved_for_relink=$lt_variables_saved_for_relink
15651    
15652     # Do we need the "lib" prefix for modules?
15653     need_lib_prefix=$need_lib_prefix
15654    
15655     # Do we need a version for libraries?
15656     need_version=$need_version
15657    
15658     # Library versioning type.
15659     version_type=$version_type
15660    
15661     # Shared library runtime path variable.
15662     runpath_var=$runpath_var
15663    
15664     # Shared library path variable.
15665     shlibpath_var=$shlibpath_var
15666    
15667     # Is shlibpath searched before the hard-coded library search path?
15668     shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15669    
15670     # Format of library name prefix.
15671     libname_spec=$lt_libname_spec
15672    
15673     # List of archive names. First name is the real one, the rest are links.
15674     # The last name is the one that the linker finds with -lNAME
15675     library_names_spec=$lt_library_names_spec
15676    
15677     # The coded name of the library, if different from the real name.
15678     soname_spec=$lt_soname_spec
15679    
15680     # Command to use after installation of a shared archive.
15681     postinstall_cmds=$lt_postinstall_cmds
15682    
15683     # Command to use after uninstallation of a shared archive.
15684     postuninstall_cmds=$lt_postuninstall_cmds
15685    
15686     # Commands used to finish a libtool library installation in a directory.
15687     finish_cmds=$lt_finish_cmds
15688    
15689     # As "finish_cmds", except a single script fragment to be evaled but
15690     # not shown.
15691     finish_eval=$lt_finish_eval
15692    
15693     # Whether we should hardcode library paths into libraries.
15694     hardcode_into_libs=$hardcode_into_libs
15695    
15696     # Compile-time system search path for libraries.
15697     sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15698    
15699     # Run-time system search path for libraries.
15700     sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15701    
15702     # Whether dlopen is supported.
15703     dlopen_support=$enable_dlopen
15704    
15705     # Whether dlopen of programs is supported.
15706     dlopen_self=$enable_dlopen_self
15707    
15708     # Whether dlopen of statically linked programs is supported.
15709     dlopen_self_static=$enable_dlopen_self_static
15710    
15711     # Commands to strip libraries.
15712     old_striplib=$lt_old_striplib
15713     striplib=$lt_striplib
15714    
15715    
15716     # The linker used to build libraries.
15717     LD=$lt_LD
15718    
15719     # Commands used to build an old-style archive.
15720     old_archive_cmds=$lt_old_archive_cmds
15721    
15722     # A language specific compiler.
15723     CC=$lt_compiler
15724    
15725     # Is the compiler the GNU compiler?
15726     with_gcc=$GCC
15727    
15728     # Compiler flag to turn off builtin functions.
15729     no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15730    
15731     # How to pass a linker flag through the compiler.
15732     wl=$lt_lt_prog_compiler_wl
15733    
15734     # Additional compiler flags for building library objects.
15735     pic_flag=$lt_lt_prog_compiler_pic
15736    
15737     # Compiler flag to prevent dynamic linking.
15738     link_static_flag=$lt_lt_prog_compiler_static
15739    
15740     # Does compiler simultaneously support -c and -o options?
15741     compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15742    
15743     # Whether or not to add -lc for building shared libraries.
15744     build_libtool_need_lc=$archive_cmds_need_lc
15745    
15746     # Whether or not to disallow shared libs when runtime libs are static.
15747     allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15748    
15749     # Compiler flag to allow reflexive dlopens.
15750     export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15751    
15752     # Compiler flag to generate shared objects directly from archives.
15753     whole_archive_flag_spec=$lt_whole_archive_flag_spec
15754    
15755     # Whether the compiler copes with passing no objects directly.
15756     compiler_needs_object=$lt_compiler_needs_object
15757    
15758     # Create an old-style archive from a shared archive.
15759     old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15760    
15761     # Create a temporary old-style archive to link instead of a shared archive.
15762     old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15763    
15764     # Commands used to build a shared archive.
15765     archive_cmds=$lt_archive_cmds
15766     archive_expsym_cmds=$lt_archive_expsym_cmds
15767    
15768     # Commands used to build a loadable module if different from building
15769     # a shared archive.
15770     module_cmds=$lt_module_cmds
15771     module_expsym_cmds=$lt_module_expsym_cmds
15772    
15773     # Whether we are building with GNU ld or not.
15774     with_gnu_ld=$lt_with_gnu_ld
15775    
15776     # Flag that allows shared libraries with undefined symbols to be built.
15777     allow_undefined_flag=$lt_allow_undefined_flag
15778    
15779     # Flag that enforces no undefined symbols.
15780     no_undefined_flag=$lt_no_undefined_flag
15781    
15782     # Flag to hardcode \$libdir into a binary during linking.
15783     # This must work even if \$libdir does not exist
15784     hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15785    
15786     # If ld is used when linking, flag to hardcode \$libdir into a binary
15787     # during linking. This must work even if \$libdir does not exist.
15788     hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15789    
15790     # Whether we need a single "-rpath" flag with a separated argument.
15791     hardcode_libdir_separator=$lt_hardcode_libdir_separator
15792    
15793     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15794     # DIR into the resulting binary.
15795     hardcode_direct=$hardcode_direct
15796    
15797     # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15798     # DIR into the resulting binary and the resulting library dependency is
15799     # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15800     # library is relocated.
15801     hardcode_direct_absolute=$hardcode_direct_absolute
15802    
15803     # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15804     # into the resulting binary.
15805     hardcode_minus_L=$hardcode_minus_L
15806    
15807     # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15808     # into the resulting binary.
15809     hardcode_shlibpath_var=$hardcode_shlibpath_var
15810    
15811     # Set to "yes" if building a shared library automatically hardcodes DIR
15812     # into the library and all subsequent libraries and executables linked
15813     # against it.
15814     hardcode_automatic=$hardcode_automatic
15815    
15816     # Set to yes if linker adds runtime paths of dependent libraries
15817     # to runtime path list.
15818     inherit_rpath=$inherit_rpath
15819    
15820     # Whether libtool must link a program against all its dependency libraries.
15821     link_all_deplibs=$link_all_deplibs
15822    
15823     # Fix the shell variable \$srcfile for the compiler.
15824     fix_srcfile_path=$lt_fix_srcfile_path
15825    
15826     # Set to "yes" if exported symbols are required.
15827     always_export_symbols=$always_export_symbols
15828    
15829     # The commands to list exported symbols.
15830     export_symbols_cmds=$lt_export_symbols_cmds
15831    
15832     # Symbols that should not be listed in the preloaded symbols.
15833     exclude_expsyms=$lt_exclude_expsyms
15834    
15835     # Symbols that must always be exported.
15836     include_expsyms=$lt_include_expsyms
15837    
15838     # Commands necessary for linking programs (against libraries) with templates.
15839     prelink_cmds=$lt_prelink_cmds
15840    
15841     # Specify filename containing input files.
15842     file_list_spec=$lt_file_list_spec
15843    
15844     # How to hardcode a shared library path into an executable.
15845     hardcode_action=$hardcode_action
15846    
15847     # ### END LIBTOOL CONFIG
15848    
15849     _LT_EOF
15850    
15851     case $host_os in
15852     aix3*)
15853     cat <<\_LT_EOF >> "$cfgfile"
15854     # AIX sometimes has problems with the GCC collect2 program. For some
15855     # reason, if we set the COLLECT_NAMES environment variable, the problems
15856     # vanish in a puff of smoke.
15857     if test "X${COLLECT_NAMES+set}" != Xset; then
15858     COLLECT_NAMES=
15859     export COLLECT_NAMES
15860     fi
15861     _LT_EOF
15862     ;;
15863 michael 912 esac
15864 michael 945
15865    
15866     ltmain="$ac_aux_dir/ltmain.sh"
15867    
15868    
15869     # We use sed instead of cat because bash on DJGPP gets confused if
15870     # if finds mixed CR/LF and LF-only lines. Since sed operates in
15871     # text mode, it properly converts lines to CR/LF. This bash problem
15872     # is reportedly fixed, but why not run on old versions too?
15873     sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
15874     || (rm -f "$cfgfile"; exit 1)
15875    
15876     case $xsi_shell in
15877     yes)
15878     cat << \_LT_EOF >> "$cfgfile"
15879    
15880     # func_dirname file append nondir_replacement
15881     # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15882     # otherwise set result to NONDIR_REPLACEMENT.
15883     func_dirname ()
15884     {
15885     case ${1} in
15886     */*) func_dirname_result="${1%/*}${2}" ;;
15887     * ) func_dirname_result="${3}" ;;
15888     esac
15889     }
15890    
15891     # func_basename file
15892     func_basename ()
15893     {
15894     func_basename_result="${1##*/}"
15895     }
15896    
15897     # func_dirname_and_basename file append nondir_replacement
15898     # perform func_basename and func_dirname in a single function
15899     # call:
15900     # dirname: Compute the dirname of FILE. If nonempty,
15901     # add APPEND to the result, otherwise set result
15902     # to NONDIR_REPLACEMENT.
15903     # value returned in "$func_dirname_result"
15904     # basename: Compute filename of FILE.
15905     # value retuned in "$func_basename_result"
15906     # Implementation must be kept synchronized with func_dirname
15907     # and func_basename. For efficiency, we do not delegate to
15908     # those functions but instead duplicate the functionality here.
15909     func_dirname_and_basename ()
15910     {
15911     case ${1} in
15912     */*) func_dirname_result="${1%/*}${2}" ;;
15913     * ) func_dirname_result="${3}" ;;
15914     esac
15915     func_basename_result="${1##*/}"
15916     }
15917    
15918     # func_stripname prefix suffix name
15919     # strip PREFIX and SUFFIX off of NAME.
15920     # PREFIX and SUFFIX must not contain globbing or regex special
15921     # characters, hashes, percent signs, but SUFFIX may contain a leading
15922     # dot (in which case that matches only a dot).
15923     func_stripname ()
15924     {
15925     # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
15926     # positional parameters, so assign one to ordinary parameter first.
15927     func_stripname_result=${3}
15928     func_stripname_result=${func_stripname_result#"${1}"}
15929     func_stripname_result=${func_stripname_result%"${2}"}
15930     }
15931    
15932     # func_opt_split
15933     func_opt_split ()
15934     {
15935     func_opt_split_opt=${1%%=*}
15936     func_opt_split_arg=${1#*=}
15937     }
15938    
15939     # func_lo2o object
15940     func_lo2o ()
15941     {
15942     case ${1} in
15943     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
15944     *) func_lo2o_result=${1} ;;
15945     esac
15946     }
15947    
15948     # func_xform libobj-or-source
15949     func_xform ()
15950     {
15951     func_xform_result=${1%.*}.lo
15952     }
15953    
15954     # func_arith arithmetic-term...
15955     func_arith ()
15956     {
15957     func_arith_result=$(( $* ))
15958     }
15959    
15960     # func_len string
15961     # STRING may not start with a hyphen.
15962     func_len ()
15963     {
15964     func_len_result=${#1}
15965     }
15966    
15967     _LT_EOF
15968     ;;
15969     *) # Bourne compatible functions.
15970     cat << \_LT_EOF >> "$cfgfile"
15971    
15972     # func_dirname file append nondir_replacement
15973     # Compute the dirname of FILE. If nonempty, add APPEND to the result,
15974     # otherwise set result to NONDIR_REPLACEMENT.
15975     func_dirname ()
15976     {
15977     # Extract subdirectory from the argument.
15978     func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
15979     if test "X$func_dirname_result" = "X${1}"; then
15980     func_dirname_result="${3}"
15981     else
15982     func_dirname_result="$func_dirname_result${2}"
15983     fi
15984     }
15985    
15986     # func_basename file
15987     func_basename ()
15988     {
15989     func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
15990     }
15991    
15992    
15993     # func_stripname prefix suffix name
15994     # strip PREFIX and SUFFIX off of NAME.
15995     # PREFIX and SUFFIX must not contain globbing or regex special
15996     # characters, hashes, percent signs, but SUFFIX may contain a leading
15997     # dot (in which case that matches only a dot).
15998     # func_strip_suffix prefix name
15999     func_stripname ()
16000     {
16001     case ${2} in
16002     .*) func_stripname_result=`$ECHO "X${3}" \
16003     | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16004     *) func_stripname_result=`$ECHO "X${3}" \
16005     | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16006     esac
16007     }
16008    
16009     # sed scripts:
16010     my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16011     my_sed_long_arg='1s/^-[^=]*=//'
16012    
16013     # func_opt_split
16014     func_opt_split ()
16015     {
16016     func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16017     func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16018     }
16019    
16020     # func_lo2o object
16021     func_lo2o ()
16022     {
16023     func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16024     }
16025    
16026     # func_xform libobj-or-source
16027     func_xform ()
16028     {
16029     func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16030     }
16031    
16032     # func_arith arithmetic-term...
16033     func_arith ()
16034     {
16035     func_arith_result=`expr "$@"`
16036     }
16037    
16038     # func_len string
16039     # STRING may not start with a hyphen.
16040     func_len ()
16041     {
16042     func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16043     }
16044    
16045     _LT_EOF
16046     esac
16047    
16048     case $lt_shell_append in
16049     yes)
16050     cat << \_LT_EOF >> "$cfgfile"
16051    
16052     # func_append var value
16053     # Append VALUE to the end of shell variable VAR.
16054     func_append ()
16055     {
16056     eval "$1+=\$2"
16057     }
16058     _LT_EOF
16059     ;;
16060     *)
16061     cat << \_LT_EOF >> "$cfgfile"
16062    
16063     # func_append var value
16064     # Append VALUE to the end of shell variable VAR.
16065     func_append ()
16066     {
16067     eval "$1=\$$1\$2"
16068     }
16069    
16070     _LT_EOF
16071     ;;
16072     esac
16073    
16074    
16075     sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16076     || (rm -f "$cfgfile"; exit 1)
16077    
16078     mv -f "$cfgfile" "$ofile" ||
16079     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16080     chmod +x "$ofile"
16081    
16082     ;;
16083    
16084     esac
16085 michael 912 done # for ac_tag
16086    
16087    
16088 michael 967 as_fn_exit 0
16089 michael 912 _ACEOF
16090     ac_clean_files=$ac_clean_files_save
16091    
16092 db 941 test $ac_write_fail = 0 ||
16093 michael 967 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16094 michael 912
16095 db 941
16096 michael 912 # configure is writing to config.log, and then calls config.status.
16097     # config.status does its own redirection, appending to config.log.
16098     # Unfortunately, on DOS this fails, as config.log is still kept open
16099     # by configure, so config.status won't be able to write to it; its
16100     # output is simply discarded. So we exec the FD to /dev/null,
16101     # effectively closing config.log, so it can be properly (re)opened and
16102     # appended to by config.status. When coming back to configure, we
16103     # need to make the FD available again.
16104     if test "$no_create" != yes; then
16105     ac_cs_success=:
16106     ac_config_status_args=
16107     test "$silent" = yes &&
16108     ac_config_status_args="$ac_config_status_args --quiet"
16109     exec 5>/dev/null
16110     $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16111     exec 5>>config.log
16112     # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16113     # would make configure fail if this is the last instruction.
16114 michael 967 $ac_cs_success || as_fn_exit $?
16115 michael 912 fi
16116    
16117     #
16118     # CONFIG_SUBDIRS section.
16119     #
16120     if test "$no_recursion" != yes; then
16121    
16122 db 941 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16123     # so they do not pile up.
16124 michael 912 ac_sub_configure_args=
16125     ac_prev=
16126     eval "set x $ac_configure_args"
16127     shift
16128     for ac_arg
16129     do
16130     if test -n "$ac_prev"; then
16131     ac_prev=
16132     continue
16133     fi
16134     case $ac_arg in
16135     -cache-file | --cache-file | --cache-fil | --cache-fi \
16136     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16137     ac_prev=cache_file ;;
16138     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16139     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16140     | --c=*)
16141     ;;
16142     --config-cache | -C)
16143     ;;
16144     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16145     ac_prev=srcdir ;;
16146     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16147     ;;
16148     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16149     ac_prev=prefix ;;
16150     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16151     ;;
16152 db 941 --disable-option-checking)
16153     ;;
16154 michael 912 *)
16155     case $ac_arg in
16156 db 941 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16157 michael 912 esac
16158 michael 967 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
16159 michael 912 esac
16160     done
16161    
16162     # Always prepend --prefix to ensure using the same prefix
16163     # in subdir configurations.
16164     ac_arg="--prefix=$prefix"
16165     case $ac_arg in
16166 db 941 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
16167 michael 912 esac
16168     ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
16169    
16170     # Pass --silent
16171     if test "$silent" = yes; then
16172     ac_sub_configure_args="--silent $ac_sub_configure_args"
16173     fi
16174    
16175 db 941 # Always prepend --disable-option-checking to silence warnings, since
16176     # different subdirs can have different --enable and --with options.
16177     ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
16178    
16179 michael 912 ac_popdir=`pwd`
16180     for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
16181    
16182     # Do not complain, so a configure script can configure whichever
16183     # parts of a large source tree are present.
16184     test -d "$srcdir/$ac_dir" || continue
16185    
16186     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
16187 michael 967 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
16188 db 941 $as_echo "$ac_msg" >&6
16189 michael 967 as_dir="$ac_dir"; as_fn_mkdir_p
16190 michael 912 ac_builddir=.
16191    
16192     case "$ac_dir" in
16193     .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16194     *)
16195 db 941 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16196 michael 912 # A ".." for each directory in $ac_dir_suffix.
16197 db 941 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16198 michael 912 case $ac_top_builddir_sub in
16199     "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16200     *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16201     esac ;;
16202     esac
16203     ac_abs_top_builddir=$ac_pwd
16204     ac_abs_builddir=$ac_pwd$ac_dir_suffix
16205     # for backward compatibility:
16206     ac_top_builddir=$ac_top_build_prefix
16207    
16208     case $srcdir in
16209     .) # We are building in place.
16210     ac_srcdir=.
16211     ac_top_srcdir=$ac_top_builddir_sub
16212     ac_abs_top_srcdir=$ac_pwd ;;
16213     [\\/]* | ?:[\\/]* ) # Absolute name.
16214     ac_srcdir=$srcdir$ac_dir_suffix;
16215     ac_top_srcdir=$srcdir
16216     ac_abs_top_srcdir=$srcdir ;;
16217     *) # Relative name.
16218     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16219     ac_top_srcdir=$ac_top_build_prefix$srcdir
16220     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16221     esac
16222     ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16223    
16224    
16225     cd "$ac_dir"
16226    
16227     # Check for guested configure; otherwise get Cygnus style configure.
16228     if test -f "$ac_srcdir/configure.gnu"; then
16229     ac_sub_configure=$ac_srcdir/configure.gnu
16230     elif test -f "$ac_srcdir/configure"; then
16231     ac_sub_configure=$ac_srcdir/configure
16232     elif test -f "$ac_srcdir/configure.in"; then
16233     # This should be Cygnus configure.
16234     ac_sub_configure=$ac_aux_dir/configure
16235     else
16236 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
16237 db 941 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
16238 michael 912 ac_sub_configure=
16239     fi
16240    
16241     # The recursion is here.
16242     if test -n "$ac_sub_configure"; then
16243     # Make the cache file name correct relative to the subdirectory.
16244     case $cache_file in
16245     [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
16246     *) # Relative name.
16247     ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
16248     esac
16249    
16250 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
16251 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;}
16252 michael 912 # The eval makes quoting arguments work.
16253     eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
16254     --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
16255 michael 967 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
16256 michael 912 fi
16257    
16258     cd "$ac_popdir"
16259     done
16260     fi
16261 db 941 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16262 michael 967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16263 michael 942 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16264 db 941 fi
16265 michael 912

Properties

Name Value
svn:executable *