Annotation of embedaddon/confuse/configure, revision 1.1.1.1
1.1 misho 1: #! /bin/sh
2: # Guess values for system-dependent variables and create Makefiles.
3: # Generated by GNU Autoconf 2.65 for libConfuse 2.7.
4: #
5: # Report bugs to <confuse-devel@nongnu.org>.
6: #
7: #
8: # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9: # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10: # Inc.
11: #
12: #
13: # This configure script is free software; the Free Software Foundation
14: # gives unlimited permission to copy, distribute and modify it.
15: ## -------------------- ##
16: ## M4sh Initialization. ##
17: ## -------------------- ##
18:
19: # Be more Bourne compatible
20: DUALCASE=1; export DUALCASE # for MKS sh
21: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22: emulate sh
23: NULLCMD=:
24: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25: # is contrary to our usage. Disable this feature.
26: alias -g '${1+"$@"}'='"$@"'
27: setopt NO_GLOB_SUBST
28: else
29: case `(set -o) 2>/dev/null` in #(
30: *posix*) :
31: set -o posix ;; #(
32: *) :
33: ;;
34: esac
35: fi
36:
37:
38: as_nl='
39: '
40: export as_nl
41: # Printing a long string crashes Solaris 7 /usr/bin/printf.
42: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45: # Prefer a ksh shell builtin over an external printf program on Solaris,
46: # but without wasting forks for bash or zsh.
47: if test -z "$BASH_VERSION$ZSH_VERSION" \
48: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49: as_echo='print -r --'
50: as_echo_n='print -rn --'
51: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52: as_echo='printf %s\n'
53: as_echo_n='printf %s'
54: else
55: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57: as_echo_n='/usr/ucb/echo -n'
58: else
59: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60: as_echo_n_body='eval
61: arg=$1;
62: case $arg in #(
63: *"$as_nl"*)
64: expr "X$arg" : "X\\(.*\\)$as_nl";
65: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66: esac;
67: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68: '
69: export as_echo_n_body
70: as_echo_n='sh -c $as_echo_n_body as_echo'
71: fi
72: export as_echo_body
73: as_echo='sh -c $as_echo_body as_echo'
74: fi
75:
76: # The user is always right.
77: if test "${PATH_SEPARATOR+set}" != set; then
78: PATH_SEPARATOR=:
79: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81: PATH_SEPARATOR=';'
82: }
83: fi
84:
85:
86: # IFS
87: # We need space, tab and new line, in precisely that order. Quoting is
88: # there to prevent editors from complaining about space-tab.
89: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90: # splitting by setting IFS to empty value.)
91: IFS=" "" $as_nl"
92:
93: # Find who we are. Look in the path if we contain no directory separator.
94: case $0 in #((
95: *[\\/]* ) as_myself=$0 ;;
96: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97: for as_dir in $PATH
98: do
99: IFS=$as_save_IFS
100: test -z "$as_dir" && as_dir=.
101: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102: done
103: IFS=$as_save_IFS
104:
105: ;;
106: esac
107: # We did not find ourselves, most probably we were run as `sh COMMAND'
108: # in which case we are not to be found in the path.
109: if test "x$as_myself" = x; then
110: as_myself=$0
111: fi
112: if test ! -f "$as_myself"; then
113: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114: exit 1
115: fi
116:
117: # Unset variables that we do not need and which cause bugs (e.g. in
118: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119: # suppresses any "Segmentation fault" message there. '((' could
120: # trigger a bug in pdksh 5.2.14.
121: for as_var in BASH_ENV ENV MAIL MAILPATH
122: do eval test x\${$as_var+set} = xset \
123: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124: done
125: PS1='$ '
126: PS2='> '
127: PS4='+ '
128:
129: # NLS nuisances.
130: LC_ALL=C
131: export LC_ALL
132: LANGUAGE=C
133: export LANGUAGE
134:
135: # CDPATH.
136: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137:
138: if test "x$CONFIG_SHELL" = x; then
139: as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140: emulate sh
141: NULLCMD=:
142: # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143: # is contrary to our usage. Disable this feature.
144: alias -g '\${1+\"\$@\"}'='\"\$@\"'
145: setopt NO_GLOB_SUBST
146: else
147: case \`(set -o) 2>/dev/null\` in #(
148: *posix*) :
149: set -o posix ;; #(
150: *) :
151: ;;
152: esac
153: fi
154: "
155: as_required="as_fn_return () { (exit \$1); }
156: as_fn_success () { as_fn_return 0; }
157: as_fn_failure () { as_fn_return 1; }
158: as_fn_ret_success () { return 0; }
159: as_fn_ret_failure () { return 1; }
160:
161: exitcode=0
162: as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163: as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164: as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165: as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166: if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167:
168: else
169: exitcode=1; echo positional parameters were not saved.
170: fi
171: test x\$exitcode = x0 || exit 1"
172: as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173: as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174: eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175: test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176: test \$(( 1 + 1 )) = 2 || exit 1"
177: if (eval "$as_required") 2>/dev/null; then :
178: as_have_required=yes
179: else
180: as_have_required=no
181: fi
182: if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183:
184: else
185: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186: as_found=false
187: for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188: do
189: IFS=$as_save_IFS
190: test -z "$as_dir" && as_dir=.
191: as_found=:
192: case $as_dir in #(
193: /*)
194: for as_base in sh bash ksh sh5; do
195: # Try only shells that exist, to save several forks.
196: as_shell=$as_dir/$as_base
197: if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199: CONFIG_SHELL=$as_shell as_have_required=yes
200: if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201: break 2
202: fi
203: fi
204: done;;
205: esac
206: as_found=false
207: done
208: $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209: { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210: CONFIG_SHELL=$SHELL as_have_required=yes
211: fi; }
212: IFS=$as_save_IFS
213:
214:
215: if test "x$CONFIG_SHELL" != x; then :
216: # We cannot yet assume a decent shell, so we have to provide a
217: # neutralization value for shells without unset; and this also
218: # works around shells that cannot unset nonexistent variables.
219: BASH_ENV=/dev/null
220: ENV=/dev/null
221: (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222: export CONFIG_SHELL
223: exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224: fi
225:
226: if test x$as_have_required = xno; then :
227: $as_echo "$0: This script requires a shell more modern than all"
228: $as_echo "$0: the shells that I found on your system."
229: if test x${ZSH_VERSION+set} = xset ; then
230: $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231: $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232: else
233: $as_echo "$0: Please tell bug-autoconf@gnu.org and
234: $0: confuse-devel@nongnu.org about your system, including
235: $0: any error possibly output before this message. Then
236: $0: install a modern shell, or manually run the script
237: $0: under such a shell if you do have one."
238: fi
239: exit 1
240: fi
241: fi
242: fi
243: SHELL=${CONFIG_SHELL-/bin/sh}
244: export SHELL
245: # Unset more variables known to interfere with behavior of common tools.
246: CLICOLOR_FORCE= GREP_OPTIONS=
247: unset CLICOLOR_FORCE GREP_OPTIONS
248:
249: ## --------------------- ##
250: ## M4sh Shell Functions. ##
251: ## --------------------- ##
252: # as_fn_unset VAR
253: # ---------------
254: # Portably unset VAR.
255: as_fn_unset ()
256: {
257: { eval $1=; unset $1;}
258: }
259: as_unset=as_fn_unset
260:
261: # as_fn_set_status STATUS
262: # -----------------------
263: # Set $? to STATUS, without forking.
264: as_fn_set_status ()
265: {
266: return $1
267: } # as_fn_set_status
268:
269: # as_fn_exit STATUS
270: # -----------------
271: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272: as_fn_exit ()
273: {
274: set +e
275: as_fn_set_status $1
276: exit $1
277: } # as_fn_exit
278:
279: # as_fn_mkdir_p
280: # -------------
281: # Create "$as_dir" as a directory, including parents if necessary.
282: as_fn_mkdir_p ()
283: {
284:
285: case $as_dir in #(
286: -*) as_dir=./$as_dir;;
287: esac
288: test -d "$as_dir" || eval $as_mkdir_p || {
289: as_dirs=
290: while :; do
291: case $as_dir in #(
292: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293: *) as_qdir=$as_dir;;
294: esac
295: as_dirs="'$as_qdir' $as_dirs"
296: as_dir=`$as_dirname -- "$as_dir" ||
297: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298: X"$as_dir" : 'X\(//\)[^/]' \| \
299: X"$as_dir" : 'X\(//\)$' \| \
300: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301: $as_echo X"$as_dir" |
302: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303: s//\1/
304: q
305: }
306: /^X\(\/\/\)[^/].*/{
307: s//\1/
308: q
309: }
310: /^X\(\/\/\)$/{
311: s//\1/
312: q
313: }
314: /^X\(\/\).*/{
315: s//\1/
316: q
317: }
318: s/.*/./; q'`
319: test -d "$as_dir" && break
320: done
321: test -z "$as_dirs" || eval "mkdir $as_dirs"
322: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323:
324:
325: } # as_fn_mkdir_p
326: # as_fn_append VAR VALUE
327: # ----------------------
328: # Append the text in VALUE to the end of the definition contained in VAR. Take
329: # advantage of any shell optimizations that allow amortized linear growth over
330: # repeated appends, instead of the typical quadratic growth present in naive
331: # implementations.
332: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333: eval 'as_fn_append ()
334: {
335: eval $1+=\$2
336: }'
337: else
338: as_fn_append ()
339: {
340: eval $1=\$$1\$2
341: }
342: fi # as_fn_append
343:
344: # as_fn_arith ARG...
345: # ------------------
346: # Perform arithmetic evaluation on the ARGs, and store the result in the
347: # global $as_val. Take advantage of shells that can avoid forks. The arguments
348: # must be portable across $(()) and expr.
349: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350: eval 'as_fn_arith ()
351: {
352: as_val=$(( $* ))
353: }'
354: else
355: as_fn_arith ()
356: {
357: as_val=`expr "$@" || test $? -eq 1`
358: }
359: fi # as_fn_arith
360:
361:
362: # as_fn_error ERROR [LINENO LOG_FD]
363: # ---------------------------------
364: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366: # script with status $?, using 1 if that was 0.
367: as_fn_error ()
368: {
369: as_status=$?; test $as_status -eq 0 && as_status=1
370: if test "$3"; then
371: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373: fi
374: $as_echo "$as_me: error: $1" >&2
375: as_fn_exit $as_status
376: } # as_fn_error
377:
378: if expr a : '\(a\)' >/dev/null 2>&1 &&
379: test "X`expr 00001 : '.*\(...\)'`" = X001; then
380: as_expr=expr
381: else
382: as_expr=false
383: fi
384:
385: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386: as_basename=basename
387: else
388: as_basename=false
389: fi
390:
391: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392: as_dirname=dirname
393: else
394: as_dirname=false
395: fi
396:
397: as_me=`$as_basename -- "$0" ||
398: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399: X"$0" : 'X\(//\)$' \| \
400: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401: $as_echo X/"$0" |
402: sed '/^.*\/\([^/][^/]*\)\/*$/{
403: s//\1/
404: q
405: }
406: /^X\/\(\/\/\)$/{
407: s//\1/
408: q
409: }
410: /^X\/\(\/\).*/{
411: s//\1/
412: q
413: }
414: s/.*/./; q'`
415:
416: # Avoid depending upon Character Ranges.
417: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420: as_cr_digits='0123456789'
421: as_cr_alnum=$as_cr_Letters$as_cr_digits
422:
423:
424: as_lineno_1=$LINENO as_lineno_1a=$LINENO
425: as_lineno_2=$LINENO as_lineno_2a=$LINENO
426: eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427: test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428: # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
429: sed -n '
430: p
431: /[$]LINENO/=
432: ' <$as_myself |
433: sed '
434: s/[$]LINENO.*/&-/
435: t lineno
436: b
437: :lineno
438: N
439: :loop
440: s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441: t loop
442: s/-\n.*//
443: ' >$as_me.lineno &&
444: chmod +x "$as_me.lineno" ||
445: { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446:
447: # Don't try to exec as it changes $[0], causing all sort of problems
448: # (the dirname of $[0] is not the place where we might find the
449: # original and so on. Autoconf is especially sensitive to this).
450: . "./$as_me.lineno"
451: # Exit status is that of the last command.
452: exit
453: }
454:
455: ECHO_C= ECHO_N= ECHO_T=
456: case `echo -n x` in #(((((
457: -n*)
458: case `echo 'xy\c'` in
459: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
460: xy) ECHO_C='\c';;
461: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462: ECHO_T=' ';;
463: esac;;
464: *)
465: ECHO_N='-n';;
466: esac
467:
468: rm -f conf$$ conf$$.exe conf$$.file
469: if test -d conf$$.dir; then
470: rm -f conf$$.dir/conf$$.file
471: else
472: rm -f conf$$.dir
473: mkdir conf$$.dir 2>/dev/null
474: fi
475: if (echo >conf$$.file) 2>/dev/null; then
476: if ln -s conf$$.file conf$$ 2>/dev/null; then
477: as_ln_s='ln -s'
478: # ... but there are two gotchas:
479: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481: # In both cases, we have to default to `cp -p'.
482: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483: as_ln_s='cp -p'
484: elif ln conf$$.file conf$$ 2>/dev/null; then
485: as_ln_s=ln
486: else
487: as_ln_s='cp -p'
488: fi
489: else
490: as_ln_s='cp -p'
491: fi
492: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493: rmdir conf$$.dir 2>/dev/null
494:
495: if mkdir -p . 2>/dev/null; then
496: as_mkdir_p='mkdir -p "$as_dir"'
497: else
498: test -d ./-p && rmdir ./-p
499: as_mkdir_p=false
500: fi
501:
502: if test -x / >/dev/null 2>&1; then
503: as_test_x='test -x'
504: else
505: if ls -dL / >/dev/null 2>&1; then
506: as_ls_L_option=L
507: else
508: as_ls_L_option=
509: fi
510: as_test_x='
511: eval sh -c '\''
512: if test -d "$1"; then
513: test -d "$1/.";
514: else
515: case $1 in #(
516: -*)set "./$1";;
517: esac;
518: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519: ???[sx]*):;;*)false;;esac;fi
520: '\'' sh
521: '
522: fi
523: as_executable_p=$as_test_x
524:
525: # Sed expression to map a string onto a valid CPP name.
526: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527:
528: # Sed expression to map a string onto a valid variable name.
529: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530:
531:
532:
533: # Check that we are running under the correct shell.
534: SHELL=${CONFIG_SHELL-/bin/sh}
535:
536: case X$lt_ECHO in
537: X*--fallback-echo)
538: # Remove one level of quotation (which was required for Make).
539: ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
540: ;;
541: esac
542:
543: ECHO=${lt_ECHO-echo}
544: if test "X$1" = X--no-reexec; then
545: # Discard the --no-reexec flag, and continue.
546: shift
547: elif test "X$1" = X--fallback-echo; then
548: # Avoid inline document here, it may be left over
549: :
550: elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551: # Yippee, $ECHO works!
552: :
553: else
554: # Restart under the correct shell.
555: exec $SHELL "$0" --no-reexec ${1+"$@"}
556: fi
557:
558: if test "X$1" = X--fallback-echo; then
559: # used as fallback echo
560: shift
561: cat <<_LT_EOF
562: $*
563: _LT_EOF
564: exit 0
565: fi
566:
567: # The HP-UX ksh and POSIX shell print the target directory to stdout
568: # if CDPATH is set.
569: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
570:
571: if test -z "$lt_ECHO"; then
572: if test "X${echo_test_string+set}" != Xset; then
573: # find a string as large as possible, as long as the shell can cope with it
574: for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575: # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576: if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577: { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
578: then
579: break
580: fi
581: done
582: fi
583:
584: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586: test "X$echo_testing_string" = "X$echo_test_string"; then
587: :
588: else
589: # The Solaris, AIX, and Digital Unix default echo programs unquote
590: # backslashes. This makes it impossible to quote backslashes using
591: # echo "$something" | sed 's/\\/\\\\/g'
592: #
593: # So, first we look for a working echo in the user's PATH.
594:
595: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596: for dir in $PATH /usr/ucb; do
597: IFS="$lt_save_ifs"
598: if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599: test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600: echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601: test "X$echo_testing_string" = "X$echo_test_string"; then
602: ECHO="$dir/echo"
603: break
604: fi
605: done
606: IFS="$lt_save_ifs"
607:
608: if test "X$ECHO" = Xecho; then
609: # We didn't find a better echo, so look for alternatives.
610: if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611: echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612: test "X$echo_testing_string" = "X$echo_test_string"; then
613: # This shell has a builtin print -r that does the trick.
614: ECHO='print -r'
615: elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616: test "X$CONFIG_SHELL" != X/bin/ksh; then
617: # If we have ksh, try running configure again with it.
618: ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619: export ORIGINAL_CONFIG_SHELL
620: CONFIG_SHELL=/bin/ksh
621: export CONFIG_SHELL
622: exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623: else
624: # Try using printf.
625: ECHO='printf %s\n'
626: if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627: echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628: test "X$echo_testing_string" = "X$echo_test_string"; then
629: # Cool, printf works
630: :
631: elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632: test "X$echo_testing_string" = 'X\t' &&
633: echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634: test "X$echo_testing_string" = "X$echo_test_string"; then
635: CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
636: export CONFIG_SHELL
637: SHELL="$CONFIG_SHELL"
638: export SHELL
639: ECHO="$CONFIG_SHELL $0 --fallback-echo"
640: elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641: test "X$echo_testing_string" = 'X\t' &&
642: echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643: test "X$echo_testing_string" = "X$echo_test_string"; then
644: ECHO="$CONFIG_SHELL $0 --fallback-echo"
645: else
646: # maybe with a smaller string...
647: prev=:
648:
649: for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650: if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
651: then
652: break
653: fi
654: prev="$cmd"
655: done
656:
657: if test "$prev" != 'sed 50q "$0"'; then
658: echo_test_string=`eval $prev`
659: export echo_test_string
660: exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
661: else
662: # Oops. We lost completely, so just stick with echo.
663: ECHO=echo
664: fi
665: fi
666: fi
667: fi
668: fi
669: fi
670:
671: # Copy echo and quote the copy suitably for passing to libtool from
672: # the Makefile, instead of quoting the original, which is used later.
673: lt_ECHO=$ECHO
674: if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675: lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
676: fi
677:
678:
679:
680:
681: test -n "$DJDIR" || exec 7<&0 </dev/null
682: exec 6>&1
683:
684: # Name of the host.
685: # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
686: # so uname gets run too.
687: ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
688:
689: #
690: # Initializations.
691: #
692: ac_default_prefix=/usr/local
693: ac_clean_files=
694: ac_config_libobj_dir=.
695: LIBOBJS=
696: cross_compiling=no
697: subdirs=
698: MFLAGS=
699: MAKEFLAGS=
700:
701: # Identity of this package.
702: PACKAGE_NAME='libConfuse'
703: PACKAGE_TARNAME='confuse'
704: PACKAGE_VERSION='2.7'
705: PACKAGE_STRING='libConfuse 2.7'
706: PACKAGE_BUGREPORT='confuse-devel@nongnu.org'
707: PACKAGE_URL=''
708:
709: ac_unique_file="src/confuse.c"
710: # Factoring default headers for most tests.
711: ac_includes_default="\
712: #include <stdio.h>
713: #ifdef HAVE_SYS_TYPES_H
714: # include <sys/types.h>
715: #endif
716: #ifdef HAVE_SYS_STAT_H
717: # include <sys/stat.h>
718: #endif
719: #ifdef STDC_HEADERS
720: # include <stdlib.h>
721: # include <stddef.h>
722: #else
723: # ifdef HAVE_STDLIB_H
724: # include <stdlib.h>
725: # endif
726: #endif
727: #ifdef HAVE_STRING_H
728: # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
729: # include <memory.h>
730: # endif
731: # include <string.h>
732: #endif
733: #ifdef HAVE_STRINGS_H
734: # include <strings.h>
735: #endif
736: #ifdef HAVE_INTTYPES_H
737: # include <inttypes.h>
738: #endif
739: #ifdef HAVE_STDINT_H
740: # include <stdint.h>
741: #endif
742: #ifdef HAVE_UNISTD_H
743: # include <unistd.h>
744: #endif"
745:
746: gt_needs=
747: ac_subst_vars='am__EXEEXT_FALSE
748: am__EXEEXT_TRUE
749: LTLIBOBJS
750: LIBOBJS
751: POSUB
752: LTLIBINTL
753: LIBINTL
754: INTLLIBS
755: LTLIBICONV
756: LIBICONV
757: INTL_MACOSX_LIBS
758: MSGMERGE
759: XGETTEXT_015
760: XGETTEXT
761: GMSGFMT_015
762: MSGFMT_015
763: GMSGFMT
764: MSGFMT
765: USE_NLS
766: ENABLE_EXAMPLES_FALSE
767: ENABLE_EXAMPLES_TRUE
768: CPP
769: OTOOL64
770: OTOOL
771: LIPO
772: NMEDIT
773: DSYMUTIL
774: lt_ECHO
775: RANLIB
776: AR
777: OBJDUMP
778: LN_S
779: NM
780: ac_ct_DUMPBIN
781: DUMPBIN
782: LD
783: FGREP
784: EGREP
785: GREP
786: SED
787: host_os
788: host_vendor
789: host_cpu
790: host
791: build_os
792: build_vendor
793: build_cpu
794: build
795: LIBTOOL
796: LEXLIB
797: LEX_OUTPUT_ROOT
798: LEX
799: am__fastdepCC_FALSE
800: am__fastdepCC_TRUE
801: CCDEPMODE
802: AMDEPBACKSLASH
803: AMDEP_FALSE
804: AMDEP_TRUE
805: am__quote
806: am__include
807: DEPDIR
808: OBJEXT
809: EXEEXT
810: ac_ct_CC
811: CPPFLAGS
812: LDFLAGS
813: CFLAGS
814: CC
815: am__untar
816: am__tar
817: AMTAR
818: am__leading_dot
819: SET_MAKE
820: AWK
821: mkdir_p
822: MKDIR_P
823: INSTALL_STRIP_PROGRAM
824: STRIP
825: install_sh
826: MAKEINFO
827: AUTOHEADER
828: AUTOMAKE
829: AUTOCONF
830: ACLOCAL
831: VERSION
832: PACKAGE
833: CYGPATH_W
834: am__isrc
835: INSTALL_DATA
836: INSTALL_SCRIPT
837: INSTALL_PROGRAM
838: MAINT
839: MAINTAINER_MODE_FALSE
840: MAINTAINER_MODE_TRUE
841: target_alias
842: host_alias
843: build_alias
844: LIBS
845: ECHO_T
846: ECHO_N
847: ECHO_C
848: DEFS
849: mandir
850: localedir
851: libdir
852: psdir
853: pdfdir
854: dvidir
855: htmldir
856: infodir
857: docdir
858: oldincludedir
859: includedir
860: localstatedir
861: sharedstatedir
862: sysconfdir
863: datadir
864: datarootdir
865: libexecdir
866: sbindir
867: bindir
868: program_transform_name
869: prefix
870: exec_prefix
871: PACKAGE_URL
872: PACKAGE_BUGREPORT
873: PACKAGE_STRING
874: PACKAGE_VERSION
875: PACKAGE_TARNAME
876: PACKAGE_NAME
877: PATH_SEPARATOR
878: SHELL'
879: ac_subst_files=''
880: ac_user_opts='
881: enable_option_checking
882: enable_maintainer_mode
883: enable_dependency_tracking
884: enable_shared
885: enable_static
886: with_pic
887: enable_fast_install
888: with_gnu_ld
889: enable_libtool_lock
890: enable_examples
891: enable_nls
892: enable_rpath
893: with_libiconv_prefix
894: with_libintl_prefix
895: '
896: ac_precious_vars='build_alias
897: host_alias
898: target_alias
899: CC
900: CFLAGS
901: LDFLAGS
902: LIBS
903: CPPFLAGS
904: CPP'
905:
906:
907: # Initialize some variables set by options.
908: ac_init_help=
909: ac_init_version=false
910: ac_unrecognized_opts=
911: ac_unrecognized_sep=
912: # The variables have the same names as the options, with
913: # dashes changed to underlines.
914: cache_file=/dev/null
915: exec_prefix=NONE
916: no_create=
917: no_recursion=
918: prefix=NONE
919: program_prefix=NONE
920: program_suffix=NONE
921: program_transform_name=s,x,x,
922: silent=
923: site=
924: srcdir=
925: verbose=
926: x_includes=NONE
927: x_libraries=NONE
928:
929: # Installation directory options.
930: # These are left unexpanded so users can "make install exec_prefix=/foo"
931: # and all the variables that are supposed to be based on exec_prefix
932: # by default will actually change.
933: # Use braces instead of parens because sh, perl, etc. also accept them.
934: # (The list follows the same order as the GNU Coding Standards.)
935: bindir='${exec_prefix}/bin'
936: sbindir='${exec_prefix}/sbin'
937: libexecdir='${exec_prefix}/libexec'
938: datarootdir='${prefix}/share'
939: datadir='${datarootdir}'
940: sysconfdir='${prefix}/etc'
941: sharedstatedir='${prefix}/com'
942: localstatedir='${prefix}/var'
943: includedir='${prefix}/include'
944: oldincludedir='/usr/include'
945: docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
946: infodir='${datarootdir}/info'
947: htmldir='${docdir}'
948: dvidir='${docdir}'
949: pdfdir='${docdir}'
950: psdir='${docdir}'
951: libdir='${exec_prefix}/lib'
952: localedir='${datarootdir}/locale'
953: mandir='${datarootdir}/man'
954:
955: ac_prev=
956: ac_dashdash=
957: for ac_option
958: do
959: # If the previous option needs an argument, assign it.
960: if test -n "$ac_prev"; then
961: eval $ac_prev=\$ac_option
962: ac_prev=
963: continue
964: fi
965:
966: case $ac_option in
967: *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968: *) ac_optarg=yes ;;
969: esac
970:
971: # Accept the important Cygnus configure options, so we can diagnose typos.
972:
973: case $ac_dashdash$ac_option in
974: --)
975: ac_dashdash=yes ;;
976:
977: -bindir | --bindir | --bindi | --bind | --bin | --bi)
978: ac_prev=bindir ;;
979: -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
980: bindir=$ac_optarg ;;
981:
982: -build | --build | --buil | --bui | --bu)
983: ac_prev=build_alias ;;
984: -build=* | --build=* | --buil=* | --bui=* | --bu=*)
985: build_alias=$ac_optarg ;;
986:
987: -cache-file | --cache-file | --cache-fil | --cache-fi \
988: | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
989: ac_prev=cache_file ;;
990: -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
991: | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
992: cache_file=$ac_optarg ;;
993:
994: --config-cache | -C)
995: cache_file=config.cache ;;
996:
997: -datadir | --datadir | --datadi | --datad)
998: ac_prev=datadir ;;
999: -datadir=* | --datadir=* | --datadi=* | --datad=*)
1000: datadir=$ac_optarg ;;
1001:
1002: -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1003: | --dataroo | --dataro | --datar)
1004: ac_prev=datarootdir ;;
1005: -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1006: | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1007: datarootdir=$ac_optarg ;;
1008:
1009: -disable-* | --disable-*)
1010: ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011: # Reject names that are not valid shell variable names.
1012: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1013: as_fn_error "invalid feature name: $ac_useropt"
1014: ac_useropt_orig=$ac_useropt
1015: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016: case $ac_user_opts in
1017: *"
1018: "enable_$ac_useropt"
1019: "*) ;;
1020: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021: ac_unrecognized_sep=', ';;
1022: esac
1023: eval enable_$ac_useropt=no ;;
1024:
1025: -docdir | --docdir | --docdi | --doc | --do)
1026: ac_prev=docdir ;;
1027: -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1028: docdir=$ac_optarg ;;
1029:
1030: -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1031: ac_prev=dvidir ;;
1032: -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1033: dvidir=$ac_optarg ;;
1034:
1035: -enable-* | --enable-*)
1036: ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037: # Reject names that are not valid shell variable names.
1038: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039: as_fn_error "invalid feature name: $ac_useropt"
1040: ac_useropt_orig=$ac_useropt
1041: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042: case $ac_user_opts in
1043: *"
1044: "enable_$ac_useropt"
1045: "*) ;;
1046: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047: ac_unrecognized_sep=', ';;
1048: esac
1049: eval enable_$ac_useropt=\$ac_optarg ;;
1050:
1051: -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1052: | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1053: | --exec | --exe | --ex)
1054: ac_prev=exec_prefix ;;
1055: -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1056: | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1057: | --exec=* | --exe=* | --ex=*)
1058: exec_prefix=$ac_optarg ;;
1059:
1060: -gas | --gas | --ga | --g)
1061: # Obsolete; use --with-gas.
1062: with_gas=yes ;;
1063:
1064: -help | --help | --hel | --he | -h)
1065: ac_init_help=long ;;
1066: -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1067: ac_init_help=recursive ;;
1068: -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1069: ac_init_help=short ;;
1070:
1071: -host | --host | --hos | --ho)
1072: ac_prev=host_alias ;;
1073: -host=* | --host=* | --hos=* | --ho=*)
1074: host_alias=$ac_optarg ;;
1075:
1076: -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1077: ac_prev=htmldir ;;
1078: -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1079: | --ht=*)
1080: htmldir=$ac_optarg ;;
1081:
1082: -includedir | --includedir | --includedi | --included | --include \
1083: | --includ | --inclu | --incl | --inc)
1084: ac_prev=includedir ;;
1085: -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1086: | --includ=* | --inclu=* | --incl=* | --inc=*)
1087: includedir=$ac_optarg ;;
1088:
1089: -infodir | --infodir | --infodi | --infod | --info | --inf)
1090: ac_prev=infodir ;;
1091: -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1092: infodir=$ac_optarg ;;
1093:
1094: -libdir | --libdir | --libdi | --libd)
1095: ac_prev=libdir ;;
1096: -libdir=* | --libdir=* | --libdi=* | --libd=*)
1097: libdir=$ac_optarg ;;
1098:
1099: -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1100: | --libexe | --libex | --libe)
1101: ac_prev=libexecdir ;;
1102: -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1103: | --libexe=* | --libex=* | --libe=*)
1104: libexecdir=$ac_optarg ;;
1105:
1106: -localedir | --localedir | --localedi | --localed | --locale)
1107: ac_prev=localedir ;;
1108: -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1109: localedir=$ac_optarg ;;
1110:
1111: -localstatedir | --localstatedir | --localstatedi | --localstated \
1112: | --localstate | --localstat | --localsta | --localst | --locals)
1113: ac_prev=localstatedir ;;
1114: -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1115: | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1116: localstatedir=$ac_optarg ;;
1117:
1118: -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1119: ac_prev=mandir ;;
1120: -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1121: mandir=$ac_optarg ;;
1122:
1123: -nfp | --nfp | --nf)
1124: # Obsolete; use --without-fp.
1125: with_fp=no ;;
1126:
1127: -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1128: | --no-cr | --no-c | -n)
1129: no_create=yes ;;
1130:
1131: -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1132: | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1133: no_recursion=yes ;;
1134:
1135: -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1136: | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1137: | --oldin | --oldi | --old | --ol | --o)
1138: ac_prev=oldincludedir ;;
1139: -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1140: | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1141: | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1142: oldincludedir=$ac_optarg ;;
1143:
1144: -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1145: ac_prev=prefix ;;
1146: -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1147: prefix=$ac_optarg ;;
1148:
1149: -program-prefix | --program-prefix | --program-prefi | --program-pref \
1150: | --program-pre | --program-pr | --program-p)
1151: ac_prev=program_prefix ;;
1152: -program-prefix=* | --program-prefix=* | --program-prefi=* \
1153: | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1154: program_prefix=$ac_optarg ;;
1155:
1156: -program-suffix | --program-suffix | --program-suffi | --program-suff \
1157: | --program-suf | --program-su | --program-s)
1158: ac_prev=program_suffix ;;
1159: -program-suffix=* | --program-suffix=* | --program-suffi=* \
1160: | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1161: program_suffix=$ac_optarg ;;
1162:
1163: -program-transform-name | --program-transform-name \
1164: | --program-transform-nam | --program-transform-na \
1165: | --program-transform-n | --program-transform- \
1166: | --program-transform | --program-transfor \
1167: | --program-transfo | --program-transf \
1168: | --program-trans | --program-tran \
1169: | --progr-tra | --program-tr | --program-t)
1170: ac_prev=program_transform_name ;;
1171: -program-transform-name=* | --program-transform-name=* \
1172: | --program-transform-nam=* | --program-transform-na=* \
1173: | --program-transform-n=* | --program-transform-=* \
1174: | --program-transform=* | --program-transfor=* \
1175: | --program-transfo=* | --program-transf=* \
1176: | --program-trans=* | --program-tran=* \
1177: | --progr-tra=* | --program-tr=* | --program-t=*)
1178: program_transform_name=$ac_optarg ;;
1179:
1180: -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1181: ac_prev=pdfdir ;;
1182: -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1183: pdfdir=$ac_optarg ;;
1184:
1185: -psdir | --psdir | --psdi | --psd | --ps)
1186: ac_prev=psdir ;;
1187: -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1188: psdir=$ac_optarg ;;
1189:
1190: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1191: | -silent | --silent | --silen | --sile | --sil)
1192: silent=yes ;;
1193:
1194: -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1195: ac_prev=sbindir ;;
1196: -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1197: | --sbi=* | --sb=*)
1198: sbindir=$ac_optarg ;;
1199:
1200: -sharedstatedir | --sharedstatedir | --sharedstatedi \
1201: | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1202: | --sharedst | --shareds | --shared | --share | --shar \
1203: | --sha | --sh)
1204: ac_prev=sharedstatedir ;;
1205: -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1206: | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1207: | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1208: | --sha=* | --sh=*)
1209: sharedstatedir=$ac_optarg ;;
1210:
1211: -site | --site | --sit)
1212: ac_prev=site ;;
1213: -site=* | --site=* | --sit=*)
1214: site=$ac_optarg ;;
1215:
1216: -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1217: ac_prev=srcdir ;;
1218: -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1219: srcdir=$ac_optarg ;;
1220:
1221: -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1222: | --syscon | --sysco | --sysc | --sys | --sy)
1223: ac_prev=sysconfdir ;;
1224: -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1225: | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1226: sysconfdir=$ac_optarg ;;
1227:
1228: -target | --target | --targe | --targ | --tar | --ta | --t)
1229: ac_prev=target_alias ;;
1230: -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1231: target_alias=$ac_optarg ;;
1232:
1233: -v | -verbose | --verbose | --verbos | --verbo | --verb)
1234: verbose=yes ;;
1235:
1236: -version | --version | --versio | --versi | --vers | -V)
1237: ac_init_version=: ;;
1238:
1239: -with-* | --with-*)
1240: ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241: # Reject names that are not valid shell variable names.
1242: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1243: as_fn_error "invalid package name: $ac_useropt"
1244: ac_useropt_orig=$ac_useropt
1245: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246: case $ac_user_opts in
1247: *"
1248: "with_$ac_useropt"
1249: "*) ;;
1250: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251: ac_unrecognized_sep=', ';;
1252: esac
1253: eval with_$ac_useropt=\$ac_optarg ;;
1254:
1255: -without-* | --without-*)
1256: ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257: # Reject names that are not valid shell variable names.
1258: expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1259: as_fn_error "invalid package name: $ac_useropt"
1260: ac_useropt_orig=$ac_useropt
1261: ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262: case $ac_user_opts in
1263: *"
1264: "with_$ac_useropt"
1265: "*) ;;
1266: *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267: ac_unrecognized_sep=', ';;
1268: esac
1269: eval with_$ac_useropt=no ;;
1270:
1271: --x)
1272: # Obsolete; use --with-x.
1273: with_x=yes ;;
1274:
1275: -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1276: | --x-incl | --x-inc | --x-in | --x-i)
1277: ac_prev=x_includes ;;
1278: -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1279: | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1280: x_includes=$ac_optarg ;;
1281:
1282: -x-libraries | --x-libraries | --x-librarie | --x-librari \
1283: | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1284: ac_prev=x_libraries ;;
1285: -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1286: | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1287: x_libraries=$ac_optarg ;;
1288:
1289: -*) as_fn_error "unrecognized option: \`$ac_option'
1290: Try \`$0 --help' for more information."
1291: ;;
1292:
1293: *=*)
1294: ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1295: # Reject names that are not valid shell variable names.
1296: case $ac_envvar in #(
1297: '' | [0-9]* | *[!_$as_cr_alnum]* )
1298: as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1299: esac
1300: eval $ac_envvar=\$ac_optarg
1301: export $ac_envvar ;;
1302:
1303: *)
1304: # FIXME: should be removed in autoconf 3.0.
1305: $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306: expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1307: $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308: : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1309: ;;
1310:
1311: esac
1312: done
1313:
1314: if test -n "$ac_prev"; then
1315: ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1316: as_fn_error "missing argument to $ac_option"
1317: fi
1318:
1319: if test -n "$ac_unrecognized_opts"; then
1320: case $enable_option_checking in
1321: no) ;;
1322: fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1323: *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1324: esac
1325: fi
1326:
1327: # Check all directory arguments for consistency.
1328: for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329: datadir sysconfdir sharedstatedir localstatedir includedir \
1330: oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331: libdir localedir mandir
1332: do
1333: eval ac_val=\$$ac_var
1334: # Remove trailing slashes.
1335: case $ac_val in
1336: */ )
1337: ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338: eval $ac_var=\$ac_val;;
1339: esac
1340: # Be sure to have absolute directory names.
1341: case $ac_val in
1342: [\\/$]* | ?:[\\/]* ) continue;;
1343: NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344: esac
1345: as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1346: done
1347:
1348: # There might be people who depend on the old broken behavior: `$host'
1349: # used to hold the argument of --host etc.
1350: # FIXME: To remove some day.
1351: build=$build_alias
1352: host=$host_alias
1353: target=$target_alias
1354:
1355: # FIXME: To remove some day.
1356: if test "x$host_alias" != x; then
1357: if test "x$build_alias" = x; then
1358: cross_compiling=maybe
1359: $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360: If a cross compiler is detected then cross compile mode will be used." >&2
1361: elif test "x$build_alias" != "x$host_alias"; then
1362: cross_compiling=yes
1363: fi
1364: fi
1365:
1366: ac_tool_prefix=
1367: test -n "$host_alias" && ac_tool_prefix=$host_alias-
1368:
1369: test "$silent" = yes && exec 6>/dev/null
1370:
1371:
1372: ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373: ac_ls_di=`ls -di .` &&
1374: ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375: as_fn_error "working directory cannot be determined"
1376: test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377: as_fn_error "pwd does not report name of working directory"
1378:
1379:
1380: # Find the source files, if location was not specified.
1381: if test -z "$srcdir"; then
1382: ac_srcdir_defaulted=yes
1383: # Try the directory containing this script, then the parent directory.
1384: ac_confdir=`$as_dirname -- "$as_myself" ||
1385: $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386: X"$as_myself" : 'X\(//\)[^/]' \| \
1387: X"$as_myself" : 'X\(//\)$' \| \
1388: X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389: $as_echo X"$as_myself" |
1390: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1391: s//\1/
1392: q
1393: }
1394: /^X\(\/\/\)[^/].*/{
1395: s//\1/
1396: q
1397: }
1398: /^X\(\/\/\)$/{
1399: s//\1/
1400: q
1401: }
1402: /^X\(\/\).*/{
1403: s//\1/
1404: q
1405: }
1406: s/.*/./; q'`
1407: srcdir=$ac_confdir
1408: if test ! -r "$srcdir/$ac_unique_file"; then
1409: srcdir=..
1410: fi
1411: else
1412: ac_srcdir_defaulted=no
1413: fi
1414: if test ! -r "$srcdir/$ac_unique_file"; then
1415: test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1416: as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1417: fi
1418: ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1419: ac_abs_confdir=`(
1420: cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1421: pwd)`
1422: # When building in place, set srcdir=.
1423: if test "$ac_abs_confdir" = "$ac_pwd"; then
1424: srcdir=.
1425: fi
1426: # Remove unnecessary trailing slashes from srcdir.
1427: # Double slashes in file names in object file debugging info
1428: # mess up M-x gdb in Emacs.
1429: case $srcdir in
1430: */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1431: esac
1432: for ac_var in $ac_precious_vars; do
1433: eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434: eval ac_env_${ac_var}_value=\$${ac_var}
1435: eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436: eval ac_cv_env_${ac_var}_value=\$${ac_var}
1437: done
1438:
1439: #
1440: # Report the --help message.
1441: #
1442: if test "$ac_init_help" = "long"; then
1443: # Omit some internal or obsolete options to make the list less imposing.
1444: # This message is too long to be a string in the A/UX 3.1 sh.
1445: cat <<_ACEOF
1446: \`configure' configures libConfuse 2.7 to adapt to many kinds of systems.
1447:
1448: Usage: $0 [OPTION]... [VAR=VALUE]...
1449:
1450: To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451: VAR=VALUE. See below for descriptions of some of the useful variables.
1452:
1453: Defaults for the options are specified in brackets.
1454:
1455: Configuration:
1456: -h, --help display this help and exit
1457: --help=short display options specific to this package
1458: --help=recursive display the short help of all the included packages
1459: -V, --version display version information and exit
1460: -q, --quiet, --silent do not print \`checking...' messages
1461: --cache-file=FILE cache test results in FILE [disabled]
1462: -C, --config-cache alias for \`--cache-file=config.cache'
1463: -n, --no-create do not create output files
1464: --srcdir=DIR find the sources in DIR [configure dir or \`..']
1465:
1466: Installation directories:
1467: --prefix=PREFIX install architecture-independent files in PREFIX
1468: [$ac_default_prefix]
1469: --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1470: [PREFIX]
1471:
1472: By default, \`make install' will install all the files in
1473: \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474: an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475: for instance \`--prefix=\$HOME'.
1476:
1477: For better control, use the options below.
1478:
1479: Fine tuning of the installation directories:
1480: --bindir=DIR user executables [EPREFIX/bin]
1481: --sbindir=DIR system admin executables [EPREFIX/sbin]
1482: --libexecdir=DIR program executables [EPREFIX/libexec]
1483: --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484: --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485: --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486: --libdir=DIR object code libraries [EPREFIX/lib]
1487: --includedir=DIR C header files [PREFIX/include]
1488: --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489: --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490: --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491: --infodir=DIR info documentation [DATAROOTDIR/info]
1492: --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493: --mandir=DIR man documentation [DATAROOTDIR/man]
1494: --docdir=DIR documentation root [DATAROOTDIR/doc/confuse]
1495: --htmldir=DIR html documentation [DOCDIR]
1496: --dvidir=DIR dvi documentation [DOCDIR]
1497: --pdfdir=DIR pdf documentation [DOCDIR]
1498: --psdir=DIR ps documentation [DOCDIR]
1499: _ACEOF
1500:
1501: cat <<\_ACEOF
1502:
1503: Program names:
1504: --program-prefix=PREFIX prepend PREFIX to installed program names
1505: --program-suffix=SUFFIX append SUFFIX to installed program names
1506: --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1507:
1508: System types:
1509: --build=BUILD configure for building on BUILD [guessed]
1510: --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511: _ACEOF
1512: fi
1513:
1514: if test -n "$ac_init_help"; then
1515: case $ac_init_help in
1516: short | recursive ) echo "Configuration of libConfuse 2.7:";;
1517: esac
1518: cat <<\_ACEOF
1519:
1520: Optional Features:
1521: --disable-option-checking ignore unrecognized --enable/--with options
1522: --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1523: --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1524: --enable-maintainer-mode enable make rules and dependencies not useful
1525: (and sometimes confusing) to the casual installer
1526: --disable-dependency-tracking speeds up one-time build
1527: --enable-dependency-tracking do not reject slow dependency extractors
1528: --enable-shared[=PKGS] build shared libraries [default=no]
1529: --enable-static[=PKGS] build static libraries [default=yes]
1530: --enable-fast-install[=PKGS]
1531: optimize for fast installation [default=yes]
1532: --disable-libtool-lock avoid locking (might break parallel builds)
1533: --disable-examples don't build examples in examples
1534: --disable-nls do not use Native Language Support
1535: --disable-rpath do not hardcode runtime library paths
1536:
1537: Optional Packages:
1538: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1539: --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1540: --with-pic try to use only PIC/non-PIC objects [default=use
1541: both]
1542: --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1543: --with-gnu-ld assume the C compiler uses GNU ld default=no
1544: --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1545: --without-libiconv-prefix don't search for libiconv in includedir and libdir
1546: --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1547: --without-libintl-prefix don't search for libintl in includedir and libdir
1548:
1549: Some influential environment variables:
1550: CC C compiler command
1551: CFLAGS C compiler flags
1552: LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553: nonstandard directory <lib dir>
1554: LIBS libraries to pass to the linker, e.g. -l<library>
1555: CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1556: you have headers in a nonstandard directory <include dir>
1557: CPP C preprocessor
1558:
1559: Use these variables to override the choices made by `configure' or to help
1560: it to find libraries and programs with nonstandard names/locations.
1561:
1562: Report bugs to <confuse-devel@nongnu.org>.
1563: _ACEOF
1564: ac_status=$?
1565: fi
1566:
1567: if test "$ac_init_help" = "recursive"; then
1568: # If there are subdirs, report their specific --help.
1569: for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1570: test -d "$ac_dir" ||
1571: { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1572: continue
1573: ac_builddir=.
1574:
1575: case "$ac_dir" in
1576: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1577: *)
1578: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579: # A ".." for each directory in $ac_dir_suffix.
1580: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581: case $ac_top_builddir_sub in
1582: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1584: esac ;;
1585: esac
1586: ac_abs_top_builddir=$ac_pwd
1587: ac_abs_builddir=$ac_pwd$ac_dir_suffix
1588: # for backward compatibility:
1589: ac_top_builddir=$ac_top_build_prefix
1590:
1591: case $srcdir in
1592: .) # We are building in place.
1593: ac_srcdir=.
1594: ac_top_srcdir=$ac_top_builddir_sub
1595: ac_abs_top_srcdir=$ac_pwd ;;
1596: [\\/]* | ?:[\\/]* ) # Absolute name.
1597: ac_srcdir=$srcdir$ac_dir_suffix;
1598: ac_top_srcdir=$srcdir
1599: ac_abs_top_srcdir=$srcdir ;;
1600: *) # Relative name.
1601: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602: ac_top_srcdir=$ac_top_build_prefix$srcdir
1603: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1604: esac
1605: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1606:
1607: cd "$ac_dir" || { ac_status=$?; continue; }
1608: # Check for guested configure.
1609: if test -f "$ac_srcdir/configure.gnu"; then
1610: echo &&
1611: $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612: elif test -f "$ac_srcdir/configure"; then
1613: echo &&
1614: $SHELL "$ac_srcdir/configure" --help=recursive
1615: else
1616: $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1617: fi || ac_status=$?
1618: cd "$ac_pwd" || { ac_status=$?; break; }
1619: done
1620: fi
1621:
1622: test -n "$ac_init_help" && exit $ac_status
1623: if $ac_init_version; then
1624: cat <<\_ACEOF
1625: libConfuse configure 2.7
1626: generated by GNU Autoconf 2.65
1627:
1628: Copyright (C) 2009 Free Software Foundation, Inc.
1629: This configure script is free software; the Free Software Foundation
1630: gives unlimited permission to copy, distribute and modify it.
1631: _ACEOF
1632: exit
1633: fi
1634:
1635: ## ------------------------ ##
1636: ## Autoconf initialization. ##
1637: ## ------------------------ ##
1638:
1639: # ac_fn_c_try_compile LINENO
1640: # --------------------------
1641: # Try to compile conftest.$ac_ext, and return whether this succeeded.
1642: ac_fn_c_try_compile ()
1643: {
1644: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645: rm -f conftest.$ac_objext
1646: if { { ac_try="$ac_compile"
1647: case "(($ac_try" in
1648: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649: *) ac_try_echo=$ac_try;;
1650: esac
1651: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652: $as_echo "$ac_try_echo"; } >&5
1653: (eval "$ac_compile") 2>conftest.err
1654: ac_status=$?
1655: if test -s conftest.err; then
1656: grep -v '^ *+' conftest.err >conftest.er1
1657: cat conftest.er1 >&5
1658: mv -f conftest.er1 conftest.err
1659: fi
1660: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1661: test $ac_status = 0; } && {
1662: test -z "$ac_c_werror_flag" ||
1663: test ! -s conftest.err
1664: } && test -s conftest.$ac_objext; then :
1665: ac_retval=0
1666: else
1667: $as_echo "$as_me: failed program was:" >&5
1668: sed 's/^/| /' conftest.$ac_ext >&5
1669:
1670: ac_retval=1
1671: fi
1672: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1673: as_fn_set_status $ac_retval
1674:
1675: } # ac_fn_c_try_compile
1676:
1677: # ac_fn_c_try_link LINENO
1678: # -----------------------
1679: # Try to link conftest.$ac_ext, and return whether this succeeded.
1680: ac_fn_c_try_link ()
1681: {
1682: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683: rm -f conftest.$ac_objext conftest$ac_exeext
1684: if { { ac_try="$ac_link"
1685: case "(($ac_try" in
1686: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687: *) ac_try_echo=$ac_try;;
1688: esac
1689: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690: $as_echo "$ac_try_echo"; } >&5
1691: (eval "$ac_link") 2>conftest.err
1692: ac_status=$?
1693: if test -s conftest.err; then
1694: grep -v '^ *+' conftest.err >conftest.er1
1695: cat conftest.er1 >&5
1696: mv -f conftest.er1 conftest.err
1697: fi
1698: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699: test $ac_status = 0; } && {
1700: test -z "$ac_c_werror_flag" ||
1701: test ! -s conftest.err
1702: } && test -s conftest$ac_exeext && {
1703: test "$cross_compiling" = yes ||
1704: $as_test_x conftest$ac_exeext
1705: }; then :
1706: ac_retval=0
1707: else
1708: $as_echo "$as_me: failed program was:" >&5
1709: sed 's/^/| /' conftest.$ac_ext >&5
1710:
1711: ac_retval=1
1712: fi
1713: # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1714: # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1715: # interfere with the next link command; also delete a directory that is
1716: # left behind by Apple's compiler. We do this before executing the actions.
1717: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719: as_fn_set_status $ac_retval
1720:
1721: } # ac_fn_c_try_link
1722:
1723: # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1724: # -------------------------------------------------------
1725: # Tests whether HEADER exists and can be compiled using the include files in
1726: # INCLUDES, setting the cache variable VAR accordingly.
1727: ac_fn_c_check_header_compile ()
1728: {
1729: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731: $as_echo_n "checking for $2... " >&6; }
1732: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733: $as_echo_n "(cached) " >&6
1734: else
1735: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736: /* end confdefs.h. */
1737: $4
1738: #include <$2>
1739: _ACEOF
1740: if ac_fn_c_try_compile "$LINENO"; then :
1741: eval "$3=yes"
1742: else
1743: eval "$3=no"
1744: fi
1745: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1746: fi
1747: eval ac_res=\$$3
1748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1749: $as_echo "$ac_res" >&6; }
1750: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1751:
1752: } # ac_fn_c_check_header_compile
1753:
1754: # ac_fn_c_try_cpp LINENO
1755: # ----------------------
1756: # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1757: ac_fn_c_try_cpp ()
1758: {
1759: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760: if { { ac_try="$ac_cpp conftest.$ac_ext"
1761: case "(($ac_try" in
1762: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763: *) ac_try_echo=$ac_try;;
1764: esac
1765: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766: $as_echo "$ac_try_echo"; } >&5
1767: (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1768: ac_status=$?
1769: if test -s conftest.err; then
1770: grep -v '^ *+' conftest.err >conftest.er1
1771: cat conftest.er1 >&5
1772: mv -f conftest.er1 conftest.err
1773: fi
1774: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775: test $ac_status = 0; } >/dev/null && {
1776: test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1777: test ! -s conftest.err
1778: }; then :
1779: ac_retval=0
1780: else
1781: $as_echo "$as_me: failed program was:" >&5
1782: sed 's/^/| /' conftest.$ac_ext >&5
1783:
1784: ac_retval=1
1785: fi
1786: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787: as_fn_set_status $ac_retval
1788:
1789: } # ac_fn_c_try_cpp
1790:
1791: # ac_fn_c_try_run LINENO
1792: # ----------------------
1793: # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1794: # that executables *can* be run.
1795: ac_fn_c_try_run ()
1796: {
1797: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798: if { { ac_try="$ac_link"
1799: case "(($ac_try" in
1800: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801: *) ac_try_echo=$ac_try;;
1802: esac
1803: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804: $as_echo "$ac_try_echo"; } >&5
1805: (eval "$ac_link") 2>&5
1806: ac_status=$?
1807: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1808: test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1809: { { case "(($ac_try" in
1810: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811: *) ac_try_echo=$ac_try;;
1812: esac
1813: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814: $as_echo "$ac_try_echo"; } >&5
1815: (eval "$ac_try") 2>&5
1816: ac_status=$?
1817: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818: test $ac_status = 0; }; }; then :
1819: ac_retval=0
1820: else
1821: $as_echo "$as_me: program exited with status $ac_status" >&5
1822: $as_echo "$as_me: failed program was:" >&5
1823: sed 's/^/| /' conftest.$ac_ext >&5
1824:
1825: ac_retval=$ac_status
1826: fi
1827: rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1828: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1829: as_fn_set_status $ac_retval
1830:
1831: } # ac_fn_c_try_run
1832:
1833: # ac_fn_c_check_func LINENO FUNC VAR
1834: # ----------------------------------
1835: # Tests whether FUNC exists, setting the cache variable VAR accordingly
1836: ac_fn_c_check_func ()
1837: {
1838: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840: $as_echo_n "checking for $2... " >&6; }
1841: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1842: $as_echo_n "(cached) " >&6
1843: else
1844: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1845: /* end confdefs.h. */
1846: /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1847: For example, HP-UX 11i <limits.h> declares gettimeofday. */
1848: #define $2 innocuous_$2
1849:
1850: /* System header to define __stub macros and hopefully few prototypes,
1851: which can conflict with char $2 (); below.
1852: Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1853: <limits.h> exists even on freestanding compilers. */
1854:
1855: #ifdef __STDC__
1856: # include <limits.h>
1857: #else
1858: # include <assert.h>
1859: #endif
1860:
1861: #undef $2
1862:
1863: /* Override any GCC internal prototype to avoid an error.
1864: Use char because int might match the return type of a GCC
1865: builtin and then its argument prototype would still apply. */
1866: #ifdef __cplusplus
1867: extern "C"
1868: #endif
1869: char $2 ();
1870: /* The GNU C library defines this for functions which it implements
1871: to always fail with ENOSYS. Some functions are actually named
1872: something starting with __ and the normal name is an alias. */
1873: #if defined __stub_$2 || defined __stub___$2
1874: choke me
1875: #endif
1876:
1877: int
1878: main ()
1879: {
1880: return $2 ();
1881: ;
1882: return 0;
1883: }
1884: _ACEOF
1885: if ac_fn_c_try_link "$LINENO"; then :
1886: eval "$3=yes"
1887: else
1888: eval "$3=no"
1889: fi
1890: rm -f core conftest.err conftest.$ac_objext \
1891: conftest$ac_exeext conftest.$ac_ext
1892: fi
1893: eval ac_res=\$$3
1894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895: $as_echo "$ac_res" >&6; }
1896: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897:
1898: } # ac_fn_c_check_func
1899:
1900: # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1901: # -------------------------------------------------------
1902: # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903: # the include files in INCLUDES and setting the cache variable VAR
1904: # accordingly.
1905: ac_fn_c_check_header_mongrel ()
1906: {
1907: as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910: $as_echo_n "checking for $2... " >&6; }
1911: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1912: $as_echo_n "(cached) " >&6
1913: fi
1914: eval ac_res=\$$3
1915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916: $as_echo "$ac_res" >&6; }
1917: else
1918: # Is the header compilable?
1919: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920: $as_echo_n "checking $2 usability... " >&6; }
1921: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922: /* end confdefs.h. */
1923: $4
1924: #include <$2>
1925: _ACEOF
1926: if ac_fn_c_try_compile "$LINENO"; then :
1927: ac_header_compiler=yes
1928: else
1929: ac_header_compiler=no
1930: fi
1931: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933: $as_echo "$ac_header_compiler" >&6; }
1934:
1935: # Is the header present?
1936: { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937: $as_echo_n "checking $2 presence... " >&6; }
1938: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939: /* end confdefs.h. */
1940: #include <$2>
1941: _ACEOF
1942: if ac_fn_c_try_cpp "$LINENO"; then :
1943: ac_header_preproc=yes
1944: else
1945: ac_header_preproc=no
1946: fi
1947: rm -f conftest.err conftest.$ac_ext
1948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949: $as_echo "$ac_header_preproc" >&6; }
1950:
1951: # So? What about this header?
1952: case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1953: yes:no: )
1954: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955: $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1958: ;;
1959: no:yes:* )
1960: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961: $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963: $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965: $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967: $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969: $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1970: ( cat <<\_ASBOX
1971: ## --------------------------------------- ##
1972: ## Report this to confuse-devel@nongnu.org ##
1973: ## --------------------------------------- ##
1974: _ASBOX
1975: ) | sed "s/^/$as_me: WARNING: /" >&2
1976: ;;
1977: esac
1978: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1979: $as_echo_n "checking for $2... " >&6; }
1980: if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1981: $as_echo_n "(cached) " >&6
1982: else
1983: eval "$3=\$ac_header_compiler"
1984: fi
1985: eval ac_res=\$$3
1986: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987: $as_echo "$ac_res" >&6; }
1988: fi
1989: eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990:
1991: } # ac_fn_c_check_header_mongrel
1992: cat >config.log <<_ACEOF
1993: This file contains any messages produced by compilers while
1994: running configure, to aid debugging if configure makes a mistake.
1995:
1996: It was created by libConfuse $as_me 2.7, which was
1997: generated by GNU Autoconf 2.65. Invocation command line was
1998:
1999: $ $0 $@
2000:
2001: _ACEOF
2002: exec 5>>config.log
2003: {
2004: cat <<_ASUNAME
2005: ## --------- ##
2006: ## Platform. ##
2007: ## --------- ##
2008:
2009: hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2010: uname -m = `(uname -m) 2>/dev/null || echo unknown`
2011: uname -r = `(uname -r) 2>/dev/null || echo unknown`
2012: uname -s = `(uname -s) 2>/dev/null || echo unknown`
2013: uname -v = `(uname -v) 2>/dev/null || echo unknown`
2014:
2015: /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2016: /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2017:
2018: /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2019: /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2020: /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2021: /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2022: /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2023: /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2024: /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2025:
2026: _ASUNAME
2027:
2028: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2029: for as_dir in $PATH
2030: do
2031: IFS=$as_save_IFS
2032: test -z "$as_dir" && as_dir=.
2033: $as_echo "PATH: $as_dir"
2034: done
2035: IFS=$as_save_IFS
2036:
2037: } >&5
2038:
2039: cat >&5 <<_ACEOF
2040:
2041:
2042: ## ----------- ##
2043: ## Core tests. ##
2044: ## ----------- ##
2045:
2046: _ACEOF
2047:
2048:
2049: # Keep a trace of the command line.
2050: # Strip out --no-create and --no-recursion so they do not pile up.
2051: # Strip out --silent because we don't want to record it for future runs.
2052: # Also quote any args containing shell meta-characters.
2053: # Make two passes to allow for proper duplicate-argument suppression.
2054: ac_configure_args=
2055: ac_configure_args0=
2056: ac_configure_args1=
2057: ac_must_keep_next=false
2058: for ac_pass in 1 2
2059: do
2060: for ac_arg
2061: do
2062: case $ac_arg in
2063: -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2064: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2065: | -silent | --silent | --silen | --sile | --sil)
2066: continue ;;
2067: *\'*)
2068: ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2069: esac
2070: case $ac_pass in
2071: 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2072: 2)
2073: as_fn_append ac_configure_args1 " '$ac_arg'"
2074: if test $ac_must_keep_next = true; then
2075: ac_must_keep_next=false # Got value, back to normal.
2076: else
2077: case $ac_arg in
2078: *=* | --config-cache | -C | -disable-* | --disable-* \
2079: | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2080: | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2081: | -with-* | --with-* | -without-* | --without-* | --x)
2082: case "$ac_configure_args0 " in
2083: "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2084: esac
2085: ;;
2086: -* ) ac_must_keep_next=true ;;
2087: esac
2088: fi
2089: as_fn_append ac_configure_args " '$ac_arg'"
2090: ;;
2091: esac
2092: done
2093: done
2094: { ac_configure_args0=; unset ac_configure_args0;}
2095: { ac_configure_args1=; unset ac_configure_args1;}
2096:
2097: # When interrupted or exit'd, cleanup temporary files, and complete
2098: # config.log. We remove comments because anyway the quotes in there
2099: # would cause problems or look ugly.
2100: # WARNING: Use '\'' to represent an apostrophe within the trap.
2101: # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2102: trap 'exit_status=$?
2103: # Save into config.log some information that might help in debugging.
2104: {
2105: echo
2106:
2107: cat <<\_ASBOX
2108: ## ---------------- ##
2109: ## Cache variables. ##
2110: ## ---------------- ##
2111: _ASBOX
2112: echo
2113: # The following way of writing the cache mishandles newlines in values,
2114: (
2115: for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2116: eval ac_val=\$$ac_var
2117: case $ac_val in #(
2118: *${as_nl}*)
2119: case $ac_var in #(
2120: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2121: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2122: esac
2123: case $ac_var in #(
2124: _ | IFS | as_nl) ;; #(
2125: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2126: *) { eval $ac_var=; unset $ac_var;} ;;
2127: esac ;;
2128: esac
2129: done
2130: (set) 2>&1 |
2131: case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2132: *${as_nl}ac_space=\ *)
2133: sed -n \
2134: "s/'\''/'\''\\\\'\'''\''/g;
2135: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2136: ;; #(
2137: *)
2138: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2139: ;;
2140: esac |
2141: sort
2142: )
2143: echo
2144:
2145: cat <<\_ASBOX
2146: ## ----------------- ##
2147: ## Output variables. ##
2148: ## ----------------- ##
2149: _ASBOX
2150: echo
2151: for ac_var in $ac_subst_vars
2152: do
2153: eval ac_val=\$$ac_var
2154: case $ac_val in
2155: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156: esac
2157: $as_echo "$ac_var='\''$ac_val'\''"
2158: done | sort
2159: echo
2160:
2161: if test -n "$ac_subst_files"; then
2162: cat <<\_ASBOX
2163: ## ------------------- ##
2164: ## File substitutions. ##
2165: ## ------------------- ##
2166: _ASBOX
2167: echo
2168: for ac_var in $ac_subst_files
2169: do
2170: eval ac_val=\$$ac_var
2171: case $ac_val in
2172: *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2173: esac
2174: $as_echo "$ac_var='\''$ac_val'\''"
2175: done | sort
2176: echo
2177: fi
2178:
2179: if test -s confdefs.h; then
2180: cat <<\_ASBOX
2181: ## ----------- ##
2182: ## confdefs.h. ##
2183: ## ----------- ##
2184: _ASBOX
2185: echo
2186: cat confdefs.h
2187: echo
2188: fi
2189: test "$ac_signal" != 0 &&
2190: $as_echo "$as_me: caught signal $ac_signal"
2191: $as_echo "$as_me: exit $exit_status"
2192: } >&5
2193: rm -f core *.core core.conftest.* &&
2194: rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2195: exit $exit_status
2196: ' 0
2197: for ac_signal in 1 2 13 15; do
2198: trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2199: done
2200: ac_signal=0
2201:
2202: # confdefs.h avoids OS command line length limits that DEFS can exceed.
2203: rm -f -r conftest* confdefs.h
2204:
2205: $as_echo "/* confdefs.h */" > confdefs.h
2206:
2207: # Predefined preprocessor variables.
2208:
2209: cat >>confdefs.h <<_ACEOF
2210: #define PACKAGE_NAME "$PACKAGE_NAME"
2211: _ACEOF
2212:
2213: cat >>confdefs.h <<_ACEOF
2214: #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2215: _ACEOF
2216:
2217: cat >>confdefs.h <<_ACEOF
2218: #define PACKAGE_VERSION "$PACKAGE_VERSION"
2219: _ACEOF
2220:
2221: cat >>confdefs.h <<_ACEOF
2222: #define PACKAGE_STRING "$PACKAGE_STRING"
2223: _ACEOF
2224:
2225: cat >>confdefs.h <<_ACEOF
2226: #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2227: _ACEOF
2228:
2229: cat >>confdefs.h <<_ACEOF
2230: #define PACKAGE_URL "$PACKAGE_URL"
2231: _ACEOF
2232:
2233:
2234: # Let the site file select an alternate cache file if it wants to.
2235: # Prefer an explicitly selected file to automatically selected ones.
2236: ac_site_file1=NONE
2237: ac_site_file2=NONE
2238: if test -n "$CONFIG_SITE"; then
2239: ac_site_file1=$CONFIG_SITE
2240: elif test "x$prefix" != xNONE; then
2241: ac_site_file1=$prefix/share/config.site
2242: ac_site_file2=$prefix/etc/config.site
2243: else
2244: ac_site_file1=$ac_default_prefix/share/config.site
2245: ac_site_file2=$ac_default_prefix/etc/config.site
2246: fi
2247: for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2248: do
2249: test "x$ac_site_file" = xNONE && continue
2250: if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2251: { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2252: $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2253: sed 's/^/| /' "$ac_site_file" >&5
2254: . "$ac_site_file"
2255: fi
2256: done
2257:
2258: if test -r "$cache_file"; then
2259: # Some versions of bash will fail to source /dev/null (special files
2260: # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2261: if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2262: { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2263: $as_echo "$as_me: loading cache $cache_file" >&6;}
2264: case $cache_file in
2265: [\\/]* | ?:[\\/]* ) . "$cache_file";;
2266: *) . "./$cache_file";;
2267: esac
2268: fi
2269: else
2270: { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2271: $as_echo "$as_me: creating cache $cache_file" >&6;}
2272: >$cache_file
2273: fi
2274:
2275: gt_needs="$gt_needs "
2276: # Check that the precious variables saved in the cache have kept the same
2277: # value.
2278: ac_cache_corrupted=false
2279: for ac_var in $ac_precious_vars; do
2280: eval ac_old_set=\$ac_cv_env_${ac_var}_set
2281: eval ac_new_set=\$ac_env_${ac_var}_set
2282: eval ac_old_val=\$ac_cv_env_${ac_var}_value
2283: eval ac_new_val=\$ac_env_${ac_var}_value
2284: case $ac_old_set,$ac_new_set in
2285: set,)
2286: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2287: $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2288: ac_cache_corrupted=: ;;
2289: ,set)
2290: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2291: $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2292: ac_cache_corrupted=: ;;
2293: ,);;
2294: *)
2295: if test "x$ac_old_val" != "x$ac_new_val"; then
2296: # differences in whitespace do not lead to failure.
2297: ac_old_val_w=`echo x $ac_old_val`
2298: ac_new_val_w=`echo x $ac_new_val`
2299: if test "$ac_old_val_w" != "$ac_new_val_w"; then
2300: { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2301: $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2302: ac_cache_corrupted=:
2303: else
2304: { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2305: $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2306: eval $ac_var=\$ac_old_val
2307: fi
2308: { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2309: $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2310: { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2311: $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2312: fi;;
2313: esac
2314: # Pass precious variables to config.status.
2315: if test "$ac_new_set" = set; then
2316: case $ac_new_val in
2317: *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2318: *) ac_arg=$ac_var=$ac_new_val ;;
2319: esac
2320: case " $ac_configure_args " in
2321: *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2322: *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2323: esac
2324: fi
2325: done
2326: if $ac_cache_corrupted; then
2327: { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2328: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2329: { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2330: $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2331: as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2332: fi
2333: ## -------------------- ##
2334: ## Main body of script. ##
2335: ## -------------------- ##
2336:
2337: ac_ext=c
2338: ac_cpp='$CPP $CPPFLAGS'
2339: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2340: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2341: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2342:
2343:
2344: ac_aux_dir=
2345: for ac_dir in support "$srcdir"/support; do
2346: for ac_t in install-sh install.sh shtool; do
2347: if test -f "$ac_dir/$ac_t"; then
2348: ac_aux_dir=$ac_dir
2349: ac_install_sh="$ac_aux_dir/$ac_t -c"
2350: break 2
2351: fi
2352: done
2353: done
2354: if test -z "$ac_aux_dir"; then
2355: as_fn_error "cannot find install-sh, install.sh, or shtool in support \"$srcdir\"/support" "$LINENO" 5
2356: fi
2357:
2358: # These three variables are undocumented and unsupported,
2359: # and are intended to be withdrawn in a future Autoconf release.
2360: # They can cause serious problems if a builder's source tree is in a directory
2361: # whose full name contains unusual characters.
2362: ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2363: ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2364: ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2365:
2366:
2367:
2368: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2369: $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2370: # Check whether --enable-maintainer-mode was given.
2371: if test "${enable_maintainer_mode+set}" = set; then :
2372: enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2373: else
2374: USE_MAINTAINER_MODE=no
2375: fi
2376:
2377: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2378: $as_echo "$USE_MAINTAINER_MODE" >&6; }
2379: if test $USE_MAINTAINER_MODE = yes; then
2380: MAINTAINER_MODE_TRUE=
2381: MAINTAINER_MODE_FALSE='#'
2382: else
2383: MAINTAINER_MODE_TRUE='#'
2384: MAINTAINER_MODE_FALSE=
2385: fi
2386:
2387: MAINT=$MAINTAINER_MODE_TRUE
2388:
2389:
2390: am__api_version='1.11'
2391:
2392: # Find a good install program. We prefer a C program (faster),
2393: # so one script is as good as another. But avoid the broken or
2394: # incompatible versions:
2395: # SysV /etc/install, /usr/sbin/install
2396: # SunOS /usr/etc/install
2397: # IRIX /sbin/install
2398: # AIX /bin/install
2399: # AmigaOS /C/install, which installs bootblocks on floppy discs
2400: # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2401: # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2402: # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2403: # OS/2's system install, which has a completely different semantic
2404: # ./install, which can be erroneously created by make from ./install.sh.
2405: # Reject install programs that cannot install multiple files.
2406: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2407: $as_echo_n "checking for a BSD-compatible install... " >&6; }
2408: if test -z "$INSTALL"; then
2409: if test "${ac_cv_path_install+set}" = set; then :
2410: $as_echo_n "(cached) " >&6
2411: else
2412: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413: for as_dir in $PATH
2414: do
2415: IFS=$as_save_IFS
2416: test -z "$as_dir" && as_dir=.
2417: # Account for people who put trailing slashes in PATH elements.
2418: case $as_dir/ in #((
2419: ./ | .// | /[cC]/* | \
2420: /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2421: ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2422: /usr/ucb/* ) ;;
2423: *)
2424: # OSF1 and SCO ODT 3.0 have their own names for install.
2425: # Don't use installbsd from OSF since it installs stuff as root
2426: # by default.
2427: for ac_prog in ginstall scoinst install; do
2428: for ac_exec_ext in '' $ac_executable_extensions; do
2429: if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2430: if test $ac_prog = install &&
2431: grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2432: # AIX install. It has an incompatible calling convention.
2433: :
2434: elif test $ac_prog = install &&
2435: grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2436: # program-specific install script used by HP pwplus--don't use.
2437: :
2438: else
2439: rm -rf conftest.one conftest.two conftest.dir
2440: echo one > conftest.one
2441: echo two > conftest.two
2442: mkdir conftest.dir
2443: if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2444: test -s conftest.one && test -s conftest.two &&
2445: test -s conftest.dir/conftest.one &&
2446: test -s conftest.dir/conftest.two
2447: then
2448: ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2449: break 3
2450: fi
2451: fi
2452: fi
2453: done
2454: done
2455: ;;
2456: esac
2457:
2458: done
2459: IFS=$as_save_IFS
2460:
2461: rm -rf conftest.one conftest.two conftest.dir
2462:
2463: fi
2464: if test "${ac_cv_path_install+set}" = set; then
2465: INSTALL=$ac_cv_path_install
2466: else
2467: # As a last resort, use the slow shell script. Don't cache a
2468: # value for INSTALL within a source directory, because that will
2469: # break other packages using the cache if that directory is
2470: # removed, or if the value is a relative name.
2471: INSTALL=$ac_install_sh
2472: fi
2473: fi
2474: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2475: $as_echo "$INSTALL" >&6; }
2476:
2477: # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2478: # It thinks the first close brace ends the variable substitution.
2479: test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2480:
2481: test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2482:
2483: test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2484:
2485: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2486: $as_echo_n "checking whether build environment is sane... " >&6; }
2487: # Just in case
2488: sleep 1
2489: echo timestamp > conftest.file
2490: # Reject unsafe characters in $srcdir or the absolute working directory
2491: # name. Accept space and tab only in the latter.
2492: am_lf='
2493: '
2494: case `pwd` in
2495: *[\\\"\#\$\&\'\`$am_lf]*)
2496: as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2497: esac
2498: case $srcdir in
2499: *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2500: as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2501: esac
2502:
2503: # Do `set' in a subshell so we don't clobber the current shell's
2504: # arguments. Must try -L first in case configure is actually a
2505: # symlink; some systems play weird games with the mod time of symlinks
2506: # (eg FreeBSD returns the mod time of the symlink's containing
2507: # directory).
2508: if (
2509: set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2510: if test "$*" = "X"; then
2511: # -L didn't work.
2512: set X `ls -t "$srcdir/configure" conftest.file`
2513: fi
2514: rm -f conftest.file
2515: if test "$*" != "X $srcdir/configure conftest.file" \
2516: && test "$*" != "X conftest.file $srcdir/configure"; then
2517:
2518: # If neither matched, then we have a broken ls. This can happen
2519: # if, for instance, CONFIG_SHELL is bash and it inherits a
2520: # broken ls alias from the environment. This has actually
2521: # happened. Such a system could not be considered "sane".
2522: as_fn_error "ls -t appears to fail. Make sure there is not a broken
2523: alias in your environment" "$LINENO" 5
2524: fi
2525:
2526: test "$2" = conftest.file
2527: )
2528: then
2529: # Ok.
2530: :
2531: else
2532: as_fn_error "newly created file is older than distributed files!
2533: Check your system clock" "$LINENO" 5
2534: fi
2535: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2536: $as_echo "yes" >&6; }
2537: test "$program_prefix" != NONE &&
2538: program_transform_name="s&^&$program_prefix&;$program_transform_name"
2539: # Use a double $ so make ignores it.
2540: test "$program_suffix" != NONE &&
2541: program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2542: # Double any \ or $.
2543: # By default was `s,x,x', remove it if useless.
2544: ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2545: program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2546:
2547: # expand $ac_aux_dir to an absolute path
2548: am_aux_dir=`cd $ac_aux_dir && pwd`
2549:
2550: if test x"${MISSING+set}" != xset; then
2551: case $am_aux_dir in
2552: *\ * | *\ *)
2553: MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2554: *)
2555: MISSING="\${SHELL} $am_aux_dir/missing" ;;
2556: esac
2557: fi
2558: # Use eval to expand $SHELL
2559: if eval "$MISSING --run true"; then
2560: am_missing_run="$MISSING --run "
2561: else
2562: am_missing_run=
2563: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2564: $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2565: fi
2566:
2567: if test x"${install_sh}" != xset; then
2568: case $am_aux_dir in
2569: *\ * | *\ *)
2570: install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2571: *)
2572: install_sh="\${SHELL} $am_aux_dir/install-sh"
2573: esac
2574: fi
2575:
2576: # Installed binaries are usually stripped using `strip' when the user
2577: # run `make install-strip'. However `strip' might not be the right
2578: # tool to use in cross-compilation environments, therefore Automake
2579: # will honor the `STRIP' environment variable to overrule this program.
2580: if test "$cross_compiling" != no; then
2581: if test -n "$ac_tool_prefix"; then
2582: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2583: set dummy ${ac_tool_prefix}strip; ac_word=$2
2584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2585: $as_echo_n "checking for $ac_word... " >&6; }
2586: if test "${ac_cv_prog_STRIP+set}" = set; then :
2587: $as_echo_n "(cached) " >&6
2588: else
2589: if test -n "$STRIP"; then
2590: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2591: else
2592: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2593: for as_dir in $PATH
2594: do
2595: IFS=$as_save_IFS
2596: test -z "$as_dir" && as_dir=.
2597: for ac_exec_ext in '' $ac_executable_extensions; do
2598: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2599: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2600: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2601: break 2
2602: fi
2603: done
2604: done
2605: IFS=$as_save_IFS
2606:
2607: fi
2608: fi
2609: STRIP=$ac_cv_prog_STRIP
2610: if test -n "$STRIP"; then
2611: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2612: $as_echo "$STRIP" >&6; }
2613: else
2614: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2615: $as_echo "no" >&6; }
2616: fi
2617:
2618:
2619: fi
2620: if test -z "$ac_cv_prog_STRIP"; then
2621: ac_ct_STRIP=$STRIP
2622: # Extract the first word of "strip", so it can be a program name with args.
2623: set dummy strip; ac_word=$2
2624: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2625: $as_echo_n "checking for $ac_word... " >&6; }
2626: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2627: $as_echo_n "(cached) " >&6
2628: else
2629: if test -n "$ac_ct_STRIP"; then
2630: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2631: else
2632: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2633: for as_dir in $PATH
2634: do
2635: IFS=$as_save_IFS
2636: test -z "$as_dir" && as_dir=.
2637: for ac_exec_ext in '' $ac_executable_extensions; do
2638: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2639: ac_cv_prog_ac_ct_STRIP="strip"
2640: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2641: break 2
2642: fi
2643: done
2644: done
2645: IFS=$as_save_IFS
2646:
2647: fi
2648: fi
2649: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2650: if test -n "$ac_ct_STRIP"; then
2651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2652: $as_echo "$ac_ct_STRIP" >&6; }
2653: else
2654: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2655: $as_echo "no" >&6; }
2656: fi
2657:
2658: if test "x$ac_ct_STRIP" = x; then
2659: STRIP=":"
2660: else
2661: case $cross_compiling:$ac_tool_warned in
2662: yes:)
2663: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2664: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2665: ac_tool_warned=yes ;;
2666: esac
2667: STRIP=$ac_ct_STRIP
2668: fi
2669: else
2670: STRIP="$ac_cv_prog_STRIP"
2671: fi
2672:
2673: fi
2674: INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2675:
2676: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2677: $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2678: if test -z "$MKDIR_P"; then
2679: if test "${ac_cv_path_mkdir+set}" = set; then :
2680: $as_echo_n "(cached) " >&6
2681: else
2682: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683: for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2684: do
2685: IFS=$as_save_IFS
2686: test -z "$as_dir" && as_dir=.
2687: for ac_prog in mkdir gmkdir; do
2688: for ac_exec_ext in '' $ac_executable_extensions; do
2689: { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2690: case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2691: 'mkdir (GNU coreutils) '* | \
2692: 'mkdir (coreutils) '* | \
2693: 'mkdir (fileutils) '4.1*)
2694: ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2695: break 3;;
2696: esac
2697: done
2698: done
2699: done
2700: IFS=$as_save_IFS
2701:
2702: fi
2703:
2704: test -d ./--version && rmdir ./--version
2705: if test "${ac_cv_path_mkdir+set}" = set; then
2706: MKDIR_P="$ac_cv_path_mkdir -p"
2707: else
2708: # As a last resort, use the slow shell script. Don't cache a
2709: # value for MKDIR_P within a source directory, because that will
2710: # break other packages using the cache if that directory is
2711: # removed, or if the value is a relative name.
2712: MKDIR_P="$ac_install_sh -d"
2713: fi
2714: fi
2715: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2716: $as_echo "$MKDIR_P" >&6; }
2717:
2718: mkdir_p="$MKDIR_P"
2719: case $mkdir_p in
2720: [\\/$]* | ?:[\\/]*) ;;
2721: */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2722: esac
2723:
2724: for ac_prog in gawk mawk nawk awk
2725: do
2726: # Extract the first word of "$ac_prog", so it can be a program name with args.
2727: set dummy $ac_prog; ac_word=$2
2728: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729: $as_echo_n "checking for $ac_word... " >&6; }
2730: if test "${ac_cv_prog_AWK+set}" = set; then :
2731: $as_echo_n "(cached) " >&6
2732: else
2733: if test -n "$AWK"; then
2734: ac_cv_prog_AWK="$AWK" # Let the user override the test.
2735: else
2736: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2737: for as_dir in $PATH
2738: do
2739: IFS=$as_save_IFS
2740: test -z "$as_dir" && as_dir=.
2741: for ac_exec_ext in '' $ac_executable_extensions; do
2742: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2743: ac_cv_prog_AWK="$ac_prog"
2744: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2745: break 2
2746: fi
2747: done
2748: done
2749: IFS=$as_save_IFS
2750:
2751: fi
2752: fi
2753: AWK=$ac_cv_prog_AWK
2754: if test -n "$AWK"; then
2755: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756: $as_echo "$AWK" >&6; }
2757: else
2758: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759: $as_echo "no" >&6; }
2760: fi
2761:
2762:
2763: test -n "$AWK" && break
2764: done
2765:
2766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2767: $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2768: set x ${MAKE-make}
2769: ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2770: if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2771: $as_echo_n "(cached) " >&6
2772: else
2773: cat >conftest.make <<\_ACEOF
2774: SHELL = /bin/sh
2775: all:
2776: @echo '@@@%%%=$(MAKE)=@@@%%%'
2777: _ACEOF
2778: # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2779: case `${MAKE-make} -f conftest.make 2>/dev/null` in
2780: *@@@%%%=?*=@@@%%%*)
2781: eval ac_cv_prog_make_${ac_make}_set=yes;;
2782: *)
2783: eval ac_cv_prog_make_${ac_make}_set=no;;
2784: esac
2785: rm -f conftest.make
2786: fi
2787: if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2789: $as_echo "yes" >&6; }
2790: SET_MAKE=
2791: else
2792: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2793: $as_echo "no" >&6; }
2794: SET_MAKE="MAKE=${MAKE-make}"
2795: fi
2796:
2797: rm -rf .tst 2>/dev/null
2798: mkdir .tst 2>/dev/null
2799: if test -d .tst; then
2800: am__leading_dot=.
2801: else
2802: am__leading_dot=_
2803: fi
2804: rmdir .tst 2>/dev/null
2805:
2806: if test "`cd $srcdir && pwd`" != "`pwd`"; then
2807: # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2808: # is not polluted with repeated "-I."
2809: am__isrc=' -I$(srcdir)'
2810: # test to see if srcdir already configured
2811: if test -f $srcdir/config.status; then
2812: as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2813: fi
2814: fi
2815:
2816: # test whether we have cygpath
2817: if test -z "$CYGPATH_W"; then
2818: if (cygpath --version) >/dev/null 2>/dev/null; then
2819: CYGPATH_W='cygpath -w'
2820: else
2821: CYGPATH_W=echo
2822: fi
2823: fi
2824:
2825:
2826: # Define the identity of the package.
2827: PACKAGE='confuse'
2828: VERSION='2.7'
2829:
2830:
2831: cat >>confdefs.h <<_ACEOF
2832: #define PACKAGE "$PACKAGE"
2833: _ACEOF
2834:
2835:
2836: cat >>confdefs.h <<_ACEOF
2837: #define VERSION "$VERSION"
2838: _ACEOF
2839:
2840: # Some tools Automake needs.
2841:
2842: ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2843:
2844:
2845: AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2846:
2847:
2848: AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2849:
2850:
2851: AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2852:
2853:
2854: MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2855:
2856: # We need awk for the "check" target. The system "awk" is bad on
2857: # some platforms.
2858: # Always define AMTAR for backward compatibility.
2859:
2860: AMTAR=${AMTAR-"${am_missing_run}tar"}
2861:
2862: am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2863:
2864:
2865:
2866:
2867:
2868: ac_config_headers="$ac_config_headers config.h"
2869:
2870:
2871:
2872: # Checks for programs.
2873: # disable unnecessary compiler checks
2874:
2875:
2876:
2877:
2878:
2879:
2880:
2881:
2882: ac_ext=c
2883: ac_cpp='$CPP $CPPFLAGS'
2884: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2885: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2886: ac_compiler_gnu=$ac_cv_c_compiler_gnu
2887: if test -n "$ac_tool_prefix"; then
2888: # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2889: set dummy ${ac_tool_prefix}gcc; ac_word=$2
2890: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2891: $as_echo_n "checking for $ac_word... " >&6; }
2892: if test "${ac_cv_prog_CC+set}" = set; then :
2893: $as_echo_n "(cached) " >&6
2894: else
2895: if test -n "$CC"; then
2896: ac_cv_prog_CC="$CC" # Let the user override the test.
2897: else
2898: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2899: for as_dir in $PATH
2900: do
2901: IFS=$as_save_IFS
2902: test -z "$as_dir" && as_dir=.
2903: for ac_exec_ext in '' $ac_executable_extensions; do
2904: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2905: ac_cv_prog_CC="${ac_tool_prefix}gcc"
2906: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2907: break 2
2908: fi
2909: done
2910: done
2911: IFS=$as_save_IFS
2912:
2913: fi
2914: fi
2915: CC=$ac_cv_prog_CC
2916: if test -n "$CC"; then
2917: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2918: $as_echo "$CC" >&6; }
2919: else
2920: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2921: $as_echo "no" >&6; }
2922: fi
2923:
2924:
2925: fi
2926: if test -z "$ac_cv_prog_CC"; then
2927: ac_ct_CC=$CC
2928: # Extract the first word of "gcc", so it can be a program name with args.
2929: set dummy gcc; ac_word=$2
2930: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2931: $as_echo_n "checking for $ac_word... " >&6; }
2932: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2933: $as_echo_n "(cached) " >&6
2934: else
2935: if test -n "$ac_ct_CC"; then
2936: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2937: else
2938: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2939: for as_dir in $PATH
2940: do
2941: IFS=$as_save_IFS
2942: test -z "$as_dir" && as_dir=.
2943: for ac_exec_ext in '' $ac_executable_extensions; do
2944: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2945: ac_cv_prog_ac_ct_CC="gcc"
2946: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2947: break 2
2948: fi
2949: done
2950: done
2951: IFS=$as_save_IFS
2952:
2953: fi
2954: fi
2955: ac_ct_CC=$ac_cv_prog_ac_ct_CC
2956: if test -n "$ac_ct_CC"; then
2957: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2958: $as_echo "$ac_ct_CC" >&6; }
2959: else
2960: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2961: $as_echo "no" >&6; }
2962: fi
2963:
2964: if test "x$ac_ct_CC" = x; then
2965: CC=""
2966: else
2967: case $cross_compiling:$ac_tool_warned in
2968: yes:)
2969: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2970: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2971: ac_tool_warned=yes ;;
2972: esac
2973: CC=$ac_ct_CC
2974: fi
2975: else
2976: CC="$ac_cv_prog_CC"
2977: fi
2978:
2979: if test -z "$CC"; then
2980: if test -n "$ac_tool_prefix"; then
2981: # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2982: set dummy ${ac_tool_prefix}cc; ac_word=$2
2983: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2984: $as_echo_n "checking for $ac_word... " >&6; }
2985: if test "${ac_cv_prog_CC+set}" = set; then :
2986: $as_echo_n "(cached) " >&6
2987: else
2988: if test -n "$CC"; then
2989: ac_cv_prog_CC="$CC" # Let the user override the test.
2990: else
2991: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2992: for as_dir in $PATH
2993: do
2994: IFS=$as_save_IFS
2995: test -z "$as_dir" && as_dir=.
2996: for ac_exec_ext in '' $ac_executable_extensions; do
2997: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2998: ac_cv_prog_CC="${ac_tool_prefix}cc"
2999: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3000: break 2
3001: fi
3002: done
3003: done
3004: IFS=$as_save_IFS
3005:
3006: fi
3007: fi
3008: CC=$ac_cv_prog_CC
3009: if test -n "$CC"; then
3010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011: $as_echo "$CC" >&6; }
3012: else
3013: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014: $as_echo "no" >&6; }
3015: fi
3016:
3017:
3018: fi
3019: fi
3020: if test -z "$CC"; then
3021: # Extract the first word of "cc", so it can be a program name with args.
3022: set dummy cc; ac_word=$2
3023: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024: $as_echo_n "checking for $ac_word... " >&6; }
3025: if test "${ac_cv_prog_CC+set}" = set; then :
3026: $as_echo_n "(cached) " >&6
3027: else
3028: if test -n "$CC"; then
3029: ac_cv_prog_CC="$CC" # Let the user override the test.
3030: else
3031: ac_prog_rejected=no
3032: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033: for as_dir in $PATH
3034: do
3035: IFS=$as_save_IFS
3036: test -z "$as_dir" && as_dir=.
3037: for ac_exec_ext in '' $ac_executable_extensions; do
3038: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039: if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3040: ac_prog_rejected=yes
3041: continue
3042: fi
3043: ac_cv_prog_CC="cc"
3044: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045: break 2
3046: fi
3047: done
3048: done
3049: IFS=$as_save_IFS
3050:
3051: if test $ac_prog_rejected = yes; then
3052: # We found a bogon in the path, so make sure we never use it.
3053: set dummy $ac_cv_prog_CC
3054: shift
3055: if test $# != 0; then
3056: # We chose a different compiler from the bogus one.
3057: # However, it has the same basename, so the bogon will be chosen
3058: # first if we set CC to just the basename; use the full file name.
3059: shift
3060: ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3061: fi
3062: fi
3063: fi
3064: fi
3065: CC=$ac_cv_prog_CC
3066: if test -n "$CC"; then
3067: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3068: $as_echo "$CC" >&6; }
3069: else
3070: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3071: $as_echo "no" >&6; }
3072: fi
3073:
3074:
3075: fi
3076: if test -z "$CC"; then
3077: if test -n "$ac_tool_prefix"; then
3078: for ac_prog in cl.exe
3079: do
3080: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3081: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3082: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083: $as_echo_n "checking for $ac_word... " >&6; }
3084: if test "${ac_cv_prog_CC+set}" = set; then :
3085: $as_echo_n "(cached) " >&6
3086: else
3087: if test -n "$CC"; then
3088: ac_cv_prog_CC="$CC" # Let the user override the test.
3089: else
3090: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091: for as_dir in $PATH
3092: do
3093: IFS=$as_save_IFS
3094: test -z "$as_dir" && as_dir=.
3095: for ac_exec_ext in '' $ac_executable_extensions; do
3096: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097: ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3098: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3099: break 2
3100: fi
3101: done
3102: done
3103: IFS=$as_save_IFS
3104:
3105: fi
3106: fi
3107: CC=$ac_cv_prog_CC
3108: if test -n "$CC"; then
3109: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3110: $as_echo "$CC" >&6; }
3111: else
3112: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3113: $as_echo "no" >&6; }
3114: fi
3115:
3116:
3117: test -n "$CC" && break
3118: done
3119: fi
3120: if test -z "$CC"; then
3121: ac_ct_CC=$CC
3122: for ac_prog in cl.exe
3123: do
3124: # Extract the first word of "$ac_prog", so it can be a program name with args.
3125: set dummy $ac_prog; ac_word=$2
3126: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3127: $as_echo_n "checking for $ac_word... " >&6; }
3128: if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3129: $as_echo_n "(cached) " >&6
3130: else
3131: if test -n "$ac_ct_CC"; then
3132: ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3133: else
3134: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3135: for as_dir in $PATH
3136: do
3137: IFS=$as_save_IFS
3138: test -z "$as_dir" && as_dir=.
3139: for ac_exec_ext in '' $ac_executable_extensions; do
3140: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3141: ac_cv_prog_ac_ct_CC="$ac_prog"
3142: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3143: break 2
3144: fi
3145: done
3146: done
3147: IFS=$as_save_IFS
3148:
3149: fi
3150: fi
3151: ac_ct_CC=$ac_cv_prog_ac_ct_CC
3152: if test -n "$ac_ct_CC"; then
3153: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3154: $as_echo "$ac_ct_CC" >&6; }
3155: else
3156: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3157: $as_echo "no" >&6; }
3158: fi
3159:
3160:
3161: test -n "$ac_ct_CC" && break
3162: done
3163:
3164: if test "x$ac_ct_CC" = x; then
3165: CC=""
3166: else
3167: case $cross_compiling:$ac_tool_warned in
3168: yes:)
3169: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3170: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3171: ac_tool_warned=yes ;;
3172: esac
3173: CC=$ac_ct_CC
3174: fi
3175: fi
3176:
3177: fi
3178:
3179:
3180: test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3181: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3182: as_fn_error "no acceptable C compiler found in \$PATH
3183: See \`config.log' for more details." "$LINENO" 5; }
3184:
3185: # Provide some information about the compiler.
3186: $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3187: set X $ac_compile
3188: ac_compiler=$2
3189: for ac_option in --version -v -V -qversion; do
3190: { { ac_try="$ac_compiler $ac_option >&5"
3191: case "(($ac_try" in
3192: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3193: *) ac_try_echo=$ac_try;;
3194: esac
3195: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3196: $as_echo "$ac_try_echo"; } >&5
3197: (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3198: ac_status=$?
3199: if test -s conftest.err; then
3200: sed '10a\
3201: ... rest of stderr output deleted ...
3202: 10q' conftest.err >conftest.er1
3203: cat conftest.er1 >&5
3204: fi
3205: rm -f conftest.er1 conftest.err
3206: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3207: test $ac_status = 0; }
3208: done
3209:
3210: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211: /* end confdefs.h. */
3212:
3213: int
3214: main ()
3215: {
3216:
3217: ;
3218: return 0;
3219: }
3220: _ACEOF
3221: ac_clean_files_save=$ac_clean_files
3222: ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3223: # Try to create an executable without -o first, disregard a.out.
3224: # It will help us diagnose broken compilers, and finding out an intuition
3225: # of exeext.
3226: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3227: $as_echo_n "checking whether the C compiler works... " >&6; }
3228: ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3229:
3230: # The possible output files:
3231: ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3232:
3233: ac_rmfiles=
3234: for ac_file in $ac_files
3235: do
3236: case $ac_file in
3237: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3238: * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3239: esac
3240: done
3241: rm -f $ac_rmfiles
3242:
3243: if { { ac_try="$ac_link_default"
3244: case "(($ac_try" in
3245: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3246: *) ac_try_echo=$ac_try;;
3247: esac
3248: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3249: $as_echo "$ac_try_echo"; } >&5
3250: (eval "$ac_link_default") 2>&5
3251: ac_status=$?
3252: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3253: test $ac_status = 0; }; then :
3254: # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3255: # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3256: # in a Makefile. We should not override ac_cv_exeext if it was cached,
3257: # so that the user can short-circuit this test for compilers unknown to
3258: # Autoconf.
3259: for ac_file in $ac_files ''
3260: do
3261: test -f "$ac_file" || continue
3262: case $ac_file in
3263: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3264: ;;
3265: [ab].out )
3266: # We found the default executable, but exeext='' is most
3267: # certainly right.
3268: break;;
3269: *.* )
3270: if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3271: then :; else
3272: ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3273: fi
3274: # We set ac_cv_exeext here because the later test for it is not
3275: # safe: cross compilers may not add the suffix if given an `-o'
3276: # argument, so we may need to know it at that point already.
3277: # Even if this section looks crufty: it has the advantage of
3278: # actually working.
3279: break;;
3280: * )
3281: break;;
3282: esac
3283: done
3284: test "$ac_cv_exeext" = no && ac_cv_exeext=
3285:
3286: else
3287: ac_file=''
3288: fi
3289: if test -z "$ac_file"; then :
3290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291: $as_echo "no" >&6; }
3292: $as_echo "$as_me: failed program was:" >&5
3293: sed 's/^/| /' conftest.$ac_ext >&5
3294:
3295: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297: { as_fn_set_status 77
3298: as_fn_error "C compiler cannot create executables
3299: See \`config.log' for more details." "$LINENO" 5; }; }
3300: else
3301: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3302: $as_echo "yes" >&6; }
3303: fi
3304: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3305: $as_echo_n "checking for C compiler default output file name... " >&6; }
3306: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3307: $as_echo "$ac_file" >&6; }
3308: ac_exeext=$ac_cv_exeext
3309:
3310: rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3311: ac_clean_files=$ac_clean_files_save
3312: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3313: $as_echo_n "checking for suffix of executables... " >&6; }
3314: if { { ac_try="$ac_link"
3315: case "(($ac_try" in
3316: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317: *) ac_try_echo=$ac_try;;
3318: esac
3319: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3320: $as_echo "$ac_try_echo"; } >&5
3321: (eval "$ac_link") 2>&5
3322: ac_status=$?
3323: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3324: test $ac_status = 0; }; then :
3325: # If both `conftest.exe' and `conftest' are `present' (well, observable)
3326: # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3327: # work properly (i.e., refer to `conftest.exe'), while it won't with
3328: # `rm'.
3329: for ac_file in conftest.exe conftest conftest.*; do
3330: test -f "$ac_file" || continue
3331: case $ac_file in
3332: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3333: *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3334: break;;
3335: * ) break;;
3336: esac
3337: done
3338: else
3339: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3340: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3341: as_fn_error "cannot compute suffix of executables: cannot compile and link
3342: See \`config.log' for more details." "$LINENO" 5; }
3343: fi
3344: rm -f conftest conftest$ac_cv_exeext
3345: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3346: $as_echo "$ac_cv_exeext" >&6; }
3347:
3348: rm -f conftest.$ac_ext
3349: EXEEXT=$ac_cv_exeext
3350: ac_exeext=$EXEEXT
3351: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352: /* end confdefs.h. */
3353: #include <stdio.h>
3354: int
3355: main ()
3356: {
3357: FILE *f = fopen ("conftest.out", "w");
3358: return ferror (f) || fclose (f) != 0;
3359:
3360: ;
3361: return 0;
3362: }
3363: _ACEOF
3364: ac_clean_files="$ac_clean_files conftest.out"
3365: # Check that the compiler produces executables we can run. If not, either
3366: # the compiler is broken, or we cross compile.
3367: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3368: $as_echo_n "checking whether we are cross compiling... " >&6; }
3369: if test "$cross_compiling" != yes; then
3370: { { ac_try="$ac_link"
3371: case "(($ac_try" in
3372: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373: *) ac_try_echo=$ac_try;;
3374: esac
3375: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3376: $as_echo "$ac_try_echo"; } >&5
3377: (eval "$ac_link") 2>&5
3378: ac_status=$?
3379: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3380: test $ac_status = 0; }
3381: if { ac_try='./conftest$ac_cv_exeext'
3382: { { case "(($ac_try" in
3383: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384: *) ac_try_echo=$ac_try;;
3385: esac
3386: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387: $as_echo "$ac_try_echo"; } >&5
3388: (eval "$ac_try") 2>&5
3389: ac_status=$?
3390: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391: test $ac_status = 0; }; }; then
3392: cross_compiling=no
3393: else
3394: if test "$cross_compiling" = maybe; then
3395: cross_compiling=yes
3396: else
3397: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3398: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3399: as_fn_error "cannot run C compiled programs.
3400: If you meant to cross compile, use \`--host'.
3401: See \`config.log' for more details." "$LINENO" 5; }
3402: fi
3403: fi
3404: fi
3405: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3406: $as_echo "$cross_compiling" >&6; }
3407:
3408: rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3409: ac_clean_files=$ac_clean_files_save
3410: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3411: $as_echo_n "checking for suffix of object files... " >&6; }
3412: if test "${ac_cv_objext+set}" = set; then :
3413: $as_echo_n "(cached) " >&6
3414: else
3415: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416: /* end confdefs.h. */
3417:
3418: int
3419: main ()
3420: {
3421:
3422: ;
3423: return 0;
3424: }
3425: _ACEOF
3426: rm -f conftest.o conftest.obj
3427: if { { ac_try="$ac_compile"
3428: case "(($ac_try" in
3429: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430: *) ac_try_echo=$ac_try;;
3431: esac
3432: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3433: $as_echo "$ac_try_echo"; } >&5
3434: (eval "$ac_compile") 2>&5
3435: ac_status=$?
3436: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3437: test $ac_status = 0; }; then :
3438: for ac_file in conftest.o conftest.obj conftest.*; do
3439: test -f "$ac_file" || continue;
3440: case $ac_file in
3441: *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3442: *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3443: break;;
3444: esac
3445: done
3446: else
3447: $as_echo "$as_me: failed program was:" >&5
3448: sed 's/^/| /' conftest.$ac_ext >&5
3449:
3450: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3451: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3452: as_fn_error "cannot compute suffix of object files: cannot compile
3453: See \`config.log' for more details." "$LINENO" 5; }
3454: fi
3455: rm -f conftest.$ac_cv_objext conftest.$ac_ext
3456: fi
3457: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3458: $as_echo "$ac_cv_objext" >&6; }
3459: OBJEXT=$ac_cv_objext
3460: ac_objext=$OBJEXT
3461: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3462: $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3463: if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3464: $as_echo_n "(cached) " >&6
3465: else
3466: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467: /* end confdefs.h. */
3468:
3469: int
3470: main ()
3471: {
3472: #ifndef __GNUC__
3473: choke me
3474: #endif
3475:
3476: ;
3477: return 0;
3478: }
3479: _ACEOF
3480: if ac_fn_c_try_compile "$LINENO"; then :
3481: ac_compiler_gnu=yes
3482: else
3483: ac_compiler_gnu=no
3484: fi
3485: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486: ac_cv_c_compiler_gnu=$ac_compiler_gnu
3487:
3488: fi
3489: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3490: $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3491: if test $ac_compiler_gnu = yes; then
3492: GCC=yes
3493: else
3494: GCC=
3495: fi
3496: ac_test_CFLAGS=${CFLAGS+set}
3497: ac_save_CFLAGS=$CFLAGS
3498: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3499: $as_echo_n "checking whether $CC accepts -g... " >&6; }
3500: if test "${ac_cv_prog_cc_g+set}" = set; then :
3501: $as_echo_n "(cached) " >&6
3502: else
3503: ac_save_c_werror_flag=$ac_c_werror_flag
3504: ac_c_werror_flag=yes
3505: ac_cv_prog_cc_g=no
3506: CFLAGS="-g"
3507: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508: /* end confdefs.h. */
3509:
3510: int
3511: main ()
3512: {
3513:
3514: ;
3515: return 0;
3516: }
3517: _ACEOF
3518: if ac_fn_c_try_compile "$LINENO"; then :
3519: ac_cv_prog_cc_g=yes
3520: else
3521: CFLAGS=""
3522: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3523: /* end confdefs.h. */
3524:
3525: int
3526: main ()
3527: {
3528:
3529: ;
3530: return 0;
3531: }
3532: _ACEOF
3533: if ac_fn_c_try_compile "$LINENO"; then :
3534:
3535: else
3536: ac_c_werror_flag=$ac_save_c_werror_flag
3537: CFLAGS="-g"
3538: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539: /* end confdefs.h. */
3540:
3541: int
3542: main ()
3543: {
3544:
3545: ;
3546: return 0;
3547: }
3548: _ACEOF
3549: if ac_fn_c_try_compile "$LINENO"; then :
3550: ac_cv_prog_cc_g=yes
3551: fi
3552: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3553: fi
3554: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555: fi
3556: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3557: ac_c_werror_flag=$ac_save_c_werror_flag
3558: fi
3559: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3560: $as_echo "$ac_cv_prog_cc_g" >&6; }
3561: if test "$ac_test_CFLAGS" = set; then
3562: CFLAGS=$ac_save_CFLAGS
3563: elif test $ac_cv_prog_cc_g = yes; then
3564: if test "$GCC" = yes; then
3565: CFLAGS="-g -O2"
3566: else
3567: CFLAGS="-g"
3568: fi
3569: else
3570: if test "$GCC" = yes; then
3571: CFLAGS="-O2"
3572: else
3573: CFLAGS=
3574: fi
3575: fi
3576: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3577: $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3578: if test "${ac_cv_prog_cc_c89+set}" = set; then :
3579: $as_echo_n "(cached) " >&6
3580: else
3581: ac_cv_prog_cc_c89=no
3582: ac_save_CC=$CC
3583: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584: /* end confdefs.h. */
3585: #include <stdarg.h>
3586: #include <stdio.h>
3587: #include <sys/types.h>
3588: #include <sys/stat.h>
3589: /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3590: struct buf { int x; };
3591: FILE * (*rcsopen) (struct buf *, struct stat *, int);
3592: static char *e (p, i)
3593: char **p;
3594: int i;
3595: {
3596: return p[i];
3597: }
3598: static char *f (char * (*g) (char **, int), char **p, ...)
3599: {
3600: char *s;
3601: va_list v;
3602: va_start (v,p);
3603: s = g (p, va_arg (v,int));
3604: va_end (v);
3605: return s;
3606: }
3607:
3608: /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3609: function prototypes and stuff, but not '\xHH' hex character constants.
3610: These don't provoke an error unfortunately, instead are silently treated
3611: as 'x'. The following induces an error, until -std is added to get
3612: proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3613: array size at least. It's necessary to write '\x00'==0 to get something
3614: that's true only with -std. */
3615: int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3616:
3617: /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3618: inside strings and character constants. */
3619: #define FOO(x) 'x'
3620: int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3621:
3622: int test (int i, double x);
3623: struct s1 {int (*f) (int a);};
3624: struct s2 {int (*f) (double a);};
3625: int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3626: int argc;
3627: char **argv;
3628: int
3629: main ()
3630: {
3631: return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3632: ;
3633: return 0;
3634: }
3635: _ACEOF
3636: for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3637: -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3638: do
3639: CC="$ac_save_CC $ac_arg"
3640: if ac_fn_c_try_compile "$LINENO"; then :
3641: ac_cv_prog_cc_c89=$ac_arg
3642: fi
3643: rm -f core conftest.err conftest.$ac_objext
3644: test "x$ac_cv_prog_cc_c89" != "xno" && break
3645: done
3646: rm -f conftest.$ac_ext
3647: CC=$ac_save_CC
3648:
3649: fi
3650: # AC_CACHE_VAL
3651: case "x$ac_cv_prog_cc_c89" in
3652: x)
3653: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3654: $as_echo "none needed" >&6; } ;;
3655: xno)
3656: { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3657: $as_echo "unsupported" >&6; } ;;
3658: *)
3659: CC="$CC $ac_cv_prog_cc_c89"
3660: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3661: $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3662: esac
3663: if test "x$ac_cv_prog_cc_c89" != xno; then :
3664:
3665: fi
3666:
3667: ac_ext=c
3668: ac_cpp='$CPP $CPPFLAGS'
3669: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3670: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3671: ac_compiler_gnu=$ac_cv_c_compiler_gnu
3672: DEPDIR="${am__leading_dot}deps"
3673:
3674: ac_config_commands="$ac_config_commands depfiles"
3675:
3676:
3677: am_make=${MAKE-make}
3678: cat > confinc << 'END'
3679: am__doit:
3680: @echo this is the am__doit target
3681: .PHONY: am__doit
3682: END
3683: # If we don't find an include directive, just comment out the code.
3684: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3685: $as_echo_n "checking for style of include used by $am_make... " >&6; }
3686: am__include="#"
3687: am__quote=
3688: _am_result=none
3689: # First try GNU make style include.
3690: echo "include confinc" > confmf
3691: # Ignore all kinds of additional output from `make'.
3692: case `$am_make -s -f confmf 2> /dev/null` in #(
3693: *the\ am__doit\ target*)
3694: am__include=include
3695: am__quote=
3696: _am_result=GNU
3697: ;;
3698: esac
3699: # Now try BSD make style include.
3700: if test "$am__include" = "#"; then
3701: echo '.include "confinc"' > confmf
3702: case `$am_make -s -f confmf 2> /dev/null` in #(
3703: *the\ am__doit\ target*)
3704: am__include=.include
3705: am__quote="\""
3706: _am_result=BSD
3707: ;;
3708: esac
3709: fi
3710:
3711:
3712: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3713: $as_echo "$_am_result" >&6; }
3714: rm -f confinc confmf
3715:
3716: # Check whether --enable-dependency-tracking was given.
3717: if test "${enable_dependency_tracking+set}" = set; then :
3718: enableval=$enable_dependency_tracking;
3719: fi
3720:
3721: if test "x$enable_dependency_tracking" != xno; then
3722: am_depcomp="$ac_aux_dir/depcomp"
3723: AMDEPBACKSLASH='\'
3724: fi
3725: if test "x$enable_dependency_tracking" != xno; then
3726: AMDEP_TRUE=
3727: AMDEP_FALSE='#'
3728: else
3729: AMDEP_TRUE='#'
3730: AMDEP_FALSE=
3731: fi
3732:
3733:
3734:
3735: depcc="$CC" am_compiler_list=
3736:
3737: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3738: $as_echo_n "checking dependency style of $depcc... " >&6; }
3739: if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3740: $as_echo_n "(cached) " >&6
3741: else
3742: if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3743: # We make a subdir and do the tests there. Otherwise we can end up
3744: # making bogus files that we don't know about and never remove. For
3745: # instance it was reported that on HP-UX the gcc test will end up
3746: # making a dummy file named `D' -- because `-MD' means `put the output
3747: # in D'.
3748: mkdir conftest.dir
3749: # Copy depcomp to subdir because otherwise we won't find it if we're
3750: # using a relative directory.
3751: cp "$am_depcomp" conftest.dir
3752: cd conftest.dir
3753: # We will build objects and dependencies in a subdirectory because
3754: # it helps to detect inapplicable dependency modes. For instance
3755: # both Tru64's cc and ICC support -MD to output dependencies as a
3756: # side effect of compilation, but ICC will put the dependencies in
3757: # the current directory while Tru64 will put them in the object
3758: # directory.
3759: mkdir sub
3760:
3761: am_cv_CC_dependencies_compiler_type=none
3762: if test "$am_compiler_list" = ""; then
3763: am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3764: fi
3765: am__universal=false
3766: case " $depcc " in #(
3767: *\ -arch\ *\ -arch\ *) am__universal=true ;;
3768: esac
3769:
3770: for depmode in $am_compiler_list; do
3771: # Setup a source with many dependencies, because some compilers
3772: # like to wrap large dependency lists on column 80 (with \), and
3773: # we should not choose a depcomp mode which is confused by this.
3774: #
3775: # We need to recreate these files for each test, as the compiler may
3776: # overwrite some of them when testing with obscure command lines.
3777: # This happens at least with the AIX C compiler.
3778: : > sub/conftest.c
3779: for i in 1 2 3 4 5 6; do
3780: echo '#include "conftst'$i'.h"' >> sub/conftest.c
3781: # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3782: # Solaris 8's {/usr,}/bin/sh.
3783: touch sub/conftst$i.h
3784: done
3785: echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3786:
3787: # We check with `-c' and `-o' for the sake of the "dashmstdout"
3788: # mode. It turns out that the SunPro C++ compiler does not properly
3789: # handle `-M -o', and we need to detect this. Also, some Intel
3790: # versions had trouble with output in subdirs
3791: am__obj=sub/conftest.${OBJEXT-o}
3792: am__minus_obj="-o $am__obj"
3793: case $depmode in
3794: gcc)
3795: # This depmode causes a compiler race in universal mode.
3796: test "$am__universal" = false || continue
3797: ;;
3798: nosideeffect)
3799: # after this tag, mechanisms are not by side-effect, so they'll
3800: # only be used when explicitly requested
3801: if test "x$enable_dependency_tracking" = xyes; then
3802: continue
3803: else
3804: break
3805: fi
3806: ;;
3807: msvisualcpp | msvcmsys)
3808: # This compiler won't grok `-c -o', but also, the minuso test has
3809: # not run yet. These depmodes are late enough in the game, and
3810: # so weak that their functioning should not be impacted.
3811: am__obj=conftest.${OBJEXT-o}
3812: am__minus_obj=
3813: ;;
3814: none) break ;;
3815: esac
3816: if depmode=$depmode \
3817: source=sub/conftest.c object=$am__obj \
3818: depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3819: $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3820: >/dev/null 2>conftest.err &&
3821: grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3822: grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3823: grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3824: ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3825: # icc doesn't choke on unknown options, it will just issue warnings
3826: # or remarks (even with -Werror). So we grep stderr for any message
3827: # that says an option was ignored or not supported.
3828: # When given -MP, icc 7.0 and 7.1 complain thusly:
3829: # icc: Command line warning: ignoring option '-M'; no argument required
3830: # The diagnosis changed in icc 8.0:
3831: # icc: Command line remark: option '-MP' not supported
3832: if (grep 'ignoring option' conftest.err ||
3833: grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3834: am_cv_CC_dependencies_compiler_type=$depmode
3835: break
3836: fi
3837: fi
3838: done
3839:
3840: cd ..
3841: rm -rf conftest.dir
3842: else
3843: am_cv_CC_dependencies_compiler_type=none
3844: fi
3845:
3846: fi
3847: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3848: $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3849: CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3850:
3851: if
3852: test "x$enable_dependency_tracking" != xno \
3853: && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3854: am__fastdepCC_TRUE=
3855: am__fastdepCC_FALSE='#'
3856: else
3857: am__fastdepCC_TRUE='#'
3858: am__fastdepCC_FALSE=
3859: fi
3860:
3861:
3862:
3863: for ac_prog in flex lex
3864: do
3865: # Extract the first word of "$ac_prog", so it can be a program name with args.
3866: set dummy $ac_prog; ac_word=$2
3867: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3868: $as_echo_n "checking for $ac_word... " >&6; }
3869: if test "${ac_cv_prog_LEX+set}" = set; then :
3870: $as_echo_n "(cached) " >&6
3871: else
3872: if test -n "$LEX"; then
3873: ac_cv_prog_LEX="$LEX" # Let the user override the test.
3874: else
3875: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3876: for as_dir in $PATH
3877: do
3878: IFS=$as_save_IFS
3879: test -z "$as_dir" && as_dir=.
3880: for ac_exec_ext in '' $ac_executable_extensions; do
3881: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3882: ac_cv_prog_LEX="$ac_prog"
3883: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3884: break 2
3885: fi
3886: done
3887: done
3888: IFS=$as_save_IFS
3889:
3890: fi
3891: fi
3892: LEX=$ac_cv_prog_LEX
3893: if test -n "$LEX"; then
3894: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3895: $as_echo "$LEX" >&6; }
3896: else
3897: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3898: $as_echo "no" >&6; }
3899: fi
3900:
3901:
3902: test -n "$LEX" && break
3903: done
3904: test -n "$LEX" || LEX=":"
3905:
3906: if test "x$LEX" != "x:"; then
3907: cat >conftest.l <<_ACEOF
3908: %%
3909: a { ECHO; }
3910: b { REJECT; }
3911: c { yymore (); }
3912: d { yyless (1); }
3913: e { yyless (input () != 0); }
3914: f { unput (yytext[0]); }
3915: . { BEGIN INITIAL; }
3916: %%
3917: #ifdef YYTEXT_POINTER
3918: extern char *yytext;
3919: #endif
3920: int
3921: main (void)
3922: {
3923: return ! yylex () + ! yywrap ();
3924: }
3925: _ACEOF
3926: { { ac_try="$LEX conftest.l"
3927: case "(($ac_try" in
3928: *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3929: *) ac_try_echo=$ac_try;;
3930: esac
3931: eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3932: $as_echo "$ac_try_echo"; } >&5
3933: (eval "$LEX conftest.l") 2>&5
3934: ac_status=$?
3935: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3936: test $ac_status = 0; }
3937: { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3938: $as_echo_n "checking lex output file root... " >&6; }
3939: if test "${ac_cv_prog_lex_root+set}" = set; then :
3940: $as_echo_n "(cached) " >&6
3941: else
3942:
3943: if test -f lex.yy.c; then
3944: ac_cv_prog_lex_root=lex.yy
3945: elif test -f lexyy.c; then
3946: ac_cv_prog_lex_root=lexyy
3947: else
3948: as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
3949: fi
3950: fi
3951: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3952: $as_echo "$ac_cv_prog_lex_root" >&6; }
3953: LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3954:
3955: if test -z "${LEXLIB+set}"; then
3956: { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3957: $as_echo_n "checking lex library... " >&6; }
3958: if test "${ac_cv_lib_lex+set}" = set; then :
3959: $as_echo_n "(cached) " >&6
3960: else
3961:
3962: ac_save_LIBS=$LIBS
3963: ac_cv_lib_lex='none needed'
3964: for ac_lib in '' -lfl -ll; do
3965: LIBS="$ac_lib $ac_save_LIBS"
3966: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967: /* end confdefs.h. */
3968: `cat $LEX_OUTPUT_ROOT.c`
3969: _ACEOF
3970: if ac_fn_c_try_link "$LINENO"; then :
3971: ac_cv_lib_lex=$ac_lib
3972: fi
3973: rm -f core conftest.err conftest.$ac_objext \
3974: conftest$ac_exeext conftest.$ac_ext
3975: test "$ac_cv_lib_lex" != 'none needed' && break
3976: done
3977: LIBS=$ac_save_LIBS
3978:
3979: fi
3980: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3981: $as_echo "$ac_cv_lib_lex" >&6; }
3982: test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3983: fi
3984:
3985:
3986: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3987: $as_echo_n "checking whether yytext is a pointer... " >&6; }
3988: if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
3989: $as_echo_n "(cached) " >&6
3990: else
3991: # POSIX says lex can declare yytext either as a pointer or an array; the
3992: # default is implementation-dependent. Figure out which it is, since
3993: # not all implementations provide the %pointer and %array declarations.
3994: ac_cv_prog_lex_yytext_pointer=no
3995: ac_save_LIBS=$LIBS
3996: LIBS="$LEXLIB $ac_save_LIBS"
3997: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3998: /* end confdefs.h. */
3999: #define YYTEXT_POINTER 1
4000: `cat $LEX_OUTPUT_ROOT.c`
4001: _ACEOF
4002: if ac_fn_c_try_link "$LINENO"; then :
4003: ac_cv_prog_lex_yytext_pointer=yes
4004: fi
4005: rm -f core conftest.err conftest.$ac_objext \
4006: conftest$ac_exeext conftest.$ac_ext
4007: LIBS=$ac_save_LIBS
4008:
4009: fi
4010: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4011: $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4012: if test $ac_cv_prog_lex_yytext_pointer = yes; then
4013:
4014: $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4015:
4016: fi
4017: rm -f conftest.l $LEX_OUTPUT_ROOT.c
4018:
4019: fi
4020: if test "$LEX" = :; then
4021: LEX=${am_missing_run}flex
4022: fi
4023: # Check whether --enable-shared was given.
4024: if test "${enable_shared+set}" = set; then :
4025: enableval=$enable_shared; p=${PACKAGE-default}
4026: case $enableval in
4027: yes) enable_shared=yes ;;
4028: no) enable_shared=no ;;
4029: *)
4030: enable_shared=no
4031: # Look at the argument we got. We use all the common list separators.
4032: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4033: for pkg in $enableval; do
4034: IFS="$lt_save_ifs"
4035: if test "X$pkg" = "X$p"; then
4036: enable_shared=yes
4037: fi
4038: done
4039: IFS="$lt_save_ifs"
4040: ;;
4041: esac
4042: else
4043: enable_shared=no
4044: fi
4045:
4046:
4047:
4048:
4049:
4050:
4051:
4052:
4053:
4054: case `pwd` in
4055: *\ * | *\ *)
4056: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4057: $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4058: esac
4059:
4060:
4061:
4062: macro_version='2.2.6b'
4063: macro_revision='1.3017'
4064:
4065:
4066:
4067:
4068:
4069:
4070:
4071:
4072:
4073:
4074:
4075:
4076:
4077: ltmain="$ac_aux_dir/ltmain.sh"
4078:
4079: # Make sure we can run config.sub.
4080: $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4081: as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4082:
4083: { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4084: $as_echo_n "checking build system type... " >&6; }
4085: if test "${ac_cv_build+set}" = set; then :
4086: $as_echo_n "(cached) " >&6
4087: else
4088: ac_build_alias=$build_alias
4089: test "x$ac_build_alias" = x &&
4090: ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4091: test "x$ac_build_alias" = x &&
4092: as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4093: ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4094: as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4095:
4096: fi
4097: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4098: $as_echo "$ac_cv_build" >&6; }
4099: case $ac_cv_build in
4100: *-*-*) ;;
4101: *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4102: esac
4103: build=$ac_cv_build
4104: ac_save_IFS=$IFS; IFS='-'
4105: set x $ac_cv_build
4106: shift
4107: build_cpu=$1
4108: build_vendor=$2
4109: shift; shift
4110: # Remember, the first character of IFS is used to create $*,
4111: # except with old shells:
4112: build_os=$*
4113: IFS=$ac_save_IFS
4114: case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4115:
4116:
4117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4118: $as_echo_n "checking host system type... " >&6; }
4119: if test "${ac_cv_host+set}" = set; then :
4120: $as_echo_n "(cached) " >&6
4121: else
4122: if test "x$host_alias" = x; then
4123: ac_cv_host=$ac_cv_build
4124: else
4125: ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4126: as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4127: fi
4128:
4129: fi
4130: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4131: $as_echo "$ac_cv_host" >&6; }
4132: case $ac_cv_host in
4133: *-*-*) ;;
4134: *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4135: esac
4136: host=$ac_cv_host
4137: ac_save_IFS=$IFS; IFS='-'
4138: set x $ac_cv_host
4139: shift
4140: host_cpu=$1
4141: host_vendor=$2
4142: shift; shift
4143: # Remember, the first character of IFS is used to create $*,
4144: # except with old shells:
4145: host_os=$*
4146: IFS=$ac_save_IFS
4147: case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4148:
4149:
4150: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4151: $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4152: if test "${ac_cv_path_SED+set}" = set; then :
4153: $as_echo_n "(cached) " >&6
4154: else
4155: ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4156: for ac_i in 1 2 3 4 5 6 7; do
4157: ac_script="$ac_script$as_nl$ac_script"
4158: done
4159: echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4160: { ac_script=; unset ac_script;}
4161: if test -z "$SED"; then
4162: ac_path_SED_found=false
4163: # Loop through the user's path and test for each of PROGNAME-LIST
4164: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165: for as_dir in $PATH
4166: do
4167: IFS=$as_save_IFS
4168: test -z "$as_dir" && as_dir=.
4169: for ac_prog in sed gsed; do
4170: for ac_exec_ext in '' $ac_executable_extensions; do
4171: ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4172: { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4173: # Check for GNU ac_path_SED and select it if it is found.
4174: # Check for GNU $ac_path_SED
4175: case `"$ac_path_SED" --version 2>&1` in
4176: *GNU*)
4177: ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4178: *)
4179: ac_count=0
4180: $as_echo_n 0123456789 >"conftest.in"
4181: while :
4182: do
4183: cat "conftest.in" "conftest.in" >"conftest.tmp"
4184: mv "conftest.tmp" "conftest.in"
4185: cp "conftest.in" "conftest.nl"
4186: $as_echo '' >> "conftest.nl"
4187: "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4188: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4189: as_fn_arith $ac_count + 1 && ac_count=$as_val
4190: if test $ac_count -gt ${ac_path_SED_max-0}; then
4191: # Best one so far, save it but keep looking for a better one
4192: ac_cv_path_SED="$ac_path_SED"
4193: ac_path_SED_max=$ac_count
4194: fi
4195: # 10*(2^10) chars as input seems more than enough
4196: test $ac_count -gt 10 && break
4197: done
4198: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4199: esac
4200:
4201: $ac_path_SED_found && break 3
4202: done
4203: done
4204: done
4205: IFS=$as_save_IFS
4206: if test -z "$ac_cv_path_SED"; then
4207: as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4208: fi
4209: else
4210: ac_cv_path_SED=$SED
4211: fi
4212:
4213: fi
4214: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4215: $as_echo "$ac_cv_path_SED" >&6; }
4216: SED="$ac_cv_path_SED"
4217: rm -f conftest.sed
4218:
4219: test -z "$SED" && SED=sed
4220: Xsed="$SED -e 1s/^X//"
4221:
4222:
4223:
4224:
4225:
4226:
4227:
4228:
4229:
4230:
4231:
4232: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4233: $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4234: if test "${ac_cv_path_GREP+set}" = set; then :
4235: $as_echo_n "(cached) " >&6
4236: else
4237: if test -z "$GREP"; then
4238: ac_path_GREP_found=false
4239: # Loop through the user's path and test for each of PROGNAME-LIST
4240: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4242: do
4243: IFS=$as_save_IFS
4244: test -z "$as_dir" && as_dir=.
4245: for ac_prog in grep ggrep; do
4246: for ac_exec_ext in '' $ac_executable_extensions; do
4247: ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4248: { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4249: # Check for GNU ac_path_GREP and select it if it is found.
4250: # Check for GNU $ac_path_GREP
4251: case `"$ac_path_GREP" --version 2>&1` in
4252: *GNU*)
4253: ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4254: *)
4255: ac_count=0
4256: $as_echo_n 0123456789 >"conftest.in"
4257: while :
4258: do
4259: cat "conftest.in" "conftest.in" >"conftest.tmp"
4260: mv "conftest.tmp" "conftest.in"
4261: cp "conftest.in" "conftest.nl"
4262: $as_echo 'GREP' >> "conftest.nl"
4263: "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4264: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4265: as_fn_arith $ac_count + 1 && ac_count=$as_val
4266: if test $ac_count -gt ${ac_path_GREP_max-0}; then
4267: # Best one so far, save it but keep looking for a better one
4268: ac_cv_path_GREP="$ac_path_GREP"
4269: ac_path_GREP_max=$ac_count
4270: fi
4271: # 10*(2^10) chars as input seems more than enough
4272: test $ac_count -gt 10 && break
4273: done
4274: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4275: esac
4276:
4277: $ac_path_GREP_found && break 3
4278: done
4279: done
4280: done
4281: IFS=$as_save_IFS
4282: if test -z "$ac_cv_path_GREP"; then
4283: as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4284: fi
4285: else
4286: ac_cv_path_GREP=$GREP
4287: fi
4288:
4289: fi
4290: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4291: $as_echo "$ac_cv_path_GREP" >&6; }
4292: GREP="$ac_cv_path_GREP"
4293:
4294:
4295: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4296: $as_echo_n "checking for egrep... " >&6; }
4297: if test "${ac_cv_path_EGREP+set}" = set; then :
4298: $as_echo_n "(cached) " >&6
4299: else
4300: if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4301: then ac_cv_path_EGREP="$GREP -E"
4302: else
4303: if test -z "$EGREP"; then
4304: ac_path_EGREP_found=false
4305: # Loop through the user's path and test for each of PROGNAME-LIST
4306: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4307: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4308: do
4309: IFS=$as_save_IFS
4310: test -z "$as_dir" && as_dir=.
4311: for ac_prog in egrep; do
4312: for ac_exec_ext in '' $ac_executable_extensions; do
4313: ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4314: { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4315: # Check for GNU ac_path_EGREP and select it if it is found.
4316: # Check for GNU $ac_path_EGREP
4317: case `"$ac_path_EGREP" --version 2>&1` in
4318: *GNU*)
4319: ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4320: *)
4321: ac_count=0
4322: $as_echo_n 0123456789 >"conftest.in"
4323: while :
4324: do
4325: cat "conftest.in" "conftest.in" >"conftest.tmp"
4326: mv "conftest.tmp" "conftest.in"
4327: cp "conftest.in" "conftest.nl"
4328: $as_echo 'EGREP' >> "conftest.nl"
4329: "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4330: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4331: as_fn_arith $ac_count + 1 && ac_count=$as_val
4332: if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4333: # Best one so far, save it but keep looking for a better one
4334: ac_cv_path_EGREP="$ac_path_EGREP"
4335: ac_path_EGREP_max=$ac_count
4336: fi
4337: # 10*(2^10) chars as input seems more than enough
4338: test $ac_count -gt 10 && break
4339: done
4340: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4341: esac
4342:
4343: $ac_path_EGREP_found && break 3
4344: done
4345: done
4346: done
4347: IFS=$as_save_IFS
4348: if test -z "$ac_cv_path_EGREP"; then
4349: as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4350: fi
4351: else
4352: ac_cv_path_EGREP=$EGREP
4353: fi
4354:
4355: fi
4356: fi
4357: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4358: $as_echo "$ac_cv_path_EGREP" >&6; }
4359: EGREP="$ac_cv_path_EGREP"
4360:
4361:
4362: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4363: $as_echo_n "checking for fgrep... " >&6; }
4364: if test "${ac_cv_path_FGREP+set}" = set; then :
4365: $as_echo_n "(cached) " >&6
4366: else
4367: if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4368: then ac_cv_path_FGREP="$GREP -F"
4369: else
4370: if test -z "$FGREP"; then
4371: ac_path_FGREP_found=false
4372: # Loop through the user's path and test for each of PROGNAME-LIST
4373: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374: for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4375: do
4376: IFS=$as_save_IFS
4377: test -z "$as_dir" && as_dir=.
4378: for ac_prog in fgrep; do
4379: for ac_exec_ext in '' $ac_executable_extensions; do
4380: ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4381: { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4382: # Check for GNU ac_path_FGREP and select it if it is found.
4383: # Check for GNU $ac_path_FGREP
4384: case `"$ac_path_FGREP" --version 2>&1` in
4385: *GNU*)
4386: ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4387: *)
4388: ac_count=0
4389: $as_echo_n 0123456789 >"conftest.in"
4390: while :
4391: do
4392: cat "conftest.in" "conftest.in" >"conftest.tmp"
4393: mv "conftest.tmp" "conftest.in"
4394: cp "conftest.in" "conftest.nl"
4395: $as_echo 'FGREP' >> "conftest.nl"
4396: "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4397: diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4398: as_fn_arith $ac_count + 1 && ac_count=$as_val
4399: if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4400: # Best one so far, save it but keep looking for a better one
4401: ac_cv_path_FGREP="$ac_path_FGREP"
4402: ac_path_FGREP_max=$ac_count
4403: fi
4404: # 10*(2^10) chars as input seems more than enough
4405: test $ac_count -gt 10 && break
4406: done
4407: rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4408: esac
4409:
4410: $ac_path_FGREP_found && break 3
4411: done
4412: done
4413: done
4414: IFS=$as_save_IFS
4415: if test -z "$ac_cv_path_FGREP"; then
4416: as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4417: fi
4418: else
4419: ac_cv_path_FGREP=$FGREP
4420: fi
4421:
4422: fi
4423: fi
4424: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4425: $as_echo "$ac_cv_path_FGREP" >&6; }
4426: FGREP="$ac_cv_path_FGREP"
4427:
4428:
4429: test -z "$GREP" && GREP=grep
4430:
4431:
4432:
4433:
4434:
4435:
4436:
4437:
4438:
4439:
4440:
4441:
4442:
4443:
4444:
4445:
4446:
4447:
4448:
4449: # Check whether --with-gnu-ld was given.
4450: if test "${with_gnu_ld+set}" = set; then :
4451: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4452: else
4453: with_gnu_ld=no
4454: fi
4455:
4456: ac_prog=ld
4457: if test "$GCC" = yes; then
4458: # Check if gcc -print-prog-name=ld gives a path.
4459: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4460: $as_echo_n "checking for ld used by $CC... " >&6; }
4461: case $host in
4462: *-*-mingw*)
4463: # gcc leaves a trailing carriage return which upsets mingw
4464: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4465: *)
4466: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4467: esac
4468: case $ac_prog in
4469: # Accept absolute paths.
4470: [\\/]* | ?:[\\/]*)
4471: re_direlt='/[^/][^/]*/\.\./'
4472: # Canonicalize the pathname of ld
4473: ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4474: while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4475: ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4476: done
4477: test -z "$LD" && LD="$ac_prog"
4478: ;;
4479: "")
4480: # If it fails, then pretend we aren't using GCC.
4481: ac_prog=ld
4482: ;;
4483: *)
4484: # If it is relative, then search for the first ld in PATH.
4485: with_gnu_ld=unknown
4486: ;;
4487: esac
4488: elif test "$with_gnu_ld" = yes; then
4489: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4490: $as_echo_n "checking for GNU ld... " >&6; }
4491: else
4492: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4493: $as_echo_n "checking for non-GNU ld... " >&6; }
4494: fi
4495: if test "${lt_cv_path_LD+set}" = set; then :
4496: $as_echo_n "(cached) " >&6
4497: else
4498: if test -z "$LD"; then
4499: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4500: for ac_dir in $PATH; do
4501: IFS="$lt_save_ifs"
4502: test -z "$ac_dir" && ac_dir=.
4503: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4504: lt_cv_path_LD="$ac_dir/$ac_prog"
4505: # Check to see if the program is GNU ld. I'd rather use --version,
4506: # but apparently some variants of GNU ld only accept -v.
4507: # Break only if it was the GNU/non-GNU ld that we prefer.
4508: case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4509: *GNU* | *'with BFD'*)
4510: test "$with_gnu_ld" != no && break
4511: ;;
4512: *)
4513: test "$with_gnu_ld" != yes && break
4514: ;;
4515: esac
4516: fi
4517: done
4518: IFS="$lt_save_ifs"
4519: else
4520: lt_cv_path_LD="$LD" # Let the user override the test with a path.
4521: fi
4522: fi
4523:
4524: LD="$lt_cv_path_LD"
4525: if test -n "$LD"; then
4526: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4527: $as_echo "$LD" >&6; }
4528: else
4529: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530: $as_echo "no" >&6; }
4531: fi
4532: test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4533: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4534: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4535: if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4536: $as_echo_n "(cached) " >&6
4537: else
4538: # I'd rather use --version here, but apparently some GNU lds only accept -v.
4539: case `$LD -v 2>&1 </dev/null` in
4540: *GNU* | *'with BFD'*)
4541: lt_cv_prog_gnu_ld=yes
4542: ;;
4543: *)
4544: lt_cv_prog_gnu_ld=no
4545: ;;
4546: esac
4547: fi
4548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4549: $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4550: with_gnu_ld=$lt_cv_prog_gnu_ld
4551:
4552:
4553:
4554:
4555:
4556:
4557:
4558:
4559:
4560: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4561: $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4562: if test "${lt_cv_path_NM+set}" = set; then :
4563: $as_echo_n "(cached) " >&6
4564: else
4565: if test -n "$NM"; then
4566: # Let the user override the test.
4567: lt_cv_path_NM="$NM"
4568: else
4569: lt_nm_to_check="${ac_tool_prefix}nm"
4570: if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4571: lt_nm_to_check="$lt_nm_to_check nm"
4572: fi
4573: for lt_tmp_nm in $lt_nm_to_check; do
4574: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4575: for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4576: IFS="$lt_save_ifs"
4577: test -z "$ac_dir" && ac_dir=.
4578: tmp_nm="$ac_dir/$lt_tmp_nm"
4579: if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4580: # Check to see if the nm accepts a BSD-compat flag.
4581: # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4582: # nm: unknown option "B" ignored
4583: # Tru64's nm complains that /dev/null is an invalid object file
4584: case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4585: */dev/null* | *'Invalid file or object type'*)
4586: lt_cv_path_NM="$tmp_nm -B"
4587: break
4588: ;;
4589: *)
4590: case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4591: */dev/null*)
4592: lt_cv_path_NM="$tmp_nm -p"
4593: break
4594: ;;
4595: *)
4596: lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4597: continue # so that we can try to find one that supports BSD flags
4598: ;;
4599: esac
4600: ;;
4601: esac
4602: fi
4603: done
4604: IFS="$lt_save_ifs"
4605: done
4606: : ${lt_cv_path_NM=no}
4607: fi
4608: fi
4609: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4610: $as_echo "$lt_cv_path_NM" >&6; }
4611: if test "$lt_cv_path_NM" != "no"; then
4612: NM="$lt_cv_path_NM"
4613: else
4614: # Didn't find any BSD compatible name lister, look for dumpbin.
4615: if test -n "$ac_tool_prefix"; then
4616: for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4617: do
4618: # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4619: set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4620: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621: $as_echo_n "checking for $ac_word... " >&6; }
4622: if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4623: $as_echo_n "(cached) " >&6
4624: else
4625: if test -n "$DUMPBIN"; then
4626: ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4627: else
4628: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629: for as_dir in $PATH
4630: do
4631: IFS=$as_save_IFS
4632: test -z "$as_dir" && as_dir=.
4633: for ac_exec_ext in '' $ac_executable_extensions; do
4634: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635: ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4636: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4637: break 2
4638: fi
4639: done
4640: done
4641: IFS=$as_save_IFS
4642:
4643: fi
4644: fi
4645: DUMPBIN=$ac_cv_prog_DUMPBIN
4646: if test -n "$DUMPBIN"; then
4647: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4648: $as_echo "$DUMPBIN" >&6; }
4649: else
4650: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4651: $as_echo "no" >&6; }
4652: fi
4653:
4654:
4655: test -n "$DUMPBIN" && break
4656: done
4657: fi
4658: if test -z "$DUMPBIN"; then
4659: ac_ct_DUMPBIN=$DUMPBIN
4660: for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4661: do
4662: # Extract the first word of "$ac_prog", so it can be a program name with args.
4663: set dummy $ac_prog; ac_word=$2
4664: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4665: $as_echo_n "checking for $ac_word... " >&6; }
4666: if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4667: $as_echo_n "(cached) " >&6
4668: else
4669: if test -n "$ac_ct_DUMPBIN"; then
4670: ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4671: else
4672: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4673: for as_dir in $PATH
4674: do
4675: IFS=$as_save_IFS
4676: test -z "$as_dir" && as_dir=.
4677: for ac_exec_ext in '' $ac_executable_extensions; do
4678: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4679: ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4680: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4681: break 2
4682: fi
4683: done
4684: done
4685: IFS=$as_save_IFS
4686:
4687: fi
4688: fi
4689: ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4690: if test -n "$ac_ct_DUMPBIN"; then
4691: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4692: $as_echo "$ac_ct_DUMPBIN" >&6; }
4693: else
4694: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4695: $as_echo "no" >&6; }
4696: fi
4697:
4698:
4699: test -n "$ac_ct_DUMPBIN" && break
4700: done
4701:
4702: if test "x$ac_ct_DUMPBIN" = x; then
4703: DUMPBIN=":"
4704: else
4705: case $cross_compiling:$ac_tool_warned in
4706: yes:)
4707: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4708: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4709: ac_tool_warned=yes ;;
4710: esac
4711: DUMPBIN=$ac_ct_DUMPBIN
4712: fi
4713: fi
4714:
4715:
4716: if test "$DUMPBIN" != ":"; then
4717: NM="$DUMPBIN"
4718: fi
4719: fi
4720: test -z "$NM" && NM=nm
4721:
4722:
4723:
4724:
4725:
4726:
4727: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4728: $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4729: if test "${lt_cv_nm_interface+set}" = set; then :
4730: $as_echo_n "(cached) " >&6
4731: else
4732: lt_cv_nm_interface="BSD nm"
4733: echo "int some_variable = 0;" > conftest.$ac_ext
4734: (eval echo "\"\$as_me:4734: $ac_compile\"" >&5)
4735: (eval "$ac_compile" 2>conftest.err)
4736: cat conftest.err >&5
4737: (eval echo "\"\$as_me:4737: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4738: (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4739: cat conftest.err >&5
4740: (eval echo "\"\$as_me:4740: output\"" >&5)
4741: cat conftest.out >&5
4742: if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4743: lt_cv_nm_interface="MS dumpbin"
4744: fi
4745: rm -f conftest*
4746: fi
4747: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4748: $as_echo "$lt_cv_nm_interface" >&6; }
4749:
4750: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4751: $as_echo_n "checking whether ln -s works... " >&6; }
4752: LN_S=$as_ln_s
4753: if test "$LN_S" = "ln -s"; then
4754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4755: $as_echo "yes" >&6; }
4756: else
4757: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4758: $as_echo "no, using $LN_S" >&6; }
4759: fi
4760:
4761: # find the maximum length of command line arguments
4762: { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4763: $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4764: if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
4765: $as_echo_n "(cached) " >&6
4766: else
4767: i=0
4768: teststring="ABCD"
4769:
4770: case $build_os in
4771: msdosdjgpp*)
4772: # On DJGPP, this test can blow up pretty badly due to problems in libc
4773: # (any single argument exceeding 2000 bytes causes a buffer overrun
4774: # during glob expansion). Even if it were fixed, the result of this
4775: # check would be larger than it should be.
4776: lt_cv_sys_max_cmd_len=12288; # 12K is about right
4777: ;;
4778:
4779: gnu*)
4780: # Under GNU Hurd, this test is not required because there is
4781: # no limit to the length of command line arguments.
4782: # Libtool will interpret -1 as no limit whatsoever
4783: lt_cv_sys_max_cmd_len=-1;
4784: ;;
4785:
4786: cygwin* | mingw* | cegcc*)
4787: # On Win9x/ME, this test blows up -- it succeeds, but takes
4788: # about 5 minutes as the teststring grows exponentially.
4789: # Worse, since 9x/ME are not pre-emptively multitasking,
4790: # you end up with a "frozen" computer, even though with patience
4791: # the test eventually succeeds (with a max line length of 256k).
4792: # Instead, let's just punt: use the minimum linelength reported by
4793: # all of the supported platforms: 8192 (on NT/2K/XP).
4794: lt_cv_sys_max_cmd_len=8192;
4795: ;;
4796:
4797: amigaos*)
4798: # On AmigaOS with pdksh, this test takes hours, literally.
4799: # So we just punt and use a minimum line length of 8192.
4800: lt_cv_sys_max_cmd_len=8192;
4801: ;;
4802:
4803: netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4804: # This has been around since 386BSD, at least. Likely further.
4805: if test -x /sbin/sysctl; then
4806: lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4807: elif test -x /usr/sbin/sysctl; then
4808: lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4809: else
4810: lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4811: fi
4812: # And add a safety zone
4813: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4814: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4815: ;;
4816:
4817: interix*)
4818: # We know the value 262144 and hardcode it with a safety zone (like BSD)
4819: lt_cv_sys_max_cmd_len=196608
4820: ;;
4821:
4822: osf*)
4823: # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4824: # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4825: # nice to cause kernel panics so lets avoid the loop below.
4826: # First set a reasonable default.
4827: lt_cv_sys_max_cmd_len=16384
4828: #
4829: if test -x /sbin/sysconfig; then
4830: case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4831: *1*) lt_cv_sys_max_cmd_len=-1 ;;
4832: esac
4833: fi
4834: ;;
4835: sco3.2v5*)
4836: lt_cv_sys_max_cmd_len=102400
4837: ;;
4838: sysv5* | sco5v6* | sysv4.2uw2*)
4839: kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4840: if test -n "$kargmax"; then
4841: lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4842: else
4843: lt_cv_sys_max_cmd_len=32768
4844: fi
4845: ;;
4846: *)
4847: lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4848: if test -n "$lt_cv_sys_max_cmd_len"; then
4849: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4850: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4851: else
4852: # Make teststring a little bigger before we do anything with it.
4853: # a 1K string should be a reasonable start.
4854: for i in 1 2 3 4 5 6 7 8 ; do
4855: teststring=$teststring$teststring
4856: done
4857: SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4858: # If test is not a shell built-in, we'll probably end up computing a
4859: # maximum length that is only half of the actual maximum length, but
4860: # we can't tell.
4861: while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
4862: = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
4863: test $i != 17 # 1/2 MB should be enough
4864: do
4865: i=`expr $i + 1`
4866: teststring=$teststring$teststring
4867: done
4868: # Only check the string length outside the loop.
4869: lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4870: teststring=
4871: # Add a significant safety factor because C++ compilers can tack on
4872: # massive amounts of additional arguments before passing them to the
4873: # linker. It appears as though 1/2 is a usable value.
4874: lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4875: fi
4876: ;;
4877: esac
4878:
4879: fi
4880:
4881: if test -n $lt_cv_sys_max_cmd_len ; then
4882: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4883: $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4884: else
4885: { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4886: $as_echo "none" >&6; }
4887: fi
4888: max_cmd_len=$lt_cv_sys_max_cmd_len
4889:
4890:
4891:
4892:
4893:
4894:
4895: : ${CP="cp -f"}
4896: : ${MV="mv -f"}
4897: : ${RM="rm -f"}
4898:
4899: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4900: $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4901: # Try some XSI features
4902: xsi_shell=no
4903: ( _lt_dummy="a/b/c"
4904: test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
4905: = c,a/b,, \
4906: && eval 'test $(( 1 + 1 )) -eq 2 \
4907: && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4908: && xsi_shell=yes
4909: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4910: $as_echo "$xsi_shell" >&6; }
4911:
4912:
4913: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4914: $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4915: lt_shell_append=no
4916: ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4917: >/dev/null 2>&1 \
4918: && lt_shell_append=yes
4919: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4920: $as_echo "$lt_shell_append" >&6; }
4921:
4922:
4923: if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4924: lt_unset=unset
4925: else
4926: lt_unset=false
4927: fi
4928:
4929:
4930:
4931:
4932:
4933: # test EBCDIC or ASCII
4934: case `echo X|tr X '\101'` in
4935: A) # ASCII based system
4936: # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4937: lt_SP2NL='tr \040 \012'
4938: lt_NL2SP='tr \015\012 \040\040'
4939: ;;
4940: *) # EBCDIC based system
4941: lt_SP2NL='tr \100 \n'
4942: lt_NL2SP='tr \r\n \100\100'
4943: ;;
4944: esac
4945:
4946:
4947:
4948:
4949:
4950:
4951:
4952:
4953:
4954: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4955: $as_echo_n "checking for $LD option to reload object files... " >&6; }
4956: if test "${lt_cv_ld_reload_flag+set}" = set; then :
4957: $as_echo_n "(cached) " >&6
4958: else
4959: lt_cv_ld_reload_flag='-r'
4960: fi
4961: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4962: $as_echo "$lt_cv_ld_reload_flag" >&6; }
4963: reload_flag=$lt_cv_ld_reload_flag
4964: case $reload_flag in
4965: "" | " "*) ;;
4966: *) reload_flag=" $reload_flag" ;;
4967: esac
4968: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4969: case $host_os in
4970: darwin*)
4971: if test "$GCC" = yes; then
4972: reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4973: else
4974: reload_cmds='$LD$reload_flag -o $output$reload_objs'
4975: fi
4976: ;;
4977: esac
4978:
4979:
4980:
4981:
4982:
4983:
4984:
4985:
4986:
4987: if test -n "$ac_tool_prefix"; then
4988: # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4989: set dummy ${ac_tool_prefix}objdump; ac_word=$2
4990: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991: $as_echo_n "checking for $ac_word... " >&6; }
4992: if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
4993: $as_echo_n "(cached) " >&6
4994: else
4995: if test -n "$OBJDUMP"; then
4996: ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4997: else
4998: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4999: for as_dir in $PATH
5000: do
5001: IFS=$as_save_IFS
5002: test -z "$as_dir" && as_dir=.
5003: for ac_exec_ext in '' $ac_executable_extensions; do
5004: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5005: ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5006: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5007: break 2
5008: fi
5009: done
5010: done
5011: IFS=$as_save_IFS
5012:
5013: fi
5014: fi
5015: OBJDUMP=$ac_cv_prog_OBJDUMP
5016: if test -n "$OBJDUMP"; then
5017: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5018: $as_echo "$OBJDUMP" >&6; }
5019: else
5020: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5021: $as_echo "no" >&6; }
5022: fi
5023:
5024:
5025: fi
5026: if test -z "$ac_cv_prog_OBJDUMP"; then
5027: ac_ct_OBJDUMP=$OBJDUMP
5028: # Extract the first word of "objdump", so it can be a program name with args.
5029: set dummy objdump; ac_word=$2
5030: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5031: $as_echo_n "checking for $ac_word... " >&6; }
5032: if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5033: $as_echo_n "(cached) " >&6
5034: else
5035: if test -n "$ac_ct_OBJDUMP"; then
5036: ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5037: else
5038: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039: for as_dir in $PATH
5040: do
5041: IFS=$as_save_IFS
5042: test -z "$as_dir" && as_dir=.
5043: for ac_exec_ext in '' $ac_executable_extensions; do
5044: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5045: ac_cv_prog_ac_ct_OBJDUMP="objdump"
5046: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5047: break 2
5048: fi
5049: done
5050: done
5051: IFS=$as_save_IFS
5052:
5053: fi
5054: fi
5055: ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5056: if test -n "$ac_ct_OBJDUMP"; then
5057: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5058: $as_echo "$ac_ct_OBJDUMP" >&6; }
5059: else
5060: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5061: $as_echo "no" >&6; }
5062: fi
5063:
5064: if test "x$ac_ct_OBJDUMP" = x; then
5065: OBJDUMP="false"
5066: else
5067: case $cross_compiling:$ac_tool_warned in
5068: yes:)
5069: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5070: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5071: ac_tool_warned=yes ;;
5072: esac
5073: OBJDUMP=$ac_ct_OBJDUMP
5074: fi
5075: else
5076: OBJDUMP="$ac_cv_prog_OBJDUMP"
5077: fi
5078:
5079: test -z "$OBJDUMP" && OBJDUMP=objdump
5080:
5081:
5082:
5083:
5084:
5085:
5086:
5087:
5088:
5089: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5090: $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5091: if test "${lt_cv_deplibs_check_method+set}" = set; then :
5092: $as_echo_n "(cached) " >&6
5093: else
5094: lt_cv_file_magic_cmd='$MAGIC_CMD'
5095: lt_cv_file_magic_test_file=
5096: lt_cv_deplibs_check_method='unknown'
5097: # Need to set the preceding variable on all platforms that support
5098: # interlibrary dependencies.
5099: # 'none' -- dependencies not supported.
5100: # `unknown' -- same as none, but documents that we really don't know.
5101: # 'pass_all' -- all dependencies passed with no checks.
5102: # 'test_compile' -- check by making test program.
5103: # 'file_magic [[regex]]' -- check by looking for files in library path
5104: # which responds to the $file_magic_cmd with a given extended regex.
5105: # If you have `file' or equivalent on your system and you're not sure
5106: # whether `pass_all' will *always* work, you probably want this one.
5107:
5108: case $host_os in
5109: aix[4-9]*)
5110: lt_cv_deplibs_check_method=pass_all
5111: ;;
5112:
5113: beos*)
5114: lt_cv_deplibs_check_method=pass_all
5115: ;;
5116:
5117: bsdi[45]*)
5118: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5119: lt_cv_file_magic_cmd='/usr/bin/file -L'
5120: lt_cv_file_magic_test_file=/shlib/libc.so
5121: ;;
5122:
5123: cygwin*)
5124: # func_win32_libid is a shell function defined in ltmain.sh
5125: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5126: lt_cv_file_magic_cmd='func_win32_libid'
5127: ;;
5128:
5129: mingw* | pw32*)
5130: # Base MSYS/MinGW do not provide the 'file' command needed by
5131: # func_win32_libid shell function, so use a weaker test based on 'objdump',
5132: # unless we find 'file', for example because we are cross-compiling.
5133: if ( file / ) >/dev/null 2>&1; then
5134: lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5135: lt_cv_file_magic_cmd='func_win32_libid'
5136: else
5137: lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5138: lt_cv_file_magic_cmd='$OBJDUMP -f'
5139: fi
5140: ;;
5141:
5142: cegcc)
5143: # use the weaker test based on 'objdump'. See mingw*.
5144: lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5145: lt_cv_file_magic_cmd='$OBJDUMP -f'
5146: ;;
5147:
5148: darwin* | rhapsody*)
5149: lt_cv_deplibs_check_method=pass_all
5150: ;;
5151:
5152: freebsd* | dragonfly*)
5153: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5154: case $host_cpu in
5155: i*86 )
5156: # Not sure whether the presence of OpenBSD here was a mistake.
5157: # Let's accept both of them until this is cleared up.
5158: lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5159: lt_cv_file_magic_cmd=/usr/bin/file
5160: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5161: ;;
5162: esac
5163: else
5164: lt_cv_deplibs_check_method=pass_all
5165: fi
5166: ;;
5167:
5168: gnu*)
5169: lt_cv_deplibs_check_method=pass_all
5170: ;;
5171:
5172: hpux10.20* | hpux11*)
5173: lt_cv_file_magic_cmd=/usr/bin/file
5174: case $host_cpu in
5175: ia64*)
5176: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5177: lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5178: ;;
5179: hppa*64*)
5180: 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]'
5181: lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5182: ;;
5183: *)
5184: lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5185: lt_cv_file_magic_test_file=/usr/lib/libc.sl
5186: ;;
5187: esac
5188: ;;
5189:
5190: interix[3-9]*)
5191: # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5192: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5193: ;;
5194:
5195: irix5* | irix6* | nonstopux*)
5196: case $LD in
5197: *-32|*"-32 ") libmagic=32-bit;;
5198: *-n32|*"-n32 ") libmagic=N32;;
5199: *-64|*"-64 ") libmagic=64-bit;;
5200: *) libmagic=never-match;;
5201: esac
5202: lt_cv_deplibs_check_method=pass_all
5203: ;;
5204:
5205: # This must be Linux ELF.
5206: linux* | k*bsd*-gnu)
5207: lt_cv_deplibs_check_method=pass_all
5208: ;;
5209:
5210: netbsd*)
5211: if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5212: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5213: else
5214: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5215: fi
5216: ;;
5217:
5218: newos6*)
5219: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5220: lt_cv_file_magic_cmd=/usr/bin/file
5221: lt_cv_file_magic_test_file=/usr/lib/libnls.so
5222: ;;
5223:
5224: *nto* | *qnx*)
5225: lt_cv_deplibs_check_method=pass_all
5226: ;;
5227:
5228: openbsd*)
5229: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5230: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5231: else
5232: lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5233: fi
5234: ;;
5235:
5236: osf3* | osf4* | osf5*)
5237: lt_cv_deplibs_check_method=pass_all
5238: ;;
5239:
5240: rdos*)
5241: lt_cv_deplibs_check_method=pass_all
5242: ;;
5243:
5244: solaris*)
5245: lt_cv_deplibs_check_method=pass_all
5246: ;;
5247:
5248: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5249: lt_cv_deplibs_check_method=pass_all
5250: ;;
5251:
5252: sysv4 | sysv4.3*)
5253: case $host_vendor in
5254: motorola)
5255: 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]'
5256: lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5257: ;;
5258: ncr)
5259: lt_cv_deplibs_check_method=pass_all
5260: ;;
5261: sequent)
5262: lt_cv_file_magic_cmd='/bin/file'
5263: lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5264: ;;
5265: sni)
5266: lt_cv_file_magic_cmd='/bin/file'
5267: lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5268: lt_cv_file_magic_test_file=/lib/libc.so
5269: ;;
5270: siemens)
5271: lt_cv_deplibs_check_method=pass_all
5272: ;;
5273: pc)
5274: lt_cv_deplibs_check_method=pass_all
5275: ;;
5276: esac
5277: ;;
5278:
5279: tpf*)
5280: lt_cv_deplibs_check_method=pass_all
5281: ;;
5282: esac
5283:
5284: fi
5285: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5286: $as_echo "$lt_cv_deplibs_check_method" >&6; }
5287: file_magic_cmd=$lt_cv_file_magic_cmd
5288: deplibs_check_method=$lt_cv_deplibs_check_method
5289: test -z "$deplibs_check_method" && deplibs_check_method=unknown
5290:
5291:
5292:
5293:
5294:
5295:
5296:
5297:
5298:
5299:
5300:
5301:
5302: if test -n "$ac_tool_prefix"; then
5303: # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5304: set dummy ${ac_tool_prefix}ar; ac_word=$2
5305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5306: $as_echo_n "checking for $ac_word... " >&6; }
5307: if test "${ac_cv_prog_AR+set}" = set; then :
5308: $as_echo_n "(cached) " >&6
5309: else
5310: if test -n "$AR"; then
5311: ac_cv_prog_AR="$AR" # Let the user override the test.
5312: else
5313: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5314: for as_dir in $PATH
5315: do
5316: IFS=$as_save_IFS
5317: test -z "$as_dir" && as_dir=.
5318: for ac_exec_ext in '' $ac_executable_extensions; do
5319: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5320: ac_cv_prog_AR="${ac_tool_prefix}ar"
5321: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5322: break 2
5323: fi
5324: done
5325: done
5326: IFS=$as_save_IFS
5327:
5328: fi
5329: fi
5330: AR=$ac_cv_prog_AR
5331: if test -n "$AR"; then
5332: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5333: $as_echo "$AR" >&6; }
5334: else
5335: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5336: $as_echo "no" >&6; }
5337: fi
5338:
5339:
5340: fi
5341: if test -z "$ac_cv_prog_AR"; then
5342: ac_ct_AR=$AR
5343: # Extract the first word of "ar", so it can be a program name with args.
5344: set dummy ar; ac_word=$2
5345: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346: $as_echo_n "checking for $ac_word... " >&6; }
5347: if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5348: $as_echo_n "(cached) " >&6
5349: else
5350: if test -n "$ac_ct_AR"; then
5351: ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5352: else
5353: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354: for as_dir in $PATH
5355: do
5356: IFS=$as_save_IFS
5357: test -z "$as_dir" && as_dir=.
5358: for ac_exec_ext in '' $ac_executable_extensions; do
5359: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5360: ac_cv_prog_ac_ct_AR="ar"
5361: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362: break 2
5363: fi
5364: done
5365: done
5366: IFS=$as_save_IFS
5367:
5368: fi
5369: fi
5370: ac_ct_AR=$ac_cv_prog_ac_ct_AR
5371: if test -n "$ac_ct_AR"; then
5372: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5373: $as_echo "$ac_ct_AR" >&6; }
5374: else
5375: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376: $as_echo "no" >&6; }
5377: fi
5378:
5379: if test "x$ac_ct_AR" = x; then
5380: AR="false"
5381: else
5382: case $cross_compiling:$ac_tool_warned in
5383: yes:)
5384: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5385: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5386: ac_tool_warned=yes ;;
5387: esac
5388: AR=$ac_ct_AR
5389: fi
5390: else
5391: AR="$ac_cv_prog_AR"
5392: fi
5393:
5394: test -z "$AR" && AR=ar
5395: test -z "$AR_FLAGS" && AR_FLAGS=cru
5396:
5397:
5398:
5399:
5400:
5401:
5402:
5403:
5404:
5405:
5406:
5407: if test -n "$ac_tool_prefix"; then
5408: # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5409: set dummy ${ac_tool_prefix}strip; ac_word=$2
5410: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5411: $as_echo_n "checking for $ac_word... " >&6; }
5412: if test "${ac_cv_prog_STRIP+set}" = set; then :
5413: $as_echo_n "(cached) " >&6
5414: else
5415: if test -n "$STRIP"; then
5416: ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5417: else
5418: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5419: for as_dir in $PATH
5420: do
5421: IFS=$as_save_IFS
5422: test -z "$as_dir" && as_dir=.
5423: for ac_exec_ext in '' $ac_executable_extensions; do
5424: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425: ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5426: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5427: break 2
5428: fi
5429: done
5430: done
5431: IFS=$as_save_IFS
5432:
5433: fi
5434: fi
5435: STRIP=$ac_cv_prog_STRIP
5436: if test -n "$STRIP"; then
5437: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5438: $as_echo "$STRIP" >&6; }
5439: else
5440: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5441: $as_echo "no" >&6; }
5442: fi
5443:
5444:
5445: fi
5446: if test -z "$ac_cv_prog_STRIP"; then
5447: ac_ct_STRIP=$STRIP
5448: # Extract the first word of "strip", so it can be a program name with args.
5449: set dummy strip; ac_word=$2
5450: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5451: $as_echo_n "checking for $ac_word... " >&6; }
5452: if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5453: $as_echo_n "(cached) " >&6
5454: else
5455: if test -n "$ac_ct_STRIP"; then
5456: ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5457: else
5458: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459: for as_dir in $PATH
5460: do
5461: IFS=$as_save_IFS
5462: test -z "$as_dir" && as_dir=.
5463: for ac_exec_ext in '' $ac_executable_extensions; do
5464: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5465: ac_cv_prog_ac_ct_STRIP="strip"
5466: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467: break 2
5468: fi
5469: done
5470: done
5471: IFS=$as_save_IFS
5472:
5473: fi
5474: fi
5475: ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5476: if test -n "$ac_ct_STRIP"; then
5477: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5478: $as_echo "$ac_ct_STRIP" >&6; }
5479: else
5480: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5481: $as_echo "no" >&6; }
5482: fi
5483:
5484: if test "x$ac_ct_STRIP" = x; then
5485: STRIP=":"
5486: else
5487: case $cross_compiling:$ac_tool_warned in
5488: yes:)
5489: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5490: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5491: ac_tool_warned=yes ;;
5492: esac
5493: STRIP=$ac_ct_STRIP
5494: fi
5495: else
5496: STRIP="$ac_cv_prog_STRIP"
5497: fi
5498:
5499: test -z "$STRIP" && STRIP=:
5500:
5501:
5502:
5503:
5504:
5505:
5506: if test -n "$ac_tool_prefix"; then
5507: # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5508: set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5509: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5510: $as_echo_n "checking for $ac_word... " >&6; }
5511: if test "${ac_cv_prog_RANLIB+set}" = set; then :
5512: $as_echo_n "(cached) " >&6
5513: else
5514: if test -n "$RANLIB"; then
5515: ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5516: else
5517: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5518: for as_dir in $PATH
5519: do
5520: IFS=$as_save_IFS
5521: test -z "$as_dir" && as_dir=.
5522: for ac_exec_ext in '' $ac_executable_extensions; do
5523: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5524: ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5525: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5526: break 2
5527: fi
5528: done
5529: done
5530: IFS=$as_save_IFS
5531:
5532: fi
5533: fi
5534: RANLIB=$ac_cv_prog_RANLIB
5535: if test -n "$RANLIB"; then
5536: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5537: $as_echo "$RANLIB" >&6; }
5538: else
5539: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5540: $as_echo "no" >&6; }
5541: fi
5542:
5543:
5544: fi
5545: if test -z "$ac_cv_prog_RANLIB"; then
5546: ac_ct_RANLIB=$RANLIB
5547: # Extract the first word of "ranlib", so it can be a program name with args.
5548: set dummy ranlib; ac_word=$2
5549: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5550: $as_echo_n "checking for $ac_word... " >&6; }
5551: if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5552: $as_echo_n "(cached) " >&6
5553: else
5554: if test -n "$ac_ct_RANLIB"; then
5555: ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5556: else
5557: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5558: for as_dir in $PATH
5559: do
5560: IFS=$as_save_IFS
5561: test -z "$as_dir" && as_dir=.
5562: for ac_exec_ext in '' $ac_executable_extensions; do
5563: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5564: ac_cv_prog_ac_ct_RANLIB="ranlib"
5565: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5566: break 2
5567: fi
5568: done
5569: done
5570: IFS=$as_save_IFS
5571:
5572: fi
5573: fi
5574: ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5575: if test -n "$ac_ct_RANLIB"; then
5576: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5577: $as_echo "$ac_ct_RANLIB" >&6; }
5578: else
5579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5580: $as_echo "no" >&6; }
5581: fi
5582:
5583: if test "x$ac_ct_RANLIB" = x; then
5584: RANLIB=":"
5585: else
5586: case $cross_compiling:$ac_tool_warned in
5587: yes:)
5588: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5589: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5590: ac_tool_warned=yes ;;
5591: esac
5592: RANLIB=$ac_ct_RANLIB
5593: fi
5594: else
5595: RANLIB="$ac_cv_prog_RANLIB"
5596: fi
5597:
5598: test -z "$RANLIB" && RANLIB=:
5599:
5600:
5601:
5602:
5603:
5604:
5605: # Determine commands to create old-style static archives.
5606: old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5607: old_postinstall_cmds='chmod 644 $oldlib'
5608: old_postuninstall_cmds=
5609:
5610: if test -n "$RANLIB"; then
5611: case $host_os in
5612: openbsd*)
5613: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5614: ;;
5615: *)
5616: old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5617: ;;
5618: esac
5619: old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5620: fi
5621:
5622:
5623:
5624:
5625:
5626:
5627:
5628:
5629:
5630:
5631:
5632:
5633:
5634:
5635:
5636:
5637:
5638:
5639:
5640:
5641:
5642:
5643:
5644:
5645:
5646:
5647:
5648:
5649:
5650:
5651:
5652:
5653:
5654:
5655: # If no C compiler was specified, use CC.
5656: LTCC=${LTCC-"$CC"}
5657:
5658: # If no C compiler flags were specified, use CFLAGS.
5659: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5660:
5661: # Allow CC to be a program name with arguments.
5662: compiler=$CC
5663:
5664:
5665: # Check for command to grab the raw symbol name followed by C symbol from nm.
5666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5667: $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5668: if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5669: $as_echo_n "(cached) " >&6
5670: else
5671:
5672: # These are sane defaults that work on at least a few old systems.
5673: # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5674:
5675: # Character class describing NM global symbol codes.
5676: symcode='[BCDEGRST]'
5677:
5678: # Regexp to match symbols that can be accessed directly from C.
5679: sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5680:
5681: # Define system-specific variables.
5682: case $host_os in
5683: aix*)
5684: symcode='[BCDT]'
5685: ;;
5686: cygwin* | mingw* | pw32* | cegcc*)
5687: symcode='[ABCDGISTW]'
5688: ;;
5689: hpux*)
5690: if test "$host_cpu" = ia64; then
5691: symcode='[ABCDEGRST]'
5692: fi
5693: ;;
5694: irix* | nonstopux*)
5695: symcode='[BCDEGRST]'
5696: ;;
5697: osf*)
5698: symcode='[BCDEGQRST]'
5699: ;;
5700: solaris*)
5701: symcode='[BDRT]'
5702: ;;
5703: sco3.2v5*)
5704: symcode='[DT]'
5705: ;;
5706: sysv4.2uw2*)
5707: symcode='[DT]'
5708: ;;
5709: sysv5* | sco5v6* | unixware* | OpenUNIX*)
5710: symcode='[ABDT]'
5711: ;;
5712: sysv4)
5713: symcode='[DFNSTU]'
5714: ;;
5715: esac
5716:
5717: # If we're using GNU nm, then use its standard symbol codes.
5718: case `$NM -V 2>&1` in
5719: *GNU* | *'with BFD'*)
5720: symcode='[ABCDGIRSTW]' ;;
5721: esac
5722:
5723: # Transform an extracted symbol line into a proper C declaration.
5724: # Some systems (esp. on ia64) link data and code symbols differently,
5725: # so use this general approach.
5726: lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5727:
5728: # Transform an extracted symbol line into symbol name and symbol address
5729: lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5730: 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'"
5731:
5732: # Handle CRLF in mingw tool chain
5733: opt_cr=
5734: case $build_os in
5735: mingw*)
5736: opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5737: ;;
5738: esac
5739:
5740: # Try without a prefix underscore, then with it.
5741: for ac_symprfx in "" "_"; do
5742:
5743: # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5744: symxfrm="\\1 $ac_symprfx\\2 \\2"
5745:
5746: # Write the raw and C identifiers.
5747: if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5748: # Fake it for dumpbin and say T for any non-static function
5749: # and D for any global variable.
5750: # Also find C++ and __fastcall symbols from MSVC++,
5751: # which start with @ or ?.
5752: lt_cv_sys_global_symbol_pipe="$AWK '"\
5753: " {last_section=section; section=\$ 3};"\
5754: " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5755: " \$ 0!~/External *\|/{next};"\
5756: " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5757: " {if(hide[section]) next};"\
5758: " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5759: " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5760: " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5761: " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5762: " ' prfx=^$ac_symprfx"
5763: else
5764: lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5765: fi
5766:
5767: # Check to see that the pipe works correctly.
5768: pipe_works=no
5769:
5770: rm -f conftest*
5771: cat > conftest.$ac_ext <<_LT_EOF
5772: #ifdef __cplusplus
5773: extern "C" {
5774: #endif
5775: char nm_test_var;
5776: void nm_test_func(void);
5777: void nm_test_func(void){}
5778: #ifdef __cplusplus
5779: }
5780: #endif
5781: int main(){nm_test_var='a';nm_test_func();return(0);}
5782: _LT_EOF
5783:
5784: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5785: (eval $ac_compile) 2>&5
5786: ac_status=$?
5787: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5788: test $ac_status = 0; }; then
5789: # Now try to grab the symbols.
5790: nlist=conftest.nm
5791: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
5792: (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5793: ac_status=$?
5794: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5795: test $ac_status = 0; } && test -s "$nlist"; then
5796: # Try sorting and uniquifying the output.
5797: if sort "$nlist" | uniq > "$nlist"T; then
5798: mv -f "$nlist"T "$nlist"
5799: else
5800: rm -f "$nlist"T
5801: fi
5802:
5803: # Make sure that we snagged all the symbols we need.
5804: if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5805: if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5806: cat <<_LT_EOF > conftest.$ac_ext
5807: #ifdef __cplusplus
5808: extern "C" {
5809: #endif
5810:
5811: _LT_EOF
5812: # Now generate the symbol file.
5813: eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5814:
5815: cat <<_LT_EOF >> conftest.$ac_ext
5816:
5817: /* The mapping between symbol names and symbols. */
5818: const struct {
5819: const char *name;
5820: void *address;
5821: }
5822: lt__PROGRAM__LTX_preloaded_symbols[] =
5823: {
5824: { "@PROGRAM@", (void *) 0 },
5825: _LT_EOF
5826: $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5827: cat <<\_LT_EOF >> conftest.$ac_ext
5828: {0, (void *) 0}
5829: };
5830:
5831: /* This works around a problem in FreeBSD linker */
5832: #ifdef FREEBSD_WORKAROUND
5833: static const void *lt_preloaded_setup() {
5834: return lt__PROGRAM__LTX_preloaded_symbols;
5835: }
5836: #endif
5837:
5838: #ifdef __cplusplus
5839: }
5840: #endif
5841: _LT_EOF
5842: # Now try linking the two files.
5843: mv conftest.$ac_objext conftstm.$ac_objext
5844: lt_save_LIBS="$LIBS"
5845: lt_save_CFLAGS="$CFLAGS"
5846: LIBS="conftstm.$ac_objext"
5847: CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5848: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
5849: (eval $ac_link) 2>&5
5850: ac_status=$?
5851: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5852: test $ac_status = 0; } && test -s conftest${ac_exeext}; then
5853: pipe_works=yes
5854: fi
5855: LIBS="$lt_save_LIBS"
5856: CFLAGS="$lt_save_CFLAGS"
5857: else
5858: echo "cannot find nm_test_func in $nlist" >&5
5859: fi
5860: else
5861: echo "cannot find nm_test_var in $nlist" >&5
5862: fi
5863: else
5864: echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5865: fi
5866: else
5867: echo "$progname: failed program was:" >&5
5868: cat conftest.$ac_ext >&5
5869: fi
5870: rm -rf conftest* conftst*
5871:
5872: # Do not use the global_symbol_pipe unless it works.
5873: if test "$pipe_works" = yes; then
5874: break
5875: else
5876: lt_cv_sys_global_symbol_pipe=
5877: fi
5878: done
5879:
5880: fi
5881:
5882: if test -z "$lt_cv_sys_global_symbol_pipe"; then
5883: lt_cv_sys_global_symbol_to_cdecl=
5884: fi
5885: if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5886: { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
5887: $as_echo "failed" >&6; }
5888: else
5889: { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5890: $as_echo "ok" >&6; }
5891: fi
5892:
5893:
5894:
5895:
5896:
5897:
5898:
5899:
5900:
5901:
5902:
5903:
5904:
5905:
5906:
5907:
5908:
5909:
5910:
5911:
5912:
5913:
5914: # Check whether --enable-libtool-lock was given.
5915: if test "${enable_libtool_lock+set}" = set; then :
5916: enableval=$enable_libtool_lock;
5917: fi
5918:
5919: test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5920:
5921: # Some flags need to be propagated to the compiler or linker for good
5922: # libtool support.
5923: case $host in
5924: ia64-*-hpux*)
5925: # Find out which ABI we are using.
5926: echo 'int i;' > conftest.$ac_ext
5927: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5928: (eval $ac_compile) 2>&5
5929: ac_status=$?
5930: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5931: test $ac_status = 0; }; then
5932: case `/usr/bin/file conftest.$ac_objext` in
5933: *ELF-32*)
5934: HPUX_IA64_MODE="32"
5935: ;;
5936: *ELF-64*)
5937: HPUX_IA64_MODE="64"
5938: ;;
5939: esac
5940: fi
5941: rm -rf conftest*
5942: ;;
5943: *-*-irix6*)
5944: # Find out which ABI we are using.
5945: echo '#line 5945 "configure"' > conftest.$ac_ext
5946: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5947: (eval $ac_compile) 2>&5
5948: ac_status=$?
5949: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5950: test $ac_status = 0; }; then
5951: if test "$lt_cv_prog_gnu_ld" = yes; then
5952: case `/usr/bin/file conftest.$ac_objext` in
5953: *32-bit*)
5954: LD="${LD-ld} -melf32bsmip"
5955: ;;
5956: *N32*)
5957: LD="${LD-ld} -melf32bmipn32"
5958: ;;
5959: *64-bit*)
5960: LD="${LD-ld} -melf64bmip"
5961: ;;
5962: esac
5963: else
5964: case `/usr/bin/file conftest.$ac_objext` in
5965: *32-bit*)
5966: LD="${LD-ld} -32"
5967: ;;
5968: *N32*)
5969: LD="${LD-ld} -n32"
5970: ;;
5971: *64-bit*)
5972: LD="${LD-ld} -64"
5973: ;;
5974: esac
5975: fi
5976: fi
5977: rm -rf conftest*
5978: ;;
5979:
5980: x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
5981: s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
5982: # Find out which ABI we are using.
5983: echo 'int i;' > conftest.$ac_ext
5984: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5985: (eval $ac_compile) 2>&5
5986: ac_status=$?
5987: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5988: test $ac_status = 0; }; then
5989: case `/usr/bin/file conftest.o` in
5990: *32-bit*)
5991: case $host in
5992: x86_64-*kfreebsd*-gnu)
5993: LD="${LD-ld} -m elf_i386_fbsd"
5994: ;;
5995: x86_64-*linux*)
5996: LD="${LD-ld} -m elf_i386"
5997: ;;
5998: ppc64-*linux*|powerpc64-*linux*)
5999: LD="${LD-ld} -m elf32ppclinux"
6000: ;;
6001: s390x-*linux*)
6002: LD="${LD-ld} -m elf_s390"
6003: ;;
6004: sparc64-*linux*)
6005: LD="${LD-ld} -m elf32_sparc"
6006: ;;
6007: esac
6008: ;;
6009: *64-bit*)
6010: case $host in
6011: x86_64-*kfreebsd*-gnu)
6012: LD="${LD-ld} -m elf_x86_64_fbsd"
6013: ;;
6014: x86_64-*linux*)
6015: LD="${LD-ld} -m elf_x86_64"
6016: ;;
6017: ppc*-*linux*|powerpc*-*linux*)
6018: LD="${LD-ld} -m elf64ppc"
6019: ;;
6020: s390*-*linux*|s390*-*tpf*)
6021: LD="${LD-ld} -m elf64_s390"
6022: ;;
6023: sparc*-*linux*)
6024: LD="${LD-ld} -m elf64_sparc"
6025: ;;
6026: esac
6027: ;;
6028: esac
6029: fi
6030: rm -rf conftest*
6031: ;;
6032:
6033: *-*-sco3.2v5*)
6034: # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6035: SAVE_CFLAGS="$CFLAGS"
6036: CFLAGS="$CFLAGS -belf"
6037: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6038: $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6039: if test "${lt_cv_cc_needs_belf+set}" = set; then :
6040: $as_echo_n "(cached) " >&6
6041: else
6042: ac_ext=c
6043: ac_cpp='$CPP $CPPFLAGS'
6044: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6045: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6046: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6047:
6048: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049: /* end confdefs.h. */
6050:
6051: int
6052: main ()
6053: {
6054:
6055: ;
6056: return 0;
6057: }
6058: _ACEOF
6059: if ac_fn_c_try_link "$LINENO"; then :
6060: lt_cv_cc_needs_belf=yes
6061: else
6062: lt_cv_cc_needs_belf=no
6063: fi
6064: rm -f core conftest.err conftest.$ac_objext \
6065: conftest$ac_exeext conftest.$ac_ext
6066: ac_ext=c
6067: ac_cpp='$CPP $CPPFLAGS'
6068: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6069: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6070: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6071:
6072: fi
6073: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6074: $as_echo "$lt_cv_cc_needs_belf" >&6; }
6075: if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6076: # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6077: CFLAGS="$SAVE_CFLAGS"
6078: fi
6079: ;;
6080: sparc*-*solaris*)
6081: # Find out which ABI we are using.
6082: echo 'int i;' > conftest.$ac_ext
6083: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6084: (eval $ac_compile) 2>&5
6085: ac_status=$?
6086: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6087: test $ac_status = 0; }; then
6088: case `/usr/bin/file conftest.o` in
6089: *64-bit*)
6090: case $lt_cv_prog_gnu_ld in
6091: yes*) LD="${LD-ld} -m elf64_sparc" ;;
6092: *)
6093: if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6094: LD="${LD-ld} -64"
6095: fi
6096: ;;
6097: esac
6098: ;;
6099: esac
6100: fi
6101: rm -rf conftest*
6102: ;;
6103: esac
6104:
6105: need_locks="$enable_libtool_lock"
6106:
6107:
6108: case $host_os in
6109: rhapsody* | darwin*)
6110: if test -n "$ac_tool_prefix"; then
6111: # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6112: set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6113: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114: $as_echo_n "checking for $ac_word... " >&6; }
6115: if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6116: $as_echo_n "(cached) " >&6
6117: else
6118: if test -n "$DSYMUTIL"; then
6119: ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6120: else
6121: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122: for as_dir in $PATH
6123: do
6124: IFS=$as_save_IFS
6125: test -z "$as_dir" && as_dir=.
6126: for ac_exec_ext in '' $ac_executable_extensions; do
6127: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128: ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6129: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130: break 2
6131: fi
6132: done
6133: done
6134: IFS=$as_save_IFS
6135:
6136: fi
6137: fi
6138: DSYMUTIL=$ac_cv_prog_DSYMUTIL
6139: if test -n "$DSYMUTIL"; then
6140: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6141: $as_echo "$DSYMUTIL" >&6; }
6142: else
6143: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144: $as_echo "no" >&6; }
6145: fi
6146:
6147:
6148: fi
6149: if test -z "$ac_cv_prog_DSYMUTIL"; then
6150: ac_ct_DSYMUTIL=$DSYMUTIL
6151: # Extract the first word of "dsymutil", so it can be a program name with args.
6152: set dummy dsymutil; ac_word=$2
6153: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154: $as_echo_n "checking for $ac_word... " >&6; }
6155: if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6156: $as_echo_n "(cached) " >&6
6157: else
6158: if test -n "$ac_ct_DSYMUTIL"; then
6159: ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6160: else
6161: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162: for as_dir in $PATH
6163: do
6164: IFS=$as_save_IFS
6165: test -z "$as_dir" && as_dir=.
6166: for ac_exec_ext in '' $ac_executable_extensions; do
6167: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6168: ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6169: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170: break 2
6171: fi
6172: done
6173: done
6174: IFS=$as_save_IFS
6175:
6176: fi
6177: fi
6178: ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6179: if test -n "$ac_ct_DSYMUTIL"; then
6180: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6181: $as_echo "$ac_ct_DSYMUTIL" >&6; }
6182: else
6183: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184: $as_echo "no" >&6; }
6185: fi
6186:
6187: if test "x$ac_ct_DSYMUTIL" = x; then
6188: DSYMUTIL=":"
6189: else
6190: case $cross_compiling:$ac_tool_warned in
6191: yes:)
6192: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6193: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6194: ac_tool_warned=yes ;;
6195: esac
6196: DSYMUTIL=$ac_ct_DSYMUTIL
6197: fi
6198: else
6199: DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6200: fi
6201:
6202: if test -n "$ac_tool_prefix"; then
6203: # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6204: set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6205: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6206: $as_echo_n "checking for $ac_word... " >&6; }
6207: if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6208: $as_echo_n "(cached) " >&6
6209: else
6210: if test -n "$NMEDIT"; then
6211: ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6212: else
6213: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214: for as_dir in $PATH
6215: do
6216: IFS=$as_save_IFS
6217: test -z "$as_dir" && as_dir=.
6218: for ac_exec_ext in '' $ac_executable_extensions; do
6219: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6220: ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6221: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6222: break 2
6223: fi
6224: done
6225: done
6226: IFS=$as_save_IFS
6227:
6228: fi
6229: fi
6230: NMEDIT=$ac_cv_prog_NMEDIT
6231: if test -n "$NMEDIT"; then
6232: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6233: $as_echo "$NMEDIT" >&6; }
6234: else
6235: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6236: $as_echo "no" >&6; }
6237: fi
6238:
6239:
6240: fi
6241: if test -z "$ac_cv_prog_NMEDIT"; then
6242: ac_ct_NMEDIT=$NMEDIT
6243: # Extract the first word of "nmedit", so it can be a program name with args.
6244: set dummy nmedit; ac_word=$2
6245: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6246: $as_echo_n "checking for $ac_word... " >&6; }
6247: if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6248: $as_echo_n "(cached) " >&6
6249: else
6250: if test -n "$ac_ct_NMEDIT"; then
6251: ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6252: else
6253: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254: for as_dir in $PATH
6255: do
6256: IFS=$as_save_IFS
6257: test -z "$as_dir" && as_dir=.
6258: for ac_exec_ext in '' $ac_executable_extensions; do
6259: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6260: ac_cv_prog_ac_ct_NMEDIT="nmedit"
6261: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6262: break 2
6263: fi
6264: done
6265: done
6266: IFS=$as_save_IFS
6267:
6268: fi
6269: fi
6270: ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6271: if test -n "$ac_ct_NMEDIT"; then
6272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6273: $as_echo "$ac_ct_NMEDIT" >&6; }
6274: else
6275: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276: $as_echo "no" >&6; }
6277: fi
6278:
6279: if test "x$ac_ct_NMEDIT" = x; then
6280: NMEDIT=":"
6281: else
6282: case $cross_compiling:$ac_tool_warned in
6283: yes:)
6284: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6285: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6286: ac_tool_warned=yes ;;
6287: esac
6288: NMEDIT=$ac_ct_NMEDIT
6289: fi
6290: else
6291: NMEDIT="$ac_cv_prog_NMEDIT"
6292: fi
6293:
6294: if test -n "$ac_tool_prefix"; then
6295: # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6296: set dummy ${ac_tool_prefix}lipo; ac_word=$2
6297: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298: $as_echo_n "checking for $ac_word... " >&6; }
6299: if test "${ac_cv_prog_LIPO+set}" = set; then :
6300: $as_echo_n "(cached) " >&6
6301: else
6302: if test -n "$LIPO"; then
6303: ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6304: else
6305: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6306: for as_dir in $PATH
6307: do
6308: IFS=$as_save_IFS
6309: test -z "$as_dir" && as_dir=.
6310: for ac_exec_ext in '' $ac_executable_extensions; do
6311: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6312: ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6313: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6314: break 2
6315: fi
6316: done
6317: done
6318: IFS=$as_save_IFS
6319:
6320: fi
6321: fi
6322: LIPO=$ac_cv_prog_LIPO
6323: if test -n "$LIPO"; then
6324: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6325: $as_echo "$LIPO" >&6; }
6326: else
6327: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328: $as_echo "no" >&6; }
6329: fi
6330:
6331:
6332: fi
6333: if test -z "$ac_cv_prog_LIPO"; then
6334: ac_ct_LIPO=$LIPO
6335: # Extract the first word of "lipo", so it can be a program name with args.
6336: set dummy lipo; ac_word=$2
6337: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6338: $as_echo_n "checking for $ac_word... " >&6; }
6339: if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6340: $as_echo_n "(cached) " >&6
6341: else
6342: if test -n "$ac_ct_LIPO"; then
6343: ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6344: else
6345: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346: for as_dir in $PATH
6347: do
6348: IFS=$as_save_IFS
6349: test -z "$as_dir" && as_dir=.
6350: for ac_exec_ext in '' $ac_executable_extensions; do
6351: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6352: ac_cv_prog_ac_ct_LIPO="lipo"
6353: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6354: break 2
6355: fi
6356: done
6357: done
6358: IFS=$as_save_IFS
6359:
6360: fi
6361: fi
6362: ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6363: if test -n "$ac_ct_LIPO"; then
6364: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6365: $as_echo "$ac_ct_LIPO" >&6; }
6366: else
6367: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368: $as_echo "no" >&6; }
6369: fi
6370:
6371: if test "x$ac_ct_LIPO" = x; then
6372: LIPO=":"
6373: else
6374: case $cross_compiling:$ac_tool_warned in
6375: yes:)
6376: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6377: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6378: ac_tool_warned=yes ;;
6379: esac
6380: LIPO=$ac_ct_LIPO
6381: fi
6382: else
6383: LIPO="$ac_cv_prog_LIPO"
6384: fi
6385:
6386: if test -n "$ac_tool_prefix"; then
6387: # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6388: set dummy ${ac_tool_prefix}otool; ac_word=$2
6389: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390: $as_echo_n "checking for $ac_word... " >&6; }
6391: if test "${ac_cv_prog_OTOOL+set}" = set; then :
6392: $as_echo_n "(cached) " >&6
6393: else
6394: if test -n "$OTOOL"; then
6395: ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6396: else
6397: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398: for as_dir in $PATH
6399: do
6400: IFS=$as_save_IFS
6401: test -z "$as_dir" && as_dir=.
6402: for ac_exec_ext in '' $ac_executable_extensions; do
6403: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6404: ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6405: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406: break 2
6407: fi
6408: done
6409: done
6410: IFS=$as_save_IFS
6411:
6412: fi
6413: fi
6414: OTOOL=$ac_cv_prog_OTOOL
6415: if test -n "$OTOOL"; then
6416: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6417: $as_echo "$OTOOL" >&6; }
6418: else
6419: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420: $as_echo "no" >&6; }
6421: fi
6422:
6423:
6424: fi
6425: if test -z "$ac_cv_prog_OTOOL"; then
6426: ac_ct_OTOOL=$OTOOL
6427: # Extract the first word of "otool", so it can be a program name with args.
6428: set dummy otool; ac_word=$2
6429: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6430: $as_echo_n "checking for $ac_word... " >&6; }
6431: if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6432: $as_echo_n "(cached) " >&6
6433: else
6434: if test -n "$ac_ct_OTOOL"; then
6435: ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6436: else
6437: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6438: for as_dir in $PATH
6439: do
6440: IFS=$as_save_IFS
6441: test -z "$as_dir" && as_dir=.
6442: for ac_exec_ext in '' $ac_executable_extensions; do
6443: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6444: ac_cv_prog_ac_ct_OTOOL="otool"
6445: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6446: break 2
6447: fi
6448: done
6449: done
6450: IFS=$as_save_IFS
6451:
6452: fi
6453: fi
6454: ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6455: if test -n "$ac_ct_OTOOL"; then
6456: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6457: $as_echo "$ac_ct_OTOOL" >&6; }
6458: else
6459: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6460: $as_echo "no" >&6; }
6461: fi
6462:
6463: if test "x$ac_ct_OTOOL" = x; then
6464: OTOOL=":"
6465: else
6466: case $cross_compiling:$ac_tool_warned in
6467: yes:)
6468: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6469: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6470: ac_tool_warned=yes ;;
6471: esac
6472: OTOOL=$ac_ct_OTOOL
6473: fi
6474: else
6475: OTOOL="$ac_cv_prog_OTOOL"
6476: fi
6477:
6478: if test -n "$ac_tool_prefix"; then
6479: # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6480: set dummy ${ac_tool_prefix}otool64; ac_word=$2
6481: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6482: $as_echo_n "checking for $ac_word... " >&6; }
6483: if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6484: $as_echo_n "(cached) " >&6
6485: else
6486: if test -n "$OTOOL64"; then
6487: ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6488: else
6489: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6490: for as_dir in $PATH
6491: do
6492: IFS=$as_save_IFS
6493: test -z "$as_dir" && as_dir=.
6494: for ac_exec_ext in '' $ac_executable_extensions; do
6495: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6496: ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6497: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498: break 2
6499: fi
6500: done
6501: done
6502: IFS=$as_save_IFS
6503:
6504: fi
6505: fi
6506: OTOOL64=$ac_cv_prog_OTOOL64
6507: if test -n "$OTOOL64"; then
6508: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6509: $as_echo "$OTOOL64" >&6; }
6510: else
6511: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6512: $as_echo "no" >&6; }
6513: fi
6514:
6515:
6516: fi
6517: if test -z "$ac_cv_prog_OTOOL64"; then
6518: ac_ct_OTOOL64=$OTOOL64
6519: # Extract the first word of "otool64", so it can be a program name with args.
6520: set dummy otool64; ac_word=$2
6521: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6522: $as_echo_n "checking for $ac_word... " >&6; }
6523: if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6524: $as_echo_n "(cached) " >&6
6525: else
6526: if test -n "$ac_ct_OTOOL64"; then
6527: ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6528: else
6529: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6530: for as_dir in $PATH
6531: do
6532: IFS=$as_save_IFS
6533: test -z "$as_dir" && as_dir=.
6534: for ac_exec_ext in '' $ac_executable_extensions; do
6535: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6536: ac_cv_prog_ac_ct_OTOOL64="otool64"
6537: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6538: break 2
6539: fi
6540: done
6541: done
6542: IFS=$as_save_IFS
6543:
6544: fi
6545: fi
6546: ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6547: if test -n "$ac_ct_OTOOL64"; then
6548: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6549: $as_echo "$ac_ct_OTOOL64" >&6; }
6550: else
6551: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6552: $as_echo "no" >&6; }
6553: fi
6554:
6555: if test "x$ac_ct_OTOOL64" = x; then
6556: OTOOL64=":"
6557: else
6558: case $cross_compiling:$ac_tool_warned in
6559: yes:)
6560: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6561: $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6562: ac_tool_warned=yes ;;
6563: esac
6564: OTOOL64=$ac_ct_OTOOL64
6565: fi
6566: else
6567: OTOOL64="$ac_cv_prog_OTOOL64"
6568: fi
6569:
6570:
6571:
6572:
6573:
6574:
6575:
6576:
6577:
6578:
6579:
6580:
6581:
6582:
6583:
6584:
6585:
6586:
6587:
6588:
6589:
6590:
6591:
6592:
6593:
6594:
6595:
6596: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6597: $as_echo_n "checking for -single_module linker flag... " >&6; }
6598: if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6599: $as_echo_n "(cached) " >&6
6600: else
6601: lt_cv_apple_cc_single_mod=no
6602: if test -z "${LT_MULTI_MODULE}"; then
6603: # By default we will add the -single_module flag. You can override
6604: # by either setting the environment variable LT_MULTI_MODULE
6605: # non-empty at configure time, or by adding -multi_module to the
6606: # link flags.
6607: rm -rf libconftest.dylib*
6608: echo "int foo(void){return 1;}" > conftest.c
6609: echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6610: -dynamiclib -Wl,-single_module conftest.c" >&5
6611: $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6612: -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6613: _lt_result=$?
6614: if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6615: lt_cv_apple_cc_single_mod=yes
6616: else
6617: cat conftest.err >&5
6618: fi
6619: rm -rf libconftest.dylib*
6620: rm -f conftest.*
6621: fi
6622: fi
6623: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6624: $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6625: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6626: $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6627: if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6628: $as_echo_n "(cached) " >&6
6629: else
6630: lt_cv_ld_exported_symbols_list=no
6631: save_LDFLAGS=$LDFLAGS
6632: echo "_main" > conftest.sym
6633: LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6634: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6635: /* end confdefs.h. */
6636:
6637: int
6638: main ()
6639: {
6640:
6641: ;
6642: return 0;
6643: }
6644: _ACEOF
6645: if ac_fn_c_try_link "$LINENO"; then :
6646: lt_cv_ld_exported_symbols_list=yes
6647: else
6648: lt_cv_ld_exported_symbols_list=no
6649: fi
6650: rm -f core conftest.err conftest.$ac_objext \
6651: conftest$ac_exeext conftest.$ac_ext
6652: LDFLAGS="$save_LDFLAGS"
6653:
6654: fi
6655: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6656: $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6657: case $host_os in
6658: rhapsody* | darwin1.[012])
6659: _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6660: darwin1.*)
6661: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6662: darwin*) # darwin 5.x on
6663: # if running on 10.5 or later, the deployment target defaults
6664: # to the OS version, if on x86, and 10.4, the deployment
6665: # target defaults to 10.4. Don't you love it?
6666: case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6667: 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6668: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6669: 10.[012]*)
6670: _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6671: 10.*)
6672: _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6673: esac
6674: ;;
6675: esac
6676: if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6677: _lt_dar_single_mod='$single_module'
6678: fi
6679: if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6680: _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6681: else
6682: _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6683: fi
6684: if test "$DSYMUTIL" != ":"; then
6685: _lt_dsymutil='~$DSYMUTIL $lib || :'
6686: else
6687: _lt_dsymutil=
6688: fi
6689: ;;
6690: esac
6691:
6692: ac_ext=c
6693: ac_cpp='$CPP $CPPFLAGS'
6694: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6697: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6698: $as_echo_n "checking how to run the C preprocessor... " >&6; }
6699: # On Suns, sometimes $CPP names a directory.
6700: if test -n "$CPP" && test -d "$CPP"; then
6701: CPP=
6702: fi
6703: if test -z "$CPP"; then
6704: if test "${ac_cv_prog_CPP+set}" = set; then :
6705: $as_echo_n "(cached) " >&6
6706: else
6707: # Double quotes because CPP needs to be expanded
6708: for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6709: do
6710: ac_preproc_ok=false
6711: for ac_c_preproc_warn_flag in '' yes
6712: do
6713: # Use a header file that comes with gcc, so configuring glibc
6714: # with a fresh cross-compiler works.
6715: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6716: # <limits.h> exists even on freestanding compilers.
6717: # On the NeXT, cc -E runs the code through the compiler's parser,
6718: # not just through cpp. "Syntax error" is here to catch this case.
6719: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6720: /* end confdefs.h. */
6721: #ifdef __STDC__
6722: # include <limits.h>
6723: #else
6724: # include <assert.h>
6725: #endif
6726: Syntax error
6727: _ACEOF
6728: if ac_fn_c_try_cpp "$LINENO"; then :
6729:
6730: else
6731: # Broken: fails on valid input.
6732: continue
6733: fi
6734: rm -f conftest.err conftest.$ac_ext
6735:
6736: # OK, works on sane cases. Now check whether nonexistent headers
6737: # can be detected and how.
6738: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739: /* end confdefs.h. */
6740: #include <ac_nonexistent.h>
6741: _ACEOF
6742: if ac_fn_c_try_cpp "$LINENO"; then :
6743: # Broken: success on invalid input.
6744: continue
6745: else
6746: # Passes both tests.
6747: ac_preproc_ok=:
6748: break
6749: fi
6750: rm -f conftest.err conftest.$ac_ext
6751:
6752: done
6753: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6754: rm -f conftest.err conftest.$ac_ext
6755: if $ac_preproc_ok; then :
6756: break
6757: fi
6758:
6759: done
6760: ac_cv_prog_CPP=$CPP
6761:
6762: fi
6763: CPP=$ac_cv_prog_CPP
6764: else
6765: ac_cv_prog_CPP=$CPP
6766: fi
6767: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6768: $as_echo "$CPP" >&6; }
6769: ac_preproc_ok=false
6770: for ac_c_preproc_warn_flag in '' yes
6771: do
6772: # Use a header file that comes with gcc, so configuring glibc
6773: # with a fresh cross-compiler works.
6774: # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6775: # <limits.h> exists even on freestanding compilers.
6776: # On the NeXT, cc -E runs the code through the compiler's parser,
6777: # not just through cpp. "Syntax error" is here to catch this case.
6778: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6779: /* end confdefs.h. */
6780: #ifdef __STDC__
6781: # include <limits.h>
6782: #else
6783: # include <assert.h>
6784: #endif
6785: Syntax error
6786: _ACEOF
6787: if ac_fn_c_try_cpp "$LINENO"; then :
6788:
6789: else
6790: # Broken: fails on valid input.
6791: continue
6792: fi
6793: rm -f conftest.err conftest.$ac_ext
6794:
6795: # OK, works on sane cases. Now check whether nonexistent headers
6796: # can be detected and how.
6797: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6798: /* end confdefs.h. */
6799: #include <ac_nonexistent.h>
6800: _ACEOF
6801: if ac_fn_c_try_cpp "$LINENO"; then :
6802: # Broken: success on invalid input.
6803: continue
6804: else
6805: # Passes both tests.
6806: ac_preproc_ok=:
6807: break
6808: fi
6809: rm -f conftest.err conftest.$ac_ext
6810:
6811: done
6812: # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6813: rm -f conftest.err conftest.$ac_ext
6814: if $ac_preproc_ok; then :
6815:
6816: else
6817: { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6818: $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6819: as_fn_error "C preprocessor \"$CPP\" fails sanity check
6820: See \`config.log' for more details." "$LINENO" 5; }
6821: fi
6822:
6823: ac_ext=c
6824: ac_cpp='$CPP $CPPFLAGS'
6825: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6826: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6827: ac_compiler_gnu=$ac_cv_c_compiler_gnu
6828:
6829:
6830: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6831: $as_echo_n "checking for ANSI C header files... " >&6; }
6832: if test "${ac_cv_header_stdc+set}" = set; then :
6833: $as_echo_n "(cached) " >&6
6834: else
6835: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836: /* end confdefs.h. */
6837: #include <stdlib.h>
6838: #include <stdarg.h>
6839: #include <string.h>
6840: #include <float.h>
6841:
6842: int
6843: main ()
6844: {
6845:
6846: ;
6847: return 0;
6848: }
6849: _ACEOF
6850: if ac_fn_c_try_compile "$LINENO"; then :
6851: ac_cv_header_stdc=yes
6852: else
6853: ac_cv_header_stdc=no
6854: fi
6855: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856:
6857: if test $ac_cv_header_stdc = yes; then
6858: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6859: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6860: /* end confdefs.h. */
6861: #include <string.h>
6862:
6863: _ACEOF
6864: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6865: $EGREP "memchr" >/dev/null 2>&1; then :
6866:
6867: else
6868: ac_cv_header_stdc=no
6869: fi
6870: rm -f conftest*
6871:
6872: fi
6873:
6874: if test $ac_cv_header_stdc = yes; then
6875: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6876: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6877: /* end confdefs.h. */
6878: #include <stdlib.h>
6879:
6880: _ACEOF
6881: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6882: $EGREP "free" >/dev/null 2>&1; then :
6883:
6884: else
6885: ac_cv_header_stdc=no
6886: fi
6887: rm -f conftest*
6888:
6889: fi
6890:
6891: if test $ac_cv_header_stdc = yes; then
6892: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6893: if test "$cross_compiling" = yes; then :
6894: :
6895: else
6896: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897: /* end confdefs.h. */
6898: #include <ctype.h>
6899: #include <stdlib.h>
6900: #if ((' ' & 0x0FF) == 0x020)
6901: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6902: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6903: #else
6904: # define ISLOWER(c) \
6905: (('a' <= (c) && (c) <= 'i') \
6906: || ('j' <= (c) && (c) <= 'r') \
6907: || ('s' <= (c) && (c) <= 'z'))
6908: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6909: #endif
6910:
6911: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6912: int
6913: main ()
6914: {
6915: int i;
6916: for (i = 0; i < 256; i++)
6917: if (XOR (islower (i), ISLOWER (i))
6918: || toupper (i) != TOUPPER (i))
6919: return 2;
6920: return 0;
6921: }
6922: _ACEOF
6923: if ac_fn_c_try_run "$LINENO"; then :
6924:
6925: else
6926: ac_cv_header_stdc=no
6927: fi
6928: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6929: conftest.$ac_objext conftest.beam conftest.$ac_ext
6930: fi
6931:
6932: fi
6933: fi
6934: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6935: $as_echo "$ac_cv_header_stdc" >&6; }
6936: if test $ac_cv_header_stdc = yes; then
6937:
6938: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6939:
6940: fi
6941:
6942: # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6943: for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6944: inttypes.h stdint.h unistd.h
6945: do :
6946: as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6947: ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6948: "
6949: eval as_val=\$$as_ac_Header
6950: if test "x$as_val" = x""yes; then :
6951: cat >>confdefs.h <<_ACEOF
6952: #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6953: _ACEOF
6954:
6955: fi
6956:
6957: done
6958:
6959:
6960: for ac_header in dlfcn.h
6961: do :
6962: ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
6963: "
6964: if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
6965: cat >>confdefs.h <<_ACEOF
6966: #define HAVE_DLFCN_H 1
6967: _ACEOF
6968:
6969: fi
6970:
6971: done
6972:
6973:
6974:
6975: # Set options
6976:
6977:
6978:
6979: enable_dlopen=no
6980:
6981:
6982: enable_win32_dll=no
6983:
6984:
6985:
6986: # Check whether --enable-static was given.
6987: if test "${enable_static+set}" = set; then :
6988: enableval=$enable_static; p=${PACKAGE-default}
6989: case $enableval in
6990: yes) enable_static=yes ;;
6991: no) enable_static=no ;;
6992: *)
6993: enable_static=no
6994: # Look at the argument we got. We use all the common list separators.
6995: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
6996: for pkg in $enableval; do
6997: IFS="$lt_save_ifs"
6998: if test "X$pkg" = "X$p"; then
6999: enable_static=yes
7000: fi
7001: done
7002: IFS="$lt_save_ifs"
7003: ;;
7004: esac
7005: else
7006: enable_static=yes
7007: fi
7008:
7009:
7010:
7011:
7012:
7013:
7014:
7015:
7016:
7017:
7018: # Check whether --with-pic was given.
7019: if test "${with_pic+set}" = set; then :
7020: withval=$with_pic; pic_mode="$withval"
7021: else
7022: pic_mode=default
7023: fi
7024:
7025:
7026: test -z "$pic_mode" && pic_mode=default
7027:
7028:
7029:
7030:
7031:
7032:
7033:
7034: # Check whether --enable-fast-install was given.
7035: if test "${enable_fast_install+set}" = set; then :
7036: enableval=$enable_fast_install; p=${PACKAGE-default}
7037: case $enableval in
7038: yes) enable_fast_install=yes ;;
7039: no) enable_fast_install=no ;;
7040: *)
7041: enable_fast_install=no
7042: # Look at the argument we got. We use all the common list separators.
7043: lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7044: for pkg in $enableval; do
7045: IFS="$lt_save_ifs"
7046: if test "X$pkg" = "X$p"; then
7047: enable_fast_install=yes
7048: fi
7049: done
7050: IFS="$lt_save_ifs"
7051: ;;
7052: esac
7053: else
7054: enable_fast_install=yes
7055: fi
7056:
7057:
7058:
7059:
7060:
7061:
7062:
7063:
7064:
7065:
7066:
7067: # This can be used to rebuild libtool when needed
7068: LIBTOOL_DEPS="$ltmain"
7069:
7070: # Always use our own libtool.
7071: LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7072:
7073:
7074:
7075:
7076:
7077:
7078:
7079:
7080:
7081:
7082:
7083:
7084:
7085:
7086:
7087:
7088:
7089:
7090:
7091:
7092:
7093:
7094:
7095:
7096:
7097: test -z "$LN_S" && LN_S="ln -s"
7098:
7099:
7100:
7101:
7102:
7103:
7104:
7105:
7106:
7107:
7108:
7109:
7110:
7111:
7112: if test -n "${ZSH_VERSION+set}" ; then
7113: setopt NO_GLOB_SUBST
7114: fi
7115:
7116: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7117: $as_echo_n "checking for objdir... " >&6; }
7118: if test "${lt_cv_objdir+set}" = set; then :
7119: $as_echo_n "(cached) " >&6
7120: else
7121: rm -f .libs 2>/dev/null
7122: mkdir .libs 2>/dev/null
7123: if test -d .libs; then
7124: lt_cv_objdir=.libs
7125: else
7126: # MS-DOS does not allow filenames that begin with a dot.
7127: lt_cv_objdir=_libs
7128: fi
7129: rmdir .libs 2>/dev/null
7130: fi
7131: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7132: $as_echo "$lt_cv_objdir" >&6; }
7133: objdir=$lt_cv_objdir
7134:
7135:
7136:
7137:
7138:
7139: cat >>confdefs.h <<_ACEOF
7140: #define LT_OBJDIR "$lt_cv_objdir/"
7141: _ACEOF
7142:
7143:
7144:
7145:
7146:
7147:
7148:
7149:
7150:
7151:
7152:
7153:
7154:
7155:
7156:
7157:
7158:
7159: case $host_os in
7160: aix3*)
7161: # AIX sometimes has problems with the GCC collect2 program. For some
7162: # reason, if we set the COLLECT_NAMES environment variable, the problems
7163: # vanish in a puff of smoke.
7164: if test "X${COLLECT_NAMES+set}" != Xset; then
7165: COLLECT_NAMES=
7166: export COLLECT_NAMES
7167: fi
7168: ;;
7169: esac
7170:
7171: # Sed substitution that helps us do robust quoting. It backslashifies
7172: # metacharacters that are still active within double-quoted strings.
7173: sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7174:
7175: # Same as above, but do not quote variable references.
7176: double_quote_subst='s/\(["`\\]\)/\\\1/g'
7177:
7178: # Sed substitution to delay expansion of an escaped shell variable in a
7179: # double_quote_subst'ed string.
7180: delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7181:
7182: # Sed substitution to delay expansion of an escaped single quote.
7183: delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7184:
7185: # Sed substitution to avoid accidental globbing in evaled expressions
7186: no_glob_subst='s/\*/\\\*/g'
7187:
7188: # Global variables:
7189: ofile=libtool
7190: can_build_shared=yes
7191:
7192: # All known linkers require a `.a' archive for static linking (except MSVC,
7193: # which needs '.lib').
7194: libext=a
7195:
7196: with_gnu_ld="$lt_cv_prog_gnu_ld"
7197:
7198: old_CC="$CC"
7199: old_CFLAGS="$CFLAGS"
7200:
7201: # Set sane defaults for various variables
7202: test -z "$CC" && CC=cc
7203: test -z "$LTCC" && LTCC=$CC
7204: test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7205: test -z "$LD" && LD=ld
7206: test -z "$ac_objext" && ac_objext=o
7207:
7208: for cc_temp in $compiler""; do
7209: case $cc_temp in
7210: compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7211: distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7212: \-*) ;;
7213: *) break;;
7214: esac
7215: done
7216: cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7217:
7218:
7219: # Only perform the check for file, if the check method requires it
7220: test -z "$MAGIC_CMD" && MAGIC_CMD=file
7221: case $deplibs_check_method in
7222: file_magic*)
7223: if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7224: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7225: $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7226: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7227: $as_echo_n "(cached) " >&6
7228: else
7229: case $MAGIC_CMD in
7230: [\\/*] | ?:[\\/]*)
7231: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7232: ;;
7233: *)
7234: lt_save_MAGIC_CMD="$MAGIC_CMD"
7235: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7236: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7237: for ac_dir in $ac_dummy; do
7238: IFS="$lt_save_ifs"
7239: test -z "$ac_dir" && ac_dir=.
7240: if test -f $ac_dir/${ac_tool_prefix}file; then
7241: lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7242: if test -n "$file_magic_test_file"; then
7243: case $deplibs_check_method in
7244: "file_magic "*)
7245: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7246: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7247: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7248: $EGREP "$file_magic_regex" > /dev/null; then
7249: :
7250: else
7251: cat <<_LT_EOF 1>&2
7252:
7253: *** Warning: the command libtool uses to detect shared libraries,
7254: *** $file_magic_cmd, produces output that libtool cannot recognize.
7255: *** The result is that libtool may fail to recognize shared libraries
7256: *** as such. This will affect the creation of libtool libraries that
7257: *** depend on shared libraries, but programs linked with such libtool
7258: *** libraries will work regardless of this problem. Nevertheless, you
7259: *** may want to report the problem to your system manager and/or to
7260: *** bug-libtool@gnu.org
7261:
7262: _LT_EOF
7263: fi ;;
7264: esac
7265: fi
7266: break
7267: fi
7268: done
7269: IFS="$lt_save_ifs"
7270: MAGIC_CMD="$lt_save_MAGIC_CMD"
7271: ;;
7272: esac
7273: fi
7274:
7275: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7276: if test -n "$MAGIC_CMD"; then
7277: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7278: $as_echo "$MAGIC_CMD" >&6; }
7279: else
7280: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281: $as_echo "no" >&6; }
7282: fi
7283:
7284:
7285:
7286:
7287:
7288: if test -z "$lt_cv_path_MAGIC_CMD"; then
7289: if test -n "$ac_tool_prefix"; then
7290: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7291: $as_echo_n "checking for file... " >&6; }
7292: if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7293: $as_echo_n "(cached) " >&6
7294: else
7295: case $MAGIC_CMD in
7296: [\\/*] | ?:[\\/]*)
7297: lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7298: ;;
7299: *)
7300: lt_save_MAGIC_CMD="$MAGIC_CMD"
7301: lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7302: ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7303: for ac_dir in $ac_dummy; do
7304: IFS="$lt_save_ifs"
7305: test -z "$ac_dir" && ac_dir=.
7306: if test -f $ac_dir/file; then
7307: lt_cv_path_MAGIC_CMD="$ac_dir/file"
7308: if test -n "$file_magic_test_file"; then
7309: case $deplibs_check_method in
7310: "file_magic "*)
7311: file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7312: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7313: if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7314: $EGREP "$file_magic_regex" > /dev/null; then
7315: :
7316: else
7317: cat <<_LT_EOF 1>&2
7318:
7319: *** Warning: the command libtool uses to detect shared libraries,
7320: *** $file_magic_cmd, produces output that libtool cannot recognize.
7321: *** The result is that libtool may fail to recognize shared libraries
7322: *** as such. This will affect the creation of libtool libraries that
7323: *** depend on shared libraries, but programs linked with such libtool
7324: *** libraries will work regardless of this problem. Nevertheless, you
7325: *** may want to report the problem to your system manager and/or to
7326: *** bug-libtool@gnu.org
7327:
7328: _LT_EOF
7329: fi ;;
7330: esac
7331: fi
7332: break
7333: fi
7334: done
7335: IFS="$lt_save_ifs"
7336: MAGIC_CMD="$lt_save_MAGIC_CMD"
7337: ;;
7338: esac
7339: fi
7340:
7341: MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7342: if test -n "$MAGIC_CMD"; then
7343: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7344: $as_echo "$MAGIC_CMD" >&6; }
7345: else
7346: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7347: $as_echo "no" >&6; }
7348: fi
7349:
7350:
7351: else
7352: MAGIC_CMD=:
7353: fi
7354: fi
7355:
7356: fi
7357: ;;
7358: esac
7359:
7360: # Use C for the default configuration in the libtool script
7361:
7362: lt_save_CC="$CC"
7363: ac_ext=c
7364: ac_cpp='$CPP $CPPFLAGS'
7365: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7366: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7367: ac_compiler_gnu=$ac_cv_c_compiler_gnu
7368:
7369:
7370: # Source file extension for C test sources.
7371: ac_ext=c
7372:
7373: # Object file extension for compiled C test sources.
7374: objext=o
7375: objext=$objext
7376:
7377: # Code to be used in simple compile tests
7378: lt_simple_compile_test_code="int some_variable = 0;"
7379:
7380: # Code to be used in simple link tests
7381: lt_simple_link_test_code='int main(){return(0);}'
7382:
7383:
7384:
7385:
7386:
7387:
7388:
7389: # If no C compiler was specified, use CC.
7390: LTCC=${LTCC-"$CC"}
7391:
7392: # If no C compiler flags were specified, use CFLAGS.
7393: LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7394:
7395: # Allow CC to be a program name with arguments.
7396: compiler=$CC
7397:
7398: # Save the default compiler, since it gets overwritten when the other
7399: # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7400: compiler_DEFAULT=$CC
7401:
7402: # save warnings/boilerplate of simple test code
7403: ac_outfile=conftest.$ac_objext
7404: echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7405: eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7406: _lt_compiler_boilerplate=`cat conftest.err`
7407: $RM conftest*
7408:
7409: ac_outfile=conftest.$ac_objext
7410: echo "$lt_simple_link_test_code" >conftest.$ac_ext
7411: eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7412: _lt_linker_boilerplate=`cat conftest.err`
7413: $RM -r conftest*
7414:
7415:
7416: ## CAVEAT EMPTOR:
7417: ## There is no encapsulation within the following macros, do not change
7418: ## the running order or otherwise move them around unless you know exactly
7419: ## what you are doing...
7420: if test -n "$compiler"; then
7421:
7422: lt_prog_compiler_no_builtin_flag=
7423:
7424: if test "$GCC" = yes; then
7425: lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7426:
7427: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7428: $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7429: if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7430: $as_echo_n "(cached) " >&6
7431: else
7432: lt_cv_prog_compiler_rtti_exceptions=no
7433: ac_outfile=conftest.$ac_objext
7434: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7435: lt_compiler_flag="-fno-rtti -fno-exceptions"
7436: # Insert the option either (1) after the last *FLAGS variable, or
7437: # (2) before a word containing "conftest.", or (3) at the end.
7438: # Note that $ac_compile itself does not contain backslashes and begins
7439: # with a dollar sign (not a hyphen), so the echo should work correctly.
7440: # The option is referenced via a variable to avoid confusing sed.
7441: lt_compile=`echo "$ac_compile" | $SED \
7442: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7443: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7444: -e 's:$: $lt_compiler_flag:'`
7445: (eval echo "\"\$as_me:7445: $lt_compile\"" >&5)
7446: (eval "$lt_compile" 2>conftest.err)
7447: ac_status=$?
7448: cat conftest.err >&5
7449: echo "$as_me:7449: \$? = $ac_status" >&5
7450: if (exit $ac_status) && test -s "$ac_outfile"; then
7451: # The compiler can only warn and ignore the option if not recognized
7452: # So say no if there are warnings other than the usual output.
7453: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7454: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7455: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7456: lt_cv_prog_compiler_rtti_exceptions=yes
7457: fi
7458: fi
7459: $RM conftest*
7460:
7461: fi
7462: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7463: $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7464:
7465: if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7466: lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7467: else
7468: :
7469: fi
7470:
7471: fi
7472:
7473:
7474:
7475:
7476:
7477:
7478: lt_prog_compiler_wl=
7479: lt_prog_compiler_pic=
7480: lt_prog_compiler_static=
7481:
7482: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7483: $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7484:
7485: if test "$GCC" = yes; then
7486: lt_prog_compiler_wl='-Wl,'
7487: lt_prog_compiler_static='-static'
7488:
7489: case $host_os in
7490: aix*)
7491: # All AIX code is PIC.
7492: if test "$host_cpu" = ia64; then
7493: # AIX 5 now supports IA64 processor
7494: lt_prog_compiler_static='-Bstatic'
7495: fi
7496: ;;
7497:
7498: amigaos*)
7499: case $host_cpu in
7500: powerpc)
7501: # see comment about AmigaOS4 .so support
7502: lt_prog_compiler_pic='-fPIC'
7503: ;;
7504: m68k)
7505: # FIXME: we need at least 68020 code to build shared libraries, but
7506: # adding the `-m68020' flag to GCC prevents building anything better,
7507: # like `-m68040'.
7508: lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7509: ;;
7510: esac
7511: ;;
7512:
7513: beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7514: # PIC is the default for these OSes.
7515: ;;
7516:
7517: mingw* | cygwin* | pw32* | os2* | cegcc*)
7518: # This hack is so that the source file can tell whether it is being
7519: # built for inclusion in a dll (and should export symbols for example).
7520: # Although the cygwin gcc ignores -fPIC, still need this for old-style
7521: # (--disable-auto-import) libraries
7522: lt_prog_compiler_pic='-DDLL_EXPORT'
7523: ;;
7524:
7525: darwin* | rhapsody*)
7526: # PIC is the default on this platform
7527: # Common symbols not allowed in MH_DYLIB files
7528: lt_prog_compiler_pic='-fno-common'
7529: ;;
7530:
7531: hpux*)
7532: # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7533: # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7534: # sets the default TLS model and affects inlining.
7535: case $host_cpu in
7536: hppa*64*)
7537: # +Z the default
7538: ;;
7539: *)
7540: lt_prog_compiler_pic='-fPIC'
7541: ;;
7542: esac
7543: ;;
7544:
7545: interix[3-9]*)
7546: # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7547: # Instead, we relocate shared libraries at runtime.
7548: ;;
7549:
7550: msdosdjgpp*)
7551: # Just because we use GCC doesn't mean we suddenly get shared libraries
7552: # on systems that don't support them.
7553: lt_prog_compiler_can_build_shared=no
7554: enable_shared=no
7555: ;;
7556:
7557: *nto* | *qnx*)
7558: # QNX uses GNU C++, but need to define -shared option too, otherwise
7559: # it will coredump.
7560: lt_prog_compiler_pic='-fPIC -shared'
7561: ;;
7562:
7563: sysv4*MP*)
7564: if test -d /usr/nec; then
7565: lt_prog_compiler_pic=-Kconform_pic
7566: fi
7567: ;;
7568:
7569: *)
7570: lt_prog_compiler_pic='-fPIC'
7571: ;;
7572: esac
7573: else
7574: # PORTME Check for flag to pass linker flags through the system compiler.
7575: case $host_os in
7576: aix*)
7577: lt_prog_compiler_wl='-Wl,'
7578: if test "$host_cpu" = ia64; then
7579: # AIX 5 now supports IA64 processor
7580: lt_prog_compiler_static='-Bstatic'
7581: else
7582: lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7583: fi
7584: ;;
7585:
7586: mingw* | cygwin* | pw32* | os2* | cegcc*)
7587: # This hack is so that the source file can tell whether it is being
7588: # built for inclusion in a dll (and should export symbols for example).
7589: lt_prog_compiler_pic='-DDLL_EXPORT'
7590: ;;
7591:
7592: hpux9* | hpux10* | hpux11*)
7593: lt_prog_compiler_wl='-Wl,'
7594: # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7595: # not for PA HP-UX.
7596: case $host_cpu in
7597: hppa*64*|ia64*)
7598: # +Z the default
7599: ;;
7600: *)
7601: lt_prog_compiler_pic='+Z'
7602: ;;
7603: esac
7604: # Is there a better lt_prog_compiler_static that works with the bundled CC?
7605: lt_prog_compiler_static='${wl}-a ${wl}archive'
7606: ;;
7607:
7608: irix5* | irix6* | nonstopux*)
7609: lt_prog_compiler_wl='-Wl,'
7610: # PIC (with -KPIC) is the default.
7611: lt_prog_compiler_static='-non_shared'
7612: ;;
7613:
7614: linux* | k*bsd*-gnu)
7615: case $cc_basename in
7616: # old Intel for x86_64 which still supported -KPIC.
7617: ecc*)
7618: lt_prog_compiler_wl='-Wl,'
7619: lt_prog_compiler_pic='-KPIC'
7620: lt_prog_compiler_static='-static'
7621: ;;
7622: # icc used to be incompatible with GCC.
7623: # ICC 10 doesn't accept -KPIC any more.
7624: icc* | ifort*)
7625: lt_prog_compiler_wl='-Wl,'
7626: lt_prog_compiler_pic='-fPIC'
7627: lt_prog_compiler_static='-static'
7628: ;;
7629: # Lahey Fortran 8.1.
7630: lf95*)
7631: lt_prog_compiler_wl='-Wl,'
7632: lt_prog_compiler_pic='--shared'
7633: lt_prog_compiler_static='--static'
7634: ;;
7635: pgcc* | pgf77* | pgf90* | pgf95*)
7636: # Portland Group compilers (*not* the Pentium gcc compiler,
7637: # which looks to be a dead project)
7638: lt_prog_compiler_wl='-Wl,'
7639: lt_prog_compiler_pic='-fpic'
7640: lt_prog_compiler_static='-Bstatic'
7641: ;;
7642: ccc*)
7643: lt_prog_compiler_wl='-Wl,'
7644: # All Alpha code is PIC.
7645: lt_prog_compiler_static='-non_shared'
7646: ;;
7647: xl*)
7648: # IBM XL C 8.0/Fortran 10.1 on PPC
7649: lt_prog_compiler_wl='-Wl,'
7650: lt_prog_compiler_pic='-qpic'
7651: lt_prog_compiler_static='-qstaticlink'
7652: ;;
7653: *)
7654: case `$CC -V 2>&1 | sed 5q` in
7655: *Sun\ C*)
7656: # Sun C 5.9
7657: lt_prog_compiler_pic='-KPIC'
7658: lt_prog_compiler_static='-Bstatic'
7659: lt_prog_compiler_wl='-Wl,'
7660: ;;
7661: *Sun\ F*)
7662: # Sun Fortran 8.3 passes all unrecognized flags to the linker
7663: lt_prog_compiler_pic='-KPIC'
7664: lt_prog_compiler_static='-Bstatic'
7665: lt_prog_compiler_wl=''
7666: ;;
7667: esac
7668: ;;
7669: esac
7670: ;;
7671:
7672: newsos6)
7673: lt_prog_compiler_pic='-KPIC'
7674: lt_prog_compiler_static='-Bstatic'
7675: ;;
7676:
7677: *nto* | *qnx*)
7678: # QNX uses GNU C++, but need to define -shared option too, otherwise
7679: # it will coredump.
7680: lt_prog_compiler_pic='-fPIC -shared'
7681: ;;
7682:
7683: osf3* | osf4* | osf5*)
7684: lt_prog_compiler_wl='-Wl,'
7685: # All OSF/1 code is PIC.
7686: lt_prog_compiler_static='-non_shared'
7687: ;;
7688:
7689: rdos*)
7690: lt_prog_compiler_static='-non_shared'
7691: ;;
7692:
7693: solaris*)
7694: lt_prog_compiler_pic='-KPIC'
7695: lt_prog_compiler_static='-Bstatic'
7696: case $cc_basename in
7697: f77* | f90* | f95*)
7698: lt_prog_compiler_wl='-Qoption ld ';;
7699: *)
7700: lt_prog_compiler_wl='-Wl,';;
7701: esac
7702: ;;
7703:
7704: sunos4*)
7705: lt_prog_compiler_wl='-Qoption ld '
7706: lt_prog_compiler_pic='-PIC'
7707: lt_prog_compiler_static='-Bstatic'
7708: ;;
7709:
7710: sysv4 | sysv4.2uw2* | sysv4.3*)
7711: lt_prog_compiler_wl='-Wl,'
7712: lt_prog_compiler_pic='-KPIC'
7713: lt_prog_compiler_static='-Bstatic'
7714: ;;
7715:
7716: sysv4*MP*)
7717: if test -d /usr/nec ;then
7718: lt_prog_compiler_pic='-Kconform_pic'
7719: lt_prog_compiler_static='-Bstatic'
7720: fi
7721: ;;
7722:
7723: sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7724: lt_prog_compiler_wl='-Wl,'
7725: lt_prog_compiler_pic='-KPIC'
7726: lt_prog_compiler_static='-Bstatic'
7727: ;;
7728:
7729: unicos*)
7730: lt_prog_compiler_wl='-Wl,'
7731: lt_prog_compiler_can_build_shared=no
7732: ;;
7733:
7734: uts4*)
7735: lt_prog_compiler_pic='-pic'
7736: lt_prog_compiler_static='-Bstatic'
7737: ;;
7738:
7739: *)
7740: lt_prog_compiler_can_build_shared=no
7741: ;;
7742: esac
7743: fi
7744:
7745: case $host_os in
7746: # For platforms which do not support PIC, -DPIC is meaningless:
7747: *djgpp*)
7748: lt_prog_compiler_pic=
7749: ;;
7750: *)
7751: lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7752: ;;
7753: esac
7754: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7755: $as_echo "$lt_prog_compiler_pic" >&6; }
7756:
7757:
7758:
7759:
7760:
7761:
7762: #
7763: # Check to make sure the PIC flag actually works.
7764: #
7765: if test -n "$lt_prog_compiler_pic"; then
7766: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7767: $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7768: if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
7769: $as_echo_n "(cached) " >&6
7770: else
7771: lt_cv_prog_compiler_pic_works=no
7772: ac_outfile=conftest.$ac_objext
7773: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7774: lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7775: # Insert the option either (1) after the last *FLAGS variable, or
7776: # (2) before a word containing "conftest.", or (3) at the end.
7777: # Note that $ac_compile itself does not contain backslashes and begins
7778: # with a dollar sign (not a hyphen), so the echo should work correctly.
7779: # The option is referenced via a variable to avoid confusing sed.
7780: lt_compile=`echo "$ac_compile" | $SED \
7781: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7782: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7783: -e 's:$: $lt_compiler_flag:'`
7784: (eval echo "\"\$as_me:7784: $lt_compile\"" >&5)
7785: (eval "$lt_compile" 2>conftest.err)
7786: ac_status=$?
7787: cat conftest.err >&5
7788: echo "$as_me:7788: \$? = $ac_status" >&5
7789: if (exit $ac_status) && test -s "$ac_outfile"; then
7790: # The compiler can only warn and ignore the option if not recognized
7791: # So say no if there are warnings other than the usual output.
7792: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7793: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7794: if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7795: lt_cv_prog_compiler_pic_works=yes
7796: fi
7797: fi
7798: $RM conftest*
7799:
7800: fi
7801: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
7802: $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7803:
7804: if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7805: case $lt_prog_compiler_pic in
7806: "" | " "*) ;;
7807: *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7808: esac
7809: else
7810: lt_prog_compiler_pic=
7811: lt_prog_compiler_can_build_shared=no
7812: fi
7813:
7814: fi
7815:
7816:
7817:
7818:
7819:
7820:
7821: #
7822: # Check to make sure the static flag actually works.
7823: #
7824: wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7825: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7826: $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7827: if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
7828: $as_echo_n "(cached) " >&6
7829: else
7830: lt_cv_prog_compiler_static_works=no
7831: save_LDFLAGS="$LDFLAGS"
7832: LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7833: echo "$lt_simple_link_test_code" > conftest.$ac_ext
7834: if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7835: # The linker can only warn and ignore the option if not recognized
7836: # So say no if there are warnings
7837: if test -s conftest.err; then
7838: # Append any errors to the config.log.
7839: cat conftest.err 1>&5
7840: $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7841: $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7842: if diff conftest.exp conftest.er2 >/dev/null; then
7843: lt_cv_prog_compiler_static_works=yes
7844: fi
7845: else
7846: lt_cv_prog_compiler_static_works=yes
7847: fi
7848: fi
7849: $RM -r conftest*
7850: LDFLAGS="$save_LDFLAGS"
7851:
7852: fi
7853: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
7854: $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7855:
7856: if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7857: :
7858: else
7859: lt_prog_compiler_static=
7860: fi
7861:
7862:
7863:
7864:
7865:
7866:
7867:
7868: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7869: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7870: if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7871: $as_echo_n "(cached) " >&6
7872: else
7873: lt_cv_prog_compiler_c_o=no
7874: $RM -r conftest 2>/dev/null
7875: mkdir conftest
7876: cd conftest
7877: mkdir out
7878: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7879:
7880: lt_compiler_flag="-o out/conftest2.$ac_objext"
7881: # Insert the option either (1) after the last *FLAGS variable, or
7882: # (2) before a word containing "conftest.", or (3) at the end.
7883: # Note that $ac_compile itself does not contain backslashes and begins
7884: # with a dollar sign (not a hyphen), so the echo should work correctly.
7885: lt_compile=`echo "$ac_compile" | $SED \
7886: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7887: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7888: -e 's:$: $lt_compiler_flag:'`
7889: (eval echo "\"\$as_me:7889: $lt_compile\"" >&5)
7890: (eval "$lt_compile" 2>out/conftest.err)
7891: ac_status=$?
7892: cat out/conftest.err >&5
7893: echo "$as_me:7893: \$? = $ac_status" >&5
7894: if (exit $ac_status) && test -s out/conftest2.$ac_objext
7895: then
7896: # The compiler can only warn and ignore the option if not recognized
7897: # So say no if there are warnings
7898: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7899: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7900: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7901: lt_cv_prog_compiler_c_o=yes
7902: fi
7903: fi
7904: chmod u+w . 2>&5
7905: $RM conftest*
7906: # SGI C++ compiler will create directory out/ii_files/ for
7907: # template instantiation
7908: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7909: $RM out/* && rmdir out
7910: cd ..
7911: $RM -r conftest
7912: $RM conftest*
7913:
7914: fi
7915: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7916: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7917:
7918:
7919:
7920:
7921:
7922:
7923: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7924: $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7925: if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
7926: $as_echo_n "(cached) " >&6
7927: else
7928: lt_cv_prog_compiler_c_o=no
7929: $RM -r conftest 2>/dev/null
7930: mkdir conftest
7931: cd conftest
7932: mkdir out
7933: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7934:
7935: lt_compiler_flag="-o out/conftest2.$ac_objext"
7936: # Insert the option either (1) after the last *FLAGS variable, or
7937: # (2) before a word containing "conftest.", or (3) at the end.
7938: # Note that $ac_compile itself does not contain backslashes and begins
7939: # with a dollar sign (not a hyphen), so the echo should work correctly.
7940: lt_compile=`echo "$ac_compile" | $SED \
7941: -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7942: -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7943: -e 's:$: $lt_compiler_flag:'`
7944: (eval echo "\"\$as_me:7944: $lt_compile\"" >&5)
7945: (eval "$lt_compile" 2>out/conftest.err)
7946: ac_status=$?
7947: cat out/conftest.err >&5
7948: echo "$as_me:7948: \$? = $ac_status" >&5
7949: if (exit $ac_status) && test -s out/conftest2.$ac_objext
7950: then
7951: # The compiler can only warn and ignore the option if not recognized
7952: # So say no if there are warnings
7953: $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7954: $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7955: if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7956: lt_cv_prog_compiler_c_o=yes
7957: fi
7958: fi
7959: chmod u+w . 2>&5
7960: $RM conftest*
7961: # SGI C++ compiler will create directory out/ii_files/ for
7962: # template instantiation
7963: test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
7964: $RM out/* && rmdir out
7965: cd ..
7966: $RM -r conftest
7967: $RM conftest*
7968:
7969: fi
7970: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7971: $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7972:
7973:
7974:
7975:
7976: hard_links="nottested"
7977: if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7978: # do not overwrite the value of need_locks provided by the user
7979: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7980: $as_echo_n "checking if we can lock with hard links... " >&6; }
7981: hard_links=yes
7982: $RM conftest*
7983: ln conftest.a conftest.b 2>/dev/null && hard_links=no
7984: touch conftest.a
7985: ln conftest.a conftest.b 2>&5 || hard_links=no
7986: ln conftest.a conftest.b 2>/dev/null && hard_links=no
7987: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7988: $as_echo "$hard_links" >&6; }
7989: if test "$hard_links" = no; then
7990: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7991: $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7992: need_locks=warn
7993: fi
7994: else
7995: need_locks=no
7996: fi
7997:
7998:
7999:
8000:
8001:
8002:
8003: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8004: $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8005:
8006: runpath_var=
8007: allow_undefined_flag=
8008: always_export_symbols=no
8009: archive_cmds=
8010: archive_expsym_cmds=
8011: compiler_needs_object=no
8012: enable_shared_with_static_runtimes=no
8013: export_dynamic_flag_spec=
8014: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8015: hardcode_automatic=no
8016: hardcode_direct=no
8017: hardcode_direct_absolute=no
8018: hardcode_libdir_flag_spec=
8019: hardcode_libdir_flag_spec_ld=
8020: hardcode_libdir_separator=
8021: hardcode_minus_L=no
8022: hardcode_shlibpath_var=unsupported
8023: inherit_rpath=no
8024: link_all_deplibs=unknown
8025: module_cmds=
8026: module_expsym_cmds=
8027: old_archive_from_new_cmds=
8028: old_archive_from_expsyms_cmds=
8029: thread_safe_flag_spec=
8030: whole_archive_flag_spec=
8031: # include_expsyms should be a list of space-separated symbols to be *always*
8032: # included in the symbol list
8033: include_expsyms=
8034: # exclude_expsyms can be an extended regexp of symbols to exclude
8035: # it will be wrapped by ` (' and `)$', so one must not match beginning or
8036: # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8037: # as well as any symbol that contains `d'.
8038: exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8039: # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8040: # platforms (ab)use it in PIC code, but their linkers get confused if
8041: # the symbol is explicitly referenced. Since portable code cannot
8042: # rely on this symbol name, it's probably fine to never include it in
8043: # preloaded symbol tables.
8044: # Exclude shared library initialization/finalization symbols.
8045: extract_expsyms_cmds=
8046:
8047: case $host_os in
8048: cygwin* | mingw* | pw32* | cegcc*)
8049: # FIXME: the MSVC++ port hasn't been tested in a loooong time
8050: # When not using gcc, we currently assume that we are using
8051: # Microsoft Visual C++.
8052: if test "$GCC" != yes; then
8053: with_gnu_ld=no
8054: fi
8055: ;;
8056: interix*)
8057: # we just hope/assume this is gcc and not c89 (= MSVC++)
8058: with_gnu_ld=yes
8059: ;;
8060: openbsd*)
8061: with_gnu_ld=no
8062: ;;
8063: esac
8064:
8065: ld_shlibs=yes
8066: if test "$with_gnu_ld" = yes; then
8067: # If archive_cmds runs LD, not CC, wlarc should be empty
8068: wlarc='${wl}'
8069:
8070: # Set some defaults for GNU ld with shared library support. These
8071: # are reset later if shared libraries are not supported. Putting them
8072: # here allows them to be overridden if necessary.
8073: runpath_var=LD_RUN_PATH
8074: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8075: export_dynamic_flag_spec='${wl}--export-dynamic'
8076: # ancient GNU ld didn't support --whole-archive et. al.
8077: if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8078: whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8079: else
8080: whole_archive_flag_spec=
8081: fi
8082: supports_anon_versioning=no
8083: case `$LD -v 2>&1` in
8084: *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8085: *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8086: *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8087: *\ 2.11.*) ;; # other 2.11 versions
8088: *) supports_anon_versioning=yes ;;
8089: esac
8090:
8091: # See if GNU ld supports shared libraries.
8092: case $host_os in
8093: aix[3-9]*)
8094: # On AIX/PPC, the GNU linker is very broken
8095: if test "$host_cpu" != ia64; then
8096: ld_shlibs=no
8097: cat <<_LT_EOF 1>&2
8098:
8099: *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8100: *** to be unable to reliably create shared libraries on AIX.
8101: *** Therefore, libtool is disabling shared libraries support. If you
8102: *** really care for shared libraries, you may want to modify your PATH
8103: *** so that a non-GNU linker is found, and then restart.
8104:
8105: _LT_EOF
8106: fi
8107: ;;
8108:
8109: amigaos*)
8110: case $host_cpu in
8111: powerpc)
8112: # see comment about AmigaOS4 .so support
8113: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8114: archive_expsym_cmds=''
8115: ;;
8116: m68k)
8117: 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)'
8118: hardcode_libdir_flag_spec='-L$libdir'
8119: hardcode_minus_L=yes
8120: ;;
8121: esac
8122: ;;
8123:
8124: beos*)
8125: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8126: allow_undefined_flag=unsupported
8127: # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8128: # support --undefined. This deserves some investigation. FIXME
8129: archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8130: else
8131: ld_shlibs=no
8132: fi
8133: ;;
8134:
8135: cygwin* | mingw* | pw32* | cegcc*)
8136: # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8137: # as there is no search path for DLLs.
8138: hardcode_libdir_flag_spec='-L$libdir'
8139: allow_undefined_flag=unsupported
8140: always_export_symbols=no
8141: enable_shared_with_static_runtimes=yes
8142: export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8143:
8144: if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8145: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8146: # If the export-symbols file already is a .def file (1st line
8147: # is EXPORTS), use it as is; otherwise, prepend...
8148: archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8149: cp $export_symbols $output_objdir/$soname.def;
8150: else
8151: echo EXPORTS > $output_objdir/$soname.def;
8152: cat $export_symbols >> $output_objdir/$soname.def;
8153: fi~
8154: $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8155: else
8156: ld_shlibs=no
8157: fi
8158: ;;
8159:
8160: interix[3-9]*)
8161: hardcode_direct=no
8162: hardcode_shlibpath_var=no
8163: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8164: export_dynamic_flag_spec='${wl}-E'
8165: # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8166: # Instead, shared libraries are loaded at an image base (0x10000000 by
8167: # default) and relocated if they conflict, which is a slow very memory
8168: # consuming and fragmenting process. To avoid this, we pick a random,
8169: # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8170: # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8171: archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8172: 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'
8173: ;;
8174:
8175: gnu* | linux* | tpf* | k*bsd*-gnu)
8176: tmp_diet=no
8177: if test "$host_os" = linux-dietlibc; then
8178: case $cc_basename in
8179: diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8180: esac
8181: fi
8182: if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8183: && test "$tmp_diet" = no
8184: then
8185: tmp_addflag=
8186: tmp_sharedflag='-shared'
8187: case $cc_basename,$host_cpu in
8188: pgcc*) # Portland Group C compiler
8189: 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'
8190: tmp_addflag=' $pic_flag'
8191: ;;
8192: pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8193: 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'
8194: tmp_addflag=' $pic_flag -Mnomain' ;;
8195: ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8196: tmp_addflag=' -i_dynamic' ;;
8197: efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8198: tmp_addflag=' -i_dynamic -nofor_main' ;;
8199: ifc* | ifort*) # Intel Fortran compiler
8200: tmp_addflag=' -nofor_main' ;;
8201: lf95*) # Lahey Fortran 8.1
8202: whole_archive_flag_spec=
8203: tmp_sharedflag='--shared' ;;
8204: xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8205: tmp_sharedflag='-qmkshrobj'
8206: tmp_addflag= ;;
8207: esac
8208: case `$CC -V 2>&1 | sed 5q` in
8209: *Sun\ C*) # Sun C 5.9
8210: 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'
8211: compiler_needs_object=yes
8212: tmp_sharedflag='-G' ;;
8213: *Sun\ F*) # Sun Fortran 8.3
8214: tmp_sharedflag='-G' ;;
8215: esac
8216: archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8217:
8218: if test "x$supports_anon_versioning" = xyes; then
8219: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8220: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8221: echo "local: *; };" >> $output_objdir/$libname.ver~
8222: $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8223: fi
8224:
8225: case $cc_basename in
8226: xlf*)
8227: # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8228: whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8229: hardcode_libdir_flag_spec=
8230: hardcode_libdir_flag_spec_ld='-rpath $libdir'
8231: archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8232: if test "x$supports_anon_versioning" = xyes; then
8233: archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8234: cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8235: echo "local: *; };" >> $output_objdir/$libname.ver~
8236: $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8237: fi
8238: ;;
8239: esac
8240: else
8241: ld_shlibs=no
8242: fi
8243: ;;
8244:
8245: netbsd*)
8246: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8247: archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8248: wlarc=
8249: else
8250: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8251: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8252: fi
8253: ;;
8254:
8255: solaris*)
8256: if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8257: ld_shlibs=no
8258: cat <<_LT_EOF 1>&2
8259:
8260: *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8261: *** create shared libraries on Solaris systems. Therefore, libtool
8262: *** is disabling shared libraries support. We urge you to upgrade GNU
8263: *** binutils to release 2.9.1 or newer. Another option is to modify
8264: *** your PATH or compiler configuration so that the native linker is
8265: *** used, and then restart.
8266:
8267: _LT_EOF
8268: elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8269: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8270: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8271: else
8272: ld_shlibs=no
8273: fi
8274: ;;
8275:
8276: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8277: case `$LD -v 2>&1` in
8278: *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8279: ld_shlibs=no
8280: cat <<_LT_EOF 1>&2
8281:
8282: *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8283: *** reliably create shared libraries on SCO systems. Therefore, libtool
8284: *** is disabling shared libraries support. We urge you to upgrade GNU
8285: *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8286: *** your PATH or compiler configuration so that the native linker is
8287: *** used, and then restart.
8288:
8289: _LT_EOF
8290: ;;
8291: *)
8292: # For security reasons, it is highly recommended that you always
8293: # use absolute paths for naming shared libraries, and exclude the
8294: # DT_RUNPATH tag from executables and libraries. But doing so
8295: # requires that you compile everything twice, which is a pain.
8296: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8297: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8298: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8299: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8300: else
8301: ld_shlibs=no
8302: fi
8303: ;;
8304: esac
8305: ;;
8306:
8307: sunos4*)
8308: archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8309: wlarc=
8310: hardcode_direct=yes
8311: hardcode_shlibpath_var=no
8312: ;;
8313:
8314: *)
8315: if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8316: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8317: archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8318: else
8319: ld_shlibs=no
8320: fi
8321: ;;
8322: esac
8323:
8324: if test "$ld_shlibs" = no; then
8325: runpath_var=
8326: hardcode_libdir_flag_spec=
8327: export_dynamic_flag_spec=
8328: whole_archive_flag_spec=
8329: fi
8330: else
8331: # PORTME fill in a description of your system's linker (not GNU ld)
8332: case $host_os in
8333: aix3*)
8334: allow_undefined_flag=unsupported
8335: always_export_symbols=yes
8336: 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'
8337: # Note: this linker hardcodes the directories in LIBPATH if there
8338: # are no directories specified by -L.
8339: hardcode_minus_L=yes
8340: if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8341: # Neither direct hardcoding nor static linking is supported with a
8342: # broken collect2.
8343: hardcode_direct=unsupported
8344: fi
8345: ;;
8346:
8347: aix[4-9]*)
8348: if test "$host_cpu" = ia64; then
8349: # On IA64, the linker does run time linking by default, so we don't
8350: # have to do anything special.
8351: aix_use_runtimelinking=no
8352: exp_sym_flag='-Bexport'
8353: no_entry_flag=""
8354: else
8355: # If we're using GNU nm, then we don't want the "-C" option.
8356: # -C means demangle to AIX nm, but means don't demangle with GNU nm
8357: if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8358: 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'
8359: else
8360: 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'
8361: fi
8362: aix_use_runtimelinking=no
8363:
8364: # Test if we are trying to use run time linking or normal
8365: # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8366: # need to do runtime linking.
8367: case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8368: for ld_flag in $LDFLAGS; do
8369: if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8370: aix_use_runtimelinking=yes
8371: break
8372: fi
8373: done
8374: ;;
8375: esac
8376:
8377: exp_sym_flag='-bexport'
8378: no_entry_flag='-bnoentry'
8379: fi
8380:
8381: # When large executables or shared objects are built, AIX ld can
8382: # have problems creating the table of contents. If linking a library
8383: # or program results in "error TOC overflow" add -mminimal-toc to
8384: # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8385: # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8386:
8387: archive_cmds=''
8388: hardcode_direct=yes
8389: hardcode_direct_absolute=yes
8390: hardcode_libdir_separator=':'
8391: link_all_deplibs=yes
8392: file_list_spec='${wl}-f,'
8393:
8394: if test "$GCC" = yes; then
8395: case $host_os in aix4.[012]|aix4.[012].*)
8396: # We only want to do this on AIX 4.2 and lower, the check
8397: # below for broken collect2 doesn't work under 4.3+
8398: collect2name=`${CC} -print-prog-name=collect2`
8399: if test -f "$collect2name" &&
8400: strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8401: then
8402: # We have reworked collect2
8403: :
8404: else
8405: # We have old collect2
8406: hardcode_direct=unsupported
8407: # It fails to find uninstalled libraries when the uninstalled
8408: # path is not listed in the libpath. Setting hardcode_minus_L
8409: # to unsupported forces relinking
8410: hardcode_minus_L=yes
8411: hardcode_libdir_flag_spec='-L$libdir'
8412: hardcode_libdir_separator=
8413: fi
8414: ;;
8415: esac
8416: shared_flag='-shared'
8417: if test "$aix_use_runtimelinking" = yes; then
8418: shared_flag="$shared_flag "'${wl}-G'
8419: fi
8420: else
8421: # not using gcc
8422: if test "$host_cpu" = ia64; then
8423: # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8424: # chokes on -Wl,-G. The following line is correct:
8425: shared_flag='-G'
8426: else
8427: if test "$aix_use_runtimelinking" = yes; then
8428: shared_flag='${wl}-G'
8429: else
8430: shared_flag='${wl}-bM:SRE'
8431: fi
8432: fi
8433: fi
8434:
8435: export_dynamic_flag_spec='${wl}-bexpall'
8436: # It seems that -bexpall does not export symbols beginning with
8437: # underscore (_), so it is better to generate a list of symbols to export.
8438: always_export_symbols=yes
8439: if test "$aix_use_runtimelinking" = yes; then
8440: # Warning - without using the other runtime loading flags (-brtl),
8441: # -berok will link without error, but may produce a broken library.
8442: allow_undefined_flag='-berok'
8443: # Determine the default libpath from the value encoded in an
8444: # empty executable.
8445: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8446: /* end confdefs.h. */
8447:
8448: int
8449: main ()
8450: {
8451:
8452: ;
8453: return 0;
8454: }
8455: _ACEOF
8456: if ac_fn_c_try_link "$LINENO"; then :
8457:
8458: lt_aix_libpath_sed='
8459: /Import File Strings/,/^$/ {
8460: /^0/ {
8461: s/^0 *\(.*\)$/\1/
8462: p
8463: }
8464: }'
8465: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8466: # Check for a 64-bit object if we didn't find anything.
8467: if test -z "$aix_libpath"; then
8468: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8469: fi
8470: fi
8471: rm -f core conftest.err conftest.$ac_objext \
8472: conftest$ac_exeext conftest.$ac_ext
8473: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8474:
8475: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8476: 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"
8477: else
8478: if test "$host_cpu" = ia64; then
8479: hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8480: allow_undefined_flag="-z nodefs"
8481: 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"
8482: else
8483: # Determine the default libpath from the value encoded in an
8484: # empty executable.
8485: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8486: /* end confdefs.h. */
8487:
8488: int
8489: main ()
8490: {
8491:
8492: ;
8493: return 0;
8494: }
8495: _ACEOF
8496: if ac_fn_c_try_link "$LINENO"; then :
8497:
8498: lt_aix_libpath_sed='
8499: /Import File Strings/,/^$/ {
8500: /^0/ {
8501: s/^0 *\(.*\)$/\1/
8502: p
8503: }
8504: }'
8505: aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8506: # Check for a 64-bit object if we didn't find anything.
8507: if test -z "$aix_libpath"; then
8508: aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8509: fi
8510: fi
8511: rm -f core conftest.err conftest.$ac_objext \
8512: conftest$ac_exeext conftest.$ac_ext
8513: if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8514:
8515: hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8516: # Warning - without using the other run time loading flags,
8517: # -berok will link without error, but may produce a broken library.
8518: no_undefined_flag=' ${wl}-bernotok'
8519: allow_undefined_flag=' ${wl}-berok'
8520: # Exported symbols can be pulled into shared objects from archives
8521: whole_archive_flag_spec='$convenience'
8522: archive_cmds_need_lc=yes
8523: # This is similar to how AIX traditionally builds its shared libraries.
8524: 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'
8525: fi
8526: fi
8527: ;;
8528:
8529: amigaos*)
8530: case $host_cpu in
8531: powerpc)
8532: # see comment about AmigaOS4 .so support
8533: archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8534: archive_expsym_cmds=''
8535: ;;
8536: m68k)
8537: 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)'
8538: hardcode_libdir_flag_spec='-L$libdir'
8539: hardcode_minus_L=yes
8540: ;;
8541: esac
8542: ;;
8543:
8544: bsdi[45]*)
8545: export_dynamic_flag_spec=-rdynamic
8546: ;;
8547:
8548: cygwin* | mingw* | pw32* | cegcc*)
8549: # When not using gcc, we currently assume that we are using
8550: # Microsoft Visual C++.
8551: # hardcode_libdir_flag_spec is actually meaningless, as there is
8552: # no search path for DLLs.
8553: hardcode_libdir_flag_spec=' '
8554: allow_undefined_flag=unsupported
8555: # Tell ltmain to make .lib files, not .a files.
8556: libext=lib
8557: # Tell ltmain to make .dll files, not .so files.
8558: shrext_cmds=".dll"
8559: # FIXME: Setting linknames here is a bad hack.
8560: archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8561: # The linker will automatically build a .lib file if we build a DLL.
8562: old_archive_from_new_cmds='true'
8563: # FIXME: Should let the user specify the lib program.
8564: old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8565: fix_srcfile_path='`cygpath -w "$srcfile"`'
8566: enable_shared_with_static_runtimes=yes
8567: ;;
8568:
8569: darwin* | rhapsody*)
8570:
8571:
8572: archive_cmds_need_lc=no
8573: hardcode_direct=no
8574: hardcode_automatic=yes
8575: hardcode_shlibpath_var=unsupported
8576: whole_archive_flag_spec=''
8577: link_all_deplibs=yes
8578: allow_undefined_flag="$_lt_dar_allow_undefined"
8579: case $cc_basename in
8580: ifort*) _lt_dar_can_shared=yes ;;
8581: *) _lt_dar_can_shared=$GCC ;;
8582: esac
8583: if test "$_lt_dar_can_shared" = "yes"; then
8584: output_verbose_link_cmd=echo
8585: archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8586: module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8587: 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}"
8588: 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}"
8589:
8590: else
8591: ld_shlibs=no
8592: fi
8593:
8594: ;;
8595:
8596: dgux*)
8597: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8598: hardcode_libdir_flag_spec='-L$libdir'
8599: hardcode_shlibpath_var=no
8600: ;;
8601:
8602: freebsd1*)
8603: ld_shlibs=no
8604: ;;
8605:
8606: # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8607: # support. Future versions do this automatically, but an explicit c++rt0.o
8608: # does not break anything, and helps significantly (at the cost of a little
8609: # extra space).
8610: freebsd2.2*)
8611: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8612: hardcode_libdir_flag_spec='-R$libdir'
8613: hardcode_direct=yes
8614: hardcode_shlibpath_var=no
8615: ;;
8616:
8617: # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8618: freebsd2*)
8619: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8620: hardcode_direct=yes
8621: hardcode_minus_L=yes
8622: hardcode_shlibpath_var=no
8623: ;;
8624:
8625: # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8626: freebsd* | dragonfly*)
8627: archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8628: hardcode_libdir_flag_spec='-R$libdir'
8629: hardcode_direct=yes
8630: hardcode_shlibpath_var=no
8631: ;;
8632:
8633: hpux9*)
8634: if test "$GCC" = yes; then
8635: 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'
8636: else
8637: 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'
8638: fi
8639: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8640: hardcode_libdir_separator=:
8641: hardcode_direct=yes
8642:
8643: # hardcode_minus_L: Not really in the search PATH,
8644: # but as the default location of the library.
8645: hardcode_minus_L=yes
8646: export_dynamic_flag_spec='${wl}-E'
8647: ;;
8648:
8649: hpux10*)
8650: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8651: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8652: else
8653: archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8654: fi
8655: if test "$with_gnu_ld" = no; then
8656: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8657: hardcode_libdir_flag_spec_ld='+b $libdir'
8658: hardcode_libdir_separator=:
8659: hardcode_direct=yes
8660: hardcode_direct_absolute=yes
8661: export_dynamic_flag_spec='${wl}-E'
8662: # hardcode_minus_L: Not really in the search PATH,
8663: # but as the default location of the library.
8664: hardcode_minus_L=yes
8665: fi
8666: ;;
8667:
8668: hpux11*)
8669: if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8670: case $host_cpu in
8671: hppa*64*)
8672: archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8673: ;;
8674: ia64*)
8675: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8676: ;;
8677: *)
8678: archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8679: ;;
8680: esac
8681: else
8682: case $host_cpu in
8683: hppa*64*)
8684: archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8685: ;;
8686: ia64*)
8687: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8688: ;;
8689: *)
8690: archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8691: ;;
8692: esac
8693: fi
8694: if test "$with_gnu_ld" = no; then
8695: hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8696: hardcode_libdir_separator=:
8697:
8698: case $host_cpu in
8699: hppa*64*|ia64*)
8700: hardcode_direct=no
8701: hardcode_shlibpath_var=no
8702: ;;
8703: *)
8704: hardcode_direct=yes
8705: hardcode_direct_absolute=yes
8706: export_dynamic_flag_spec='${wl}-E'
8707:
8708: # hardcode_minus_L: Not really in the search PATH,
8709: # but as the default location of the library.
8710: hardcode_minus_L=yes
8711: ;;
8712: esac
8713: fi
8714: ;;
8715:
8716: irix5* | irix6* | nonstopux*)
8717: if test "$GCC" = yes; then
8718: 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'
8719: # Try to use the -exported_symbol ld option, if it does not
8720: # work, assume that -exports_file does not work either and
8721: # implicitly export all symbols.
8722: save_LDFLAGS="$LDFLAGS"
8723: LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
8724: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8725: /* end confdefs.h. */
8726: int foo(void) {}
8727: _ACEOF
8728: if ac_fn_c_try_link "$LINENO"; then :
8729: 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'
8730:
8731: fi
8732: rm -f core conftest.err conftest.$ac_objext \
8733: conftest$ac_exeext conftest.$ac_ext
8734: LDFLAGS="$save_LDFLAGS"
8735: else
8736: 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'
8737: 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'
8738: fi
8739: archive_cmds_need_lc='no'
8740: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8741: hardcode_libdir_separator=:
8742: inherit_rpath=yes
8743: link_all_deplibs=yes
8744: ;;
8745:
8746: netbsd*)
8747: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8748: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8749: else
8750: archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8751: fi
8752: hardcode_libdir_flag_spec='-R$libdir'
8753: hardcode_direct=yes
8754: hardcode_shlibpath_var=no
8755: ;;
8756:
8757: newsos6)
8758: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8759: hardcode_direct=yes
8760: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8761: hardcode_libdir_separator=:
8762: hardcode_shlibpath_var=no
8763: ;;
8764:
8765: *nto* | *qnx*)
8766: ;;
8767:
8768: openbsd*)
8769: if test -f /usr/libexec/ld.so; then
8770: hardcode_direct=yes
8771: hardcode_shlibpath_var=no
8772: hardcode_direct_absolute=yes
8773: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8774: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8775: archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8776: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8777: export_dynamic_flag_spec='${wl}-E'
8778: else
8779: case $host_os in
8780: openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8781: archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8782: hardcode_libdir_flag_spec='-R$libdir'
8783: ;;
8784: *)
8785: archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8786: hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8787: ;;
8788: esac
8789: fi
8790: else
8791: ld_shlibs=no
8792: fi
8793: ;;
8794:
8795: os2*)
8796: hardcode_libdir_flag_spec='-L$libdir'
8797: hardcode_minus_L=yes
8798: allow_undefined_flag=unsupported
8799: 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'
8800: old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8801: ;;
8802:
8803: osf3*)
8804: if test "$GCC" = yes; then
8805: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8806: 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'
8807: else
8808: allow_undefined_flag=' -expect_unresolved \*'
8809: 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'
8810: fi
8811: archive_cmds_need_lc='no'
8812: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8813: hardcode_libdir_separator=:
8814: ;;
8815:
8816: osf4* | osf5*) # as osf3* with the addition of -msym flag
8817: if test "$GCC" = yes; then
8818: allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8819: 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'
8820: hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8821: else
8822: allow_undefined_flag=' -expect_unresolved \*'
8823: 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'
8824: 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~
8825: $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'
8826:
8827: # Both c and cxx compiler support -rpath directly
8828: hardcode_libdir_flag_spec='-rpath $libdir'
8829: fi
8830: archive_cmds_need_lc='no'
8831: hardcode_libdir_separator=:
8832: ;;
8833:
8834: solaris*)
8835: no_undefined_flag=' -z defs'
8836: if test "$GCC" = yes; then
8837: wlarc='${wl}'
8838: archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8839: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8840: $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8841: else
8842: case `$CC -V 2>&1` in
8843: *"Compilers 5.0"*)
8844: wlarc=''
8845: archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8846: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8847: $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
8848: ;;
8849: *)
8850: wlarc='${wl}'
8851: archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
8852: archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
8853: $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
8854: ;;
8855: esac
8856: fi
8857: hardcode_libdir_flag_spec='-R$libdir'
8858: hardcode_shlibpath_var=no
8859: case $host_os in
8860: solaris2.[0-5] | solaris2.[0-5].*) ;;
8861: *)
8862: # The compiler driver will combine and reorder linker options,
8863: # but understands `-z linker_flag'. GCC discards it without `$wl',
8864: # but is careful enough not to reorder.
8865: # Supported since Solaris 2.6 (maybe 2.5.1?)
8866: if test "$GCC" = yes; then
8867: whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8868: else
8869: whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8870: fi
8871: ;;
8872: esac
8873: link_all_deplibs=yes
8874: ;;
8875:
8876: sunos4*)
8877: if test "x$host_vendor" = xsequent; then
8878: # Use $CC to link under sequent, because it throws in some extra .o
8879: # files that make .init and .fini sections work.
8880: archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8881: else
8882: archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8883: fi
8884: hardcode_libdir_flag_spec='-L$libdir'
8885: hardcode_direct=yes
8886: hardcode_minus_L=yes
8887: hardcode_shlibpath_var=no
8888: ;;
8889:
8890: sysv4)
8891: case $host_vendor in
8892: sni)
8893: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8894: hardcode_direct=yes # is this really true???
8895: ;;
8896: siemens)
8897: ## LD is ld it makes a PLAMLIB
8898: ## CC just makes a GrossModule.
8899: archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8900: reload_cmds='$CC -r -o $output$reload_objs'
8901: hardcode_direct=no
8902: ;;
8903: motorola)
8904: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8905: hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8906: ;;
8907: esac
8908: runpath_var='LD_RUN_PATH'
8909: hardcode_shlibpath_var=no
8910: ;;
8911:
8912: sysv4.3*)
8913: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8914: hardcode_shlibpath_var=no
8915: export_dynamic_flag_spec='-Bexport'
8916: ;;
8917:
8918: sysv4*MP*)
8919: if test -d /usr/nec; then
8920: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8921: hardcode_shlibpath_var=no
8922: runpath_var=LD_RUN_PATH
8923: hardcode_runpath_var=yes
8924: ld_shlibs=yes
8925: fi
8926: ;;
8927:
8928: sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8929: no_undefined_flag='${wl}-z,text'
8930: archive_cmds_need_lc=no
8931: hardcode_shlibpath_var=no
8932: runpath_var='LD_RUN_PATH'
8933:
8934: if test "$GCC" = yes; then
8935: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8936: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8937: else
8938: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8939: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8940: fi
8941: ;;
8942:
8943: sysv5* | sco3.2v5* | sco5v6*)
8944: # Note: We can NOT use -z defs as we might desire, because we do not
8945: # link with -lc, and that would cause any symbols used from libc to
8946: # always be unresolved, which means just about no library would
8947: # ever link correctly. If we're not using GNU ld we use -z text
8948: # though, which does catch some bad symbols but isn't as heavy-handed
8949: # as -z defs.
8950: no_undefined_flag='${wl}-z,text'
8951: allow_undefined_flag='${wl}-z,nodefs'
8952: archive_cmds_need_lc=no
8953: hardcode_shlibpath_var=no
8954: hardcode_libdir_flag_spec='${wl}-R,$libdir'
8955: hardcode_libdir_separator=':'
8956: link_all_deplibs=yes
8957: export_dynamic_flag_spec='${wl}-Bexport'
8958: runpath_var='LD_RUN_PATH'
8959:
8960: if test "$GCC" = yes; then
8961: archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8962: archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8963: else
8964: archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8965: archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8966: fi
8967: ;;
8968:
8969: uts4*)
8970: archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971: hardcode_libdir_flag_spec='-L$libdir'
8972: hardcode_shlibpath_var=no
8973: ;;
8974:
8975: *)
8976: ld_shlibs=no
8977: ;;
8978: esac
8979:
8980: if test x$host_vendor = xsni; then
8981: case $host in
8982: sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8983: export_dynamic_flag_spec='${wl}-Blargedynsym'
8984: ;;
8985: esac
8986: fi
8987: fi
8988:
8989: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8990: $as_echo "$ld_shlibs" >&6; }
8991: test "$ld_shlibs" = no && can_build_shared=no
8992:
8993: with_gnu_ld=$with_gnu_ld
8994:
8995:
8996:
8997:
8998:
8999:
9000:
9001:
9002:
9003:
9004:
9005:
9006:
9007:
9008:
9009: #
9010: # Do we need to explicitly link libc?
9011: #
9012: case "x$archive_cmds_need_lc" in
9013: x|xyes)
9014: # Assume -lc should be added
9015: archive_cmds_need_lc=yes
9016:
9017: if test "$enable_shared" = yes && test "$GCC" = yes; then
9018: case $archive_cmds in
9019: *'~'*)
9020: # FIXME: we may have to deal with multi-command sequences.
9021: ;;
9022: '$CC '*)
9023: # Test whether the compiler implicitly links with -lc since on some
9024: # systems, -lgcc has to come before -lc. If gcc already passes -lc
9025: # to ld, don't add -lc before -lgcc.
9026: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9027: $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9028: $RM conftest*
9029: echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9030:
9031: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9032: (eval $ac_compile) 2>&5
9033: ac_status=$?
9034: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9035: test $ac_status = 0; } 2>conftest.err; then
9036: soname=conftest
9037: lib=conftest
9038: libobjs=conftest.$ac_objext
9039: deplibs=
9040: wl=$lt_prog_compiler_wl
9041: pic_flag=$lt_prog_compiler_pic
9042: compiler_flags=-v
9043: linker_flags=-v
9044: verstring=
9045: output_objdir=.
9046: libname=conftest
9047: lt_save_allow_undefined_flag=$allow_undefined_flag
9048: allow_undefined_flag=
9049: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9050: (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9051: ac_status=$?
9052: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9053: test $ac_status = 0; }
9054: then
9055: archive_cmds_need_lc=no
9056: else
9057: archive_cmds_need_lc=yes
9058: fi
9059: allow_undefined_flag=$lt_save_allow_undefined_flag
9060: else
9061: cat conftest.err 1>&5
9062: fi
9063: $RM conftest*
9064: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9065: $as_echo "$archive_cmds_need_lc" >&6; }
9066: ;;
9067: esac
9068: fi
9069: ;;
9070: esac
9071:
9072:
9073:
9074:
9075:
9076:
9077:
9078:
9079:
9080:
9081:
9082:
9083:
9084:
9085:
9086:
9087:
9088:
9089:
9090:
9091:
9092:
9093:
9094:
9095:
9096:
9097:
9098:
9099:
9100:
9101:
9102:
9103:
9104:
9105:
9106:
9107:
9108:
9109:
9110:
9111:
9112:
9113:
9114:
9115:
9116:
9117:
9118:
9119:
9120:
9121:
9122:
9123:
9124:
9125:
9126:
9127:
9128:
9129:
9130:
9131:
9132:
9133:
9134:
9135:
9136:
9137:
9138:
9139:
9140:
9141:
9142:
9143:
9144:
9145:
9146:
9147:
9148:
9149:
9150:
9151:
9152:
9153:
9154:
9155:
9156:
9157:
9158:
9159:
9160:
9161:
9162:
9163:
9164:
9165:
9166:
9167:
9168:
9169:
9170:
9171:
9172:
9173:
9174:
9175:
9176:
9177:
9178:
9179:
9180:
9181:
9182:
9183:
9184:
9185:
9186:
9187:
9188:
9189:
9190:
9191:
9192:
9193:
9194:
9195:
9196:
9197:
9198:
9199:
9200:
9201:
9202:
9203:
9204:
9205:
9206:
9207:
9208:
9209:
9210:
9211:
9212:
9213:
9214:
9215:
9216:
9217:
9218:
9219:
9220:
9221:
9222:
9223:
9224:
9225:
9226:
9227:
9228: { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9229: $as_echo_n "checking dynamic linker characteristics... " >&6; }
9230:
9231: if test "$GCC" = yes; then
9232: case $host_os in
9233: darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9234: *) lt_awk_arg="/^libraries:/" ;;
9235: esac
9236: lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9237: if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9238: # if the path contains ";" then we assume it to be the separator
9239: # otherwise default to the standard path separator (i.e. ":") - it is
9240: # assumed that no part of a normal pathname contains ";" but that should
9241: # okay in the real world where ";" in dirpaths is itself problematic.
9242: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9243: else
9244: lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9245: fi
9246: # Ok, now we have the path, separated by spaces, we can step through it
9247: # and add multilib dir if necessary.
9248: lt_tmp_lt_search_path_spec=
9249: lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9250: for lt_sys_path in $lt_search_path_spec; do
9251: if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9252: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9253: else
9254: test -d "$lt_sys_path" && \
9255: lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9256: fi
9257: done
9258: lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9259: BEGIN {RS=" "; FS="/|\n";} {
9260: lt_foo="";
9261: lt_count=0;
9262: for (lt_i = NF; lt_i > 0; lt_i--) {
9263: if ($lt_i != "" && $lt_i != ".") {
9264: if ($lt_i == "..") {
9265: lt_count++;
9266: } else {
9267: if (lt_count == 0) {
9268: lt_foo="/" $lt_i lt_foo;
9269: } else {
9270: lt_count--;
9271: }
9272: }
9273: }
9274: }
9275: if (lt_foo != "") { lt_freq[lt_foo]++; }
9276: if (lt_freq[lt_foo] == 1) { print lt_foo; }
9277: }'`
9278: sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9279: else
9280: sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9281: fi
9282: library_names_spec=
9283: libname_spec='lib$name'
9284: soname_spec=
9285: shrext_cmds=".so"
9286: postinstall_cmds=
9287: postuninstall_cmds=
9288: finish_cmds=
9289: finish_eval=
9290: shlibpath_var=
9291: shlibpath_overrides_runpath=unknown
9292: version_type=none
9293: dynamic_linker="$host_os ld.so"
9294: sys_lib_dlsearch_path_spec="/lib /usr/lib"
9295: need_lib_prefix=unknown
9296: hardcode_into_libs=no
9297:
9298: # when you set need_version to no, make sure it does not cause -set_version
9299: # flags to be left without arguments
9300: need_version=unknown
9301:
9302: case $host_os in
9303: aix3*)
9304: version_type=linux
9305: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9306: shlibpath_var=LIBPATH
9307:
9308: # AIX 3 has no versioning support, so we append a major version to the name.
9309: soname_spec='${libname}${release}${shared_ext}$major'
9310: ;;
9311:
9312: aix[4-9]*)
9313: version_type=linux
9314: need_lib_prefix=no
9315: need_version=no
9316: hardcode_into_libs=yes
9317: if test "$host_cpu" = ia64; then
9318: # AIX 5 supports IA64
9319: library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9320: shlibpath_var=LD_LIBRARY_PATH
9321: else
9322: # With GCC up to 2.95.x, collect2 would create an import file
9323: # for dependence libraries. The import file would start with
9324: # the line `#! .'. This would cause the generated library to
9325: # depend on `.', always an invalid library. This was fixed in
9326: # development snapshots of GCC prior to 3.0.
9327: case $host_os in
9328: aix4 | aix4.[01] | aix4.[01].*)
9329: if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9330: echo ' yes '
9331: echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9332: :
9333: else
9334: can_build_shared=no
9335: fi
9336: ;;
9337: esac
9338: # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9339: # soname into executable. Probably we can add versioning support to
9340: # collect2, so additional links can be useful in future.
9341: if test "$aix_use_runtimelinking" = yes; then
9342: # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9343: # instead of lib<name>.a to let people know that these are not
9344: # typical AIX shared libraries.
9345: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9346: else
9347: # We preserve .a as extension for shared libraries through AIX4.2
9348: # and later when we are not doing run time linking.
9349: library_names_spec='${libname}${release}.a $libname.a'
9350: soname_spec='${libname}${release}${shared_ext}$major'
9351: fi
9352: shlibpath_var=LIBPATH
9353: fi
9354: ;;
9355:
9356: amigaos*)
9357: case $host_cpu in
9358: powerpc)
9359: # Since July 2007 AmigaOS4 officially supports .so libraries.
9360: # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9361: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9362: ;;
9363: m68k)
9364: library_names_spec='$libname.ixlibrary $libname.a'
9365: # Create ${libname}_ixlibrary.a entries in /sys/libs.
9366: 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'
9367: ;;
9368: esac
9369: ;;
9370:
9371: beos*)
9372: library_names_spec='${libname}${shared_ext}'
9373: dynamic_linker="$host_os ld.so"
9374: shlibpath_var=LIBRARY_PATH
9375: ;;
9376:
9377: bsdi[45]*)
9378: version_type=linux
9379: need_version=no
9380: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9381: soname_spec='${libname}${release}${shared_ext}$major'
9382: finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9383: shlibpath_var=LD_LIBRARY_PATH
9384: sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9385: sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9386: # the default ld.so.conf also contains /usr/contrib/lib and
9387: # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9388: # libtool to hard-code these into programs
9389: ;;
9390:
9391: cygwin* | mingw* | pw32* | cegcc*)
9392: version_type=windows
9393: shrext_cmds=".dll"
9394: need_version=no
9395: need_lib_prefix=no
9396:
9397: case $GCC,$host_os in
9398: yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9399: library_names_spec='$libname.dll.a'
9400: # DLL is installed to $(libdir)/../bin by postinstall_cmds
9401: postinstall_cmds='base_file=`basename \${file}`~
9402: dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9403: dldir=$destdir/`dirname \$dlpath`~
9404: test -d \$dldir || mkdir -p \$dldir~
9405: $install_prog $dir/$dlname \$dldir/$dlname~
9406: chmod a+x \$dldir/$dlname~
9407: if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9408: eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9409: fi'
9410: postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9411: dlpath=$dir/\$dldll~
9412: $RM \$dlpath'
9413: shlibpath_overrides_runpath=yes
9414:
9415: case $host_os in
9416: cygwin*)
9417: # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9418: soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9419: sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9420: ;;
9421: mingw* | cegcc*)
9422: # MinGW DLLs use traditional 'lib' prefix
9423: soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9424: sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9425: if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9426: # It is most probably a Windows format PATH printed by
9427: # mingw gcc, but we are running on Cygwin. Gcc prints its search
9428: # path with ; separators, and with drive letters. We can handle the
9429: # drive letters (cygwin fileutils understands them), so leave them,
9430: # especially as we might pass files found there to a mingw objdump,
9431: # which wouldn't understand a cygwinified path. Ahh.
9432: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9433: else
9434: sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9435: fi
9436: ;;
9437: pw32*)
9438: # pw32 DLLs use 'pw' prefix rather than 'lib'
9439: library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9440: ;;
9441: esac
9442: ;;
9443:
9444: *)
9445: library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9446: ;;
9447: esac
9448: dynamic_linker='Win32 ld.exe'
9449: # FIXME: first we should search . and the directory the executable is in
9450: shlibpath_var=PATH
9451: ;;
9452:
9453: darwin* | rhapsody*)
9454: dynamic_linker="$host_os dyld"
9455: version_type=darwin
9456: need_lib_prefix=no
9457: need_version=no
9458: library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9459: soname_spec='${libname}${release}${major}$shared_ext'
9460: shlibpath_overrides_runpath=yes
9461: shlibpath_var=DYLD_LIBRARY_PATH
9462: shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9463:
9464: sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9465: sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9466: ;;
9467:
9468: dgux*)
9469: version_type=linux
9470: need_lib_prefix=no
9471: need_version=no
9472: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9473: soname_spec='${libname}${release}${shared_ext}$major'
9474: shlibpath_var=LD_LIBRARY_PATH
9475: ;;
9476:
9477: freebsd1*)
9478: dynamic_linker=no
9479: ;;
9480:
9481: freebsd* | dragonfly*)
9482: # DragonFly does not have aout. When/if they implement a new
9483: # versioning mechanism, adjust this.
9484: if test -x /usr/bin/objformat; then
9485: objformat=`/usr/bin/objformat`
9486: else
9487: case $host_os in
9488: freebsd[123]*) objformat=aout ;;
9489: *) objformat=elf ;;
9490: esac
9491: fi
9492: # Handle Gentoo/FreeBSD as it was Linux
9493: case $host_vendor in
9494: gentoo)
9495: version_type=linux ;;
9496: *)
9497: version_type=freebsd-$objformat ;;
9498: esac
9499:
9500: case $version_type in
9501: freebsd-elf*)
9502: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9503: need_version=no
9504: need_lib_prefix=no
9505: ;;
9506: freebsd-*)
9507: library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9508: need_version=yes
9509: ;;
9510: linux)
9511: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9512: soname_spec='${libname}${release}${shared_ext}$major'
9513: need_lib_prefix=no
9514: need_version=no
9515: ;;
9516: esac
9517: shlibpath_var=LD_LIBRARY_PATH
9518: case $host_os in
9519: freebsd2*)
9520: shlibpath_overrides_runpath=yes
9521: ;;
9522: freebsd3.[01]* | freebsdelf3.[01]*)
9523: shlibpath_overrides_runpath=yes
9524: hardcode_into_libs=yes
9525: ;;
9526: freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9527: freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9528: shlibpath_overrides_runpath=no
9529: hardcode_into_libs=yes
9530: ;;
9531: *) # from 4.6 on, and DragonFly
9532: shlibpath_overrides_runpath=yes
9533: hardcode_into_libs=yes
9534: ;;
9535: esac
9536: ;;
9537:
9538: gnu*)
9539: version_type=linux
9540: need_lib_prefix=no
9541: need_version=no
9542: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9543: soname_spec='${libname}${release}${shared_ext}$major'
9544: shlibpath_var=LD_LIBRARY_PATH
9545: hardcode_into_libs=yes
9546: ;;
9547:
9548: hpux9* | hpux10* | hpux11*)
9549: # Give a soname corresponding to the major version so that dld.sl refuses to
9550: # link against other versions.
9551: version_type=sunos
9552: need_lib_prefix=no
9553: need_version=no
9554: case $host_cpu in
9555: ia64*)
9556: shrext_cmds='.so'
9557: hardcode_into_libs=yes
9558: dynamic_linker="$host_os dld.so"
9559: shlibpath_var=LD_LIBRARY_PATH
9560: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9561: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562: soname_spec='${libname}${release}${shared_ext}$major'
9563: if test "X$HPUX_IA64_MODE" = X32; then
9564: sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9565: else
9566: sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9567: fi
9568: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9569: ;;
9570: hppa*64*)
9571: shrext_cmds='.sl'
9572: hardcode_into_libs=yes
9573: dynamic_linker="$host_os dld.sl"
9574: shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9575: shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9576: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9577: soname_spec='${libname}${release}${shared_ext}$major'
9578: sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9579: sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9580: ;;
9581: *)
9582: shrext_cmds='.sl'
9583: dynamic_linker="$host_os dld.sl"
9584: shlibpath_var=SHLIB_PATH
9585: shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9586: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9587: soname_spec='${libname}${release}${shared_ext}$major'
9588: ;;
9589: esac
9590: # HP-UX runs *really* slowly unless shared libraries are mode 555.
9591: postinstall_cmds='chmod 555 $lib'
9592: ;;
9593:
9594: interix[3-9]*)
9595: version_type=linux
9596: need_lib_prefix=no
9597: need_version=no
9598: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9599: soname_spec='${libname}${release}${shared_ext}$major'
9600: dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9601: shlibpath_var=LD_LIBRARY_PATH
9602: shlibpath_overrides_runpath=no
9603: hardcode_into_libs=yes
9604: ;;
9605:
9606: irix5* | irix6* | nonstopux*)
9607: case $host_os in
9608: nonstopux*) version_type=nonstopux ;;
9609: *)
9610: if test "$lt_cv_prog_gnu_ld" = yes; then
9611: version_type=linux
9612: else
9613: version_type=irix
9614: fi ;;
9615: esac
9616: need_lib_prefix=no
9617: need_version=no
9618: soname_spec='${libname}${release}${shared_ext}$major'
9619: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9620: case $host_os in
9621: irix5* | nonstopux*)
9622: libsuff= shlibsuff=
9623: ;;
9624: *)
9625: case $LD in # libtool.m4 will add one of these switches to LD
9626: *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9627: libsuff= shlibsuff= libmagic=32-bit;;
9628: *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9629: libsuff=32 shlibsuff=N32 libmagic=N32;;
9630: *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9631: libsuff=64 shlibsuff=64 libmagic=64-bit;;
9632: *) libsuff= shlibsuff= libmagic=never-match;;
9633: esac
9634: ;;
9635: esac
9636: shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9637: shlibpath_overrides_runpath=no
9638: sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9639: sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9640: hardcode_into_libs=yes
9641: ;;
9642:
9643: # No shared lib support for Linux oldld, aout, or coff.
9644: linux*oldld* | linux*aout* | linux*coff*)
9645: dynamic_linker=no
9646: ;;
9647:
9648: # This must be Linux ELF.
9649: linux* | k*bsd*-gnu)
9650: version_type=linux
9651: need_lib_prefix=no
9652: need_version=no
9653: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9654: soname_spec='${libname}${release}${shared_ext}$major'
9655: finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9656: shlibpath_var=LD_LIBRARY_PATH
9657: shlibpath_overrides_runpath=no
9658: # Some binutils ld are patched to set DT_RUNPATH
9659: save_LDFLAGS=$LDFLAGS
9660: save_libdir=$libdir
9661: eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
9662: LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
9663: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9664: /* end confdefs.h. */
9665:
9666: int
9667: main ()
9668: {
9669:
9670: ;
9671: return 0;
9672: }
9673: _ACEOF
9674: if ac_fn_c_try_link "$LINENO"; then :
9675: if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
9676: shlibpath_overrides_runpath=yes
9677: fi
9678: fi
9679: rm -f core conftest.err conftest.$ac_objext \
9680: conftest$ac_exeext conftest.$ac_ext
9681: LDFLAGS=$save_LDFLAGS
9682: libdir=$save_libdir
9683:
9684: # This implies no fast_install, which is unacceptable.
9685: # Some rework will be needed to allow for fast_install
9686: # before this can be enabled.
9687: hardcode_into_libs=yes
9688:
9689: # Append ld.so.conf contents to the search path
9690: if test -f /etc/ld.so.conf; then
9691: 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' ' '`
9692: sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9693: fi
9694:
9695: # We used to test for /lib/ld.so.1 and disable shared libraries on
9696: # powerpc, because MkLinux only supported shared libraries with the
9697: # GNU dynamic linker. Since this was broken with cross compilers,
9698: # most powerpc-linux boxes support dynamic linking these days and
9699: # people can always --disable-shared, the test was removed, and we
9700: # assume the GNU/Linux dynamic linker is in use.
9701: dynamic_linker='GNU/Linux ld.so'
9702: ;;
9703:
9704: netbsd*)
9705: version_type=sunos
9706: need_lib_prefix=no
9707: need_version=no
9708: if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9709: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9710: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9711: dynamic_linker='NetBSD (a.out) ld.so'
9712: else
9713: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9714: soname_spec='${libname}${release}${shared_ext}$major'
9715: dynamic_linker='NetBSD ld.elf_so'
9716: fi
9717: shlibpath_var=LD_LIBRARY_PATH
9718: shlibpath_overrides_runpath=yes
9719: hardcode_into_libs=yes
9720: ;;
9721:
9722: newsos6)
9723: version_type=linux
9724: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9725: shlibpath_var=LD_LIBRARY_PATH
9726: shlibpath_overrides_runpath=yes
9727: ;;
9728:
9729: *nto* | *qnx*)
9730: version_type=qnx
9731: need_lib_prefix=no
9732: need_version=no
9733: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9734: soname_spec='${libname}${release}${shared_ext}$major'
9735: shlibpath_var=LD_LIBRARY_PATH
9736: shlibpath_overrides_runpath=no
9737: hardcode_into_libs=yes
9738: dynamic_linker='ldqnx.so'
9739: ;;
9740:
9741: openbsd*)
9742: version_type=sunos
9743: sys_lib_dlsearch_path_spec="/usr/lib"
9744: need_lib_prefix=no
9745: # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9746: case $host_os in
9747: openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9748: *) need_version=no ;;
9749: esac
9750: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9751: finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9752: shlibpath_var=LD_LIBRARY_PATH
9753: if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9754: case $host_os in
9755: openbsd2.[89] | openbsd2.[89].*)
9756: shlibpath_overrides_runpath=no
9757: ;;
9758: *)
9759: shlibpath_overrides_runpath=yes
9760: ;;
9761: esac
9762: else
9763: shlibpath_overrides_runpath=yes
9764: fi
9765: ;;
9766:
9767: os2*)
9768: libname_spec='$name'
9769: shrext_cmds=".dll"
9770: need_lib_prefix=no
9771: library_names_spec='$libname${shared_ext} $libname.a'
9772: dynamic_linker='OS/2 ld.exe'
9773: shlibpath_var=LIBPATH
9774: ;;
9775:
9776: osf3* | osf4* | osf5*)
9777: version_type=osf
9778: need_lib_prefix=no
9779: need_version=no
9780: soname_spec='${libname}${release}${shared_ext}$major'
9781: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782: shlibpath_var=LD_LIBRARY_PATH
9783: sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9784: sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9785: ;;
9786:
9787: rdos*)
9788: dynamic_linker=no
9789: ;;
9790:
9791: solaris*)
9792: version_type=linux
9793: need_lib_prefix=no
9794: need_version=no
9795: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796: soname_spec='${libname}${release}${shared_ext}$major'
9797: shlibpath_var=LD_LIBRARY_PATH
9798: shlibpath_overrides_runpath=yes
9799: hardcode_into_libs=yes
9800: # ldd complains unless libraries are executable
9801: postinstall_cmds='chmod +x $lib'
9802: ;;
9803:
9804: sunos4*)
9805: version_type=sunos
9806: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9807: finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9808: shlibpath_var=LD_LIBRARY_PATH
9809: shlibpath_overrides_runpath=yes
9810: if test "$with_gnu_ld" = yes; then
9811: need_lib_prefix=no
9812: fi
9813: need_version=yes
9814: ;;
9815:
9816: sysv4 | sysv4.3*)
9817: version_type=linux
9818: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9819: soname_spec='${libname}${release}${shared_ext}$major'
9820: shlibpath_var=LD_LIBRARY_PATH
9821: case $host_vendor in
9822: sni)
9823: shlibpath_overrides_runpath=no
9824: need_lib_prefix=no
9825: runpath_var=LD_RUN_PATH
9826: ;;
9827: siemens)
9828: need_lib_prefix=no
9829: ;;
9830: motorola)
9831: need_lib_prefix=no
9832: need_version=no
9833: shlibpath_overrides_runpath=no
9834: sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9835: ;;
9836: esac
9837: ;;
9838:
9839: sysv4*MP*)
9840: if test -d /usr/nec ;then
9841: version_type=linux
9842: library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9843: soname_spec='$libname${shared_ext}.$major'
9844: shlibpath_var=LD_LIBRARY_PATH
9845: fi
9846: ;;
9847:
9848: sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9849: version_type=freebsd-elf
9850: need_lib_prefix=no
9851: need_version=no
9852: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9853: soname_spec='${libname}${release}${shared_ext}$major'
9854: shlibpath_var=LD_LIBRARY_PATH
9855: shlibpath_overrides_runpath=yes
9856: hardcode_into_libs=yes
9857: if test "$with_gnu_ld" = yes; then
9858: sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9859: else
9860: sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9861: case $host_os in
9862: sco3.2v5*)
9863: sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9864: ;;
9865: esac
9866: fi
9867: sys_lib_dlsearch_path_spec='/usr/lib'
9868: ;;
9869:
9870: tpf*)
9871: # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
9872: version_type=linux
9873: need_lib_prefix=no
9874: need_version=no
9875: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9876: shlibpath_var=LD_LIBRARY_PATH
9877: shlibpath_overrides_runpath=no
9878: hardcode_into_libs=yes
9879: ;;
9880:
9881: uts4*)
9882: version_type=linux
9883: library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9884: soname_spec='${libname}${release}${shared_ext}$major'
9885: shlibpath_var=LD_LIBRARY_PATH
9886: ;;
9887:
9888: *)
9889: dynamic_linker=no
9890: ;;
9891: esac
9892: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9893: $as_echo "$dynamic_linker" >&6; }
9894: test "$dynamic_linker" = no && can_build_shared=no
9895:
9896: variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9897: if test "$GCC" = yes; then
9898: variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9899: fi
9900:
9901: if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9902: sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9903: fi
9904: if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9905: sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9906: fi
9907:
9908:
9909:
9910:
9911:
9912:
9913:
9914:
9915:
9916:
9917:
9918:
9919:
9920:
9921:
9922:
9923:
9924:
9925:
9926:
9927:
9928:
9929:
9930:
9931:
9932:
9933:
9934:
9935:
9936:
9937:
9938:
9939:
9940:
9941:
9942:
9943:
9944:
9945:
9946:
9947:
9948:
9949:
9950:
9951:
9952:
9953:
9954:
9955:
9956:
9957:
9958:
9959:
9960:
9961:
9962:
9963:
9964:
9965:
9966:
9967:
9968:
9969:
9970:
9971:
9972:
9973:
9974:
9975:
9976:
9977:
9978:
9979:
9980:
9981:
9982:
9983:
9984:
9985:
9986:
9987:
9988:
9989:
9990:
9991:
9992:
9993:
9994: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9995: $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9996: hardcode_action=
9997: if test -n "$hardcode_libdir_flag_spec" ||
9998: test -n "$runpath_var" ||
9999: test "X$hardcode_automatic" = "Xyes" ; then
10000:
10001: # We can hardcode non-existent directories.
10002: if test "$hardcode_direct" != no &&
10003: # If the only mechanism to avoid hardcoding is shlibpath_var, we
10004: # have to relink, otherwise we might link with an installed library
10005: # when we should be linking with a yet-to-be-installed one
10006: ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10007: test "$hardcode_minus_L" != no; then
10008: # Linking always hardcodes the temporary library directory.
10009: hardcode_action=relink
10010: else
10011: # We can link without hardcoding, and we can hardcode nonexisting dirs.
10012: hardcode_action=immediate
10013: fi
10014: else
10015: # We cannot hardcode anything, or else we can only hardcode existing
10016: # directories.
10017: hardcode_action=unsupported
10018: fi
10019: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10020: $as_echo "$hardcode_action" >&6; }
10021:
10022: if test "$hardcode_action" = relink ||
10023: test "$inherit_rpath" = yes; then
10024: # Fast installation is not supported
10025: enable_fast_install=no
10026: elif test "$shlibpath_overrides_runpath" = yes ||
10027: test "$enable_shared" = no; then
10028: # Fast installation is not necessary
10029: enable_fast_install=needless
10030: fi
10031:
10032:
10033:
10034:
10035:
10036:
10037: if test "x$enable_dlopen" != xyes; then
10038: enable_dlopen=unknown
10039: enable_dlopen_self=unknown
10040: enable_dlopen_self_static=unknown
10041: else
10042: lt_cv_dlopen=no
10043: lt_cv_dlopen_libs=
10044:
10045: case $host_os in
10046: beos*)
10047: lt_cv_dlopen="load_add_on"
10048: lt_cv_dlopen_libs=
10049: lt_cv_dlopen_self=yes
10050: ;;
10051:
10052: mingw* | pw32* | cegcc*)
10053: lt_cv_dlopen="LoadLibrary"
10054: lt_cv_dlopen_libs=
10055: ;;
10056:
10057: cygwin*)
10058: lt_cv_dlopen="dlopen"
10059: lt_cv_dlopen_libs=
10060: ;;
10061:
10062: darwin*)
10063: # if libdl is installed we need to link against it
10064: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10065: $as_echo_n "checking for dlopen in -ldl... " >&6; }
10066: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10067: $as_echo_n "(cached) " >&6
10068: else
10069: ac_check_lib_save_LIBS=$LIBS
10070: LIBS="-ldl $LIBS"
10071: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072: /* end confdefs.h. */
10073:
10074: /* Override any GCC internal prototype to avoid an error.
10075: Use char because int might match the return type of a GCC
10076: builtin and then its argument prototype would still apply. */
10077: #ifdef __cplusplus
10078: extern "C"
10079: #endif
10080: char dlopen ();
10081: int
10082: main ()
10083: {
10084: return dlopen ();
10085: ;
10086: return 0;
10087: }
10088: _ACEOF
10089: if ac_fn_c_try_link "$LINENO"; then :
10090: ac_cv_lib_dl_dlopen=yes
10091: else
10092: ac_cv_lib_dl_dlopen=no
10093: fi
10094: rm -f core conftest.err conftest.$ac_objext \
10095: conftest$ac_exeext conftest.$ac_ext
10096: LIBS=$ac_check_lib_save_LIBS
10097: fi
10098: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10099: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10100: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10101: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10102: else
10103:
10104: lt_cv_dlopen="dyld"
10105: lt_cv_dlopen_libs=
10106: lt_cv_dlopen_self=yes
10107:
10108: fi
10109:
10110: ;;
10111:
10112: *)
10113: ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10114: if test "x$ac_cv_func_shl_load" = x""yes; then :
10115: lt_cv_dlopen="shl_load"
10116: else
10117: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10118: $as_echo_n "checking for shl_load in -ldld... " >&6; }
10119: if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10120: $as_echo_n "(cached) " >&6
10121: else
10122: ac_check_lib_save_LIBS=$LIBS
10123: LIBS="-ldld $LIBS"
10124: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125: /* end confdefs.h. */
10126:
10127: /* Override any GCC internal prototype to avoid an error.
10128: Use char because int might match the return type of a GCC
10129: builtin and then its argument prototype would still apply. */
10130: #ifdef __cplusplus
10131: extern "C"
10132: #endif
10133: char shl_load ();
10134: int
10135: main ()
10136: {
10137: return shl_load ();
10138: ;
10139: return 0;
10140: }
10141: _ACEOF
10142: if ac_fn_c_try_link "$LINENO"; then :
10143: ac_cv_lib_dld_shl_load=yes
10144: else
10145: ac_cv_lib_dld_shl_load=no
10146: fi
10147: rm -f core conftest.err conftest.$ac_objext \
10148: conftest$ac_exeext conftest.$ac_ext
10149: LIBS=$ac_check_lib_save_LIBS
10150: fi
10151: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10152: $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10153: if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10154: lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10155: else
10156: ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10157: if test "x$ac_cv_func_dlopen" = x""yes; then :
10158: lt_cv_dlopen="dlopen"
10159: else
10160: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10161: $as_echo_n "checking for dlopen in -ldl... " >&6; }
10162: if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10163: $as_echo_n "(cached) " >&6
10164: else
10165: ac_check_lib_save_LIBS=$LIBS
10166: LIBS="-ldl $LIBS"
10167: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10168: /* end confdefs.h. */
10169:
10170: /* Override any GCC internal prototype to avoid an error.
10171: Use char because int might match the return type of a GCC
10172: builtin and then its argument prototype would still apply. */
10173: #ifdef __cplusplus
10174: extern "C"
10175: #endif
10176: char dlopen ();
10177: int
10178: main ()
10179: {
10180: return dlopen ();
10181: ;
10182: return 0;
10183: }
10184: _ACEOF
10185: if ac_fn_c_try_link "$LINENO"; then :
10186: ac_cv_lib_dl_dlopen=yes
10187: else
10188: ac_cv_lib_dl_dlopen=no
10189: fi
10190: rm -f core conftest.err conftest.$ac_objext \
10191: conftest$ac_exeext conftest.$ac_ext
10192: LIBS=$ac_check_lib_save_LIBS
10193: fi
10194: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10195: $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10196: if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10197: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10198: else
10199: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10200: $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10201: if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10202: $as_echo_n "(cached) " >&6
10203: else
10204: ac_check_lib_save_LIBS=$LIBS
10205: LIBS="-lsvld $LIBS"
10206: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207: /* end confdefs.h. */
10208:
10209: /* Override any GCC internal prototype to avoid an error.
10210: Use char because int might match the return type of a GCC
10211: builtin and then its argument prototype would still apply. */
10212: #ifdef __cplusplus
10213: extern "C"
10214: #endif
10215: char dlopen ();
10216: int
10217: main ()
10218: {
10219: return dlopen ();
10220: ;
10221: return 0;
10222: }
10223: _ACEOF
10224: if ac_fn_c_try_link "$LINENO"; then :
10225: ac_cv_lib_svld_dlopen=yes
10226: else
10227: ac_cv_lib_svld_dlopen=no
10228: fi
10229: rm -f core conftest.err conftest.$ac_objext \
10230: conftest$ac_exeext conftest.$ac_ext
10231: LIBS=$ac_check_lib_save_LIBS
10232: fi
10233: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10234: $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10235: if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10236: lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10237: else
10238: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10239: $as_echo_n "checking for dld_link in -ldld... " >&6; }
10240: if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10241: $as_echo_n "(cached) " >&6
10242: else
10243: ac_check_lib_save_LIBS=$LIBS
10244: LIBS="-ldld $LIBS"
10245: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10246: /* end confdefs.h. */
10247:
10248: /* Override any GCC internal prototype to avoid an error.
10249: Use char because int might match the return type of a GCC
10250: builtin and then its argument prototype would still apply. */
10251: #ifdef __cplusplus
10252: extern "C"
10253: #endif
10254: char dld_link ();
10255: int
10256: main ()
10257: {
10258: return dld_link ();
10259: ;
10260: return 0;
10261: }
10262: _ACEOF
10263: if ac_fn_c_try_link "$LINENO"; then :
10264: ac_cv_lib_dld_dld_link=yes
10265: else
10266: ac_cv_lib_dld_dld_link=no
10267: fi
10268: rm -f core conftest.err conftest.$ac_objext \
10269: conftest$ac_exeext conftest.$ac_ext
10270: LIBS=$ac_check_lib_save_LIBS
10271: fi
10272: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10273: $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10274: if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10275: lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10276: fi
10277:
10278:
10279: fi
10280:
10281:
10282: fi
10283:
10284:
10285: fi
10286:
10287:
10288: fi
10289:
10290:
10291: fi
10292:
10293: ;;
10294: esac
10295:
10296: if test "x$lt_cv_dlopen" != xno; then
10297: enable_dlopen=yes
10298: else
10299: enable_dlopen=no
10300: fi
10301:
10302: case $lt_cv_dlopen in
10303: dlopen)
10304: save_CPPFLAGS="$CPPFLAGS"
10305: test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10306:
10307: save_LDFLAGS="$LDFLAGS"
10308: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10309:
10310: save_LIBS="$LIBS"
10311: LIBS="$lt_cv_dlopen_libs $LIBS"
10312:
10313: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10314: $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10315: if test "${lt_cv_dlopen_self+set}" = set; then :
10316: $as_echo_n "(cached) " >&6
10317: else
10318: if test "$cross_compiling" = yes; then :
10319: lt_cv_dlopen_self=cross
10320: else
10321: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10322: lt_status=$lt_dlunknown
10323: cat > conftest.$ac_ext <<_LT_EOF
10324: #line 10324 "configure"
10325: #include "confdefs.h"
10326:
10327: #if HAVE_DLFCN_H
10328: #include <dlfcn.h>
10329: #endif
10330:
10331: #include <stdio.h>
10332:
10333: #ifdef RTLD_GLOBAL
10334: # define LT_DLGLOBAL RTLD_GLOBAL
10335: #else
10336: # ifdef DL_GLOBAL
10337: # define LT_DLGLOBAL DL_GLOBAL
10338: # else
10339: # define LT_DLGLOBAL 0
10340: # endif
10341: #endif
10342:
10343: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10344: find out it does not work in some platform. */
10345: #ifndef LT_DLLAZY_OR_NOW
10346: # ifdef RTLD_LAZY
10347: # define LT_DLLAZY_OR_NOW RTLD_LAZY
10348: # else
10349: # ifdef DL_LAZY
10350: # define LT_DLLAZY_OR_NOW DL_LAZY
10351: # else
10352: # ifdef RTLD_NOW
10353: # define LT_DLLAZY_OR_NOW RTLD_NOW
10354: # else
10355: # ifdef DL_NOW
10356: # define LT_DLLAZY_OR_NOW DL_NOW
10357: # else
10358: # define LT_DLLAZY_OR_NOW 0
10359: # endif
10360: # endif
10361: # endif
10362: # endif
10363: #endif
10364:
10365: void fnord() { int i=42;}
10366: int main ()
10367: {
10368: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10369: int status = $lt_dlunknown;
10370:
10371: if (self)
10372: {
10373: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10374: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10375: /* dlclose (self); */
10376: }
10377: else
10378: puts (dlerror ());
10379:
10380: return status;
10381: }
10382: _LT_EOF
10383: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10384: (eval $ac_link) 2>&5
10385: ac_status=$?
10386: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10387: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10388: (./conftest; exit; ) >&5 2>/dev/null
10389: lt_status=$?
10390: case x$lt_status in
10391: x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10392: x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10393: x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10394: esac
10395: else :
10396: # compilation failed
10397: lt_cv_dlopen_self=no
10398: fi
10399: fi
10400: rm -fr conftest*
10401:
10402:
10403: fi
10404: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10405: $as_echo "$lt_cv_dlopen_self" >&6; }
10406:
10407: if test "x$lt_cv_dlopen_self" = xyes; then
10408: wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10409: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10410: $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10411: if test "${lt_cv_dlopen_self_static+set}" = set; then :
10412: $as_echo_n "(cached) " >&6
10413: else
10414: if test "$cross_compiling" = yes; then :
10415: lt_cv_dlopen_self_static=cross
10416: else
10417: lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10418: lt_status=$lt_dlunknown
10419: cat > conftest.$ac_ext <<_LT_EOF
10420: #line 10420 "configure"
10421: #include "confdefs.h"
10422:
10423: #if HAVE_DLFCN_H
10424: #include <dlfcn.h>
10425: #endif
10426:
10427: #include <stdio.h>
10428:
10429: #ifdef RTLD_GLOBAL
10430: # define LT_DLGLOBAL RTLD_GLOBAL
10431: #else
10432: # ifdef DL_GLOBAL
10433: # define LT_DLGLOBAL DL_GLOBAL
10434: # else
10435: # define LT_DLGLOBAL 0
10436: # endif
10437: #endif
10438:
10439: /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10440: find out it does not work in some platform. */
10441: #ifndef LT_DLLAZY_OR_NOW
10442: # ifdef RTLD_LAZY
10443: # define LT_DLLAZY_OR_NOW RTLD_LAZY
10444: # else
10445: # ifdef DL_LAZY
10446: # define LT_DLLAZY_OR_NOW DL_LAZY
10447: # else
10448: # ifdef RTLD_NOW
10449: # define LT_DLLAZY_OR_NOW RTLD_NOW
10450: # else
10451: # ifdef DL_NOW
10452: # define LT_DLLAZY_OR_NOW DL_NOW
10453: # else
10454: # define LT_DLLAZY_OR_NOW 0
10455: # endif
10456: # endif
10457: # endif
10458: # endif
10459: #endif
10460:
10461: void fnord() { int i=42;}
10462: int main ()
10463: {
10464: void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10465: int status = $lt_dlunknown;
10466:
10467: if (self)
10468: {
10469: if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10470: else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10471: /* dlclose (self); */
10472: }
10473: else
10474: puts (dlerror ());
10475:
10476: return status;
10477: }
10478: _LT_EOF
10479: if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10480: (eval $ac_link) 2>&5
10481: ac_status=$?
10482: $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10483: test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10484: (./conftest; exit; ) >&5 2>/dev/null
10485: lt_status=$?
10486: case x$lt_status in
10487: x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10488: x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10489: x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10490: esac
10491: else :
10492: # compilation failed
10493: lt_cv_dlopen_self_static=no
10494: fi
10495: fi
10496: rm -fr conftest*
10497:
10498:
10499: fi
10500: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10501: $as_echo "$lt_cv_dlopen_self_static" >&6; }
10502: fi
10503:
10504: CPPFLAGS="$save_CPPFLAGS"
10505: LDFLAGS="$save_LDFLAGS"
10506: LIBS="$save_LIBS"
10507: ;;
10508: esac
10509:
10510: case $lt_cv_dlopen_self in
10511: yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10512: *) enable_dlopen_self=unknown ;;
10513: esac
10514:
10515: case $lt_cv_dlopen_self_static in
10516: yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10517: *) enable_dlopen_self_static=unknown ;;
10518: esac
10519: fi
10520:
10521:
10522:
10523:
10524:
10525:
10526:
10527:
10528:
10529:
10530:
10531:
10532:
10533:
10534:
10535:
10536:
10537: striplib=
10538: old_striplib=
10539: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10540: $as_echo_n "checking whether stripping libraries is possible... " >&6; }
10541: if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10542: test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10543: test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10544: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10545: $as_echo "yes" >&6; }
10546: else
10547: # FIXME - insert some real tests, host_os isn't really good enough
10548: case $host_os in
10549: darwin*)
10550: if test -n "$STRIP" ; then
10551: striplib="$STRIP -x"
10552: old_striplib="$STRIP -S"
10553: { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10554: $as_echo "yes" >&6; }
10555: else
10556: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10557: $as_echo "no" >&6; }
10558: fi
10559: ;;
10560: *)
10561: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10562: $as_echo "no" >&6; }
10563: ;;
10564: esac
10565: fi
10566:
10567:
10568:
10569:
10570:
10571:
10572:
10573:
10574:
10575:
10576:
10577:
10578: # Report which library types will actually be built
10579: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10580: $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10581: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10582: $as_echo "$can_build_shared" >&6; }
10583:
10584: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10585: $as_echo_n "checking whether to build shared libraries... " >&6; }
10586: test "$can_build_shared" = "no" && enable_shared=no
10587:
10588: # On AIX, shared libraries and static libraries use the same namespace, and
10589: # are all built from PIC.
10590: case $host_os in
10591: aix3*)
10592: test "$enable_shared" = yes && enable_static=no
10593: if test -n "$RANLIB"; then
10594: archive_cmds="$archive_cmds~\$RANLIB \$lib"
10595: postinstall_cmds='$RANLIB $lib'
10596: fi
10597: ;;
10598:
10599: aix[4-9]*)
10600: if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10601: test "$enable_shared" = yes && enable_static=no
10602: fi
10603: ;;
10604: esac
10605: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10606: $as_echo "$enable_shared" >&6; }
10607:
10608: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10609: $as_echo_n "checking whether to build static libraries... " >&6; }
10610: # Make sure either enable_shared or enable_static is yes.
10611: test "$enable_shared" = yes || enable_static=yes
10612: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10613: $as_echo "$enable_static" >&6; }
10614:
10615:
10616:
10617:
10618: fi
10619: ac_ext=c
10620: ac_cpp='$CPP $CPPFLAGS'
10621: ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10622: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10623: ac_compiler_gnu=$ac_cv_c_compiler_gnu
10624:
10625: CC="$lt_save_CC"
10626:
10627:
10628:
10629:
10630:
10631:
10632:
10633:
10634:
10635:
10636:
10637:
10638:
10639: ac_config_commands="$ac_config_commands libtool"
10640:
10641:
10642:
10643:
10644: # Only expand once:
10645:
10646:
10647:
10648: # optional building of examples:
10649: # Check whether --enable-examples was given.
10650: if test "${enable_examples+set}" = set; then :
10651: enableval=$enable_examples;
10652: else
10653: enable_examples=yes
10654: fi
10655:
10656: if test "$enable_examples" = yes; then
10657: ENABLE_EXAMPLES_TRUE=
10658: ENABLE_EXAMPLES_FALSE='#'
10659: else
10660: ENABLE_EXAMPLES_TRUE='#'
10661: ENABLE_EXAMPLES_FALSE=
10662: fi
10663:
10664:
10665:
10666: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
10667: $as_echo_n "checking whether NLS is requested... " >&6; }
10668: # Check whether --enable-nls was given.
10669: if test "${enable_nls+set}" = set; then :
10670: enableval=$enable_nls; USE_NLS=$enableval
10671: else
10672: USE_NLS=yes
10673: fi
10674:
10675: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10676: $as_echo "$USE_NLS" >&6; }
10677:
10678:
10679:
10680:
10681:
10682:
10683: # Prepare PATH_SEPARATOR.
10684: # The user is always right.
10685: if test "${PATH_SEPARATOR+set}" != set; then
10686: echo "#! /bin/sh" >conf$$.sh
10687: echo "exit 0" >>conf$$.sh
10688: chmod +x conf$$.sh
10689: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10690: PATH_SEPARATOR=';'
10691: else
10692: PATH_SEPARATOR=:
10693: fi
10694: rm -f conf$$.sh
10695: fi
10696:
10697: # Find out how to test for executable files. Don't use a zero-byte file,
10698: # as systems may use methods other than mode bits to determine executability.
10699: cat >conf$$.file <<_ASEOF
10700: #! /bin/sh
10701: exit 0
10702: _ASEOF
10703: chmod +x conf$$.file
10704: if test -x conf$$.file >/dev/null 2>&1; then
10705: ac_executable_p="test -x"
10706: else
10707: ac_executable_p="test -f"
10708: fi
10709: rm -f conf$$.file
10710:
10711: # Extract the first word of "msgfmt", so it can be a program name with args.
10712: set dummy msgfmt; ac_word=$2
10713: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10714: $as_echo_n "checking for $ac_word... " >&6; }
10715: if test "${ac_cv_path_MSGFMT+set}" = set; then :
10716: $as_echo_n "(cached) " >&6
10717: else
10718: case "$MSGFMT" in
10719: [\\/]* | ?:[\\/]*)
10720: ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
10721: ;;
10722: *)
10723: ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10724: for ac_dir in $PATH; do
10725: IFS="$ac_save_IFS"
10726: test -z "$ac_dir" && ac_dir=.
10727: for ac_exec_ext in '' $ac_executable_extensions; do
10728: if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10729: echo "$as_me: trying $ac_dir/$ac_word..." >&5
10730: if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
10731: (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10732: ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
10733: break 2
10734: fi
10735: fi
10736: done
10737: done
10738: IFS="$ac_save_IFS"
10739: test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
10740: ;;
10741: esac
10742: fi
10743: MSGFMT="$ac_cv_path_MSGFMT"
10744: if test "$MSGFMT" != ":"; then
10745: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
10746: $as_echo "$MSGFMT" >&6; }
10747: else
10748: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10749: $as_echo "no" >&6; }
10750: fi
10751:
10752: # Extract the first word of "gmsgfmt", so it can be a program name with args.
10753: set dummy gmsgfmt; ac_word=$2
10754: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10755: $as_echo_n "checking for $ac_word... " >&6; }
10756: if test "${ac_cv_path_GMSGFMT+set}" = set; then :
10757: $as_echo_n "(cached) " >&6
10758: else
10759: case $GMSGFMT in
10760: [\\/]* | ?:[\\/]*)
10761: ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
10762: ;;
10763: *)
10764: as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765: for as_dir in $PATH
10766: do
10767: IFS=$as_save_IFS
10768: test -z "$as_dir" && as_dir=.
10769: for ac_exec_ext in '' $ac_executable_extensions; do
10770: if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10771: ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
10772: $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10773: break 2
10774: fi
10775: done
10776: done
10777: IFS=$as_save_IFS
10778:
10779: test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
10780: ;;
10781: esac
10782: fi
10783: GMSGFMT=$ac_cv_path_GMSGFMT
10784: if test -n "$GMSGFMT"; then
10785: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
10786: $as_echo "$GMSGFMT" >&6; }
10787: else
10788: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10789: $as_echo "no" >&6; }
10790: fi
10791:
10792:
10793:
10794: case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10795: '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
10796: *) MSGFMT_015=$MSGFMT ;;
10797: esac
10798:
10799: case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10800: '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
10801: *) GMSGFMT_015=$GMSGFMT ;;
10802: esac
10803:
10804:
10805:
10806: # Prepare PATH_SEPARATOR.
10807: # The user is always right.
10808: if test "${PATH_SEPARATOR+set}" != set; then
10809: echo "#! /bin/sh" >conf$$.sh
10810: echo "exit 0" >>conf$$.sh
10811: chmod +x conf$$.sh
10812: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10813: PATH_SEPARATOR=';'
10814: else
10815: PATH_SEPARATOR=:
10816: fi
10817: rm -f conf$$.sh
10818: fi
10819:
10820: # Find out how to test for executable files. Don't use a zero-byte file,
10821: # as systems may use methods other than mode bits to determine executability.
10822: cat >conf$$.file <<_ASEOF
10823: #! /bin/sh
10824: exit 0
10825: _ASEOF
10826: chmod +x conf$$.file
10827: if test -x conf$$.file >/dev/null 2>&1; then
10828: ac_executable_p="test -x"
10829: else
10830: ac_executable_p="test -f"
10831: fi
10832: rm -f conf$$.file
10833:
10834: # Extract the first word of "xgettext", so it can be a program name with args.
10835: set dummy xgettext; ac_word=$2
10836: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10837: $as_echo_n "checking for $ac_word... " >&6; }
10838: if test "${ac_cv_path_XGETTEXT+set}" = set; then :
10839: $as_echo_n "(cached) " >&6
10840: else
10841: case "$XGETTEXT" in
10842: [\\/]* | ?:[\\/]*)
10843: ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
10844: ;;
10845: *)
10846: ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10847: for ac_dir in $PATH; do
10848: IFS="$ac_save_IFS"
10849: test -z "$ac_dir" && ac_dir=.
10850: for ac_exec_ext in '' $ac_executable_extensions; do
10851: if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10852: echo "$as_me: trying $ac_dir/$ac_word..." >&5
10853: if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
10854: (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
10855: ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
10856: break 2
10857: fi
10858: fi
10859: done
10860: done
10861: IFS="$ac_save_IFS"
10862: test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
10863: ;;
10864: esac
10865: fi
10866: XGETTEXT="$ac_cv_path_XGETTEXT"
10867: if test "$XGETTEXT" != ":"; then
10868: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
10869: $as_echo "$XGETTEXT" >&6; }
10870: else
10871: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10872: $as_echo "no" >&6; }
10873: fi
10874:
10875: rm -f messages.po
10876:
10877: case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
10878: '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
10879: *) XGETTEXT_015=$XGETTEXT ;;
10880: esac
10881:
10882:
10883:
10884: # Prepare PATH_SEPARATOR.
10885: # The user is always right.
10886: if test "${PATH_SEPARATOR+set}" != set; then
10887: echo "#! /bin/sh" >conf$$.sh
10888: echo "exit 0" >>conf$$.sh
10889: chmod +x conf$$.sh
10890: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10891: PATH_SEPARATOR=';'
10892: else
10893: PATH_SEPARATOR=:
10894: fi
10895: rm -f conf$$.sh
10896: fi
10897:
10898: # Find out how to test for executable files. Don't use a zero-byte file,
10899: # as systems may use methods other than mode bits to determine executability.
10900: cat >conf$$.file <<_ASEOF
10901: #! /bin/sh
10902: exit 0
10903: _ASEOF
10904: chmod +x conf$$.file
10905: if test -x conf$$.file >/dev/null 2>&1; then
10906: ac_executable_p="test -x"
10907: else
10908: ac_executable_p="test -f"
10909: fi
10910: rm -f conf$$.file
10911:
10912: # Extract the first word of "msgmerge", so it can be a program name with args.
10913: set dummy msgmerge; ac_word=$2
10914: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10915: $as_echo_n "checking for $ac_word... " >&6; }
10916: if test "${ac_cv_path_MSGMERGE+set}" = set; then :
10917: $as_echo_n "(cached) " >&6
10918: else
10919: case "$MSGMERGE" in
10920: [\\/]* | ?:[\\/]*)
10921: ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
10922: ;;
10923: *)
10924: ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
10925: for ac_dir in $PATH; do
10926: IFS="$ac_save_IFS"
10927: test -z "$ac_dir" && ac_dir=.
10928: for ac_exec_ext in '' $ac_executable_extensions; do
10929: if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
10930: echo "$as_me: trying $ac_dir/$ac_word..." >&5
10931: if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
10932: ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
10933: break 2
10934: fi
10935: fi
10936: done
10937: done
10938: IFS="$ac_save_IFS"
10939: test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
10940: ;;
10941: esac
10942: fi
10943: MSGMERGE="$ac_cv_path_MSGMERGE"
10944: if test "$MSGMERGE" != ":"; then
10945: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
10946: $as_echo "$MSGMERGE" >&6; }
10947: else
10948: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10949: $as_echo "no" >&6; }
10950: fi
10951:
10952:
10953: test -n "$localedir" || localedir='${datadir}/locale'
10954:
10955:
10956: ac_config_commands="$ac_config_commands po-directories"
10957:
10958:
10959:
10960: if test "X$prefix" = "XNONE"; then
10961: acl_final_prefix="$ac_default_prefix"
10962: else
10963: acl_final_prefix="$prefix"
10964: fi
10965: if test "X$exec_prefix" = "XNONE"; then
10966: acl_final_exec_prefix='${prefix}'
10967: else
10968: acl_final_exec_prefix="$exec_prefix"
10969: fi
10970: acl_save_prefix="$prefix"
10971: prefix="$acl_final_prefix"
10972: eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
10973: prefix="$acl_save_prefix"
10974:
10975:
10976: # Check whether --with-gnu-ld was given.
10977: if test "${with_gnu_ld+set}" = set; then :
10978: withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10979: else
10980: with_gnu_ld=no
10981: fi
10982:
10983: # Prepare PATH_SEPARATOR.
10984: # The user is always right.
10985: if test "${PATH_SEPARATOR+set}" != set; then
10986: echo "#! /bin/sh" >conf$$.sh
10987: echo "exit 0" >>conf$$.sh
10988: chmod +x conf$$.sh
10989: if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
10990: PATH_SEPARATOR=';'
10991: else
10992: PATH_SEPARATOR=:
10993: fi
10994: rm -f conf$$.sh
10995: fi
10996: ac_prog=ld
10997: if test "$GCC" = yes; then
10998: # Check if gcc -print-prog-name=ld gives a path.
10999: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
11000: $as_echo_n "checking for ld used by GCC... " >&6; }
11001: case $host in
11002: *-*-mingw*)
11003: # gcc leaves a trailing carriage return which upsets mingw
11004: ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11005: *)
11006: ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11007: esac
11008: case $ac_prog in
11009: # Accept absolute paths.
11010: [\\/]* | [A-Za-z]:[\\/]*)
11011: re_direlt='/[^/][^/]*/\.\./'
11012: # Canonicalize the path of ld
11013: ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
11014: while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11015: ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
11016: done
11017: test -z "$LD" && LD="$ac_prog"
11018: ;;
11019: "")
11020: # If it fails, then pretend we aren't using GCC.
11021: ac_prog=ld
11022: ;;
11023: *)
11024: # If it is relative, then search for the first ld in PATH.
11025: with_gnu_ld=unknown
11026: ;;
11027: esac
11028: elif test "$with_gnu_ld" = yes; then
11029: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11030: $as_echo_n "checking for GNU ld... " >&6; }
11031: else
11032: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11033: $as_echo_n "checking for non-GNU ld... " >&6; }
11034: fi
11035: if test "${acl_cv_path_LD+set}" = set; then :
11036: $as_echo_n "(cached) " >&6
11037: else
11038: if test -z "$LD"; then
11039: IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
11040: for ac_dir in $PATH; do
11041: test -z "$ac_dir" && ac_dir=.
11042: if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11043: acl_cv_path_LD="$ac_dir/$ac_prog"
11044: # Check to see if the program is GNU ld. I'd rather use --version,
11045: # but apparently some GNU ld's only accept -v.
11046: # Break only if it was the GNU/non-GNU ld that we prefer.
11047: case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
11048: *GNU* | *'with BFD'*)
11049: test "$with_gnu_ld" != no && break ;;
11050: *)
11051: test "$with_gnu_ld" != yes && break ;;
11052: esac
11053: fi
11054: done
11055: IFS="$ac_save_ifs"
11056: else
11057: acl_cv_path_LD="$LD" # Let the user override the test with a path.
11058: fi
11059: fi
11060:
11061: LD="$acl_cv_path_LD"
11062: if test -n "$LD"; then
11063: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11064: $as_echo "$LD" >&6; }
11065: else
11066: { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067: $as_echo "no" >&6; }
11068: fi
11069: test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11070: { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11071: $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11072: if test "${acl_cv_prog_gnu_ld+set}" = set; then :
11073: $as_echo_n "(cached) " >&6
11074: else
11075: # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11076: case `$LD -v 2>&1 </dev/null` in
11077: *GNU* | *'with BFD'*)
11078: acl_cv_prog_gnu_ld=yes ;;
11079: *)
11080: acl_cv_prog_gnu_ld=no ;;
11081: esac
11082: fi
11083: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
11084: $as_echo "$acl_cv_prog_gnu_ld" >&6; }
11085: with_gnu_ld=$acl_cv_prog_gnu_ld
11086:
11087:
11088:
11089:
11090: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
11091: $as_echo_n "checking for shared library run path origin... " >&6; }
11092: if test "${acl_cv_rpath+set}" = set; then :
11093: $as_echo_n "(cached) " >&6
11094: else
11095:
11096: CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
11097: ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
11098: . ./conftest.sh
11099: rm -f ./conftest.sh
11100: acl_cv_rpath=done
11101:
11102: fi
11103: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
11104: $as_echo "$acl_cv_rpath" >&6; }
11105: wl="$acl_cv_wl"
11106: libext="$acl_cv_libext"
11107: shlibext="$acl_cv_shlibext"
11108: hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
11109: hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
11110: hardcode_direct="$acl_cv_hardcode_direct"
11111: hardcode_minus_L="$acl_cv_hardcode_minus_L"
11112: # Check whether --enable-rpath was given.
11113: if test "${enable_rpath+set}" = set; then :
11114: enableval=$enable_rpath; :
11115: else
11116: enable_rpath=yes
11117: fi
11118:
11119:
11120:
11121: acl_libdirstem=lib
11122: searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
11123: if test -n "$searchpath"; then
11124: acl_save_IFS="${IFS= }"; IFS=":"
11125: for searchdir in $searchpath; do
11126: if test -d "$searchdir"; then
11127: case "$searchdir" in
11128: */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
11129: *) searchdir=`cd "$searchdir" && pwd`
11130: case "$searchdir" in
11131: */lib64 ) acl_libdirstem=lib64 ;;
11132: esac ;;
11133: esac
11134: fi
11135: done
11136: IFS="$acl_save_IFS"
11137: fi
11138:
11139:
11140:
11141:
11142:
11143:
11144:
11145:
11146: use_additional=yes
11147:
11148: acl_save_prefix="$prefix"
11149: prefix="$acl_final_prefix"
11150: acl_save_exec_prefix="$exec_prefix"
11151: exec_prefix="$acl_final_exec_prefix"
11152:
11153: eval additional_includedir=\"$includedir\"
11154: eval additional_libdir=\"$libdir\"
11155:
11156: exec_prefix="$acl_save_exec_prefix"
11157: prefix="$acl_save_prefix"
11158:
11159:
11160: # Check whether --with-libiconv-prefix was given.
11161: if test "${with_libiconv_prefix+set}" = set; then :
11162: withval=$with_libiconv_prefix;
11163: if test "X$withval" = "Xno"; then
11164: use_additional=no
11165: else
11166: if test "X$withval" = "X"; then
11167:
11168: acl_save_prefix="$prefix"
11169: prefix="$acl_final_prefix"
11170: acl_save_exec_prefix="$exec_prefix"
11171: exec_prefix="$acl_final_exec_prefix"
11172:
11173: eval additional_includedir=\"$includedir\"
11174: eval additional_libdir=\"$libdir\"
11175:
11176: exec_prefix="$acl_save_exec_prefix"
11177: prefix="$acl_save_prefix"
11178:
11179: else
11180: additional_includedir="$withval/include"
11181: additional_libdir="$withval/$acl_libdirstem"
11182: fi
11183: fi
11184:
11185: fi
11186:
11187: LIBICONV=
11188: LTLIBICONV=
11189: INCICONV=
11190: rpathdirs=
11191: ltrpathdirs=
11192: names_already_handled=
11193: names_next_round='iconv '
11194: while test -n "$names_next_round"; do
11195: names_this_round="$names_next_round"
11196: names_next_round=
11197: for name in $names_this_round; do
11198: already_handled=
11199: for n in $names_already_handled; do
11200: if test "$n" = "$name"; then
11201: already_handled=yes
11202: break
11203: fi
11204: done
11205: if test -z "$already_handled"; then
11206: names_already_handled="$names_already_handled $name"
11207: uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11208: eval value=\"\$HAVE_LIB$uppername\"
11209: if test -n "$value"; then
11210: if test "$value" = yes; then
11211: eval value=\"\$LIB$uppername\"
11212: test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
11213: eval value=\"\$LTLIB$uppername\"
11214: test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
11215: else
11216: :
11217: fi
11218: else
11219: found_dir=
11220: found_la=
11221: found_so=
11222: found_a=
11223: if test $use_additional = yes; then
11224: if test -n "$shlibext" \
11225: && { test -f "$additional_libdir/lib$name.$shlibext" \
11226: || { test "$shlibext" = dll \
11227: && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
11228: found_dir="$additional_libdir"
11229: if test -f "$additional_libdir/lib$name.$shlibext"; then
11230: found_so="$additional_libdir/lib$name.$shlibext"
11231: else
11232: found_so="$additional_libdir/lib$name.dll.a"
11233: fi
11234: if test -f "$additional_libdir/lib$name.la"; then
11235: found_la="$additional_libdir/lib$name.la"
11236: fi
11237: else
11238: if test -f "$additional_libdir/lib$name.$libext"; then
11239: found_dir="$additional_libdir"
11240: found_a="$additional_libdir/lib$name.$libext"
11241: if test -f "$additional_libdir/lib$name.la"; then
11242: found_la="$additional_libdir/lib$name.la"
11243: fi
11244: fi
11245: fi
11246: fi
11247: if test "X$found_dir" = "X"; then
11248: for x in $LDFLAGS $LTLIBICONV; do
11249:
11250: acl_save_prefix="$prefix"
11251: prefix="$acl_final_prefix"
11252: acl_save_exec_prefix="$exec_prefix"
11253: exec_prefix="$acl_final_exec_prefix"
11254: eval x=\"$x\"
11255: exec_prefix="$acl_save_exec_prefix"
11256: prefix="$acl_save_prefix"
11257:
11258: case "$x" in
11259: -L*)
11260: dir=`echo "X$x" | sed -e 's/^X-L//'`
11261: if test -n "$shlibext" \
11262: && { test -f "$dir/lib$name.$shlibext" \
11263: || { test "$shlibext" = dll \
11264: && test -f "$dir/lib$name.dll.a"; }; }; then
11265: found_dir="$dir"
11266: if test -f "$dir/lib$name.$shlibext"; then
11267: found_so="$dir/lib$name.$shlibext"
11268: else
11269: found_so="$dir/lib$name.dll.a"
11270: fi
11271: if test -f "$dir/lib$name.la"; then
11272: found_la="$dir/lib$name.la"
11273: fi
11274: else
11275: if test -f "$dir/lib$name.$libext"; then
11276: found_dir="$dir"
11277: found_a="$dir/lib$name.$libext"
11278: if test -f "$dir/lib$name.la"; then
11279: found_la="$dir/lib$name.la"
11280: fi
11281: fi
11282: fi
11283: ;;
11284: esac
11285: if test "X$found_dir" != "X"; then
11286: break
11287: fi
11288: done
11289: fi
11290: if test "X$found_dir" != "X"; then
11291: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
11292: if test "X$found_so" != "X"; then
11293: if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11294: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11295: else
11296: haveit=
11297: for x in $ltrpathdirs; do
11298: if test "X$x" = "X$found_dir"; then
11299: haveit=yes
11300: break
11301: fi
11302: done
11303: if test -z "$haveit"; then
11304: ltrpathdirs="$ltrpathdirs $found_dir"
11305: fi
11306: if test "$hardcode_direct" = yes; then
11307: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11308: else
11309: if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11310: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11311: haveit=
11312: for x in $rpathdirs; do
11313: if test "X$x" = "X$found_dir"; then
11314: haveit=yes
11315: break
11316: fi
11317: done
11318: if test -z "$haveit"; then
11319: rpathdirs="$rpathdirs $found_dir"
11320: fi
11321: else
11322: haveit=
11323: for x in $LDFLAGS $LIBICONV; do
11324:
11325: acl_save_prefix="$prefix"
11326: prefix="$acl_final_prefix"
11327: acl_save_exec_prefix="$exec_prefix"
11328: exec_prefix="$acl_final_exec_prefix"
11329: eval x=\"$x\"
11330: exec_prefix="$acl_save_exec_prefix"
11331: prefix="$acl_save_prefix"
11332:
11333: if test "X$x" = "X-L$found_dir"; then
11334: haveit=yes
11335: break
11336: fi
11337: done
11338: if test -z "$haveit"; then
11339: LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
11340: fi
11341: if test "$hardcode_minus_L" != no; then
11342: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
11343: else
11344: LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11345: fi
11346: fi
11347: fi
11348: fi
11349: else
11350: if test "X$found_a" != "X"; then
11351: LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
11352: else
11353: LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
11354: fi
11355: fi
11356: additional_includedir=
11357: case "$found_dir" in
11358: */$acl_libdirstem | */$acl_libdirstem/)
11359: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11360: additional_includedir="$basedir/include"
11361: ;;
11362: esac
11363: if test "X$additional_includedir" != "X"; then
11364: if test "X$additional_includedir" != "X/usr/include"; then
11365: haveit=
11366: if test "X$additional_includedir" = "X/usr/local/include"; then
11367: if test -n "$GCC"; then
11368: case $host_os in
11369: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11370: esac
11371: fi
11372: fi
11373: if test -z "$haveit"; then
11374: for x in $CPPFLAGS $INCICONV; do
11375:
11376: acl_save_prefix="$prefix"
11377: prefix="$acl_final_prefix"
11378: acl_save_exec_prefix="$exec_prefix"
11379: exec_prefix="$acl_final_exec_prefix"
11380: eval x=\"$x\"
11381: exec_prefix="$acl_save_exec_prefix"
11382: prefix="$acl_save_prefix"
11383:
11384: if test "X$x" = "X-I$additional_includedir"; then
11385: haveit=yes
11386: break
11387: fi
11388: done
11389: if test -z "$haveit"; then
11390: if test -d "$additional_includedir"; then
11391: INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
11392: fi
11393: fi
11394: fi
11395: fi
11396: fi
11397: if test -n "$found_la"; then
11398: save_libdir="$libdir"
11399: case "$found_la" in
11400: */* | *\\*) . "$found_la" ;;
11401: *) . "./$found_la" ;;
11402: esac
11403: libdir="$save_libdir"
11404: for dep in $dependency_libs; do
11405: case "$dep" in
11406: -L*)
11407: additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
11408: if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
11409: haveit=
11410: if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
11411: if test -n "$GCC"; then
11412: case $host_os in
11413: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
11414: esac
11415: fi
11416: fi
11417: if test -z "$haveit"; then
11418: haveit=
11419: for x in $LDFLAGS $LIBICONV; do
11420:
11421: acl_save_prefix="$prefix"
11422: prefix="$acl_final_prefix"
11423: acl_save_exec_prefix="$exec_prefix"
11424: exec_prefix="$acl_final_exec_prefix"
11425: eval x=\"$x\"
11426: exec_prefix="$acl_save_exec_prefix"
11427: prefix="$acl_save_prefix"
11428:
11429: if test "X$x" = "X-L$additional_libdir"; then
11430: haveit=yes
11431: break
11432: fi
11433: done
11434: if test -z "$haveit"; then
11435: if test -d "$additional_libdir"; then
11436: LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
11437: fi
11438: fi
11439: haveit=
11440: for x in $LDFLAGS $LTLIBICONV; do
11441:
11442: acl_save_prefix="$prefix"
11443: prefix="$acl_final_prefix"
11444: acl_save_exec_prefix="$exec_prefix"
11445: exec_prefix="$acl_final_exec_prefix"
11446: eval x=\"$x\"
11447: exec_prefix="$acl_save_exec_prefix"
11448: prefix="$acl_save_prefix"
11449:
11450: if test "X$x" = "X-L$additional_libdir"; then
11451: haveit=yes
11452: break
11453: fi
11454: done
11455: if test -z "$haveit"; then
11456: if test -d "$additional_libdir"; then
11457: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
11458: fi
11459: fi
11460: fi
11461: fi
11462: ;;
11463: -R*)
11464: dir=`echo "X$dep" | sed -e 's/^X-R//'`
11465: if test "$enable_rpath" != no; then
11466: haveit=
11467: for x in $rpathdirs; do
11468: if test "X$x" = "X$dir"; then
11469: haveit=yes
11470: break
11471: fi
11472: done
11473: if test -z "$haveit"; then
11474: rpathdirs="$rpathdirs $dir"
11475: fi
11476: haveit=
11477: for x in $ltrpathdirs; do
11478: if test "X$x" = "X$dir"; then
11479: haveit=yes
11480: break
11481: fi
11482: done
11483: if test -z "$haveit"; then
11484: ltrpathdirs="$ltrpathdirs $dir"
11485: fi
11486: fi
11487: ;;
11488: -l*)
11489: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11490: ;;
11491: *.la)
11492: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11493: ;;
11494: *)
11495: LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
11496: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
11497: ;;
11498: esac
11499: done
11500: fi
11501: else
11502: LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
11503: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
11504: fi
11505: fi
11506: fi
11507: done
11508: done
11509: if test "X$rpathdirs" != "X"; then
11510: if test -n "$hardcode_libdir_separator"; then
11511: alldirs=
11512: for found_dir in $rpathdirs; do
11513: alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
11514: done
11515: acl_save_libdir="$libdir"
11516: libdir="$alldirs"
11517: eval flag=\"$hardcode_libdir_flag_spec\"
11518: libdir="$acl_save_libdir"
11519: LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11520: else
11521: for found_dir in $rpathdirs; do
11522: acl_save_libdir="$libdir"
11523: libdir="$found_dir"
11524: eval flag=\"$hardcode_libdir_flag_spec\"
11525: libdir="$acl_save_libdir"
11526: LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
11527: done
11528: fi
11529: fi
11530: if test "X$ltrpathdirs" != "X"; then
11531: for found_dir in $ltrpathdirs; do
11532: LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
11533: done
11534: fi
11535:
11536:
11537:
11538:
11539:
11540:
11541:
11542:
11543:
11544:
11545:
11546:
11547:
11548:
11549:
11550:
11551:
11552:
11553:
11554:
11555:
11556:
11557:
11558:
11559:
11560: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
11561: $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
11562: if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then :
11563: $as_echo_n "(cached) " >&6
11564: else
11565: gt_save_LIBS="$LIBS"
11566: LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11567: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11568: /* end confdefs.h. */
11569: #include <CoreFoundation/CFPreferences.h>
11570: int
11571: main ()
11572: {
11573: CFPreferencesCopyAppValue(NULL, NULL)
11574: ;
11575: return 0;
11576: }
11577: _ACEOF
11578: if ac_fn_c_try_link "$LINENO"; then :
11579: gt_cv_func_CFPreferencesCopyAppValue=yes
11580: else
11581: gt_cv_func_CFPreferencesCopyAppValue=no
11582: fi
11583: rm -f core conftest.err conftest.$ac_objext \
11584: conftest$ac_exeext conftest.$ac_ext
11585: LIBS="$gt_save_LIBS"
11586: fi
11587: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
11588: $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
11589: if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
11590:
11591: $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
11592:
11593: fi
11594: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
11595: $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
11596: if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then :
11597: $as_echo_n "(cached) " >&6
11598: else
11599: gt_save_LIBS="$LIBS"
11600: LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
11601: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602: /* end confdefs.h. */
11603: #include <CoreFoundation/CFLocale.h>
11604: int
11605: main ()
11606: {
11607: CFLocaleCopyCurrent();
11608: ;
11609: return 0;
11610: }
11611: _ACEOF
11612: if ac_fn_c_try_link "$LINENO"; then :
11613: gt_cv_func_CFLocaleCopyCurrent=yes
11614: else
11615: gt_cv_func_CFLocaleCopyCurrent=no
11616: fi
11617: rm -f core conftest.err conftest.$ac_objext \
11618: conftest$ac_exeext conftest.$ac_ext
11619: LIBS="$gt_save_LIBS"
11620: fi
11621: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
11622: $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
11623: if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11624:
11625: $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
11626:
11627: fi
11628: INTL_MACOSX_LIBS=
11629: if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
11630: INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
11631: fi
11632:
11633:
11634:
11635:
11636:
11637:
11638: LIBINTL=
11639: LTLIBINTL=
11640: POSUB=
11641:
11642: case " $gt_needs " in
11643: *" need-formatstring-macros "*) gt_api_version=3 ;;
11644: *" need-ngettext "*) gt_api_version=2 ;;
11645: *) gt_api_version=1 ;;
11646: esac
11647: gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
11648: gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
11649:
11650: if test "$USE_NLS" = "yes"; then
11651: gt_use_preinstalled_gnugettext=no
11652:
11653:
11654: if test $gt_api_version -ge 3; then
11655: gt_revision_test_code='
11656: #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
11657: #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
11658: #endif
11659: typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
11660: '
11661: else
11662: gt_revision_test_code=
11663: fi
11664: if test $gt_api_version -ge 2; then
11665: gt_expression_test_code=' + * ngettext ("", "", 0)'
11666: else
11667: gt_expression_test_code=
11668: fi
11669:
11670: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
11671: $as_echo_n "checking for GNU gettext in libc... " >&6; }
11672: if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then :
11673: $as_echo_n "(cached) " >&6
11674: else
11675: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11676: /* end confdefs.h. */
11677: #include <libintl.h>
11678: $gt_revision_test_code
11679: extern int _nl_msg_cat_cntr;
11680: extern int *_nl_domain_bindings;
11681: int
11682: main ()
11683: {
11684: bindtextdomain ("", "");
11685: return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
11686: ;
11687: return 0;
11688: }
11689: _ACEOF
11690: if ac_fn_c_try_link "$LINENO"; then :
11691: eval "$gt_func_gnugettext_libc=yes"
11692: else
11693: eval "$gt_func_gnugettext_libc=no"
11694: fi
11695: rm -f core conftest.err conftest.$ac_objext \
11696: conftest$ac_exeext conftest.$ac_ext
11697: fi
11698: eval ac_res=\$$gt_func_gnugettext_libc
11699: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11700: $as_echo "$ac_res" >&6; }
11701:
11702: if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
11703:
11704:
11705:
11706:
11707:
11708: am_save_CPPFLAGS="$CPPFLAGS"
11709:
11710: for element in $INCICONV; do
11711: haveit=
11712: for x in $CPPFLAGS; do
11713:
11714: acl_save_prefix="$prefix"
11715: prefix="$acl_final_prefix"
11716: acl_save_exec_prefix="$exec_prefix"
11717: exec_prefix="$acl_final_exec_prefix"
11718: eval x=\"$x\"
11719: exec_prefix="$acl_save_exec_prefix"
11720: prefix="$acl_save_prefix"
11721:
11722: if test "X$x" = "X$element"; then
11723: haveit=yes
11724: break
11725: fi
11726: done
11727: if test -z "$haveit"; then
11728: CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11729: fi
11730: done
11731:
11732:
11733: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
11734: $as_echo_n "checking for iconv... " >&6; }
11735: if test "${am_cv_func_iconv+set}" = set; then :
11736: $as_echo_n "(cached) " >&6
11737: else
11738:
11739: am_cv_func_iconv="no, consider installing GNU libiconv"
11740: am_cv_lib_iconv=no
11741: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11742: /* end confdefs.h. */
11743: #include <stdlib.h>
11744: #include <iconv.h>
11745: int
11746: main ()
11747: {
11748: iconv_t cd = iconv_open("","");
11749: iconv(cd,NULL,NULL,NULL,NULL);
11750: iconv_close(cd);
11751: ;
11752: return 0;
11753: }
11754: _ACEOF
11755: if ac_fn_c_try_link "$LINENO"; then :
11756: am_cv_func_iconv=yes
11757: fi
11758: rm -f core conftest.err conftest.$ac_objext \
11759: conftest$ac_exeext conftest.$ac_ext
11760: if test "$am_cv_func_iconv" != yes; then
11761: am_save_LIBS="$LIBS"
11762: LIBS="$LIBS $LIBICONV"
11763: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764: /* end confdefs.h. */
11765: #include <stdlib.h>
11766: #include <iconv.h>
11767: int
11768: main ()
11769: {
11770: iconv_t cd = iconv_open("","");
11771: iconv(cd,NULL,NULL,NULL,NULL);
11772: iconv_close(cd);
11773: ;
11774: return 0;
11775: }
11776: _ACEOF
11777: if ac_fn_c_try_link "$LINENO"; then :
11778: am_cv_lib_iconv=yes
11779: am_cv_func_iconv=yes
11780: fi
11781: rm -f core conftest.err conftest.$ac_objext \
11782: conftest$ac_exeext conftest.$ac_ext
11783: LIBS="$am_save_LIBS"
11784: fi
11785:
11786: fi
11787: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
11788: $as_echo "$am_cv_func_iconv" >&6; }
11789: if test "$am_cv_func_iconv" = yes; then
11790:
11791: $as_echo "#define HAVE_ICONV 1" >>confdefs.h
11792:
11793: fi
11794: if test "$am_cv_lib_iconv" = yes; then
11795: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
11796: $as_echo_n "checking how to link with libiconv... " >&6; }
11797: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
11798: $as_echo "$LIBICONV" >&6; }
11799: else
11800: CPPFLAGS="$am_save_CPPFLAGS"
11801: LIBICONV=
11802: LTLIBICONV=
11803: fi
11804:
11805:
11806:
11807:
11808:
11809:
11810:
11811: use_additional=yes
11812:
11813: acl_save_prefix="$prefix"
11814: prefix="$acl_final_prefix"
11815: acl_save_exec_prefix="$exec_prefix"
11816: exec_prefix="$acl_final_exec_prefix"
11817:
11818: eval additional_includedir=\"$includedir\"
11819: eval additional_libdir=\"$libdir\"
11820:
11821: exec_prefix="$acl_save_exec_prefix"
11822: prefix="$acl_save_prefix"
11823:
11824:
11825: # Check whether --with-libintl-prefix was given.
11826: if test "${with_libintl_prefix+set}" = set; then :
11827: withval=$with_libintl_prefix;
11828: if test "X$withval" = "Xno"; then
11829: use_additional=no
11830: else
11831: if test "X$withval" = "X"; then
11832:
11833: acl_save_prefix="$prefix"
11834: prefix="$acl_final_prefix"
11835: acl_save_exec_prefix="$exec_prefix"
11836: exec_prefix="$acl_final_exec_prefix"
11837:
11838: eval additional_includedir=\"$includedir\"
11839: eval additional_libdir=\"$libdir\"
11840:
11841: exec_prefix="$acl_save_exec_prefix"
11842: prefix="$acl_save_prefix"
11843:
11844: else
11845: additional_includedir="$withval/include"
11846: additional_libdir="$withval/$acl_libdirstem"
11847: fi
11848: fi
11849:
11850: fi
11851:
11852: LIBINTL=
11853: LTLIBINTL=
11854: INCINTL=
11855: rpathdirs=
11856: ltrpathdirs=
11857: names_already_handled=
11858: names_next_round='intl '
11859: while test -n "$names_next_round"; do
11860: names_this_round="$names_next_round"
11861: names_next_round=
11862: for name in $names_this_round; do
11863: already_handled=
11864: for n in $names_already_handled; do
11865: if test "$n" = "$name"; then
11866: already_handled=yes
11867: break
11868: fi
11869: done
11870: if test -z "$already_handled"; then
11871: names_already_handled="$names_already_handled $name"
11872: uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
11873: eval value=\"\$HAVE_LIB$uppername\"
11874: if test -n "$value"; then
11875: if test "$value" = yes; then
11876: eval value=\"\$LIB$uppername\"
11877: test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
11878: eval value=\"\$LTLIB$uppername\"
11879: test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
11880: else
11881: :
11882: fi
11883: else
11884: found_dir=
11885: found_la=
11886: found_so=
11887: found_a=
11888: if test $use_additional = yes; then
11889: if test -n "$shlibext" \
11890: && { test -f "$additional_libdir/lib$name.$shlibext" \
11891: || { test "$shlibext" = dll \
11892: && test -f "$additional_libdir/lib$name.dll.a"; }; }; then
11893: found_dir="$additional_libdir"
11894: if test -f "$additional_libdir/lib$name.$shlibext"; then
11895: found_so="$additional_libdir/lib$name.$shlibext"
11896: else
11897: found_so="$additional_libdir/lib$name.dll.a"
11898: fi
11899: if test -f "$additional_libdir/lib$name.la"; then
11900: found_la="$additional_libdir/lib$name.la"
11901: fi
11902: else
11903: if test -f "$additional_libdir/lib$name.$libext"; then
11904: found_dir="$additional_libdir"
11905: found_a="$additional_libdir/lib$name.$libext"
11906: if test -f "$additional_libdir/lib$name.la"; then
11907: found_la="$additional_libdir/lib$name.la"
11908: fi
11909: fi
11910: fi
11911: fi
11912: if test "X$found_dir" = "X"; then
11913: for x in $LDFLAGS $LTLIBINTL; do
11914:
11915: acl_save_prefix="$prefix"
11916: prefix="$acl_final_prefix"
11917: acl_save_exec_prefix="$exec_prefix"
11918: exec_prefix="$acl_final_exec_prefix"
11919: eval x=\"$x\"
11920: exec_prefix="$acl_save_exec_prefix"
11921: prefix="$acl_save_prefix"
11922:
11923: case "$x" in
11924: -L*)
11925: dir=`echo "X$x" | sed -e 's/^X-L//'`
11926: if test -n "$shlibext" \
11927: && { test -f "$dir/lib$name.$shlibext" \
11928: || { test "$shlibext" = dll \
11929: && test -f "$dir/lib$name.dll.a"; }; }; then
11930: found_dir="$dir"
11931: if test -f "$dir/lib$name.$shlibext"; then
11932: found_so="$dir/lib$name.$shlibext"
11933: else
11934: found_so="$dir/lib$name.dll.a"
11935: fi
11936: if test -f "$dir/lib$name.la"; then
11937: found_la="$dir/lib$name.la"
11938: fi
11939: else
11940: if test -f "$dir/lib$name.$libext"; then
11941: found_dir="$dir"
11942: found_a="$dir/lib$name.$libext"
11943: if test -f "$dir/lib$name.la"; then
11944: found_la="$dir/lib$name.la"
11945: fi
11946: fi
11947: fi
11948: ;;
11949: esac
11950: if test "X$found_dir" != "X"; then
11951: break
11952: fi
11953: done
11954: fi
11955: if test "X$found_dir" != "X"; then
11956: LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11957: if test "X$found_so" != "X"; then
11958: if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then
11959: LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11960: else
11961: haveit=
11962: for x in $ltrpathdirs; do
11963: if test "X$x" = "X$found_dir"; then
11964: haveit=yes
11965: break
11966: fi
11967: done
11968: if test -z "$haveit"; then
11969: ltrpathdirs="$ltrpathdirs $found_dir"
11970: fi
11971: if test "$hardcode_direct" = yes; then
11972: LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11973: else
11974: if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
11975: LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11976: haveit=
11977: for x in $rpathdirs; do
11978: if test "X$x" = "X$found_dir"; then
11979: haveit=yes
11980: break
11981: fi
11982: done
11983: if test -z "$haveit"; then
11984: rpathdirs="$rpathdirs $found_dir"
11985: fi
11986: else
11987: haveit=
11988: for x in $LDFLAGS $LIBINTL; do
11989:
11990: acl_save_prefix="$prefix"
11991: prefix="$acl_final_prefix"
11992: acl_save_exec_prefix="$exec_prefix"
11993: exec_prefix="$acl_final_exec_prefix"
11994: eval x=\"$x\"
11995: exec_prefix="$acl_save_exec_prefix"
11996: prefix="$acl_save_prefix"
11997:
11998: if test "X$x" = "X-L$found_dir"; then
11999: haveit=yes
12000: break
12001: fi
12002: done
12003: if test -z "$haveit"; then
12004: LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
12005: fi
12006: if test "$hardcode_minus_L" != no; then
12007: LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
12008: else
12009: LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12010: fi
12011: fi
12012: fi
12013: fi
12014: else
12015: if test "X$found_a" != "X"; then
12016: LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
12017: else
12018: LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
12019: fi
12020: fi
12021: additional_includedir=
12022: case "$found_dir" in
12023: */$acl_libdirstem | */$acl_libdirstem/)
12024: basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
12025: additional_includedir="$basedir/include"
12026: ;;
12027: esac
12028: if test "X$additional_includedir" != "X"; then
12029: if test "X$additional_includedir" != "X/usr/include"; then
12030: haveit=
12031: if test "X$additional_includedir" = "X/usr/local/include"; then
12032: if test -n "$GCC"; then
12033: case $host_os in
12034: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12035: esac
12036: fi
12037: fi
12038: if test -z "$haveit"; then
12039: for x in $CPPFLAGS $INCINTL; do
12040:
12041: acl_save_prefix="$prefix"
12042: prefix="$acl_final_prefix"
12043: acl_save_exec_prefix="$exec_prefix"
12044: exec_prefix="$acl_final_exec_prefix"
12045: eval x=\"$x\"
12046: exec_prefix="$acl_save_exec_prefix"
12047: prefix="$acl_save_prefix"
12048:
12049: if test "X$x" = "X-I$additional_includedir"; then
12050: haveit=yes
12051: break
12052: fi
12053: done
12054: if test -z "$haveit"; then
12055: if test -d "$additional_includedir"; then
12056: INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
12057: fi
12058: fi
12059: fi
12060: fi
12061: fi
12062: if test -n "$found_la"; then
12063: save_libdir="$libdir"
12064: case "$found_la" in
12065: */* | *\\*) . "$found_la" ;;
12066: *) . "./$found_la" ;;
12067: esac
12068: libdir="$save_libdir"
12069: for dep in $dependency_libs; do
12070: case "$dep" in
12071: -L*)
12072: additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
12073: if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then
12074: haveit=
12075: if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then
12076: if test -n "$GCC"; then
12077: case $host_os in
12078: linux* | gnu* | k*bsd*-gnu) haveit=yes;;
12079: esac
12080: fi
12081: fi
12082: if test -z "$haveit"; then
12083: haveit=
12084: for x in $LDFLAGS $LIBINTL; do
12085:
12086: acl_save_prefix="$prefix"
12087: prefix="$acl_final_prefix"
12088: acl_save_exec_prefix="$exec_prefix"
12089: exec_prefix="$acl_final_exec_prefix"
12090: eval x=\"$x\"
12091: exec_prefix="$acl_save_exec_prefix"
12092: prefix="$acl_save_prefix"
12093:
12094: if test "X$x" = "X-L$additional_libdir"; then
12095: haveit=yes
12096: break
12097: fi
12098: done
12099: if test -z "$haveit"; then
12100: if test -d "$additional_libdir"; then
12101: LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
12102: fi
12103: fi
12104: haveit=
12105: for x in $LDFLAGS $LTLIBINTL; do
12106:
12107: acl_save_prefix="$prefix"
12108: prefix="$acl_final_prefix"
12109: acl_save_exec_prefix="$exec_prefix"
12110: exec_prefix="$acl_final_exec_prefix"
12111: eval x=\"$x\"
12112: exec_prefix="$acl_save_exec_prefix"
12113: prefix="$acl_save_prefix"
12114:
12115: if test "X$x" = "X-L$additional_libdir"; then
12116: haveit=yes
12117: break
12118: fi
12119: done
12120: if test -z "$haveit"; then
12121: if test -d "$additional_libdir"; then
12122: LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
12123: fi
12124: fi
12125: fi
12126: fi
12127: ;;
12128: -R*)
12129: dir=`echo "X$dep" | sed -e 's/^X-R//'`
12130: if test "$enable_rpath" != no; then
12131: haveit=
12132: for x in $rpathdirs; do
12133: if test "X$x" = "X$dir"; then
12134: haveit=yes
12135: break
12136: fi
12137: done
12138: if test -z "$haveit"; then
12139: rpathdirs="$rpathdirs $dir"
12140: fi
12141: haveit=
12142: for x in $ltrpathdirs; do
12143: if test "X$x" = "X$dir"; then
12144: haveit=yes
12145: break
12146: fi
12147: done
12148: if test -z "$haveit"; then
12149: ltrpathdirs="$ltrpathdirs $dir"
12150: fi
12151: fi
12152: ;;
12153: -l*)
12154: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
12155: ;;
12156: *.la)
12157: names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
12158: ;;
12159: *)
12160: LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
12161: LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
12162: ;;
12163: esac
12164: done
12165: fi
12166: else
12167: LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
12168: LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
12169: fi
12170: fi
12171: fi
12172: done
12173: done
12174: if test "X$rpathdirs" != "X"; then
12175: if test -n "$hardcode_libdir_separator"; then
12176: alldirs=
12177: for found_dir in $rpathdirs; do
12178: alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
12179: done
12180: acl_save_libdir="$libdir"
12181: libdir="$alldirs"
12182: eval flag=\"$hardcode_libdir_flag_spec\"
12183: libdir="$acl_save_libdir"
12184: LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12185: else
12186: for found_dir in $rpathdirs; do
12187: acl_save_libdir="$libdir"
12188: libdir="$found_dir"
12189: eval flag=\"$hardcode_libdir_flag_spec\"
12190: libdir="$acl_save_libdir"
12191: LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
12192: done
12193: fi
12194: fi
12195: if test "X$ltrpathdirs" != "X"; then
12196: for found_dir in $ltrpathdirs; do
12197: LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
12198: done
12199: fi
12200:
12201: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
12202: $as_echo_n "checking for GNU gettext in libintl... " >&6; }
12203: if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then :
12204: $as_echo_n "(cached) " >&6
12205: else
12206: gt_save_CPPFLAGS="$CPPFLAGS"
12207: CPPFLAGS="$CPPFLAGS $INCINTL"
12208: gt_save_LIBS="$LIBS"
12209: LIBS="$LIBS $LIBINTL"
12210: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12211: /* end confdefs.h. */
12212: #include <libintl.h>
12213: $gt_revision_test_code
12214: extern int _nl_msg_cat_cntr;
12215: extern
12216: #ifdef __cplusplus
12217: "C"
12218: #endif
12219: const char *_nl_expand_alias (const char *);
12220: int
12221: main ()
12222: {
12223: bindtextdomain ("", "");
12224: return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12225: ;
12226: return 0;
12227: }
12228: _ACEOF
12229: if ac_fn_c_try_link "$LINENO"; then :
12230: eval "$gt_func_gnugettext_libintl=yes"
12231: else
12232: eval "$gt_func_gnugettext_libintl=no"
12233: fi
12234: rm -f core conftest.err conftest.$ac_objext \
12235: conftest$ac_exeext conftest.$ac_ext
12236: if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
12237: LIBS="$LIBS $LIBICONV"
12238: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12239: /* end confdefs.h. */
12240: #include <libintl.h>
12241: $gt_revision_test_code
12242: extern int _nl_msg_cat_cntr;
12243: extern
12244: #ifdef __cplusplus
12245: "C"
12246: #endif
12247: const char *_nl_expand_alias (const char *);
12248: int
12249: main ()
12250: {
12251: bindtextdomain ("", "");
12252: return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
12253: ;
12254: return 0;
12255: }
12256: _ACEOF
12257: if ac_fn_c_try_link "$LINENO"; then :
12258: LIBINTL="$LIBINTL $LIBICONV"
12259: LTLIBINTL="$LTLIBINTL $LTLIBICONV"
12260: eval "$gt_func_gnugettext_libintl=yes"
12261:
12262: fi
12263: rm -f core conftest.err conftest.$ac_objext \
12264: conftest$ac_exeext conftest.$ac_ext
12265: fi
12266: CPPFLAGS="$gt_save_CPPFLAGS"
12267: LIBS="$gt_save_LIBS"
12268: fi
12269: eval ac_res=\$$gt_func_gnugettext_libintl
12270: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12271: $as_echo "$ac_res" >&6; }
12272: fi
12273:
12274: if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
12275: || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
12276: && test "$PACKAGE" != gettext-runtime \
12277: && test "$PACKAGE" != gettext-tools; }; then
12278: gt_use_preinstalled_gnugettext=yes
12279: else
12280: LIBINTL=
12281: LTLIBINTL=
12282: INCINTL=
12283: fi
12284:
12285:
12286:
12287: if test -n "$INTL_MACOSX_LIBS"; then
12288: if test "$gt_use_preinstalled_gnugettext" = "yes" \
12289: || test "$nls_cv_use_gnu_gettext" = "yes"; then
12290: LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
12291: LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
12292: fi
12293: fi
12294:
12295: if test "$gt_use_preinstalled_gnugettext" = "yes" \
12296: || test "$nls_cv_use_gnu_gettext" = "yes"; then
12297:
12298: $as_echo "#define ENABLE_NLS 1" >>confdefs.h
12299:
12300: else
12301: USE_NLS=no
12302: fi
12303: fi
12304:
12305: { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
12306: $as_echo_n "checking whether to use NLS... " >&6; }
12307: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
12308: $as_echo "$USE_NLS" >&6; }
12309: if test "$USE_NLS" = "yes"; then
12310: { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
12311: $as_echo_n "checking where the gettext function comes from... " >&6; }
12312: if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12313: if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12314: gt_source="external libintl"
12315: else
12316: gt_source="libc"
12317: fi
12318: else
12319: gt_source="included intl directory"
12320: fi
12321: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
12322: $as_echo "$gt_source" >&6; }
12323: fi
12324:
12325: if test "$USE_NLS" = "yes"; then
12326:
12327: if test "$gt_use_preinstalled_gnugettext" = "yes"; then
12328: if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
12329: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
12330: $as_echo_n "checking how to link with libintl... " >&6; }
12331: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
12332: $as_echo "$LIBINTL" >&6; }
12333:
12334: for element in $INCINTL; do
12335: haveit=
12336: for x in $CPPFLAGS; do
12337:
12338: acl_save_prefix="$prefix"
12339: prefix="$acl_final_prefix"
12340: acl_save_exec_prefix="$exec_prefix"
12341: exec_prefix="$acl_final_exec_prefix"
12342: eval x=\"$x\"
12343: exec_prefix="$acl_save_exec_prefix"
12344: prefix="$acl_save_prefix"
12345:
12346: if test "X$x" = "X$element"; then
12347: haveit=yes
12348: break
12349: fi
12350: done
12351: if test -z "$haveit"; then
12352: CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
12353: fi
12354: done
12355:
12356: fi
12357:
12358:
12359: $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
12360:
12361:
12362: $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
12363:
12364: fi
12365:
12366: POSUB=po
12367: fi
12368:
12369:
12370:
12371: INTLLIBS="$LIBINTL"
12372:
12373:
12374:
12375:
12376:
12377:
12378:
12379:
12380: # Checks for header files.
12381: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12382: $as_echo_n "checking for ANSI C header files... " >&6; }
12383: if test "${ac_cv_header_stdc+set}" = set; then :
12384: $as_echo_n "(cached) " >&6
12385: else
12386: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12387: /* end confdefs.h. */
12388: #include <stdlib.h>
12389: #include <stdarg.h>
12390: #include <string.h>
12391: #include <float.h>
12392:
12393: int
12394: main ()
12395: {
12396:
12397: ;
12398: return 0;
12399: }
12400: _ACEOF
12401: if ac_fn_c_try_compile "$LINENO"; then :
12402: ac_cv_header_stdc=yes
12403: else
12404: ac_cv_header_stdc=no
12405: fi
12406: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12407:
12408: if test $ac_cv_header_stdc = yes; then
12409: # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12410: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411: /* end confdefs.h. */
12412: #include <string.h>
12413:
12414: _ACEOF
12415: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12416: $EGREP "memchr" >/dev/null 2>&1; then :
12417:
12418: else
12419: ac_cv_header_stdc=no
12420: fi
12421: rm -f conftest*
12422:
12423: fi
12424:
12425: if test $ac_cv_header_stdc = yes; then
12426: # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12427: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428: /* end confdefs.h. */
12429: #include <stdlib.h>
12430:
12431: _ACEOF
12432: if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12433: $EGREP "free" >/dev/null 2>&1; then :
12434:
12435: else
12436: ac_cv_header_stdc=no
12437: fi
12438: rm -f conftest*
12439:
12440: fi
12441:
12442: if test $ac_cv_header_stdc = yes; then
12443: # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12444: if test "$cross_compiling" = yes; then :
12445: :
12446: else
12447: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448: /* end confdefs.h. */
12449: #include <ctype.h>
12450: #include <stdlib.h>
12451: #if ((' ' & 0x0FF) == 0x020)
12452: # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12453: # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12454: #else
12455: # define ISLOWER(c) \
12456: (('a' <= (c) && (c) <= 'i') \
12457: || ('j' <= (c) && (c) <= 'r') \
12458: || ('s' <= (c) && (c) <= 'z'))
12459: # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12460: #endif
12461:
12462: #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12463: int
12464: main ()
12465: {
12466: int i;
12467: for (i = 0; i < 256; i++)
12468: if (XOR (islower (i), ISLOWER (i))
12469: || toupper (i) != TOUPPER (i))
12470: return 2;
12471: return 0;
12472: }
12473: _ACEOF
12474: if ac_fn_c_try_run "$LINENO"; then :
12475:
12476: else
12477: ac_cv_header_stdc=no
12478: fi
12479: rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12480: conftest.$ac_objext conftest.beam conftest.$ac_ext
12481: fi
12482:
12483: fi
12484: fi
12485: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12486: $as_echo "$ac_cv_header_stdc" >&6; }
12487: if test $ac_cv_header_stdc = yes; then
12488:
12489: $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12490:
12491: fi
12492:
12493: for ac_header in unistd.h
12494: do :
12495: ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12496: if test "x$ac_cv_header_unistd_h" = x""yes; then :
12497: cat >>confdefs.h <<_ACEOF
12498: #define HAVE_UNISTD_H 1
12499: _ACEOF
12500:
12501: fi
12502:
12503: done
12504:
12505:
12506: # Checks for typedefs, structures, and compiler characteristics.
12507: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12508: $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12509: if test "${ac_cv_c_const+set}" = set; then :
12510: $as_echo_n "(cached) " >&6
12511: else
12512: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12513: /* end confdefs.h. */
12514:
12515: int
12516: main ()
12517: {
12518: /* FIXME: Include the comments suggested by Paul. */
12519: #ifndef __cplusplus
12520: /* Ultrix mips cc rejects this. */
12521: typedef int charset[2];
12522: const charset cs;
12523: /* SunOS 4.1.1 cc rejects this. */
12524: char const *const *pcpcc;
12525: char **ppc;
12526: /* NEC SVR4.0.2 mips cc rejects this. */
12527: struct point {int x, y;};
12528: static struct point const zero = {0,0};
12529: /* AIX XL C 1.02.0.0 rejects this.
12530: It does not let you subtract one const X* pointer from another in
12531: an arm of an if-expression whose if-part is not a constant
12532: expression */
12533: const char *g = "string";
12534: pcpcc = &g + (g ? g-g : 0);
12535: /* HPUX 7.0 cc rejects these. */
12536: ++pcpcc;
12537: ppc = (char**) pcpcc;
12538: pcpcc = (char const *const *) ppc;
12539: { /* SCO 3.2v4 cc rejects this. */
12540: char *t;
12541: char const *s = 0 ? (char *) 0 : (char const *) 0;
12542:
12543: *t++ = 0;
12544: if (s) return 0;
12545: }
12546: { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12547: int x[] = {25, 17};
12548: const int *foo = &x[0];
12549: ++foo;
12550: }
12551: { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12552: typedef const int *iptr;
12553: iptr p = 0;
12554: ++p;
12555: }
12556: { /* AIX XL C 1.02.0.0 rejects this saying
12557: "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12558: struct s { int j; const int *ap[3]; };
12559: struct s *b; b->j = 5;
12560: }
12561: { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12562: const int foo = 10;
12563: if (!foo) return 0;
12564: }
12565: return !cs[0] && !zero.x;
12566: #endif
12567:
12568: ;
12569: return 0;
12570: }
12571: _ACEOF
12572: if ac_fn_c_try_compile "$LINENO"; then :
12573: ac_cv_c_const=yes
12574: else
12575: ac_cv_c_const=no
12576: fi
12577: rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12578: fi
12579: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12580: $as_echo "$ac_cv_c_const" >&6; }
12581: if test $ac_cv_c_const = no; then
12582:
12583: $as_echo "#define const /**/" >>confdefs.h
12584:
12585: fi
12586:
12587:
12588: # Checks for library functions.
12589: for ac_func in strcasecmp strdup strndup
12590: do :
12591: as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12592: ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12593: eval as_val=\$$as_ac_var
12594: if test "x$as_val" = x""yes; then :
12595: cat >>confdefs.h <<_ACEOF
12596: #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12597: _ACEOF
12598:
12599: fi
12600: done
12601:
12602:
12603: { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_ntoa" >&5
12604: $as_echo_n "checking for library containing inet_ntoa... " >&6; }
12605: if test "${ac_cv_search_inet_ntoa+set}" = set; then :
12606: $as_echo_n "(cached) " >&6
12607: else
12608: ac_func_search_save_LIBS=$LIBS
12609: cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610: /* end confdefs.h. */
12611:
12612: /* Override any GCC internal prototype to avoid an error.
12613: Use char because int might match the return type of a GCC
12614: builtin and then its argument prototype would still apply. */
12615: #ifdef __cplusplus
12616: extern "C"
12617: #endif
12618: char inet_ntoa ();
12619: int
12620: main ()
12621: {
12622: return inet_ntoa ();
12623: ;
12624: return 0;
12625: }
12626: _ACEOF
12627: for ac_lib in '' socket nsl; do
12628: if test -z "$ac_lib"; then
12629: ac_res="none required"
12630: else
12631: ac_res=-l$ac_lib
12632: LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12633: fi
12634: if ac_fn_c_try_link "$LINENO"; then :
12635: ac_cv_search_inet_ntoa=$ac_res
12636: fi
12637: rm -f core conftest.err conftest.$ac_objext \
12638: conftest$ac_exeext
12639: if test "${ac_cv_search_inet_ntoa+set}" = set; then :
12640: break
12641: fi
12642: done
12643: if test "${ac_cv_search_inet_ntoa+set}" = set; then :
12644:
12645: else
12646: ac_cv_search_inet_ntoa=no
12647: fi
12648: rm conftest.$ac_ext
12649: LIBS=$ac_func_search_save_LIBS
12650: fi
12651: { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_ntoa" >&5
12652: $as_echo "$ac_cv_search_inet_ntoa" >&6; }
12653: ac_res=$ac_cv_search_inet_ntoa
12654: if test "$ac_res" != no; then :
12655: test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12656:
12657: fi
12658:
12659:
12660: ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile po/Makefile.in m4/Makefile tests/Makefile doc/Makefile doc/Doxyfile libconfuse.pc libconfuse.spec"
12661:
12662: cat >confcache <<\_ACEOF
12663: # This file is a shell script that caches the results of configure
12664: # tests run on this system so they can be shared between configure
12665: # scripts and configure runs, see configure's option --config-cache.
12666: # It is not useful on other systems. If it contains results you don't
12667: # want to keep, you may remove or edit it.
12668: #
12669: # config.status only pays attention to the cache file if you give it
12670: # the --recheck option to rerun configure.
12671: #
12672: # `ac_cv_env_foo' variables (set or unset) will be overridden when
12673: # loading this file, other *unset* `ac_cv_foo' will be assigned the
12674: # following values.
12675:
12676: _ACEOF
12677:
12678: # The following way of writing the cache mishandles newlines in values,
12679: # but we know of no workaround that is simple, portable, and efficient.
12680: # So, we kill variables containing newlines.
12681: # Ultrix sh set writes to stderr and can't be redirected directly,
12682: # and sets the high bit in the cache file unless we assign to the vars.
12683: (
12684: for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12685: eval ac_val=\$$ac_var
12686: case $ac_val in #(
12687: *${as_nl}*)
12688: case $ac_var in #(
12689: *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12690: $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12691: esac
12692: case $ac_var in #(
12693: _ | IFS | as_nl) ;; #(
12694: BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12695: *) { eval $ac_var=; unset $ac_var;} ;;
12696: esac ;;
12697: esac
12698: done
12699:
12700: (set) 2>&1 |
12701: case $as_nl`(ac_space=' '; set) 2>&1` in #(
12702: *${as_nl}ac_space=\ *)
12703: # `set' does not quote correctly, so add quotes: double-quote
12704: # substitution turns \\\\ into \\, and sed turns \\ into \.
12705: sed -n \
12706: "s/'/'\\\\''/g;
12707: s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12708: ;; #(
12709: *)
12710: # `set' quotes correctly as required by POSIX, so do not add quotes.
12711: sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12712: ;;
12713: esac |
12714: sort
12715: ) |
12716: sed '
12717: /^ac_cv_env_/b end
12718: t clear
12719: :clear
12720: s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12721: t end
12722: s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12723: :end' >>confcache
12724: if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12725: if test -w "$cache_file"; then
12726: test "x$cache_file" != "x/dev/null" &&
12727: { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12728: $as_echo "$as_me: updating cache $cache_file" >&6;}
12729: cat confcache >$cache_file
12730: else
12731: { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12732: $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12733: fi
12734: fi
12735: rm -f confcache
12736:
12737: test "x$prefix" = xNONE && prefix=$ac_default_prefix
12738: # Let make expand exec_prefix.
12739: test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12740:
12741: DEFS=-DHAVE_CONFIG_H
12742:
12743: ac_libobjs=
12744: ac_ltlibobjs=
12745: for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12746: # 1. Remove the extension, and $U if already installed.
12747: ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12748: ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12749: # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12750: # will be set to the directory where LIBOBJS objects are built.
12751: as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12752: as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12753: done
12754: LIBOBJS=$ac_libobjs
12755:
12756: LTLIBOBJS=$ac_ltlibobjs
12757:
12758:
12759: if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
12760: as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
12761: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12762: fi
12763: if test -n "$EXEEXT"; then
12764: am__EXEEXT_TRUE=
12765: am__EXEEXT_FALSE='#'
12766: else
12767: am__EXEEXT_TRUE='#'
12768: am__EXEEXT_FALSE=
12769: fi
12770:
12771: if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
12772: as_fn_error "conditional \"AMDEP\" was never defined.
12773: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12774: fi
12775: if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
12776: as_fn_error "conditional \"am__fastdepCC\" was never defined.
12777: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12778: fi
12779: if test -z "${ENABLE_EXAMPLES_TRUE}" && test -z "${ENABLE_EXAMPLES_FALSE}"; then
12780: as_fn_error "conditional \"ENABLE_EXAMPLES\" was never defined.
12781: Usually this means the macro was only invoked conditionally." "$LINENO" 5
12782: fi
12783:
12784: : ${CONFIG_STATUS=./config.status}
12785: ac_write_fail=0
12786: ac_clean_files_save=$ac_clean_files
12787: ac_clean_files="$ac_clean_files $CONFIG_STATUS"
12788: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
12789: $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
12790: as_write_fail=0
12791: cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
12792: #! $SHELL
12793: # Generated by $as_me.
12794: # Run this file to recreate the current configuration.
12795: # Compiler output produced by configure, useful for debugging
12796: # configure, is in config.log if it exists.
12797:
12798: debug=false
12799: ac_cs_recheck=false
12800: ac_cs_silent=false
12801:
12802: SHELL=\${CONFIG_SHELL-$SHELL}
12803: export SHELL
12804: _ASEOF
12805: cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12806: ## -------------------- ##
12807: ## M4sh Initialization. ##
12808: ## -------------------- ##
12809:
12810: # Be more Bourne compatible
12811: DUALCASE=1; export DUALCASE # for MKS sh
12812: if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
12813: emulate sh
12814: NULLCMD=:
12815: # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
12816: # is contrary to our usage. Disable this feature.
12817: alias -g '${1+"$@"}'='"$@"'
12818: setopt NO_GLOB_SUBST
12819: else
12820: case `(set -o) 2>/dev/null` in #(
12821: *posix*) :
12822: set -o posix ;; #(
12823: *) :
12824: ;;
12825: esac
12826: fi
12827:
12828:
12829: as_nl='
12830: '
12831: export as_nl
12832: # Printing a long string crashes Solaris 7 /usr/bin/printf.
12833: as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12834: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12835: as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
12836: # Prefer a ksh shell builtin over an external printf program on Solaris,
12837: # but without wasting forks for bash or zsh.
12838: if test -z "$BASH_VERSION$ZSH_VERSION" \
12839: && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12840: as_echo='print -r --'
12841: as_echo_n='print -rn --'
12842: elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
12843: as_echo='printf %s\n'
12844: as_echo_n='printf %s'
12845: else
12846: if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12847: as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12848: as_echo_n='/usr/ucb/echo -n'
12849: else
12850: as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12851: as_echo_n_body='eval
12852: arg=$1;
12853: case $arg in #(
12854: *"$as_nl"*)
12855: expr "X$arg" : "X\\(.*\\)$as_nl";
12856: arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12857: esac;
12858: expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12859: '
12860: export as_echo_n_body
12861: as_echo_n='sh -c $as_echo_n_body as_echo'
12862: fi
12863: export as_echo_body
12864: as_echo='sh -c $as_echo_body as_echo'
12865: fi
12866:
12867: # The user is always right.
12868: if test "${PATH_SEPARATOR+set}" != set; then
12869: PATH_SEPARATOR=:
12870: (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12871: (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12872: PATH_SEPARATOR=';'
12873: }
12874: fi
12875:
12876:
12877: # IFS
12878: # We need space, tab and new line, in precisely that order. Quoting is
12879: # there to prevent editors from complaining about space-tab.
12880: # (If _AS_PATH_WALK were called with IFS unset, it would disable word
12881: # splitting by setting IFS to empty value.)
12882: IFS=" "" $as_nl"
12883:
12884: # Find who we are. Look in the path if we contain no directory separator.
12885: case $0 in #((
12886: *[\\/]* ) as_myself=$0 ;;
12887: *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888: for as_dir in $PATH
12889: do
12890: IFS=$as_save_IFS
12891: test -z "$as_dir" && as_dir=.
12892: test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12893: done
12894: IFS=$as_save_IFS
12895:
12896: ;;
12897: esac
12898: # We did not find ourselves, most probably we were run as `sh COMMAND'
12899: # in which case we are not to be found in the path.
12900: if test "x$as_myself" = x; then
12901: as_myself=$0
12902: fi
12903: if test ! -f "$as_myself"; then
12904: $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12905: exit 1
12906: fi
12907:
12908: # Unset variables that we do not need and which cause bugs (e.g. in
12909: # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12910: # suppresses any "Segmentation fault" message there. '((' could
12911: # trigger a bug in pdksh 5.2.14.
12912: for as_var in BASH_ENV ENV MAIL MAILPATH
12913: do eval test x\${$as_var+set} = xset \
12914: && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12915: done
12916: PS1='$ '
12917: PS2='> '
12918: PS4='+ '
12919:
12920: # NLS nuisances.
12921: LC_ALL=C
12922: export LC_ALL
12923: LANGUAGE=C
12924: export LANGUAGE
12925:
12926: # CDPATH.
12927: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12928:
12929:
12930: # as_fn_error ERROR [LINENO LOG_FD]
12931: # ---------------------------------
12932: # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12933: # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12934: # script with status $?, using 1 if that was 0.
12935: as_fn_error ()
12936: {
12937: as_status=$?; test $as_status -eq 0 && as_status=1
12938: if test "$3"; then
12939: as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12940: $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
12941: fi
12942: $as_echo "$as_me: error: $1" >&2
12943: as_fn_exit $as_status
12944: } # as_fn_error
12945:
12946:
12947: # as_fn_set_status STATUS
12948: # -----------------------
12949: # Set $? to STATUS, without forking.
12950: as_fn_set_status ()
12951: {
12952: return $1
12953: } # as_fn_set_status
12954:
12955: # as_fn_exit STATUS
12956: # -----------------
12957: # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12958: as_fn_exit ()
12959: {
12960: set +e
12961: as_fn_set_status $1
12962: exit $1
12963: } # as_fn_exit
12964:
12965: # as_fn_unset VAR
12966: # ---------------
12967: # Portably unset VAR.
12968: as_fn_unset ()
12969: {
12970: { eval $1=; unset $1;}
12971: }
12972: as_unset=as_fn_unset
12973: # as_fn_append VAR VALUE
12974: # ----------------------
12975: # Append the text in VALUE to the end of the definition contained in VAR. Take
12976: # advantage of any shell optimizations that allow amortized linear growth over
12977: # repeated appends, instead of the typical quadratic growth present in naive
12978: # implementations.
12979: if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12980: eval 'as_fn_append ()
12981: {
12982: eval $1+=\$2
12983: }'
12984: else
12985: as_fn_append ()
12986: {
12987: eval $1=\$$1\$2
12988: }
12989: fi # as_fn_append
12990:
12991: # as_fn_arith ARG...
12992: # ------------------
12993: # Perform arithmetic evaluation on the ARGs, and store the result in the
12994: # global $as_val. Take advantage of shells that can avoid forks. The arguments
12995: # must be portable across $(()) and expr.
12996: if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12997: eval 'as_fn_arith ()
12998: {
12999: as_val=$(( $* ))
13000: }'
13001: else
13002: as_fn_arith ()
13003: {
13004: as_val=`expr "$@" || test $? -eq 1`
13005: }
13006: fi # as_fn_arith
13007:
13008:
13009: if expr a : '\(a\)' >/dev/null 2>&1 &&
13010: test "X`expr 00001 : '.*\(...\)'`" = X001; then
13011: as_expr=expr
13012: else
13013: as_expr=false
13014: fi
13015:
13016: if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13017: as_basename=basename
13018: else
13019: as_basename=false
13020: fi
13021:
13022: if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13023: as_dirname=dirname
13024: else
13025: as_dirname=false
13026: fi
13027:
13028: as_me=`$as_basename -- "$0" ||
13029: $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13030: X"$0" : 'X\(//\)$' \| \
13031: X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13032: $as_echo X/"$0" |
13033: sed '/^.*\/\([^/][^/]*\)\/*$/{
13034: s//\1/
13035: q
13036: }
13037: /^X\/\(\/\/\)$/{
13038: s//\1/
13039: q
13040: }
13041: /^X\/\(\/\).*/{
13042: s//\1/
13043: q
13044: }
13045: s/.*/./; q'`
13046:
13047: # Avoid depending upon Character Ranges.
13048: as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13049: as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13050: as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13051: as_cr_digits='0123456789'
13052: as_cr_alnum=$as_cr_Letters$as_cr_digits
13053:
13054: ECHO_C= ECHO_N= ECHO_T=
13055: case `echo -n x` in #(((((
13056: -n*)
13057: case `echo 'xy\c'` in
13058: *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13059: xy) ECHO_C='\c';;
13060: *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13061: ECHO_T=' ';;
13062: esac;;
13063: *)
13064: ECHO_N='-n';;
13065: esac
13066:
13067: rm -f conf$$ conf$$.exe conf$$.file
13068: if test -d conf$$.dir; then
13069: rm -f conf$$.dir/conf$$.file
13070: else
13071: rm -f conf$$.dir
13072: mkdir conf$$.dir 2>/dev/null
13073: fi
13074: if (echo >conf$$.file) 2>/dev/null; then
13075: if ln -s conf$$.file conf$$ 2>/dev/null; then
13076: as_ln_s='ln -s'
13077: # ... but there are two gotchas:
13078: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13079: # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13080: # In both cases, we have to default to `cp -p'.
13081: ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13082: as_ln_s='cp -p'
13083: elif ln conf$$.file conf$$ 2>/dev/null; then
13084: as_ln_s=ln
13085: else
13086: as_ln_s='cp -p'
13087: fi
13088: else
13089: as_ln_s='cp -p'
13090: fi
13091: rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13092: rmdir conf$$.dir 2>/dev/null
13093:
13094:
13095: # as_fn_mkdir_p
13096: # -------------
13097: # Create "$as_dir" as a directory, including parents if necessary.
13098: as_fn_mkdir_p ()
13099: {
13100:
13101: case $as_dir in #(
13102: -*) as_dir=./$as_dir;;
13103: esac
13104: test -d "$as_dir" || eval $as_mkdir_p || {
13105: as_dirs=
13106: while :; do
13107: case $as_dir in #(
13108: *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13109: *) as_qdir=$as_dir;;
13110: esac
13111: as_dirs="'$as_qdir' $as_dirs"
13112: as_dir=`$as_dirname -- "$as_dir" ||
13113: $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13114: X"$as_dir" : 'X\(//\)[^/]' \| \
13115: X"$as_dir" : 'X\(//\)$' \| \
13116: X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13117: $as_echo X"$as_dir" |
13118: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13119: s//\1/
13120: q
13121: }
13122: /^X\(\/\/\)[^/].*/{
13123: s//\1/
13124: q
13125: }
13126: /^X\(\/\/\)$/{
13127: s//\1/
13128: q
13129: }
13130: /^X\(\/\).*/{
13131: s//\1/
13132: q
13133: }
13134: s/.*/./; q'`
13135: test -d "$as_dir" && break
13136: done
13137: test -z "$as_dirs" || eval "mkdir $as_dirs"
13138: } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13139:
13140:
13141: } # as_fn_mkdir_p
13142: if mkdir -p . 2>/dev/null; then
13143: as_mkdir_p='mkdir -p "$as_dir"'
13144: else
13145: test -d ./-p && rmdir ./-p
13146: as_mkdir_p=false
13147: fi
13148:
13149: if test -x / >/dev/null 2>&1; then
13150: as_test_x='test -x'
13151: else
13152: if ls -dL / >/dev/null 2>&1; then
13153: as_ls_L_option=L
13154: else
13155: as_ls_L_option=
13156: fi
13157: as_test_x='
13158: eval sh -c '\''
13159: if test -d "$1"; then
13160: test -d "$1/.";
13161: else
13162: case $1 in #(
13163: -*)set "./$1";;
13164: esac;
13165: case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13166: ???[sx]*):;;*)false;;esac;fi
13167: '\'' sh
13168: '
13169: fi
13170: as_executable_p=$as_test_x
13171:
13172: # Sed expression to map a string onto a valid CPP name.
13173: as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13174:
13175: # Sed expression to map a string onto a valid variable name.
13176: as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13177:
13178:
13179: exec 6>&1
13180: ## ----------------------------------- ##
13181: ## Main body of $CONFIG_STATUS script. ##
13182: ## ----------------------------------- ##
13183: _ASEOF
13184: test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13185:
13186: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13187: # Save the log message, to keep $0 and so on meaningful, and to
13188: # report actual input values of CONFIG_FILES etc. instead of their
13189: # values after options handling.
13190: ac_log="
13191: This file was extended by libConfuse $as_me 2.7, which was
13192: generated by GNU Autoconf 2.65. Invocation command line was
13193:
13194: CONFIG_FILES = $CONFIG_FILES
13195: CONFIG_HEADERS = $CONFIG_HEADERS
13196: CONFIG_LINKS = $CONFIG_LINKS
13197: CONFIG_COMMANDS = $CONFIG_COMMANDS
13198: $ $0 $@
13199:
13200: on `(hostname || uname -n) 2>/dev/null | sed 1q`
13201: "
13202:
13203: _ACEOF
13204:
13205: case $ac_config_files in *"
13206: "*) set x $ac_config_files; shift; ac_config_files=$*;;
13207: esac
13208:
13209: case $ac_config_headers in *"
13210: "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13211: esac
13212:
13213:
13214: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13215: # Files that config.status was made for.
13216: config_files="$ac_config_files"
13217: config_headers="$ac_config_headers"
13218: config_commands="$ac_config_commands"
13219:
13220: _ACEOF
13221:
13222: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13223: ac_cs_usage="\
13224: \`$as_me' instantiates files and other configuration actions
13225: from templates according to the current configuration. Unless the files
13226: and actions are specified as TAGs, all are instantiated by default.
13227:
13228: Usage: $0 [OPTION]... [TAG]...
13229:
13230: -h, --help print this help, then exit
13231: -V, --version print version number and configuration settings, then exit
13232: --config print configuration, then exit
13233: -q, --quiet, --silent
13234: do not print progress messages
13235: -d, --debug don't remove temporary files
13236: --recheck update $as_me by reconfiguring in the same conditions
13237: --file=FILE[:TEMPLATE]
13238: instantiate the configuration file FILE
13239: --header=FILE[:TEMPLATE]
13240: instantiate the configuration header FILE
13241:
13242: Configuration files:
13243: $config_files
13244:
13245: Configuration headers:
13246: $config_headers
13247:
13248: Configuration commands:
13249: $config_commands
13250:
13251: Report bugs to <confuse-devel@nongnu.org>."
13252:
13253: _ACEOF
13254: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13255: ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13256: ac_cs_version="\\
13257: libConfuse config.status 2.7
13258: configured by $0, generated by GNU Autoconf 2.65,
13259: with options \\"\$ac_cs_config\\"
13260:
13261: Copyright (C) 2009 Free Software Foundation, Inc.
13262: This config.status script is free software; the Free Software Foundation
13263: gives unlimited permission to copy, distribute and modify it."
13264:
13265: ac_pwd='$ac_pwd'
13266: srcdir='$srcdir'
13267: INSTALL='$INSTALL'
13268: MKDIR_P='$MKDIR_P'
13269: AWK='$AWK'
13270: test -n "\$AWK" || AWK=awk
13271: _ACEOF
13272:
13273: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13274: # The default lists apply if the user does not specify any file.
13275: ac_need_defaults=:
13276: while test $# != 0
13277: do
13278: case $1 in
13279: --*=*)
13280: ac_option=`expr "X$1" : 'X\([^=]*\)='`
13281: ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13282: ac_shift=:
13283: ;;
13284: *)
13285: ac_option=$1
13286: ac_optarg=$2
13287: ac_shift=shift
13288: ;;
13289: esac
13290:
13291: case $ac_option in
13292: # Handling of the options.
13293: -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13294: ac_cs_recheck=: ;;
13295: --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13296: $as_echo "$ac_cs_version"; exit ;;
13297: --config | --confi | --conf | --con | --co | --c )
13298: $as_echo "$ac_cs_config"; exit ;;
13299: --debug | --debu | --deb | --de | --d | -d )
13300: debug=: ;;
13301: --file | --fil | --fi | --f )
13302: $ac_shift
13303: case $ac_optarg in
13304: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13305: esac
13306: as_fn_append CONFIG_FILES " '$ac_optarg'"
13307: ac_need_defaults=false;;
13308: --header | --heade | --head | --hea )
13309: $ac_shift
13310: case $ac_optarg in
13311: *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13312: esac
13313: as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13314: ac_need_defaults=false;;
13315: --he | --h)
13316: # Conflict between --help and --header
13317: as_fn_error "ambiguous option: \`$1'
13318: Try \`$0 --help' for more information.";;
13319: --help | --hel | -h )
13320: $as_echo "$ac_cs_usage"; exit ;;
13321: -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13322: | -silent | --silent | --silen | --sile | --sil | --si | --s)
13323: ac_cs_silent=: ;;
13324:
13325: # This is an error.
13326: -*) as_fn_error "unrecognized option: \`$1'
13327: Try \`$0 --help' for more information." ;;
13328:
13329: *) as_fn_append ac_config_targets " $1"
13330: ac_need_defaults=false ;;
13331:
13332: esac
13333: shift
13334: done
13335:
13336: ac_configure_extra_args=
13337:
13338: if $ac_cs_silent; then
13339: exec 6>/dev/null
13340: ac_configure_extra_args="$ac_configure_extra_args --silent"
13341: fi
13342:
13343: _ACEOF
13344: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13345: if \$ac_cs_recheck; then
13346: set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13347: shift
13348: \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13349: CONFIG_SHELL='$SHELL'
13350: export CONFIG_SHELL
13351: exec "\$@"
13352: fi
13353:
13354: _ACEOF
13355: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13356: exec 5>>config.log
13357: {
13358: echo
13359: sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13360: ## Running $as_me. ##
13361: _ASBOX
13362: $as_echo "$ac_log"
13363: } >&5
13364:
13365: _ACEOF
13366: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13367: #
13368: # INIT-COMMANDS
13369: #
13370: AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13371:
13372:
13373: # The HP-UX ksh and POSIX shell print the target directory to stdout
13374: # if CDPATH is set.
13375: (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13376:
13377: sed_quote_subst='$sed_quote_subst'
13378: double_quote_subst='$double_quote_subst'
13379: delay_variable_subst='$delay_variable_subst'
13380: enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
13381: macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
13382: macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
13383: enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
13384: pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
13385: enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
13386: host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
13387: host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
13388: host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
13389: build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
13390: build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
13391: build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
13392: SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
13393: Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
13394: GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
13395: EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
13396: FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
13397: LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
13398: NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
13399: LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
13400: max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
13401: ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
13402: exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
13403: lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
13404: lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
13405: lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
13406: reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
13407: reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13408: OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
13409: deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
13410: file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
13411: AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
13412: AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13413: STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
13414: RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
13415: old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13416: old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13417: old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13418: CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
13419: CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
13420: compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
13421: GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
13422: lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
13423: lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
13424: 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"`'
13425: 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"`'
13426: objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
13427: SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
13428: ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
13429: MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
13430: lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
13431: lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
13432: lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
13433: lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
13434: lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
13435: need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
13436: DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
13437: NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
13438: LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
13439: OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
13440: OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
13441: libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
13442: shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13443: extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13444: archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
13445: enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
13446: export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13447: whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13448: compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
13449: old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13450: old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13451: archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13452: archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13453: module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13454: module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13455: with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
13456: allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13457: no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
13458: hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
13459: hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
13460: hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
13461: hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
13462: hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
13463: hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
13464: hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13465: hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
13466: inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
13467: link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
13468: fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
13469: always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
13470: export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13471: exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13472: include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
13473: prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13474: file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
13475: variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
13476: need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
13477: need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
13478: version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
13479: runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13480: shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
13481: shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
13482: libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13483: library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
13484: soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
13485: postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13486: postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13487: finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
13488: finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
13489: hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
13490: sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13491: sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
13492: hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
13493: enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
13494: enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
13495: enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
13496: old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
13497: striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
13498:
13499: LTCC='$LTCC'
13500: LTCFLAGS='$LTCFLAGS'
13501: compiler='$compiler_DEFAULT'
13502:
13503: # Quote evaled strings.
13504: for var in SED \
13505: GREP \
13506: EGREP \
13507: FGREP \
13508: LD \
13509: NM \
13510: LN_S \
13511: lt_SP2NL \
13512: lt_NL2SP \
13513: reload_flag \
13514: OBJDUMP \
13515: deplibs_check_method \
13516: file_magic_cmd \
13517: AR \
13518: AR_FLAGS \
13519: STRIP \
13520: RANLIB \
13521: CC \
13522: CFLAGS \
13523: compiler \
13524: lt_cv_sys_global_symbol_pipe \
13525: lt_cv_sys_global_symbol_to_cdecl \
13526: lt_cv_sys_global_symbol_to_c_name_address \
13527: lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13528: SHELL \
13529: ECHO \
13530: lt_prog_compiler_no_builtin_flag \
13531: lt_prog_compiler_wl \
13532: lt_prog_compiler_pic \
13533: lt_prog_compiler_static \
13534: lt_cv_prog_compiler_c_o \
13535: need_locks \
13536: DSYMUTIL \
13537: NMEDIT \
13538: LIPO \
13539: OTOOL \
13540: OTOOL64 \
13541: shrext_cmds \
13542: export_dynamic_flag_spec \
13543: whole_archive_flag_spec \
13544: compiler_needs_object \
13545: with_gnu_ld \
13546: allow_undefined_flag \
13547: no_undefined_flag \
13548: hardcode_libdir_flag_spec \
13549: hardcode_libdir_flag_spec_ld \
13550: hardcode_libdir_separator \
13551: fix_srcfile_path \
13552: exclude_expsyms \
13553: include_expsyms \
13554: file_list_spec \
13555: variables_saved_for_relink \
13556: libname_spec \
13557: library_names_spec \
13558: soname_spec \
13559: finish_eval \
13560: old_striplib \
13561: striplib; do
13562: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13563: *[\\\\\\\`\\"\\\$]*)
13564: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13565: ;;
13566: *)
13567: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13568: ;;
13569: esac
13570: done
13571:
13572: # Double-quote double-evaled strings.
13573: for var in reload_cmds \
13574: old_postinstall_cmds \
13575: old_postuninstall_cmds \
13576: old_archive_cmds \
13577: extract_expsyms_cmds \
13578: old_archive_from_new_cmds \
13579: old_archive_from_expsyms_cmds \
13580: archive_cmds \
13581: archive_expsym_cmds \
13582: module_cmds \
13583: module_expsym_cmds \
13584: export_symbols_cmds \
13585: prelink_cmds \
13586: postinstall_cmds \
13587: postuninstall_cmds \
13588: finish_cmds \
13589: sys_lib_search_path_spec \
13590: sys_lib_dlsearch_path_spec; do
13591: case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
13592: *[\\\\\\\`\\"\\\$]*)
13593: eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13594: ;;
13595: *)
13596: eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13597: ;;
13598: esac
13599: done
13600:
13601: # Fix-up fallback echo if it was mangled by the above quoting rules.
13602: case \$lt_ECHO in
13603: *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
13604: ;;
13605: esac
13606:
13607: ac_aux_dir='$ac_aux_dir'
13608: xsi_shell='$xsi_shell'
13609: lt_shell_append='$lt_shell_append'
13610:
13611: # See if we are running on zsh, and set the options which allow our
13612: # commands through without removal of \ escapes INIT.
13613: if test -n "\${ZSH_VERSION+set}" ; then
13614: setopt NO_GLOB_SUBST
13615: fi
13616:
13617:
13618: PACKAGE='$PACKAGE'
13619: VERSION='$VERSION'
13620: TIMESTAMP='$TIMESTAMP'
13621: RM='$RM'
13622: ofile='$ofile'
13623:
13624:
13625:
13626: # Capture the value of obsolete ALL_LINGUAS because we need it to compute
13627: # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
13628: # from automake < 1.5.
13629: eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
13630: # Capture the value of LINGUAS because we need it to compute CATALOGS.
13631: LINGUAS="${LINGUAS-%UNSET%}"
13632:
13633:
13634: _ACEOF
13635:
13636: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13637:
13638: # Handling of arguments.
13639: for ac_config_target in $ac_config_targets
13640: do
13641: case $ac_config_target in
13642: "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13643: "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13644: "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13645: "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
13646: "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13647: "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13648: "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
13649: "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
13650: "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
13651: "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13652: "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13653: "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
13654: "libconfuse.pc") CONFIG_FILES="$CONFIG_FILES libconfuse.pc" ;;
13655: "libconfuse.spec") CONFIG_FILES="$CONFIG_FILES libconfuse.spec" ;;
13656:
13657: *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13658: esac
13659: done
13660:
13661:
13662: # If the user did not use the arguments to specify the items to instantiate,
13663: # then the envvar interface is used. Set only those that are not.
13664: # We use the long form for the default assignment because of an extremely
13665: # bizarre bug on SunOS 4.1.3.
13666: if $ac_need_defaults; then
13667: test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13668: test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13669: test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13670: fi
13671:
13672: # Have a temporary directory for convenience. Make it in the build tree
13673: # simply because there is no reason against having it here, and in addition,
13674: # creating and moving files from /tmp can sometimes cause problems.
13675: # Hook for its removal unless debugging.
13676: # Note that there is a small window in which the directory will not be cleaned:
13677: # after its creation but before its name has been assigned to `$tmp'.
13678: $debug ||
13679: {
13680: tmp=
13681: trap 'exit_status=$?
13682: { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13683: ' 0
13684: trap 'as_fn_exit 1' 1 2 13 15
13685: }
13686: # Create a (secure) tmp directory for tmp files.
13687:
13688: {
13689: tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13690: test -n "$tmp" && test -d "$tmp"
13691: } ||
13692: {
13693: tmp=./conf$$-$RANDOM
13694: (umask 077 && mkdir "$tmp")
13695: } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
13696:
13697: # Set up the scripts for CONFIG_FILES section.
13698: # No need to generate them if there are no CONFIG_FILES.
13699: # This happens for instance with `./config.status config.h'.
13700: if test -n "$CONFIG_FILES"; then
13701:
13702:
13703: ac_cr=`echo X | tr X '\015'`
13704: # On cygwin, bash can eat \r inside `` if the user requested igncr.
13705: # But we know of no other shell where ac_cr would be empty at this
13706: # point, so we can use a bashism as a fallback.
13707: if test "x$ac_cr" = x; then
13708: eval ac_cr=\$\'\\r\'
13709: fi
13710: ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13711: if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13712: ac_cs_awk_cr='\r'
13713: else
13714: ac_cs_awk_cr=$ac_cr
13715: fi
13716:
13717: echo 'BEGIN {' >"$tmp/subs1.awk" &&
13718: _ACEOF
13719:
13720:
13721: {
13722: echo "cat >conf$$subs.awk <<_ACEOF" &&
13723: echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13724: echo "_ACEOF"
13725: } >conf$$subs.sh ||
13726: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13727: ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
13728: ac_delim='%!_!# '
13729: for ac_last_try in false false false false false :; do
13730: . ./conf$$subs.sh ||
13731: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13732:
13733: ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13734: if test $ac_delim_n = $ac_delim_num; then
13735: break
13736: elif $ac_last_try; then
13737: as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
13738: else
13739: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13740: fi
13741: done
13742: rm -f conf$$subs.sh
13743:
13744: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13745: cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
13746: _ACEOF
13747: sed -n '
13748: h
13749: s/^/S["/; s/!.*/"]=/
13750: p
13751: g
13752: s/^[^!]*!//
13753: :repl
13754: t repl
13755: s/'"$ac_delim"'$//
13756: t delim
13757: :nl
13758: h
13759: s/\(.\{148\}\)..*/\1/
13760: t more1
13761: s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13762: p
13763: n
13764: b repl
13765: :more1
13766: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13767: p
13768: g
13769: s/.\{148\}//
13770: t nl
13771: :delim
13772: h
13773: s/\(.\{148\}\)..*/\1/
13774: t more2
13775: s/["\\]/\\&/g; s/^/"/; s/$/"/
13776: p
13777: b
13778: :more2
13779: s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13780: p
13781: g
13782: s/.\{148\}//
13783: t delim
13784: ' <conf$$subs.awk | sed '
13785: /^[^""]/{
13786: N
13787: s/\n//
13788: }
13789: ' >>$CONFIG_STATUS || ac_write_fail=1
13790: rm -f conf$$subs.awk
13791: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13792: _ACAWK
13793: cat >>"\$tmp/subs1.awk" <<_ACAWK &&
13794: for (key in S) S_is_set[key] = 1
13795: FS = ""
13796:
13797: }
13798: {
13799: line = $ 0
13800: nfields = split(line, field, "@")
13801: substed = 0
13802: len = length(field[1])
13803: for (i = 2; i < nfields; i++) {
13804: key = field[i]
13805: keylen = length(key)
13806: if (S_is_set[key]) {
13807: value = S[key]
13808: line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13809: len += length(value) + length(field[++i])
13810: substed = 1
13811: } else
13812: len += 1 + keylen
13813: }
13814:
13815: print line
13816: }
13817:
13818: _ACAWK
13819: _ACEOF
13820: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13821: if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13822: sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13823: else
13824: cat
13825: fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
13826: || as_fn_error "could not setup config files machinery" "$LINENO" 5
13827: _ACEOF
13828:
13829: # VPATH may cause trouble with some makes, so we remove $(srcdir),
13830: # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13831: # trailing colons and then remove the whole line if VPATH becomes empty
13832: # (actually we leave an empty line to preserve line numbers).
13833: if test "x$srcdir" = x.; then
13834: ac_vpsub='/^[ ]*VPATH[ ]*=/{
13835: s/:*\$(srcdir):*/:/
13836: s/:*\${srcdir}:*/:/
13837: s/:*@srcdir@:*/:/
13838: s/^\([^=]*=[ ]*\):*/\1/
13839: s/:*$//
13840: s/^[^=]*=[ ]*$//
13841: }'
13842: fi
13843:
13844: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13845: fi # test -n "$CONFIG_FILES"
13846:
13847: # Set up the scripts for CONFIG_HEADERS section.
13848: # No need to generate them if there are no CONFIG_HEADERS.
13849: # This happens for instance with `./config.status Makefile'.
13850: if test -n "$CONFIG_HEADERS"; then
13851: cat >"$tmp/defines.awk" <<\_ACAWK ||
13852: BEGIN {
13853: _ACEOF
13854:
13855: # Transform confdefs.h into an awk script `defines.awk', embedded as
13856: # here-document in config.status, that substitutes the proper values into
13857: # config.h.in to produce config.h.
13858:
13859: # Create a delimiter string that does not exist in confdefs.h, to ease
13860: # handling of long lines.
13861: ac_delim='%!_!# '
13862: for ac_last_try in false false :; do
13863: ac_t=`sed -n "/$ac_delim/p" confdefs.h`
13864: if test -z "$ac_t"; then
13865: break
13866: elif $ac_last_try; then
13867: as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
13868: else
13869: ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13870: fi
13871: done
13872:
13873: # For the awk script, D is an array of macro values keyed by name,
13874: # likewise P contains macro parameters if any. Preserve backslash
13875: # newline sequences.
13876:
13877: ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13878: sed -n '
13879: s/.\{148\}/&'"$ac_delim"'/g
13880: t rset
13881: :rset
13882: s/^[ ]*#[ ]*define[ ][ ]*/ /
13883: t def
13884: d
13885: :def
13886: s/\\$//
13887: t bsnl
13888: s/["\\]/\\&/g
13889: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13890: D["\1"]=" \3"/p
13891: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13892: d
13893: :bsnl
13894: s/["\\]/\\&/g
13895: s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13896: D["\1"]=" \3\\\\\\n"\\/p
13897: t cont
13898: s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13899: t cont
13900: d
13901: :cont
13902: n
13903: s/.\{148\}/&'"$ac_delim"'/g
13904: t clear
13905: :clear
13906: s/\\$//
13907: t bsnlc
13908: s/["\\]/\\&/g; s/^/"/; s/$/"/p
13909: d
13910: :bsnlc
13911: s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13912: b cont
13913: ' <confdefs.h | sed '
13914: s/'"$ac_delim"'/"\\\
13915: "/g' >>$CONFIG_STATUS || ac_write_fail=1
13916:
13917: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13918: for (key in D) D_is_set[key] = 1
13919: FS = ""
13920: }
13921: /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13922: line = \$ 0
13923: split(line, arg, " ")
13924: if (arg[1] == "#") {
13925: defundef = arg[2]
13926: mac1 = arg[3]
13927: } else {
13928: defundef = substr(arg[1], 2)
13929: mac1 = arg[2]
13930: }
13931: split(mac1, mac2, "(") #)
13932: macro = mac2[1]
13933: prefix = substr(line, 1, index(line, defundef) - 1)
13934: if (D_is_set[macro]) {
13935: # Preserve the white space surrounding the "#".
13936: print prefix "define", macro P[macro] D[macro]
13937: next
13938: } else {
13939: # Replace #undef with comments. This is necessary, for example,
13940: # in the case of _POSIX_SOURCE, which is predefined and required
13941: # on some systems where configure will not decide to define it.
13942: if (defundef == "undef") {
13943: print "/*", prefix defundef, macro, "*/"
13944: next
13945: }
13946: }
13947: }
13948: { print }
13949: _ACAWK
13950: _ACEOF
13951: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13952: as_fn_error "could not setup config headers machinery" "$LINENO" 5
13953: fi # test -n "$CONFIG_HEADERS"
13954:
13955:
13956: eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13957: shift
13958: for ac_tag
13959: do
13960: case $ac_tag in
13961: :[FHLC]) ac_mode=$ac_tag; continue;;
13962: esac
13963: case $ac_mode$ac_tag in
13964: :[FHL]*:*);;
13965: :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
13966: :[FH]-) ac_tag=-:-;;
13967: :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13968: esac
13969: ac_save_IFS=$IFS
13970: IFS=:
13971: set x $ac_tag
13972: IFS=$ac_save_IFS
13973: shift
13974: ac_file=$1
13975: shift
13976:
13977: case $ac_mode in
13978: :L) ac_source=$1;;
13979: :[FH])
13980: ac_file_inputs=
13981: for ac_f
13982: do
13983: case $ac_f in
13984: -) ac_f="$tmp/stdin";;
13985: *) # Look for the file first in the build tree, then in the source tree
13986: # (if the path is not absolute). The absolute path cannot be DOS-style,
13987: # because $ac_f cannot contain `:'.
13988: test -f "$ac_f" ||
13989: case $ac_f in
13990: [\\/$]*) false;;
13991: *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13992: esac ||
13993: as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13994: esac
13995: case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13996: as_fn_append ac_file_inputs " '$ac_f'"
13997: done
13998:
13999: # Let's still pretend it is `configure' which instantiates (i.e., don't
14000: # use $as_me), people would be surprised to read:
14001: # /* config.h. Generated by config.status. */
14002: configure_input='Generated from '`
14003: $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14004: `' by configure.'
14005: if test x"$ac_file" != x-; then
14006: configure_input="$ac_file. $configure_input"
14007: { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14008: $as_echo "$as_me: creating $ac_file" >&6;}
14009: fi
14010: # Neutralize special characters interpreted by sed in replacement strings.
14011: case $configure_input in #(
14012: *\&* | *\|* | *\\* )
14013: ac_sed_conf_input=`$as_echo "$configure_input" |
14014: sed 's/[\\\\&|]/\\\\&/g'`;; #(
14015: *) ac_sed_conf_input=$configure_input;;
14016: esac
14017:
14018: case $ac_tag in
14019: *:-:* | *:-) cat >"$tmp/stdin" \
14020: || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
14021: esac
14022: ;;
14023: esac
14024:
14025: ac_dir=`$as_dirname -- "$ac_file" ||
14026: $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14027: X"$ac_file" : 'X\(//\)[^/]' \| \
14028: X"$ac_file" : 'X\(//\)$' \| \
14029: X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14030: $as_echo X"$ac_file" |
14031: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14032: s//\1/
14033: q
14034: }
14035: /^X\(\/\/\)[^/].*/{
14036: s//\1/
14037: q
14038: }
14039: /^X\(\/\/\)$/{
14040: s//\1/
14041: q
14042: }
14043: /^X\(\/\).*/{
14044: s//\1/
14045: q
14046: }
14047: s/.*/./; q'`
14048: as_dir="$ac_dir"; as_fn_mkdir_p
14049: ac_builddir=.
14050:
14051: case "$ac_dir" in
14052: .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14053: *)
14054: ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14055: # A ".." for each directory in $ac_dir_suffix.
14056: ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14057: case $ac_top_builddir_sub in
14058: "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14059: *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14060: esac ;;
14061: esac
14062: ac_abs_top_builddir=$ac_pwd
14063: ac_abs_builddir=$ac_pwd$ac_dir_suffix
14064: # for backward compatibility:
14065: ac_top_builddir=$ac_top_build_prefix
14066:
14067: case $srcdir in
14068: .) # We are building in place.
14069: ac_srcdir=.
14070: ac_top_srcdir=$ac_top_builddir_sub
14071: ac_abs_top_srcdir=$ac_pwd ;;
14072: [\\/]* | ?:[\\/]* ) # Absolute name.
14073: ac_srcdir=$srcdir$ac_dir_suffix;
14074: ac_top_srcdir=$srcdir
14075: ac_abs_top_srcdir=$srcdir ;;
14076: *) # Relative name.
14077: ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14078: ac_top_srcdir=$ac_top_build_prefix$srcdir
14079: ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14080: esac
14081: ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14082:
14083:
14084: case $ac_mode in
14085: :F)
14086: #
14087: # CONFIG_FILE
14088: #
14089:
14090: case $INSTALL in
14091: [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14092: *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14093: esac
14094: ac_MKDIR_P=$MKDIR_P
14095: case $MKDIR_P in
14096: [\\/$]* | ?:[\\/]* ) ;;
14097: */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14098: esac
14099: _ACEOF
14100:
14101: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14102: # If the template does not know about datarootdir, expand it.
14103: # FIXME: This hack should be removed a few years after 2.60.
14104: ac_datarootdir_hack=; ac_datarootdir_seen=
14105: ac_sed_dataroot='
14106: /datarootdir/ {
14107: p
14108: q
14109: }
14110: /@datadir@/p
14111: /@docdir@/p
14112: /@infodir@/p
14113: /@localedir@/p
14114: /@mandir@/p'
14115: case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14116: *datarootdir*) ac_datarootdir_seen=yes;;
14117: *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14118: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14119: $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14120: _ACEOF
14121: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14122: ac_datarootdir_hack='
14123: s&@datadir@&$datadir&g
14124: s&@docdir@&$docdir&g
14125: s&@infodir@&$infodir&g
14126: s&@localedir@&$localedir&g
14127: s&@mandir@&$mandir&g
14128: s&\\\${datarootdir}&$datarootdir&g' ;;
14129: esac
14130: _ACEOF
14131:
14132: # Neutralize VPATH when `$srcdir' = `.'.
14133: # Shell code in configure.ac might set extrasub.
14134: # FIXME: do we really want to maintain this feature?
14135: cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14136: ac_sed_extra="$ac_vpsub
14137: $extrasub
14138: _ACEOF
14139: cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14140: :t
14141: /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14142: s|@configure_input@|$ac_sed_conf_input|;t t
14143: s&@top_builddir@&$ac_top_builddir_sub&;t t
14144: s&@top_build_prefix@&$ac_top_build_prefix&;t t
14145: s&@srcdir@&$ac_srcdir&;t t
14146: s&@abs_srcdir@&$ac_abs_srcdir&;t t
14147: s&@top_srcdir@&$ac_top_srcdir&;t t
14148: s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14149: s&@builddir@&$ac_builddir&;t t
14150: s&@abs_builddir@&$ac_abs_builddir&;t t
14151: s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14152: s&@INSTALL@&$ac_INSTALL&;t t
14153: s&@MKDIR_P@&$ac_MKDIR_P&;t t
14154: $ac_datarootdir_hack
14155: "
14156: eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14157: || as_fn_error "could not create $ac_file" "$LINENO" 5
14158:
14159: test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14160: { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14161: { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14162: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14163: which seems to be undefined. Please make sure it is defined." >&5
14164: $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14165: which seems to be undefined. Please make sure it is defined." >&2;}
14166:
14167: rm -f "$tmp/stdin"
14168: case $ac_file in
14169: -) cat "$tmp/out" && rm -f "$tmp/out";;
14170: *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14171: esac \
14172: || as_fn_error "could not create $ac_file" "$LINENO" 5
14173: ;;
14174: :H)
14175: #
14176: # CONFIG_HEADER
14177: #
14178: if test x"$ac_file" != x-; then
14179: {
14180: $as_echo "/* $configure_input */" \
14181: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14182: } >"$tmp/config.h" \
14183: || as_fn_error "could not create $ac_file" "$LINENO" 5
14184: if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14185: { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14186: $as_echo "$as_me: $ac_file is unchanged" >&6;}
14187: else
14188: rm -f "$ac_file"
14189: mv "$tmp/config.h" "$ac_file" \
14190: || as_fn_error "could not create $ac_file" "$LINENO" 5
14191: fi
14192: else
14193: $as_echo "/* $configure_input */" \
14194: && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14195: || as_fn_error "could not create -" "$LINENO" 5
14196: fi
14197: # Compute "$ac_file"'s index in $config_headers.
14198: _am_arg="$ac_file"
14199: _am_stamp_count=1
14200: for _am_header in $config_headers :; do
14201: case $_am_header in
14202: $_am_arg | $_am_arg:* )
14203: break ;;
14204: * )
14205: _am_stamp_count=`expr $_am_stamp_count + 1` ;;
14206: esac
14207: done
14208: echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14209: $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14210: X"$_am_arg" : 'X\(//\)[^/]' \| \
14211: X"$_am_arg" : 'X\(//\)$' \| \
14212: X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14213: $as_echo X"$_am_arg" |
14214: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14215: s//\1/
14216: q
14217: }
14218: /^X\(\/\/\)[^/].*/{
14219: s//\1/
14220: q
14221: }
14222: /^X\(\/\/\)$/{
14223: s//\1/
14224: q
14225: }
14226: /^X\(\/\).*/{
14227: s//\1/
14228: q
14229: }
14230: s/.*/./; q'`/stamp-h$_am_stamp_count
14231: ;;
14232:
14233: :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14234: $as_echo "$as_me: executing $ac_file commands" >&6;}
14235: ;;
14236: esac
14237:
14238:
14239: case $ac_file$ac_mode in
14240: "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14241: # Autoconf 2.62 quotes --file arguments for eval, but not when files
14242: # are listed without --file. Let's play safe and only enable the eval
14243: # if we detect the quoting.
14244: case $CONFIG_FILES in
14245: *\'*) eval set x "$CONFIG_FILES" ;;
14246: *) set x $CONFIG_FILES ;;
14247: esac
14248: shift
14249: for mf
14250: do
14251: # Strip MF so we end up with the name of the file.
14252: mf=`echo "$mf" | sed -e 's/:.*$//'`
14253: # Check whether this is an Automake generated Makefile or not.
14254: # We used to match only the files named `Makefile.in', but
14255: # some people rename them; so instead we look at the file content.
14256: # Grep'ing the first line is not enough: some people post-process
14257: # each Makefile.in and add a new line on top of each file to say so.
14258: # Grep'ing the whole file is not good either: AIX grep has a line
14259: # limit of 2048, but all sed's we know have understand at least 4000.
14260: if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14261: dirpart=`$as_dirname -- "$mf" ||
14262: $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14263: X"$mf" : 'X\(//\)[^/]' \| \
14264: X"$mf" : 'X\(//\)$' \| \
14265: X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14266: $as_echo X"$mf" |
14267: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14268: s//\1/
14269: q
14270: }
14271: /^X\(\/\/\)[^/].*/{
14272: s//\1/
14273: q
14274: }
14275: /^X\(\/\/\)$/{
14276: s//\1/
14277: q
14278: }
14279: /^X\(\/\).*/{
14280: s//\1/
14281: q
14282: }
14283: s/.*/./; q'`
14284: else
14285: continue
14286: fi
14287: # Extract the definition of DEPDIR, am__include, and am__quote
14288: # from the Makefile without running `make'.
14289: DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14290: test -z "$DEPDIR" && continue
14291: am__include=`sed -n 's/^am__include = //p' < "$mf"`
14292: test -z "am__include" && continue
14293: am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14294: # When using ansi2knr, U may be empty or an underscore; expand it
14295: U=`sed -n 's/^U = //p' < "$mf"`
14296: # Find all dependency output files, they are included files with
14297: # $(DEPDIR) in their names. We invoke sed twice because it is the
14298: # simplest approach to changing $(DEPDIR) to its actual value in the
14299: # expansion.
14300: for file in `sed -n "
14301: s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14302: sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14303: # Make sure the directory exists.
14304: test -f "$dirpart/$file" && continue
14305: fdir=`$as_dirname -- "$file" ||
14306: $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14307: X"$file" : 'X\(//\)[^/]' \| \
14308: X"$file" : 'X\(//\)$' \| \
14309: X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14310: $as_echo X"$file" |
14311: sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14312: s//\1/
14313: q
14314: }
14315: /^X\(\/\/\)[^/].*/{
14316: s//\1/
14317: q
14318: }
14319: /^X\(\/\/\)$/{
14320: s//\1/
14321: q
14322: }
14323: /^X\(\/\).*/{
14324: s//\1/
14325: q
14326: }
14327: s/.*/./; q'`
14328: as_dir=$dirpart/$fdir; as_fn_mkdir_p
14329: # echo "creating $dirpart/$file"
14330: echo '# dummy' > "$dirpart/$file"
14331: done
14332: done
14333: }
14334: ;;
14335: "libtool":C)
14336:
14337: # See if we are running on zsh, and set the options which allow our
14338: # commands through without removal of \ escapes.
14339: if test -n "${ZSH_VERSION+set}" ; then
14340: setopt NO_GLOB_SUBST
14341: fi
14342:
14343: cfgfile="${ofile}T"
14344: trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14345: $RM "$cfgfile"
14346:
14347: cat <<_LT_EOF >> "$cfgfile"
14348: #! $SHELL
14349:
14350: # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14351: # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14352: # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14353: # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14354: #
14355: # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14356: # 2006, 2007, 2008 Free Software Foundation, Inc.
14357: # Written by Gordon Matzigkeit, 1996
14358: #
14359: # This file is part of GNU Libtool.
14360: #
14361: # GNU Libtool is free software; you can redistribute it and/or
14362: # modify it under the terms of the GNU General Public License as
14363: # published by the Free Software Foundation; either version 2 of
14364: # the License, or (at your option) any later version.
14365: #
14366: # As a special exception to the GNU General Public License,
14367: # if you distribute this file as part of a program or library that
14368: # is built using GNU Libtool, you may include this file under the
14369: # same distribution terms that you use for the rest of that program.
14370: #
14371: # GNU Libtool is distributed in the hope that it will be useful,
14372: # but WITHOUT ANY WARRANTY; without even the implied warranty of
14373: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14374: # GNU General Public License for more details.
14375: #
14376: # You should have received a copy of the GNU General Public License
14377: # along with GNU Libtool; see the file COPYING. If not, a copy
14378: # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14379: # obtained by writing to the Free Software Foundation, Inc.,
14380: # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14381:
14382:
14383: # The names of the tagged configurations supported by this script.
14384: available_tags=""
14385:
14386: # ### BEGIN LIBTOOL CONFIG
14387:
14388: # Whether or not to build shared libraries.
14389: build_libtool_libs=$enable_shared
14390:
14391: # Which release of libtool.m4 was used?
14392: macro_version=$macro_version
14393: macro_revision=$macro_revision
14394:
14395: # Whether or not to build static libraries.
14396: build_old_libs=$enable_static
14397:
14398: # What type of objects to build.
14399: pic_mode=$pic_mode
14400:
14401: # Whether or not to optimize for fast installation.
14402: fast_install=$enable_fast_install
14403:
14404: # The host system.
14405: host_alias=$host_alias
14406: host=$host
14407: host_os=$host_os
14408:
14409: # The build system.
14410: build_alias=$build_alias
14411: build=$build
14412: build_os=$build_os
14413:
14414: # A sed program that does not truncate output.
14415: SED=$lt_SED
14416:
14417: # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14418: Xsed="\$SED -e 1s/^X//"
14419:
14420: # A grep program that handles long lines.
14421: GREP=$lt_GREP
14422:
14423: # An ERE matcher.
14424: EGREP=$lt_EGREP
14425:
14426: # A literal string matcher.
14427: FGREP=$lt_FGREP
14428:
14429: # A BSD- or MS-compatible name lister.
14430: NM=$lt_NM
14431:
14432: # Whether we need soft or hard links.
14433: LN_S=$lt_LN_S
14434:
14435: # What is the maximum length of a command?
14436: max_cmd_len=$max_cmd_len
14437:
14438: # Object file suffix (normally "o").
14439: objext=$ac_objext
14440:
14441: # Executable file suffix (normally "").
14442: exeext=$exeext
14443:
14444: # whether the shell understands "unset".
14445: lt_unset=$lt_unset
14446:
14447: # turn spaces into newlines.
14448: SP2NL=$lt_lt_SP2NL
14449:
14450: # turn newlines into spaces.
14451: NL2SP=$lt_lt_NL2SP
14452:
14453: # How to create reloadable object files.
14454: reload_flag=$lt_reload_flag
14455: reload_cmds=$lt_reload_cmds
14456:
14457: # An object symbol dumper.
14458: OBJDUMP=$lt_OBJDUMP
14459:
14460: # Method to check whether dependent libraries are shared objects.
14461: deplibs_check_method=$lt_deplibs_check_method
14462:
14463: # Command to use when deplibs_check_method == "file_magic".
14464: file_magic_cmd=$lt_file_magic_cmd
14465:
14466: # The archiver.
14467: AR=$lt_AR
14468: AR_FLAGS=$lt_AR_FLAGS
14469:
14470: # A symbol stripping program.
14471: STRIP=$lt_STRIP
14472:
14473: # Commands used to install an old-style archive.
14474: RANLIB=$lt_RANLIB
14475: old_postinstall_cmds=$lt_old_postinstall_cmds
14476: old_postuninstall_cmds=$lt_old_postuninstall_cmds
14477:
14478: # A C compiler.
14479: LTCC=$lt_CC
14480:
14481: # LTCC compiler flags.
14482: LTCFLAGS=$lt_CFLAGS
14483:
14484: # Take the output of nm and produce a listing of raw symbols and C names.
14485: global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14486:
14487: # Transform the output of nm in a proper C declaration.
14488: global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14489:
14490: # Transform the output of nm in a C name address pair.
14491: global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14492:
14493: # Transform the output of nm in a C name address pair when lib prefix is needed.
14494: global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14495:
14496: # The name of the directory that contains temporary libtool files.
14497: objdir=$objdir
14498:
14499: # Shell to use when invoking shell scripts.
14500: SHELL=$lt_SHELL
14501:
14502: # An echo program that does not interpret backslashes.
14503: ECHO=$lt_ECHO
14504:
14505: # Used to examine libraries when file_magic_cmd begins with "file".
14506: MAGIC_CMD=$MAGIC_CMD
14507:
14508: # Must we lock files when doing compilation?
14509: need_locks=$lt_need_locks
14510:
14511: # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14512: DSYMUTIL=$lt_DSYMUTIL
14513:
14514: # Tool to change global to local symbols on Mac OS X.
14515: NMEDIT=$lt_NMEDIT
14516:
14517: # Tool to manipulate fat objects and archives on Mac OS X.
14518: LIPO=$lt_LIPO
14519:
14520: # ldd/readelf like tool for Mach-O binaries on Mac OS X.
14521: OTOOL=$lt_OTOOL
14522:
14523: # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14524: OTOOL64=$lt_OTOOL64
14525:
14526: # Old archive suffix (normally "a").
14527: libext=$libext
14528:
14529: # Shared library suffix (normally ".so").
14530: shrext_cmds=$lt_shrext_cmds
14531:
14532: # The commands to extract the exported symbol list from a shared archive.
14533: extract_expsyms_cmds=$lt_extract_expsyms_cmds
14534:
14535: # Variables whose values should be saved in libtool wrapper scripts and
14536: # restored at link time.
14537: variables_saved_for_relink=$lt_variables_saved_for_relink
14538:
14539: # Do we need the "lib" prefix for modules?
14540: need_lib_prefix=$need_lib_prefix
14541:
14542: # Do we need a version for libraries?
14543: need_version=$need_version
14544:
14545: # Library versioning type.
14546: version_type=$version_type
14547:
14548: # Shared library runtime path variable.
14549: runpath_var=$runpath_var
14550:
14551: # Shared library path variable.
14552: shlibpath_var=$shlibpath_var
14553:
14554: # Is shlibpath searched before the hard-coded library search path?
14555: shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14556:
14557: # Format of library name prefix.
14558: libname_spec=$lt_libname_spec
14559:
14560: # List of archive names. First name is the real one, the rest are links.
14561: # The last name is the one that the linker finds with -lNAME
14562: library_names_spec=$lt_library_names_spec
14563:
14564: # The coded name of the library, if different from the real name.
14565: soname_spec=$lt_soname_spec
14566:
14567: # Command to use after installation of a shared archive.
14568: postinstall_cmds=$lt_postinstall_cmds
14569:
14570: # Command to use after uninstallation of a shared archive.
14571: postuninstall_cmds=$lt_postuninstall_cmds
14572:
14573: # Commands used to finish a libtool library installation in a directory.
14574: finish_cmds=$lt_finish_cmds
14575:
14576: # As "finish_cmds", except a single script fragment to be evaled but
14577: # not shown.
14578: finish_eval=$lt_finish_eval
14579:
14580: # Whether we should hardcode library paths into libraries.
14581: hardcode_into_libs=$hardcode_into_libs
14582:
14583: # Compile-time system search path for libraries.
14584: sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14585:
14586: # Run-time system search path for libraries.
14587: sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14588:
14589: # Whether dlopen is supported.
14590: dlopen_support=$enable_dlopen
14591:
14592: # Whether dlopen of programs is supported.
14593: dlopen_self=$enable_dlopen_self
14594:
14595: # Whether dlopen of statically linked programs is supported.
14596: dlopen_self_static=$enable_dlopen_self_static
14597:
14598: # Commands to strip libraries.
14599: old_striplib=$lt_old_striplib
14600: striplib=$lt_striplib
14601:
14602:
14603: # The linker used to build libraries.
14604: LD=$lt_LD
14605:
14606: # Commands used to build an old-style archive.
14607: old_archive_cmds=$lt_old_archive_cmds
14608:
14609: # A language specific compiler.
14610: CC=$lt_compiler
14611:
14612: # Is the compiler the GNU compiler?
14613: with_gcc=$GCC
14614:
14615: # Compiler flag to turn off builtin functions.
14616: no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14617:
14618: # How to pass a linker flag through the compiler.
14619: wl=$lt_lt_prog_compiler_wl
14620:
14621: # Additional compiler flags for building library objects.
14622: pic_flag=$lt_lt_prog_compiler_pic
14623:
14624: # Compiler flag to prevent dynamic linking.
14625: link_static_flag=$lt_lt_prog_compiler_static
14626:
14627: # Does compiler simultaneously support -c and -o options?
14628: compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14629:
14630: # Whether or not to add -lc for building shared libraries.
14631: build_libtool_need_lc=$archive_cmds_need_lc
14632:
14633: # Whether or not to disallow shared libs when runtime libs are static.
14634: allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14635:
14636: # Compiler flag to allow reflexive dlopens.
14637: export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14638:
14639: # Compiler flag to generate shared objects directly from archives.
14640: whole_archive_flag_spec=$lt_whole_archive_flag_spec
14641:
14642: # Whether the compiler copes with passing no objects directly.
14643: compiler_needs_object=$lt_compiler_needs_object
14644:
14645: # Create an old-style archive from a shared archive.
14646: old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14647:
14648: # Create a temporary old-style archive to link instead of a shared archive.
14649: old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14650:
14651: # Commands used to build a shared archive.
14652: archive_cmds=$lt_archive_cmds
14653: archive_expsym_cmds=$lt_archive_expsym_cmds
14654:
14655: # Commands used to build a loadable module if different from building
14656: # a shared archive.
14657: module_cmds=$lt_module_cmds
14658: module_expsym_cmds=$lt_module_expsym_cmds
14659:
14660: # Whether we are building with GNU ld or not.
14661: with_gnu_ld=$lt_with_gnu_ld
14662:
14663: # Flag that allows shared libraries with undefined symbols to be built.
14664: allow_undefined_flag=$lt_allow_undefined_flag
14665:
14666: # Flag that enforces no undefined symbols.
14667: no_undefined_flag=$lt_no_undefined_flag
14668:
14669: # Flag to hardcode \$libdir into a binary during linking.
14670: # This must work even if \$libdir does not exist
14671: hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14672:
14673: # If ld is used when linking, flag to hardcode \$libdir into a binary
14674: # during linking. This must work even if \$libdir does not exist.
14675: hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14676:
14677: # Whether we need a single "-rpath" flag with a separated argument.
14678: hardcode_libdir_separator=$lt_hardcode_libdir_separator
14679:
14680: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14681: # DIR into the resulting binary.
14682: hardcode_direct=$hardcode_direct
14683:
14684: # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14685: # DIR into the resulting binary and the resulting library dependency is
14686: # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14687: # library is relocated.
14688: hardcode_direct_absolute=$hardcode_direct_absolute
14689:
14690: # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14691: # into the resulting binary.
14692: hardcode_minus_L=$hardcode_minus_L
14693:
14694: # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14695: # into the resulting binary.
14696: hardcode_shlibpath_var=$hardcode_shlibpath_var
14697:
14698: # Set to "yes" if building a shared library automatically hardcodes DIR
14699: # into the library and all subsequent libraries and executables linked
14700: # against it.
14701: hardcode_automatic=$hardcode_automatic
14702:
14703: # Set to yes if linker adds runtime paths of dependent libraries
14704: # to runtime path list.
14705: inherit_rpath=$inherit_rpath
14706:
14707: # Whether libtool must link a program against all its dependency libraries.
14708: link_all_deplibs=$link_all_deplibs
14709:
14710: # Fix the shell variable \$srcfile for the compiler.
14711: fix_srcfile_path=$lt_fix_srcfile_path
14712:
14713: # Set to "yes" if exported symbols are required.
14714: always_export_symbols=$always_export_symbols
14715:
14716: # The commands to list exported symbols.
14717: export_symbols_cmds=$lt_export_symbols_cmds
14718:
14719: # Symbols that should not be listed in the preloaded symbols.
14720: exclude_expsyms=$lt_exclude_expsyms
14721:
14722: # Symbols that must always be exported.
14723: include_expsyms=$lt_include_expsyms
14724:
14725: # Commands necessary for linking programs (against libraries) with templates.
14726: prelink_cmds=$lt_prelink_cmds
14727:
14728: # Specify filename containing input files.
14729: file_list_spec=$lt_file_list_spec
14730:
14731: # How to hardcode a shared library path into an executable.
14732: hardcode_action=$hardcode_action
14733:
14734: # ### END LIBTOOL CONFIG
14735:
14736: _LT_EOF
14737:
14738: case $host_os in
14739: aix3*)
14740: cat <<\_LT_EOF >> "$cfgfile"
14741: # AIX sometimes has problems with the GCC collect2 program. For some
14742: # reason, if we set the COLLECT_NAMES environment variable, the problems
14743: # vanish in a puff of smoke.
14744: if test "X${COLLECT_NAMES+set}" != Xset; then
14745: COLLECT_NAMES=
14746: export COLLECT_NAMES
14747: fi
14748: _LT_EOF
14749: ;;
14750: esac
14751:
14752:
14753: ltmain="$ac_aux_dir/ltmain.sh"
14754:
14755:
14756: # We use sed instead of cat because bash on DJGPP gets confused if
14757: # if finds mixed CR/LF and LF-only lines. Since sed operates in
14758: # text mode, it properly converts lines to CR/LF. This bash problem
14759: # is reportedly fixed, but why not run on old versions too?
14760: sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
14761: || (rm -f "$cfgfile"; exit 1)
14762:
14763: case $xsi_shell in
14764: yes)
14765: cat << \_LT_EOF >> "$cfgfile"
14766:
14767: # func_dirname file append nondir_replacement
14768: # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14769: # otherwise set result to NONDIR_REPLACEMENT.
14770: func_dirname ()
14771: {
14772: case ${1} in
14773: */*) func_dirname_result="${1%/*}${2}" ;;
14774: * ) func_dirname_result="${3}" ;;
14775: esac
14776: }
14777:
14778: # func_basename file
14779: func_basename ()
14780: {
14781: func_basename_result="${1##*/}"
14782: }
14783:
14784: # func_dirname_and_basename file append nondir_replacement
14785: # perform func_basename and func_dirname in a single function
14786: # call:
14787: # dirname: Compute the dirname of FILE. If nonempty,
14788: # add APPEND to the result, otherwise set result
14789: # to NONDIR_REPLACEMENT.
14790: # value returned in "$func_dirname_result"
14791: # basename: Compute filename of FILE.
14792: # value retuned in "$func_basename_result"
14793: # Implementation must be kept synchronized with func_dirname
14794: # and func_basename. For efficiency, we do not delegate to
14795: # those functions but instead duplicate the functionality here.
14796: func_dirname_and_basename ()
14797: {
14798: case ${1} in
14799: */*) func_dirname_result="${1%/*}${2}" ;;
14800: * ) func_dirname_result="${3}" ;;
14801: esac
14802: func_basename_result="${1##*/}"
14803: }
14804:
14805: # func_stripname prefix suffix name
14806: # strip PREFIX and SUFFIX off of NAME.
14807: # PREFIX and SUFFIX must not contain globbing or regex special
14808: # characters, hashes, percent signs, but SUFFIX may contain a leading
14809: # dot (in which case that matches only a dot).
14810: func_stripname ()
14811: {
14812: # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
14813: # positional parameters, so assign one to ordinary parameter first.
14814: func_stripname_result=${3}
14815: func_stripname_result=${func_stripname_result#"${1}"}
14816: func_stripname_result=${func_stripname_result%"${2}"}
14817: }
14818:
14819: # func_opt_split
14820: func_opt_split ()
14821: {
14822: func_opt_split_opt=${1%%=*}
14823: func_opt_split_arg=${1#*=}
14824: }
14825:
14826: # func_lo2o object
14827: func_lo2o ()
14828: {
14829: case ${1} in
14830: *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
14831: *) func_lo2o_result=${1} ;;
14832: esac
14833: }
14834:
14835: # func_xform libobj-or-source
14836: func_xform ()
14837: {
14838: func_xform_result=${1%.*}.lo
14839: }
14840:
14841: # func_arith arithmetic-term...
14842: func_arith ()
14843: {
14844: func_arith_result=$(( $* ))
14845: }
14846:
14847: # func_len string
14848: # STRING may not start with a hyphen.
14849: func_len ()
14850: {
14851: func_len_result=${#1}
14852: }
14853:
14854: _LT_EOF
14855: ;;
14856: *) # Bourne compatible functions.
14857: cat << \_LT_EOF >> "$cfgfile"
14858:
14859: # func_dirname file append nondir_replacement
14860: # Compute the dirname of FILE. If nonempty, add APPEND to the result,
14861: # otherwise set result to NONDIR_REPLACEMENT.
14862: func_dirname ()
14863: {
14864: # Extract subdirectory from the argument.
14865: func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
14866: if test "X$func_dirname_result" = "X${1}"; then
14867: func_dirname_result="${3}"
14868: else
14869: func_dirname_result="$func_dirname_result${2}"
14870: fi
14871: }
14872:
14873: # func_basename file
14874: func_basename ()
14875: {
14876: func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
14877: }
14878:
14879:
14880: # func_stripname prefix suffix name
14881: # strip PREFIX and SUFFIX off of NAME.
14882: # PREFIX and SUFFIX must not contain globbing or regex special
14883: # characters, hashes, percent signs, but SUFFIX may contain a leading
14884: # dot (in which case that matches only a dot).
14885: # func_strip_suffix prefix name
14886: func_stripname ()
14887: {
14888: case ${2} in
14889: .*) func_stripname_result=`$ECHO "X${3}" \
14890: | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
14891: *) func_stripname_result=`$ECHO "X${3}" \
14892: | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
14893: esac
14894: }
14895:
14896: # sed scripts:
14897: my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
14898: my_sed_long_arg='1s/^-[^=]*=//'
14899:
14900: # func_opt_split
14901: func_opt_split ()
14902: {
14903: func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
14904: func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
14905: }
14906:
14907: # func_lo2o object
14908: func_lo2o ()
14909: {
14910: func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
14911: }
14912:
14913: # func_xform libobj-or-source
14914: func_xform ()
14915: {
14916: func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
14917: }
14918:
14919: # func_arith arithmetic-term...
14920: func_arith ()
14921: {
14922: func_arith_result=`expr "$@"`
14923: }
14924:
14925: # func_len string
14926: # STRING may not start with a hyphen.
14927: func_len ()
14928: {
14929: func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
14930: }
14931:
14932: _LT_EOF
14933: esac
14934:
14935: case $lt_shell_append in
14936: yes)
14937: cat << \_LT_EOF >> "$cfgfile"
14938:
14939: # func_append var value
14940: # Append VALUE to the end of shell variable VAR.
14941: func_append ()
14942: {
14943: eval "$1+=\$2"
14944: }
14945: _LT_EOF
14946: ;;
14947: *)
14948: cat << \_LT_EOF >> "$cfgfile"
14949:
14950: # func_append var value
14951: # Append VALUE to the end of shell variable VAR.
14952: func_append ()
14953: {
14954: eval "$1=\$$1\$2"
14955: }
14956:
14957: _LT_EOF
14958: ;;
14959: esac
14960:
14961:
14962: sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
14963: || (rm -f "$cfgfile"; exit 1)
14964:
14965: mv -f "$cfgfile" "$ofile" ||
14966: (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14967: chmod +x "$ofile"
14968:
14969: ;;
14970: "po-directories":C)
14971: for ac_file in $CONFIG_FILES; do
14972: # Support "outfile[:infile[:infile...]]"
14973: case "$ac_file" in
14974: *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14975: esac
14976: # PO directories have a Makefile.in generated from Makefile.in.in.
14977: case "$ac_file" in */Makefile.in)
14978: # Adjust a relative srcdir.
14979: ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
14980: ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
14981: ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14982: # In autoconf-2.13 it is called $ac_given_srcdir.
14983: # In autoconf-2.50 it is called $srcdir.
14984: test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14985: case "$ac_given_srcdir" in
14986: .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14987: /*) top_srcdir="$ac_given_srcdir" ;;
14988: *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14989: esac
14990: # Treat a directory as a PO directory if and only if it has a
14991: # POTFILES.in file. This allows packages to have multiple PO
14992: # directories under different names or in different locations.
14993: if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14994: rm -f "$ac_dir/POTFILES"
14995: test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
14996: cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
14997: POMAKEFILEDEPS="POTFILES.in"
14998: # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
14999: # on $ac_dir but don't depend on user-specified configuration
15000: # parameters.
15001: if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15002: # The LINGUAS file contains the set of available languages.
15003: if test -n "$OBSOLETE_ALL_LINGUAS"; then
15004: test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15005: fi
15006: ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15007: # Hide the ALL_LINGUAS assigment from automake < 1.5.
15008: eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
15009: POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15010: else
15011: # The set of available languages was given in configure.in.
15012: # Hide the ALL_LINGUAS assigment from automake < 1.5.
15013: eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
15014: fi
15015: # Compute POFILES
15016: # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15017: # Compute UPDATEPOFILES
15018: # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15019: # Compute DUMMYPOFILES
15020: # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15021: # Compute GMOFILES
15022: # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
15023: case "$ac_given_srcdir" in
15024: .) srcdirpre= ;;
15025: *) srcdirpre='$(srcdir)/' ;;
15026: esac
15027: POFILES=
15028: UPDATEPOFILES=
15029: DUMMYPOFILES=
15030: GMOFILES=
15031: for lang in $ALL_LINGUAS; do
15032: POFILES="$POFILES $srcdirpre$lang.po"
15033: UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15034: DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
15035: GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
15036: done
15037: # CATALOGS depends on both $ac_dir and the user's LINGUAS
15038: # environment variable.
15039: INST_LINGUAS=
15040: if test -n "$ALL_LINGUAS"; then
15041: for presentlang in $ALL_LINGUAS; do
15042: useit=no
15043: if test "%UNSET%" != "$LINGUAS"; then
15044: desiredlanguages="$LINGUAS"
15045: else
15046: desiredlanguages="$ALL_LINGUAS"
15047: fi
15048: for desiredlang in $desiredlanguages; do
15049: # Use the presentlang catalog if desiredlang is
15050: # a. equal to presentlang, or
15051: # b. a variant of presentlang (because in this case,
15052: # presentlang can be used as a fallback for messages
15053: # which are not translated in the desiredlang catalog).
15054: case "$desiredlang" in
15055: "$presentlang"*) useit=yes;;
15056: esac
15057: done
15058: if test $useit = yes; then
15059: INST_LINGUAS="$INST_LINGUAS $presentlang"
15060: fi
15061: done
15062: fi
15063: CATALOGS=
15064: if test -n "$INST_LINGUAS"; then
15065: for lang in $INST_LINGUAS; do
15066: CATALOGS="$CATALOGS $lang.gmo"
15067: done
15068: fi
15069: test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
15070: sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
15071: for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15072: if test -f "$f"; then
15073: case "$f" in
15074: *.orig | *.bak | *~) ;;
15075: *) cat "$f" >> "$ac_dir/Makefile" ;;
15076: esac
15077: fi
15078: done
15079: fi
15080: ;;
15081: esac
15082: done ;;
15083:
15084: esac
15085: done # for ac_tag
15086:
15087:
15088: as_fn_exit 0
15089: _ACEOF
15090: ac_clean_files=$ac_clean_files_save
15091:
15092: test $ac_write_fail = 0 ||
15093: as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
15094:
15095:
15096: # configure is writing to config.log, and then calls config.status.
15097: # config.status does its own redirection, appending to config.log.
15098: # Unfortunately, on DOS this fails, as config.log is still kept open
15099: # by configure, so config.status won't be able to write to it; its
15100: # output is simply discarded. So we exec the FD to /dev/null,
15101: # effectively closing config.log, so it can be properly (re)opened and
15102: # appended to by config.status. When coming back to configure, we
15103: # need to make the FD available again.
15104: if test "$no_create" != yes; then
15105: ac_cs_success=:
15106: ac_config_status_args=
15107: test "$silent" = yes &&
15108: ac_config_status_args="$ac_config_status_args --quiet"
15109: exec 5>/dev/null
15110: $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15111: exec 5>>config.log
15112: # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15113: # would make configure fail if this is the last instruction.
15114: $ac_cs_success || as_fn_exit $?
15115: fi
15116: if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15117: { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15118: $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15119: fi
15120:
15121:
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>