1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.65 for vte 0.28.2.
4#
5# Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=vte>.
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
20DUALCASE=1; export DUALCASE # for MKS sh
21if 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
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_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.
47if 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 --'
51elif (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'
54else
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'
74fi
75
76# The user is always right.
77if 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  }
83fi
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.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
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
103IFS=$as_save_IFS
104
105     ;;
106esac
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.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
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.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if 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
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test 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
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
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
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
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
211fi; }
212IFS=$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+"$@"}
224fi
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: http://bugzilla.gnome.org/enter_bug.cgi?product=vte
235$0: about your system, including any error possibly output
236$0: before this message. Then install a modern shell, or
237$0: manually run the script under such a shell if you do
238$0: have one."
239  fi
240  exit 1
241fi
242fi
243fi
244SHELL=${CONFIG_SHELL-/bin/sh}
245export SHELL
246# Unset more variables known to interfere with behavior of common tools.
247CLICOLOR_FORCE= GREP_OPTIONS=
248unset CLICOLOR_FORCE GREP_OPTIONS
249
250## --------------------- ##
251## M4sh Shell Functions. ##
252## --------------------- ##
253# as_fn_unset VAR
254# ---------------
255# Portably unset VAR.
256as_fn_unset ()
257{
258  { eval $1=; unset $1;}
259}
260as_unset=as_fn_unset
261
262# as_fn_set_status STATUS
263# -----------------------
264# Set $? to STATUS, without forking.
265as_fn_set_status ()
266{
267  return $1
268} # as_fn_set_status
269
270# as_fn_exit STATUS
271# -----------------
272# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
273as_fn_exit ()
274{
275  set +e
276  as_fn_set_status $1
277  exit $1
278} # as_fn_exit
279
280# as_fn_mkdir_p
281# -------------
282# Create "$as_dir" as a directory, including parents if necessary.
283as_fn_mkdir_p ()
284{
285
286  case $as_dir in #(
287  -*) as_dir=./$as_dir;;
288  esac
289  test -d "$as_dir" || eval $as_mkdir_p || {
290    as_dirs=
291    while :; do
292      case $as_dir in #(
293      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
294      *) as_qdir=$as_dir;;
295      esac
296      as_dirs="'$as_qdir' $as_dirs"
297      as_dir=`$as_dirname -- "$as_dir" ||
298$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
299	 X"$as_dir" : 'X\(//\)[^/]' \| \
300	 X"$as_dir" : 'X\(//\)$' \| \
301	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
302$as_echo X"$as_dir" |
303    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
304	    s//\1/
305	    q
306	  }
307	  /^X\(\/\/\)[^/].*/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)$/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\).*/{
316	    s//\1/
317	    q
318	  }
319	  s/.*/./; q'`
320      test -d "$as_dir" && break
321    done
322    test -z "$as_dirs" || eval "mkdir $as_dirs"
323  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324
325
326} # as_fn_mkdir_p
327# as_fn_append VAR VALUE
328# ----------------------
329# Append the text in VALUE to the end of the definition contained in VAR. Take
330# advantage of any shell optimizations that allow amortized linear growth over
331# repeated appends, instead of the typical quadratic growth present in naive
332# implementations.
333if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
334  eval 'as_fn_append ()
335  {
336    eval $1+=\$2
337  }'
338else
339  as_fn_append ()
340  {
341    eval $1=\$$1\$2
342  }
343fi # as_fn_append
344
345# as_fn_arith ARG...
346# ------------------
347# Perform arithmetic evaluation on the ARGs, and store the result in the
348# global $as_val. Take advantage of shells that can avoid forks. The arguments
349# must be portable across $(()) and expr.
350if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
351  eval 'as_fn_arith ()
352  {
353    as_val=$(( $* ))
354  }'
355else
356  as_fn_arith ()
357  {
358    as_val=`expr "$@" || test $? -eq 1`
359  }
360fi # as_fn_arith
361
362
363# as_fn_error ERROR [LINENO LOG_FD]
364# ---------------------------------
365# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
366# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
367# script with status $?, using 1 if that was 0.
368as_fn_error ()
369{
370  as_status=$?; test $as_status -eq 0 && as_status=1
371  if test "$3"; then
372    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
373    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374  fi
375  $as_echo "$as_me: error: $1" >&2
376  as_fn_exit $as_status
377} # as_fn_error
378
379if expr a : '\(a\)' >/dev/null 2>&1 &&
380   test "X`expr 00001 : '.*\(...\)'`" = X001; then
381  as_expr=expr
382else
383  as_expr=false
384fi
385
386if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
387  as_basename=basename
388else
389  as_basename=false
390fi
391
392if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
393  as_dirname=dirname
394else
395  as_dirname=false
396fi
397
398as_me=`$as_basename -- "$0" ||
399$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
400	 X"$0" : 'X\(//\)$' \| \
401	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402$as_echo X/"$0" |
403    sed '/^.*\/\([^/][^/]*\)\/*$/{
404	    s//\1/
405	    q
406	  }
407	  /^X\/\(\/\/\)$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\).*/{
412	    s//\1/
413	    q
414	  }
415	  s/.*/./; q'`
416
417# Avoid depending upon Character Ranges.
418as_cr_letters='abcdefghijklmnopqrstuvwxyz'
419as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
420as_cr_Letters=$as_cr_letters$as_cr_LETTERS
421as_cr_digits='0123456789'
422as_cr_alnum=$as_cr_Letters$as_cr_digits
423
424
425  as_lineno_1=$LINENO as_lineno_1a=$LINENO
426  as_lineno_2=$LINENO as_lineno_2a=$LINENO
427  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
428  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
429  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
430  sed -n '
431    p
432    /[$]LINENO/=
433  ' <$as_myself |
434    sed '
435      s/[$]LINENO.*/&-/
436      t lineno
437      b
438      :lineno
439      N
440      :loop
441      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
442      t loop
443      s/-\n.*//
444    ' >$as_me.lineno &&
445  chmod +x "$as_me.lineno" ||
446    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
448  # Don't try to exec as it changes $[0], causing all sort of problems
449  # (the dirname of $[0] is not the place where we might find the
450  # original and so on.  Autoconf is especially sensitive to this).
451  . "./$as_me.lineno"
452  # Exit status is that of the last command.
453  exit
454}
455
456ECHO_C= ECHO_N= ECHO_T=
457case `echo -n x` in #(((((
458-n*)
459  case `echo 'xy\c'` in
460  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
461  xy)  ECHO_C='\c';;
462  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
463       ECHO_T='	';;
464  esac;;
465*)
466  ECHO_N='-n';;
467esac
468
469rm -f conf$$ conf$$.exe conf$$.file
470if test -d conf$$.dir; then
471  rm -f conf$$.dir/conf$$.file
472else
473  rm -f conf$$.dir
474  mkdir conf$$.dir 2>/dev/null
475fi
476if (echo >conf$$.file) 2>/dev/null; then
477  if ln -s conf$$.file conf$$ 2>/dev/null; then
478    as_ln_s='ln -s'
479    # ... but there are two gotchas:
480    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
481    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
482    # In both cases, we have to default to `cp -p'.
483    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484      as_ln_s='cp -p'
485  elif ln conf$$.file conf$$ 2>/dev/null; then
486    as_ln_s=ln
487  else
488    as_ln_s='cp -p'
489  fi
490else
491  as_ln_s='cp -p'
492fi
493rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
494rmdir conf$$.dir 2>/dev/null
495
496if mkdir -p . 2>/dev/null; then
497  as_mkdir_p='mkdir -p "$as_dir"'
498else
499  test -d ./-p && rmdir ./-p
500  as_mkdir_p=false
501fi
502
503if test -x / >/dev/null 2>&1; then
504  as_test_x='test -x'
505else
506  if ls -dL / >/dev/null 2>&1; then
507    as_ls_L_option=L
508  else
509    as_ls_L_option=
510  fi
511  as_test_x='
512    eval sh -c '\''
513      if test -d "$1"; then
514	test -d "$1/.";
515      else
516	case $1 in #(
517	-*)set "./$1";;
518	esac;
519	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
520	???[sx]*):;;*)false;;esac;fi
521    '\'' sh
522  '
523fi
524as_executable_p=$as_test_x
525
526# Sed expression to map a string onto a valid CPP name.
527as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
529# Sed expression to map a string onto a valid variable name.
530as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531
532
533
534# Check that we are running under the correct shell.
535SHELL=${CONFIG_SHELL-/bin/sh}
536
537case X$lt_ECHO in
538X*--fallback-echo)
539  # Remove one level of quotation (which was required for Make).
540  ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541  ;;
542esac
543
544ECHO=${lt_ECHO-echo}
545if test "X$1" = X--no-reexec; then
546  # Discard the --no-reexec flag, and continue.
547  shift
548elif test "X$1" = X--fallback-echo; then
549  # Avoid inline document here, it may be left over
550  :
551elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
552  # Yippee, $ECHO works!
553  :
554else
555  # Restart under the correct shell.
556  exec $SHELL "$0" --no-reexec ${1+"$@"}
557fi
558
559if test "X$1" = X--fallback-echo; then
560  # used as fallback echo
561  shift
562  cat <<_LT_EOF
563$*
564_LT_EOF
565  exit 0
566fi
567
568# The HP-UX ksh and POSIX shell print the target directory to stdout
569# if CDPATH is set.
570(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
572if test -z "$lt_ECHO"; then
573  if test "X${echo_test_string+set}" != Xset; then
574    # find a string as large as possible, as long as the shell can cope with it
575    for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
576      # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
577      if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
578	 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
579      then
580        break
581      fi
582    done
583  fi
584
585  if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
586     echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
587     test "X$echo_testing_string" = "X$echo_test_string"; then
588    :
589  else
590    # The Solaris, AIX, and Digital Unix default echo programs unquote
591    # backslashes.  This makes it impossible to quote backslashes using
592    #   echo "$something" | sed 's/\\/\\\\/g'
593    #
594    # So, first we look for a working echo in the user's PATH.
595
596    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
597    for dir in $PATH /usr/ucb; do
598      IFS="$lt_save_ifs"
599      if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
600         test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
601         echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
602         test "X$echo_testing_string" = "X$echo_test_string"; then
603        ECHO="$dir/echo"
604        break
605      fi
606    done
607    IFS="$lt_save_ifs"
608
609    if test "X$ECHO" = Xecho; then
610      # We didn't find a better echo, so look for alternatives.
611      if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
612         echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
613         test "X$echo_testing_string" = "X$echo_test_string"; then
614        # This shell has a builtin print -r that does the trick.
615        ECHO='print -r'
616      elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
617	   test "X$CONFIG_SHELL" != X/bin/ksh; then
618        # If we have ksh, try running configure again with it.
619        ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
620        export ORIGINAL_CONFIG_SHELL
621        CONFIG_SHELL=/bin/ksh
622        export CONFIG_SHELL
623        exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
624      else
625        # Try using printf.
626        ECHO='printf %s\n'
627        if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
628	   echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
629	   test "X$echo_testing_string" = "X$echo_test_string"; then
630	  # Cool, printf works
631	  :
632        elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
633	     test "X$echo_testing_string" = 'X\t' &&
634	     echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
635	     test "X$echo_testing_string" = "X$echo_test_string"; then
636	  CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637	  export CONFIG_SHELL
638	  SHELL="$CONFIG_SHELL"
639	  export SHELL
640	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
641        elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
642	     test "X$echo_testing_string" = 'X\t' &&
643	     echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
644	     test "X$echo_testing_string" = "X$echo_test_string"; then
645	  ECHO="$CONFIG_SHELL $0 --fallback-echo"
646        else
647	  # maybe with a smaller string...
648	  prev=:
649
650	  for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
651	    if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
652	    then
653	      break
654	    fi
655	    prev="$cmd"
656	  done
657
658	  if test "$prev" != 'sed 50q "$0"'; then
659	    echo_test_string=`eval $prev`
660	    export echo_test_string
661	    exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662	  else
663	    # Oops.  We lost completely, so just stick with echo.
664	    ECHO=echo
665	  fi
666        fi
667      fi
668    fi
669  fi
670fi
671
672# Copy echo and quote the copy suitably for passing to libtool from
673# the Makefile, instead of quoting the original, which is used later.
674lt_ECHO=$ECHO
675if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
676   lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
677fi
678
679
680
681
682test -n "$DJDIR" || exec 7<&0 </dev/null
683exec 6>&1
684
685# Name of the host.
686# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
687# so uname gets run too.
688ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
690#
691# Initializations.
692#
693ac_default_prefix=/usr/local
694ac_clean_files=
695ac_config_libobj_dir=.
696LIBOBJS=
697cross_compiling=no
698subdirs=
699MFLAGS=
700MAKEFLAGS=
701
702# Identity of this package.
703PACKAGE_NAME='vte'
704PACKAGE_TARNAME='vte'
705PACKAGE_VERSION='0.28.2'
706PACKAGE_STRING='vte 0.28.2'
707PACKAGE_BUGREPORT='http://bugzilla.gnome.org/enter_bug.cgi?product=vte'
708PACKAGE_URL=''
709
710ac_unique_file="src/vte.c"
711# Factoring default headers for most tests.
712ac_includes_default="\
713#include <stdio.h>
714#ifdef HAVE_SYS_TYPES_H
715# include <sys/types.h>
716#endif
717#ifdef HAVE_SYS_STAT_H
718# include <sys/stat.h>
719#endif
720#ifdef STDC_HEADERS
721# include <stdlib.h>
722# include <stddef.h>
723#else
724# ifdef HAVE_STDLIB_H
725#  include <stdlib.h>
726# endif
727#endif
728#ifdef HAVE_STRING_H
729# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730#  include <memory.h>
731# endif
732# include <string.h>
733#endif
734#ifdef HAVE_STRINGS_H
735# include <strings.h>
736#endif
737#ifdef HAVE_INTTYPES_H
738# include <inttypes.h>
739#endif
740#ifdef HAVE_STDINT_H
741# include <stdint.h>
742#endif
743#ifdef HAVE_UNISTD_H
744# include <unistd.h>
745#endif"
746
747enable_option_checking=no
748ac_subst_vars='am__EXEEXT_FALSE
749am__EXEEXT_TRUE
750LTLIBOBJS
751LIBOBJS
752VTE_MICRO_VERSION
753VTE_MINOR_VERSION
754VTE_MAJOR_VERSION
755GTK_PREFIX
756GLIB_PREFIX
757GTK_DOC_USE_REBASE_FALSE
758GTK_DOC_USE_REBASE_TRUE
759GTK_DOC_USE_LIBTOOL_FALSE
760GTK_DOC_USE_LIBTOOL_TRUE
761GTK_DOC_BUILD_PDF_FALSE
762GTK_DOC_BUILD_PDF_TRUE
763GTK_DOC_BUILD_HTML_FALSE
764GTK_DOC_BUILD_HTML_TRUE
765ENABLE_GTK_DOC_FALSE
766ENABLE_GTK_DOC_TRUE
767HTML_DIR
768GTKDOC_MKPDF
769GTKDOC_REBASE
770GTKDOC_CHECK
771HAVE_INTROSPECTION_FALSE
772HAVE_INTROSPECTION_TRUE
773INTROSPECTION_MAKEFILE
774INTROSPECTION_LIBS
775INTROSPECTION_CFLAGS
776INTROSPECTION_TYPELIBDIR
777INTROSPECTION_GIRDIR
778INTROSPECTION_GENERATE
779INTROSPECTION_COMPILER
780INTROSPECTION_SCANNER
781ENABLE_GLADE_CATALOGUE_FALSE
782ENABLE_GLADE_CATALOGUE_TRUE
783GLADE_MODULE_DIR
784GLADE_ICON_DIR
785GLADE_CATALOGUE_DIR
786BUILD_GNOME_PTY_HELPER_FALSE
787BUILD_GNOME_PTY_HELPER_TRUE
788subdirs
789BUILD_PYTHON_MODULES_FALSE
790BUILD_PYTHON_MODULES_TRUE
791PYTHONMODULES
792PYTHONREV
793PYGTK_DEFSDIR
794PYGTK_CODEGEN
795PYGTK_LIBS
796PYGTK_CFLAGS
797PYTHON_LIBS
798PYTHON_INCLUDES
799pkgpyexecdir
800pyexecdir
801pkgpythondir
802pythondir
803PYTHON_PLATFORM
804PYTHON_EXEC_PREFIX
805PYTHON_PREFIX
806PYTHON_VERSION
807PYTHON
808VTE_PKGS
809VTE_LIBS
810VTE_CFLAGS
811VTE_DEFAULT_EMULATION_FALSE
812VTE_DEFAULT_EMULATION_TRUE
813VTE_DEFAULT_EMULATION
814GLIB_MKENUMS
815GLIB_GENMARSHAL
816GTK_LIBS
817GTK_CFLAGS
818GLIB_LIBS
819GLIB_CFLAGS
820PKG_CONFIG
821VTE_LDFLAGS
822PYTHON_LDFLAGS
823WARN_CFLAGS
824LIBTOOL_FLAGS
825LIBTOOL_EXPORT_OPTIONS
826OS_WIN32_FALSE
827OS_WIN32_TRUE
828PLATFORM_WIN32_FALSE
829PLATFORM_WIN32_TRUE
830MKINSTALLDIRS
831POSUB
832POFILES
833PO_IN_DATADIR_FALSE
834PO_IN_DATADIR_TRUE
835INTLLIBS
836INSTOBJEXT
837GMOFILES
838CATOBJEXT
839CATALOGS
840MSGFMT_OPTS
841GETTEXT_PACKAGE
842DATADIRNAME
843ALL_LINGUAS
844INTLTOOL_PERL
845GMSGFMT
846MSGFMT
847MSGMERGE
848XGETTEXT
849INTLTOOL_POLICY_RULE
850INTLTOOL_SERVICE_RULE
851INTLTOOL_THEME_RULE
852INTLTOOL_SCHEMAS_RULE
853INTLTOOL_CAVES_RULE
854INTLTOOL_XML_NOMERGE_RULE
855INTLTOOL_XML_RULE
856INTLTOOL_KBD_RULE
857INTLTOOL_XAM_RULE
858INTLTOOL_UI_RULE
859INTLTOOL_SOUNDLIST_RULE
860INTLTOOL_SHEET_RULE
861INTLTOOL_SERVER_RULE
862INTLTOOL_PONG_RULE
863INTLTOOL_OAF_RULE
864INTLTOOL_PROP_RULE
865INTLTOOL_KEYS_RULE
866INTLTOOL_DIRECTORY_RULE
867INTLTOOL_DESKTOP_RULE
868INTLTOOL_EXTRACT
869INTLTOOL_MERGE
870INTLTOOL_UPDATE
871USE_NLS
872OTOOL64
873OTOOL
874LIPO
875NMEDIT
876DSYMUTIL
877lt_ECHO
878RANLIB
879AR
880OBJDUMP
881LN_S
882NM
883ac_ct_DUMPBIN
884DUMPBIN
885LD
886FGREP
887host_os
888host_vendor
889host_cpu
890host
891build_os
892build_vendor
893build_cpu
894build
895LIBTOOL
896SED
897EGREP
898GREP
899CPP
900am__fastdepCC_FALSE
901am__fastdepCC_TRUE
902CCDEPMODE
903AMDEPBACKSLASH
904AMDEP_FALSE
905AMDEP_TRUE
906am__quote
907am__include
908DEPDIR
909OBJEXT
910EXEEXT
911ac_ct_CC
912CPPFLAGS
913LDFLAGS
914CFLAGS
915CC
916HAVE_GTK_3_FALSE
917HAVE_GTK_3_TRUE
918HAVE_GTK_2_FALSE
919HAVE_GTK_2_TRUE
920VTE_LIBRARY_SUFFIX_U
921GTK_API_VERSION
922VTE_SEAL_CFLAGS
923VTE_PC_VERSION
924VTE_API_MINOR_VERSION
925VTE_API_MAJOR_VERSION
926VTE_API_VERSION_U
927VTE_API_VERSION
928LT_VERSION_INFO
929MAINT
930MAINTAINER_MODE_FALSE
931MAINTAINER_MODE_TRUE
932AM_BACKSLASH
933AM_DEFAULT_VERBOSITY
934am__untar
935am__tar
936AMTAR
937am__leading_dot
938SET_MAKE
939AWK
940mkdir_p
941MKDIR_P
942INSTALL_STRIP_PROGRAM
943STRIP
944install_sh
945MAKEINFO
946AUTOHEADER
947AUTOMAKE
948AUTOCONF
949ACLOCAL
950VERSION
951PACKAGE
952CYGPATH_W
953am__isrc
954INSTALL_DATA
955INSTALL_SCRIPT
956INSTALL_PROGRAM
957target_alias
958host_alias
959build_alias
960LIBS
961ECHO_T
962ECHO_N
963ECHO_C
964DEFS
965mandir
966localedir
967libdir
968psdir
969pdfdir
970dvidir
971htmldir
972infodir
973docdir
974oldincludedir
975includedir
976localstatedir
977sharedstatedir
978sysconfdir
979datadir
980datarootdir
981libexecdir
982sbindir
983bindir
984program_transform_name
985prefix
986exec_prefix
987PACKAGE_URL
988PACKAGE_BUGREPORT
989PACKAGE_STRING
990PACKAGE_VERSION
991PACKAGE_TARNAME
992PACKAGE_NAME
993PATH_SEPARATOR
994SHELL'
995ac_subst_files=''
996ac_user_opts='
997enable_option_checking
998enable_silent_rules
999enable_maintainer_mode
1000with_gtk
1001enable_dependency_tracking
1002enable_shared
1003enable_static
1004with_pic
1005enable_fast_install
1006with_gnu_ld
1007enable_libtool_lock
1008enable_nls
1009enable_debug
1010enable_Bsymbolic
1011with_default_emulation
1012enable_python
1013enable_gnome_pty_helper
1014enable_glade_catalogue
1015enable_introspection
1016with_html_dir
1017enable_gtk_doc
1018enable_gtk_doc_html
1019enable_gtk_doc_pdf
1020'
1021      ac_precious_vars='build_alias
1022host_alias
1023target_alias
1024CC
1025CFLAGS
1026LDFLAGS
1027LIBS
1028CPPFLAGS
1029CPP
1030PKG_CONFIG
1031GLIB_CFLAGS
1032GLIB_LIBS
1033GTK_CFLAGS
1034GTK_LIBS
1035VTE_CFLAGS
1036VTE_LIBS
1037PYGTK_CFLAGS
1038PYGTK_LIBS'
1039ac_subdirs_all='gnome-pty-helper'
1040
1041# Initialize some variables set by options.
1042ac_init_help=
1043ac_init_version=false
1044ac_unrecognized_opts=
1045ac_unrecognized_sep=
1046# The variables have the same names as the options, with
1047# dashes changed to underlines.
1048cache_file=/dev/null
1049exec_prefix=NONE
1050no_create=
1051no_recursion=
1052prefix=NONE
1053program_prefix=NONE
1054program_suffix=NONE
1055program_transform_name=s,x,x,
1056silent=
1057site=
1058srcdir=
1059verbose=
1060x_includes=NONE
1061x_libraries=NONE
1062
1063# Installation directory options.
1064# These are left unexpanded so users can "make install exec_prefix=/foo"
1065# and all the variables that are supposed to be based on exec_prefix
1066# by default will actually change.
1067# Use braces instead of parens because sh, perl, etc. also accept them.
1068# (The list follows the same order as the GNU Coding Standards.)
1069bindir='${exec_prefix}/bin'
1070sbindir='${exec_prefix}/sbin'
1071libexecdir='${exec_prefix}/libexec'
1072datarootdir='${prefix}/share'
1073datadir='${datarootdir}'
1074sysconfdir='${prefix}/etc'
1075sharedstatedir='${prefix}/com'
1076localstatedir='${prefix}/var'
1077includedir='${prefix}/include'
1078oldincludedir='/usr/include'
1079docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1080infodir='${datarootdir}/info'
1081htmldir='${docdir}'
1082dvidir='${docdir}'
1083pdfdir='${docdir}'
1084psdir='${docdir}'
1085libdir='${exec_prefix}/lib'
1086localedir='${datarootdir}/locale'
1087mandir='${datarootdir}/man'
1088
1089ac_prev=
1090ac_dashdash=
1091for ac_option
1092do
1093  # If the previous option needs an argument, assign it.
1094  if test -n "$ac_prev"; then
1095    eval $ac_prev=\$ac_option
1096    ac_prev=
1097    continue
1098  fi
1099
1100  case $ac_option in
1101  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1102  *)	ac_optarg=yes ;;
1103  esac
1104
1105  # Accept the important Cygnus configure options, so we can diagnose typos.
1106
1107  case $ac_dashdash$ac_option in
1108  --)
1109    ac_dashdash=yes ;;
1110
1111  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1112    ac_prev=bindir ;;
1113  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1114    bindir=$ac_optarg ;;
1115
1116  -build | --build | --buil | --bui | --bu)
1117    ac_prev=build_alias ;;
1118  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1119    build_alias=$ac_optarg ;;
1120
1121  -cache-file | --cache-file | --cache-fil | --cache-fi \
1122  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1123    ac_prev=cache_file ;;
1124  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1125  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1126    cache_file=$ac_optarg ;;
1127
1128  --config-cache | -C)
1129    cache_file=config.cache ;;
1130
1131  -datadir | --datadir | --datadi | --datad)
1132    ac_prev=datadir ;;
1133  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1134    datadir=$ac_optarg ;;
1135
1136  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1137  | --dataroo | --dataro | --datar)
1138    ac_prev=datarootdir ;;
1139  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1140  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1141    datarootdir=$ac_optarg ;;
1142
1143  -disable-* | --disable-*)
1144    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1145    # Reject names that are not valid shell variable names.
1146    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1147      as_fn_error "invalid feature name: $ac_useropt"
1148    ac_useropt_orig=$ac_useropt
1149    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150    case $ac_user_opts in
1151      *"
1152"enable_$ac_useropt"
1153"*) ;;
1154      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1155	 ac_unrecognized_sep=', ';;
1156    esac
1157    eval enable_$ac_useropt=no ;;
1158
1159  -docdir | --docdir | --docdi | --doc | --do)
1160    ac_prev=docdir ;;
1161  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1162    docdir=$ac_optarg ;;
1163
1164  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1165    ac_prev=dvidir ;;
1166  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1167    dvidir=$ac_optarg ;;
1168
1169  -enable-* | --enable-*)
1170    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1171    # Reject names that are not valid shell variable names.
1172    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1173      as_fn_error "invalid feature name: $ac_useropt"
1174    ac_useropt_orig=$ac_useropt
1175    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176    case $ac_user_opts in
1177      *"
1178"enable_$ac_useropt"
1179"*) ;;
1180      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1181	 ac_unrecognized_sep=', ';;
1182    esac
1183    eval enable_$ac_useropt=\$ac_optarg ;;
1184
1185  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1186  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1187  | --exec | --exe | --ex)
1188    ac_prev=exec_prefix ;;
1189  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1190  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1191  | --exec=* | --exe=* | --ex=*)
1192    exec_prefix=$ac_optarg ;;
1193
1194  -gas | --gas | --ga | --g)
1195    # Obsolete; use --with-gas.
1196    with_gas=yes ;;
1197
1198  -help | --help | --hel | --he | -h)
1199    ac_init_help=long ;;
1200  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1201    ac_init_help=recursive ;;
1202  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1203    ac_init_help=short ;;
1204
1205  -host | --host | --hos | --ho)
1206    ac_prev=host_alias ;;
1207  -host=* | --host=* | --hos=* | --ho=*)
1208    host_alias=$ac_optarg ;;
1209
1210  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1211    ac_prev=htmldir ;;
1212  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1213  | --ht=*)
1214    htmldir=$ac_optarg ;;
1215
1216  -includedir | --includedir | --includedi | --included | --include \
1217  | --includ | --inclu | --incl | --inc)
1218    ac_prev=includedir ;;
1219  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1220  | --includ=* | --inclu=* | --incl=* | --inc=*)
1221    includedir=$ac_optarg ;;
1222
1223  -infodir | --infodir | --infodi | --infod | --info | --inf)
1224    ac_prev=infodir ;;
1225  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1226    infodir=$ac_optarg ;;
1227
1228  -libdir | --libdir | --libdi | --libd)
1229    ac_prev=libdir ;;
1230  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1231    libdir=$ac_optarg ;;
1232
1233  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1234  | --libexe | --libex | --libe)
1235    ac_prev=libexecdir ;;
1236  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1237  | --libexe=* | --libex=* | --libe=*)
1238    libexecdir=$ac_optarg ;;
1239
1240  -localedir | --localedir | --localedi | --localed | --locale)
1241    ac_prev=localedir ;;
1242  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1243    localedir=$ac_optarg ;;
1244
1245  -localstatedir | --localstatedir | --localstatedi | --localstated \
1246  | --localstate | --localstat | --localsta | --localst | --locals)
1247    ac_prev=localstatedir ;;
1248  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1249  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1250    localstatedir=$ac_optarg ;;
1251
1252  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1253    ac_prev=mandir ;;
1254  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1255    mandir=$ac_optarg ;;
1256
1257  -nfp | --nfp | --nf)
1258    # Obsolete; use --without-fp.
1259    with_fp=no ;;
1260
1261  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1262  | --no-cr | --no-c | -n)
1263    no_create=yes ;;
1264
1265  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1266  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1267    no_recursion=yes ;;
1268
1269  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1270  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1271  | --oldin | --oldi | --old | --ol | --o)
1272    ac_prev=oldincludedir ;;
1273  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1274  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1275  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1276    oldincludedir=$ac_optarg ;;
1277
1278  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1279    ac_prev=prefix ;;
1280  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1281    prefix=$ac_optarg ;;
1282
1283  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1284  | --program-pre | --program-pr | --program-p)
1285    ac_prev=program_prefix ;;
1286  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1287  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1288    program_prefix=$ac_optarg ;;
1289
1290  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1291  | --program-suf | --program-su | --program-s)
1292    ac_prev=program_suffix ;;
1293  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1294  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1295    program_suffix=$ac_optarg ;;
1296
1297  -program-transform-name | --program-transform-name \
1298  | --program-transform-nam | --program-transform-na \
1299  | --program-transform-n | --program-transform- \
1300  | --program-transform | --program-transfor \
1301  | --program-transfo | --program-transf \
1302  | --program-trans | --program-tran \
1303  | --progr-tra | --program-tr | --program-t)
1304    ac_prev=program_transform_name ;;
1305  -program-transform-name=* | --program-transform-name=* \
1306  | --program-transform-nam=* | --program-transform-na=* \
1307  | --program-transform-n=* | --program-transform-=* \
1308  | --program-transform=* | --program-transfor=* \
1309  | --program-transfo=* | --program-transf=* \
1310  | --program-trans=* | --program-tran=* \
1311  | --progr-tra=* | --program-tr=* | --program-t=*)
1312    program_transform_name=$ac_optarg ;;
1313
1314  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1315    ac_prev=pdfdir ;;
1316  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1317    pdfdir=$ac_optarg ;;
1318
1319  -psdir | --psdir | --psdi | --psd | --ps)
1320    ac_prev=psdir ;;
1321  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1322    psdir=$ac_optarg ;;
1323
1324  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325  | -silent | --silent | --silen | --sile | --sil)
1326    silent=yes ;;
1327
1328  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1329    ac_prev=sbindir ;;
1330  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1331  | --sbi=* | --sb=*)
1332    sbindir=$ac_optarg ;;
1333
1334  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1335  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1336  | --sharedst | --shareds | --shared | --share | --shar \
1337  | --sha | --sh)
1338    ac_prev=sharedstatedir ;;
1339  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1340  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1341  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1342  | --sha=* | --sh=*)
1343    sharedstatedir=$ac_optarg ;;
1344
1345  -site | --site | --sit)
1346    ac_prev=site ;;
1347  -site=* | --site=* | --sit=*)
1348    site=$ac_optarg ;;
1349
1350  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1351    ac_prev=srcdir ;;
1352  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1353    srcdir=$ac_optarg ;;
1354
1355  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1356  | --syscon | --sysco | --sysc | --sys | --sy)
1357    ac_prev=sysconfdir ;;
1358  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1359  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1360    sysconfdir=$ac_optarg ;;
1361
1362  -target | --target | --targe | --targ | --tar | --ta | --t)
1363    ac_prev=target_alias ;;
1364  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1365    target_alias=$ac_optarg ;;
1366
1367  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1368    verbose=yes ;;
1369
1370  -version | --version | --versio | --versi | --vers | -V)
1371    ac_init_version=: ;;
1372
1373  -with-* | --with-*)
1374    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1375    # Reject names that are not valid shell variable names.
1376    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377      as_fn_error "invalid package name: $ac_useropt"
1378    ac_useropt_orig=$ac_useropt
1379    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380    case $ac_user_opts in
1381      *"
1382"with_$ac_useropt"
1383"*) ;;
1384      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1385	 ac_unrecognized_sep=', ';;
1386    esac
1387    eval with_$ac_useropt=\$ac_optarg ;;
1388
1389  -without-* | --without-*)
1390    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1391    # Reject names that are not valid shell variable names.
1392    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1393      as_fn_error "invalid package name: $ac_useropt"
1394    ac_useropt_orig=$ac_useropt
1395    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1396    case $ac_user_opts in
1397      *"
1398"with_$ac_useropt"
1399"*) ;;
1400      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1401	 ac_unrecognized_sep=', ';;
1402    esac
1403    eval with_$ac_useropt=no ;;
1404
1405  --x)
1406    # Obsolete; use --with-x.
1407    with_x=yes ;;
1408
1409  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1410  | --x-incl | --x-inc | --x-in | --x-i)
1411    ac_prev=x_includes ;;
1412  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1413  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1414    x_includes=$ac_optarg ;;
1415
1416  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1417  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1418    ac_prev=x_libraries ;;
1419  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1420  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1421    x_libraries=$ac_optarg ;;
1422
1423  -*) as_fn_error "unrecognized option: \`$ac_option'
1424Try \`$0 --help' for more information."
1425    ;;
1426
1427  *=*)
1428    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1429    # Reject names that are not valid shell variable names.
1430    case $ac_envvar in #(
1431      '' | [0-9]* | *[!_$as_cr_alnum]* )
1432      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1433    esac
1434    eval $ac_envvar=\$ac_optarg
1435    export $ac_envvar ;;
1436
1437  *)
1438    # FIXME: should be removed in autoconf 3.0.
1439    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1440    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1441      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1442    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1443    ;;
1444
1445  esac
1446done
1447
1448if test -n "$ac_prev"; then
1449  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1450  as_fn_error "missing argument to $ac_option"
1451fi
1452
1453if test -n "$ac_unrecognized_opts"; then
1454  case $enable_option_checking in
1455    no) ;;
1456    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1457    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1458  esac
1459fi
1460
1461# Check all directory arguments for consistency.
1462for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1463		datadir sysconfdir sharedstatedir localstatedir includedir \
1464		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1465		libdir localedir mandir
1466do
1467  eval ac_val=\$$ac_var
1468  # Remove trailing slashes.
1469  case $ac_val in
1470    */ )
1471      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1472      eval $ac_var=\$ac_val;;
1473  esac
1474  # Be sure to have absolute directory names.
1475  case $ac_val in
1476    [\\/$]* | ?:[\\/]* )  continue;;
1477    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1478  esac
1479  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1480done
1481
1482# There might be people who depend on the old broken behavior: `$host'
1483# used to hold the argument of --host etc.
1484# FIXME: To remove some day.
1485build=$build_alias
1486host=$host_alias
1487target=$target_alias
1488
1489# FIXME: To remove some day.
1490if test "x$host_alias" != x; then
1491  if test "x$build_alias" = x; then
1492    cross_compiling=maybe
1493    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1494    If a cross compiler is detected then cross compile mode will be used." >&2
1495  elif test "x$build_alias" != "x$host_alias"; then
1496    cross_compiling=yes
1497  fi
1498fi
1499
1500ac_tool_prefix=
1501test -n "$host_alias" && ac_tool_prefix=$host_alias-
1502
1503test "$silent" = yes && exec 6>/dev/null
1504
1505
1506ac_pwd=`pwd` && test -n "$ac_pwd" &&
1507ac_ls_di=`ls -di .` &&
1508ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1509  as_fn_error "working directory cannot be determined"
1510test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1511  as_fn_error "pwd does not report name of working directory"
1512
1513
1514# Find the source files, if location was not specified.
1515if test -z "$srcdir"; then
1516  ac_srcdir_defaulted=yes
1517  # Try the directory containing this script, then the parent directory.
1518  ac_confdir=`$as_dirname -- "$as_myself" ||
1519$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1520	 X"$as_myself" : 'X\(//\)[^/]' \| \
1521	 X"$as_myself" : 'X\(//\)$' \| \
1522	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1523$as_echo X"$as_myself" |
1524    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1525	    s//\1/
1526	    q
1527	  }
1528	  /^X\(\/\/\)[^/].*/{
1529	    s//\1/
1530	    q
1531	  }
1532	  /^X\(\/\/\)$/{
1533	    s//\1/
1534	    q
1535	  }
1536	  /^X\(\/\).*/{
1537	    s//\1/
1538	    q
1539	  }
1540	  s/.*/./; q'`
1541  srcdir=$ac_confdir
1542  if test ! -r "$srcdir/$ac_unique_file"; then
1543    srcdir=..
1544  fi
1545else
1546  ac_srcdir_defaulted=no
1547fi
1548if test ! -r "$srcdir/$ac_unique_file"; then
1549  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1550  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1551fi
1552ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1553ac_abs_confdir=`(
1554	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1555	pwd)`
1556# When building in place, set srcdir=.
1557if test "$ac_abs_confdir" = "$ac_pwd"; then
1558  srcdir=.
1559fi
1560# Remove unnecessary trailing slashes from srcdir.
1561# Double slashes in file names in object file debugging info
1562# mess up M-x gdb in Emacs.
1563case $srcdir in
1564*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1565esac
1566for ac_var in $ac_precious_vars; do
1567  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1568  eval ac_env_${ac_var}_value=\$${ac_var}
1569  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1570  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1571done
1572
1573#
1574# Report the --help message.
1575#
1576if test "$ac_init_help" = "long"; then
1577  # Omit some internal or obsolete options to make the list less imposing.
1578  # This message is too long to be a string in the A/UX 3.1 sh.
1579  cat <<_ACEOF
1580\`configure' configures vte 0.28.2 to adapt to many kinds of systems.
1581
1582Usage: $0 [OPTION]... [VAR=VALUE]...
1583
1584To assign environment variables (e.g., CC, CFLAGS...), specify them as
1585VAR=VALUE.  See below for descriptions of some of the useful variables.
1586
1587Defaults for the options are specified in brackets.
1588
1589Configuration:
1590  -h, --help              display this help and exit
1591      --help=short        display options specific to this package
1592      --help=recursive    display the short help of all the included packages
1593  -V, --version           display version information and exit
1594  -q, --quiet, --silent   do not print \`checking...' messages
1595      --cache-file=FILE   cache test results in FILE [disabled]
1596  -C, --config-cache      alias for \`--cache-file=config.cache'
1597  -n, --no-create         do not create output files
1598      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1599
1600Installation directories:
1601  --prefix=PREFIX         install architecture-independent files in PREFIX
1602                          [$ac_default_prefix]
1603  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1604                          [PREFIX]
1605
1606By default, \`make install' will install all the files in
1607\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1608an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1609for instance \`--prefix=\$HOME'.
1610
1611For better control, use the options below.
1612
1613Fine tuning of the installation directories:
1614  --bindir=DIR            user executables [EPREFIX/bin]
1615  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1616  --libexecdir=DIR        program executables [EPREFIX/libexec]
1617  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1618  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1619  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1620  --libdir=DIR            object code libraries [EPREFIX/lib]
1621  --includedir=DIR        C header files [PREFIX/include]
1622  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1623  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1624  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1625  --infodir=DIR           info documentation [DATAROOTDIR/info]
1626  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1627  --mandir=DIR            man documentation [DATAROOTDIR/man]
1628  --docdir=DIR            documentation root [DATAROOTDIR/doc/vte]
1629  --htmldir=DIR           html documentation [DOCDIR]
1630  --dvidir=DIR            dvi documentation [DOCDIR]
1631  --pdfdir=DIR            pdf documentation [DOCDIR]
1632  --psdir=DIR             ps documentation [DOCDIR]
1633_ACEOF
1634
1635  cat <<\_ACEOF
1636
1637Program names:
1638  --program-prefix=PREFIX            prepend PREFIX to installed program names
1639  --program-suffix=SUFFIX            append SUFFIX to installed program names
1640  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1641
1642System types:
1643  --build=BUILD     configure for building on BUILD [guessed]
1644  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1645_ACEOF
1646fi
1647
1648if test -n "$ac_init_help"; then
1649  case $ac_init_help in
1650     short | recursive ) echo "Configuration of vte 0.28.2:";;
1651   esac
1652  cat <<\_ACEOF
1653
1654Optional Features:
1655  --disable-option-checking  ignore unrecognized --enable/--with options
1656  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1657  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1658  --enable-silent-rules          less verbose build output (undo: `make V=1')
1659  --disable-silent-rules         verbose build output (undo: `make V=0')
1660  --disable-maintainer-mode  disable make rules and dependencies not useful
1661			  (and sometimes confusing) to the casual installer
1662  --disable-dependency-tracking  speeds up one-time build
1663  --enable-dependency-tracking   do not reject slow dependency extractors
1664  --enable-shared[=PKGS]  build shared libraries [default=yes]
1665  --enable-static[=PKGS]  build static libraries [default=yes]
1666  --enable-fast-install[=PKGS]
1667                          optimize for fast installation [default=yes]
1668  --disable-libtool-lock  avoid locking (might break parallel builds)
1669  --disable-nls           do not use Native Language Support
1670  --enable-debug          enable extra debugging checks and logging messages
1671  --disable-Bsymbolic     disable linking with -Bsymbolic
1672  --enable-python         Build python bindings default=yes
1673  --enable-gnome-pty-helper
1674                          Build a setuid helper for opening ptys default=yes
1675  --disable-glade         Disable installing the glade catalogue
1676  --enable-introspection=[no/auto/yes]
1677                          Enable introspection for this build
1678  --enable-gtk-doc        use gtk-doc to build documentation [[default=no]]
1679  --enable-gtk-doc-html   build documentation in html format [[default=yes]]
1680  --enable-gtk-doc-pdf    build documentation in pdf format [[default=no]]
1681
1682Optional Packages:
1683  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1684  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1685  --with-gtk=2.0|3.0      which gtk+ version to compile against (default: 2.0)
1686  --with-pic              try to use only PIC/non-PIC objects [default=use
1687                          both]
1688  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1689  --with-default-emulation=xterm
1690                          default terminal type to be emulated
1691  --with-html-dir=PATH    path to installed docs
1692
1693Some influential environment variables:
1694  CC          C compiler command
1695  CFLAGS      C compiler flags
1696  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1697              nonstandard directory <lib dir>
1698  LIBS        libraries to pass to the linker, e.g. -l<library>
1699  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1700              you have headers in a nonstandard directory <include dir>
1701  CPP         C preprocessor
1702  PKG_CONFIG  path to pkg-config utility
1703  GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1704  GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1705  GTK_CFLAGS  C compiler flags for GTK, overriding pkg-config
1706  GTK_LIBS    linker flags for GTK, overriding pkg-config
1707  VTE_CFLAGS  C compiler flags for VTE, overriding pkg-config
1708  VTE_LIBS    linker flags for VTE, overriding pkg-config
1709  PYGTK_CFLAGS
1710              C compiler flags for PYGTK, overriding pkg-config
1711  PYGTK_LIBS  linker flags for PYGTK, overriding pkg-config
1712
1713Use these variables to override the choices made by `configure' or to help
1714it to find libraries and programs with nonstandard names/locations.
1715
1716Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=vte>.
1717_ACEOF
1718ac_status=$?
1719fi
1720
1721if test "$ac_init_help" = "recursive"; then
1722  # If there are subdirs, report their specific --help.
1723  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1724    test -d "$ac_dir" ||
1725      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1726      continue
1727    ac_builddir=.
1728
1729case "$ac_dir" in
1730.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1731*)
1732  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1733  # A ".." for each directory in $ac_dir_suffix.
1734  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1735  case $ac_top_builddir_sub in
1736  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1737  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738  esac ;;
1739esac
1740ac_abs_top_builddir=$ac_pwd
1741ac_abs_builddir=$ac_pwd$ac_dir_suffix
1742# for backward compatibility:
1743ac_top_builddir=$ac_top_build_prefix
1744
1745case $srcdir in
1746  .)  # We are building in place.
1747    ac_srcdir=.
1748    ac_top_srcdir=$ac_top_builddir_sub
1749    ac_abs_top_srcdir=$ac_pwd ;;
1750  [\\/]* | ?:[\\/]* )  # Absolute name.
1751    ac_srcdir=$srcdir$ac_dir_suffix;
1752    ac_top_srcdir=$srcdir
1753    ac_abs_top_srcdir=$srcdir ;;
1754  *) # Relative name.
1755    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1756    ac_top_srcdir=$ac_top_build_prefix$srcdir
1757    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1758esac
1759ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1760
1761    cd "$ac_dir" || { ac_status=$?; continue; }
1762    # Check for guested configure.
1763    if test -f "$ac_srcdir/configure.gnu"; then
1764      echo &&
1765      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1766    elif test -f "$ac_srcdir/configure"; then
1767      echo &&
1768      $SHELL "$ac_srcdir/configure" --help=recursive
1769    else
1770      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1771    fi || ac_status=$?
1772    cd "$ac_pwd" || { ac_status=$?; break; }
1773  done
1774fi
1775
1776test -n "$ac_init_help" && exit $ac_status
1777if $ac_init_version; then
1778  cat <<\_ACEOF
1779vte configure 0.28.2
1780generated by GNU Autoconf 2.65
1781
1782Copyright (C) 2009 Free Software Foundation, Inc.
1783This configure script is free software; the Free Software Foundation
1784gives unlimited permission to copy, distribute and modify it.
1785_ACEOF
1786  exit
1787fi
1788
1789## ------------------------ ##
1790## Autoconf initialization. ##
1791## ------------------------ ##
1792
1793# ac_fn_c_try_compile LINENO
1794# --------------------------
1795# Try to compile conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_c_try_compile ()
1797{
1798  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799  rm -f conftest.$ac_objext
1800  if { { ac_try="$ac_compile"
1801case "(($ac_try" in
1802  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803  *) ac_try_echo=$ac_try;;
1804esac
1805eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806$as_echo "$ac_try_echo"; } >&5
1807  (eval "$ac_compile") 2>conftest.err
1808  ac_status=$?
1809  if test -s conftest.err; then
1810    grep -v '^ *+' conftest.err >conftest.er1
1811    cat conftest.er1 >&5
1812    mv -f conftest.er1 conftest.err
1813  fi
1814  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815  test $ac_status = 0; } && {
1816	 test -z "$ac_c_werror_flag" ||
1817	 test ! -s conftest.err
1818       } && test -s conftest.$ac_objext; then :
1819  ac_retval=0
1820else
1821  $as_echo "$as_me: failed program was:" >&5
1822sed 's/^/| /' conftest.$ac_ext >&5
1823
1824	ac_retval=1
1825fi
1826  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827  as_fn_set_status $ac_retval
1828
1829} # ac_fn_c_try_compile
1830
1831# ac_fn_c_try_cpp LINENO
1832# ----------------------
1833# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1834ac_fn_c_try_cpp ()
1835{
1836  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1837  if { { ac_try="$ac_cpp conftest.$ac_ext"
1838case "(($ac_try" in
1839  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1840  *) ac_try_echo=$ac_try;;
1841esac
1842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1843$as_echo "$ac_try_echo"; } >&5
1844  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1845  ac_status=$?
1846  if test -s conftest.err; then
1847    grep -v '^ *+' conftest.err >conftest.er1
1848    cat conftest.er1 >&5
1849    mv -f conftest.er1 conftest.err
1850  fi
1851  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1852  test $ac_status = 0; } >/dev/null && {
1853	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1854	 test ! -s conftest.err
1855       }; then :
1856  ac_retval=0
1857else
1858  $as_echo "$as_me: failed program was:" >&5
1859sed 's/^/| /' conftest.$ac_ext >&5
1860
1861    ac_retval=1
1862fi
1863  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1864  as_fn_set_status $ac_retval
1865
1866} # ac_fn_c_try_cpp
1867
1868# ac_fn_c_try_run LINENO
1869# ----------------------
1870# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1871# that executables *can* be run.
1872ac_fn_c_try_run ()
1873{
1874  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1875  if { { ac_try="$ac_link"
1876case "(($ac_try" in
1877  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1878  *) ac_try_echo=$ac_try;;
1879esac
1880eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1881$as_echo "$ac_try_echo"; } >&5
1882  (eval "$ac_link") 2>&5
1883  ac_status=$?
1884  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1885  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1886  { { case "(($ac_try" in
1887  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888  *) ac_try_echo=$ac_try;;
1889esac
1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1891$as_echo "$ac_try_echo"; } >&5
1892  (eval "$ac_try") 2>&5
1893  ac_status=$?
1894  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895  test $ac_status = 0; }; }; then :
1896  ac_retval=0
1897else
1898  $as_echo "$as_me: program exited with status $ac_status" >&5
1899       $as_echo "$as_me: failed program was:" >&5
1900sed 's/^/| /' conftest.$ac_ext >&5
1901
1902       ac_retval=$ac_status
1903fi
1904  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1905  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1906  as_fn_set_status $ac_retval
1907
1908} # ac_fn_c_try_run
1909
1910# ac_fn_c_try_link LINENO
1911# -----------------------
1912# Try to link conftest.$ac_ext, and return whether this succeeded.
1913ac_fn_c_try_link ()
1914{
1915  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916  rm -f conftest.$ac_objext conftest$ac_exeext
1917  if { { ac_try="$ac_link"
1918case "(($ac_try" in
1919  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920  *) ac_try_echo=$ac_try;;
1921esac
1922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923$as_echo "$ac_try_echo"; } >&5
1924  (eval "$ac_link") 2>conftest.err
1925  ac_status=$?
1926  if test -s conftest.err; then
1927    grep -v '^ *+' conftest.err >conftest.er1
1928    cat conftest.er1 >&5
1929    mv -f conftest.er1 conftest.err
1930  fi
1931  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932  test $ac_status = 0; } && {
1933	 test -z "$ac_c_werror_flag" ||
1934	 test ! -s conftest.err
1935       } && test -s conftest$ac_exeext && {
1936	 test "$cross_compiling" = yes ||
1937	 $as_test_x conftest$ac_exeext
1938       }; then :
1939  ac_retval=0
1940else
1941  $as_echo "$as_me: failed program was:" >&5
1942sed 's/^/| /' conftest.$ac_ext >&5
1943
1944	ac_retval=1
1945fi
1946  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948  # interfere with the next link command; also delete a directory that is
1949  # left behind by Apple's compiler.  We do this before executing the actions.
1950  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952  as_fn_set_status $ac_retval
1953
1954} # ac_fn_c_try_link
1955
1956# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1957# -------------------------------------------------------
1958# Tests whether HEADER exists and can be compiled using the include files in
1959# INCLUDES, setting the cache variable VAR accordingly.
1960ac_fn_c_check_header_compile ()
1961{
1962  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1963  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1964$as_echo_n "checking for $2... " >&6; }
1965if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1966  $as_echo_n "(cached) " >&6
1967else
1968  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h.  */
1970$4
1971#include <$2>
1972_ACEOF
1973if ac_fn_c_try_compile "$LINENO"; then :
1974  eval "$3=yes"
1975else
1976  eval "$3=no"
1977fi
1978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979fi
1980eval ac_res=\$$3
1981	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984
1985} # ac_fn_c_check_header_compile
1986
1987# ac_fn_c_check_func LINENO FUNC VAR
1988# ----------------------------------
1989# Tests whether FUNC exists, setting the cache variable VAR accordingly
1990ac_fn_c_check_func ()
1991{
1992  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994$as_echo_n "checking for $2... " >&6; }
1995if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996  $as_echo_n "(cached) " >&6
1997else
1998  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999/* end confdefs.h.  */
2000/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2001   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2002#define $2 innocuous_$2
2003
2004/* System header to define __stub macros and hopefully few prototypes,
2005    which can conflict with char $2 (); below.
2006    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2007    <limits.h> exists even on freestanding compilers.  */
2008
2009#ifdef __STDC__
2010# include <limits.h>
2011#else
2012# include <assert.h>
2013#endif
2014
2015#undef $2
2016
2017/* Override any GCC internal prototype to avoid an error.
2018   Use char because int might match the return type of a GCC
2019   builtin and then its argument prototype would still apply.  */
2020#ifdef __cplusplus
2021extern "C"
2022#endif
2023char $2 ();
2024/* The GNU C library defines this for functions which it implements
2025    to always fail with ENOSYS.  Some functions are actually named
2026    something starting with __ and the normal name is an alias.  */
2027#if defined __stub_$2 || defined __stub___$2
2028choke me
2029#endif
2030
2031int
2032main ()
2033{
2034return $2 ();
2035  ;
2036  return 0;
2037}
2038_ACEOF
2039if ac_fn_c_try_link "$LINENO"; then :
2040  eval "$3=yes"
2041else
2042  eval "$3=no"
2043fi
2044rm -f core conftest.err conftest.$ac_objext \
2045    conftest$ac_exeext conftest.$ac_ext
2046fi
2047eval ac_res=\$$3
2048	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049$as_echo "$ac_res" >&6; }
2050  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051
2052} # ac_fn_c_check_func
2053
2054# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2055# -------------------------------------------------------
2056# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2057# the include files in INCLUDES and setting the cache variable VAR
2058# accordingly.
2059ac_fn_c_check_header_mongrel ()
2060{
2061  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2063  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064$as_echo_n "checking for $2... " >&6; }
2065if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2066  $as_echo_n "(cached) " >&6
2067fi
2068eval ac_res=\$$3
2069	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2070$as_echo "$ac_res" >&6; }
2071else
2072  # Is the header compilable?
2073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2074$as_echo_n "checking $2 usability... " >&6; }
2075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h.  */
2077$4
2078#include <$2>
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081  ac_header_compiler=yes
2082else
2083  ac_header_compiler=no
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2087$as_echo "$ac_header_compiler" >&6; }
2088
2089# Is the header present?
2090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2091$as_echo_n "checking $2 presence... " >&6; }
2092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h.  */
2094#include <$2>
2095_ACEOF
2096if ac_fn_c_try_cpp "$LINENO"; then :
2097  ac_header_preproc=yes
2098else
2099  ac_header_preproc=no
2100fi
2101rm -f conftest.err conftest.$ac_ext
2102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2103$as_echo "$ac_header_preproc" >&6; }
2104
2105# So?  What about this header?
2106case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2107  yes:no: )
2108    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2109$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2110    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2111$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2112    ;;
2113  no:yes:* )
2114    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2115$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2116    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2117$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2118    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2119$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2120    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2121$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2122    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2123$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2124( cat <<\_ASBOX
2125## ------------------------------------------------------------------ ##
2126## Report this to http://bugzilla.gnome.org/enter_bug.cgi?product=vte ##
2127## ------------------------------------------------------------------ ##
2128_ASBOX
2129     ) | sed "s/^/$as_me: WARNING:     /" >&2
2130    ;;
2131esac
2132  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2133$as_echo_n "checking for $2... " >&6; }
2134if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2135  $as_echo_n "(cached) " >&6
2136else
2137  eval "$3=\$ac_header_compiler"
2138fi
2139eval ac_res=\$$3
2140	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141$as_echo "$ac_res" >&6; }
2142fi
2143  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2144
2145} # ac_fn_c_check_header_mongrel
2146
2147# ac_fn_c_check_decl LINENO SYMBOL VAR
2148# ------------------------------------
2149# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2150ac_fn_c_check_decl ()
2151{
2152  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2153  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2154$as_echo_n "checking whether $2 is declared... " >&6; }
2155if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2156  $as_echo_n "(cached) " >&6
2157else
2158  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2159/* end confdefs.h.  */
2160$4
2161int
2162main ()
2163{
2164#ifndef $2
2165  (void) $2;
2166#endif
2167
2168  ;
2169  return 0;
2170}
2171_ACEOF
2172if ac_fn_c_try_compile "$LINENO"; then :
2173  eval "$3=yes"
2174else
2175  eval "$3=no"
2176fi
2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178fi
2179eval ac_res=\$$3
2180	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181$as_echo "$ac_res" >&6; }
2182  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183
2184} # ac_fn_c_check_decl
2185
2186# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2187# -------------------------------------------
2188# Tests whether TYPE exists after having included INCLUDES, setting cache
2189# variable VAR accordingly.
2190ac_fn_c_check_type ()
2191{
2192  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2194$as_echo_n "checking for $2... " >&6; }
2195if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2196  $as_echo_n "(cached) " >&6
2197else
2198  eval "$3=no"
2199  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h.  */
2201$4
2202int
2203main ()
2204{
2205if (sizeof ($2))
2206	 return 0;
2207  ;
2208  return 0;
2209}
2210_ACEOF
2211if ac_fn_c_try_compile "$LINENO"; then :
2212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h.  */
2214$4
2215int
2216main ()
2217{
2218if (sizeof (($2)))
2219	    return 0;
2220  ;
2221  return 0;
2222}
2223_ACEOF
2224if ac_fn_c_try_compile "$LINENO"; then :
2225
2226else
2227  eval "$3=yes"
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232fi
2233eval ac_res=\$$3
2234	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2235$as_echo "$ac_res" >&6; }
2236  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2237
2238} # ac_fn_c_check_type
2239cat >config.log <<_ACEOF
2240This file contains any messages produced by compilers while
2241running configure, to aid debugging if configure makes a mistake.
2242
2243It was created by vte $as_me 0.28.2, which was
2244generated by GNU Autoconf 2.65.  Invocation command line was
2245
2246  $ $0 $@
2247
2248_ACEOF
2249exec 5>>config.log
2250{
2251cat <<_ASUNAME
2252## --------- ##
2253## Platform. ##
2254## --------- ##
2255
2256hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2257uname -m = `(uname -m) 2>/dev/null || echo unknown`
2258uname -r = `(uname -r) 2>/dev/null || echo unknown`
2259uname -s = `(uname -s) 2>/dev/null || echo unknown`
2260uname -v = `(uname -v) 2>/dev/null || echo unknown`
2261
2262/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2263/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2264
2265/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2266/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2267/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2268/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2269/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2270/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2271/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2272
2273_ASUNAME
2274
2275as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2276for as_dir in $PATH
2277do
2278  IFS=$as_save_IFS
2279  test -z "$as_dir" && as_dir=.
2280    $as_echo "PATH: $as_dir"
2281  done
2282IFS=$as_save_IFS
2283
2284} >&5
2285
2286cat >&5 <<_ACEOF
2287
2288
2289## ----------- ##
2290## Core tests. ##
2291## ----------- ##
2292
2293_ACEOF
2294
2295
2296# Keep a trace of the command line.
2297# Strip out --no-create and --no-recursion so they do not pile up.
2298# Strip out --silent because we don't want to record it for future runs.
2299# Also quote any args containing shell meta-characters.
2300# Make two passes to allow for proper duplicate-argument suppression.
2301ac_configure_args=
2302ac_configure_args0=
2303ac_configure_args1=
2304ac_must_keep_next=false
2305for ac_pass in 1 2
2306do
2307  for ac_arg
2308  do
2309    case $ac_arg in
2310    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2311    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2312    | -silent | --silent | --silen | --sile | --sil)
2313      continue ;;
2314    *\'*)
2315      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2316    esac
2317    case $ac_pass in
2318    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2319    2)
2320      as_fn_append ac_configure_args1 " '$ac_arg'"
2321      if test $ac_must_keep_next = true; then
2322	ac_must_keep_next=false # Got value, back to normal.
2323      else
2324	case $ac_arg in
2325	  *=* | --config-cache | -C | -disable-* | --disable-* \
2326	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2327	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2328	  | -with-* | --with-* | -without-* | --without-* | --x)
2329	    case "$ac_configure_args0 " in
2330	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2331	    esac
2332	    ;;
2333	  -* ) ac_must_keep_next=true ;;
2334	esac
2335      fi
2336      as_fn_append ac_configure_args " '$ac_arg'"
2337      ;;
2338    esac
2339  done
2340done
2341{ ac_configure_args0=; unset ac_configure_args0;}
2342{ ac_configure_args1=; unset ac_configure_args1;}
2343
2344# When interrupted or exit'd, cleanup temporary files, and complete
2345# config.log.  We remove comments because anyway the quotes in there
2346# would cause problems or look ugly.
2347# WARNING: Use '\'' to represent an apostrophe within the trap.
2348# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2349trap 'exit_status=$?
2350  # Save into config.log some information that might help in debugging.
2351  {
2352    echo
2353
2354    cat <<\_ASBOX
2355## ---------------- ##
2356## Cache variables. ##
2357## ---------------- ##
2358_ASBOX
2359    echo
2360    # The following way of writing the cache mishandles newlines in values,
2361(
2362  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2363    eval ac_val=\$$ac_var
2364    case $ac_val in #(
2365    *${as_nl}*)
2366      case $ac_var in #(
2367      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2368$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2369      esac
2370      case $ac_var in #(
2371      _ | IFS | as_nl) ;; #(
2372      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2373      *) { eval $ac_var=; unset $ac_var;} ;;
2374      esac ;;
2375    esac
2376  done
2377  (set) 2>&1 |
2378    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2379    *${as_nl}ac_space=\ *)
2380      sed -n \
2381	"s/'\''/'\''\\\\'\'''\''/g;
2382	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2383      ;; #(
2384    *)
2385      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2386      ;;
2387    esac |
2388    sort
2389)
2390    echo
2391
2392    cat <<\_ASBOX
2393## ----------------- ##
2394## Output variables. ##
2395## ----------------- ##
2396_ASBOX
2397    echo
2398    for ac_var in $ac_subst_vars
2399    do
2400      eval ac_val=\$$ac_var
2401      case $ac_val in
2402      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2403      esac
2404      $as_echo "$ac_var='\''$ac_val'\''"
2405    done | sort
2406    echo
2407
2408    if test -n "$ac_subst_files"; then
2409      cat <<\_ASBOX
2410## ------------------- ##
2411## File substitutions. ##
2412## ------------------- ##
2413_ASBOX
2414      echo
2415      for ac_var in $ac_subst_files
2416      do
2417	eval ac_val=\$$ac_var
2418	case $ac_val in
2419	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2420	esac
2421	$as_echo "$ac_var='\''$ac_val'\''"
2422      done | sort
2423      echo
2424    fi
2425
2426    if test -s confdefs.h; then
2427      cat <<\_ASBOX
2428## ----------- ##
2429## confdefs.h. ##
2430## ----------- ##
2431_ASBOX
2432      echo
2433      cat confdefs.h
2434      echo
2435    fi
2436    test "$ac_signal" != 0 &&
2437      $as_echo "$as_me: caught signal $ac_signal"
2438    $as_echo "$as_me: exit $exit_status"
2439  } >&5
2440  rm -f core *.core core.conftest.* &&
2441    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2442    exit $exit_status
2443' 0
2444for ac_signal in 1 2 13 15; do
2445  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2446done
2447ac_signal=0
2448
2449# confdefs.h avoids OS command line length limits that DEFS can exceed.
2450rm -f -r conftest* confdefs.h
2451
2452$as_echo "/* confdefs.h */" > confdefs.h
2453
2454# Predefined preprocessor variables.
2455
2456cat >>confdefs.h <<_ACEOF
2457#define PACKAGE_NAME "$PACKAGE_NAME"
2458_ACEOF
2459
2460cat >>confdefs.h <<_ACEOF
2461#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2462_ACEOF
2463
2464cat >>confdefs.h <<_ACEOF
2465#define PACKAGE_VERSION "$PACKAGE_VERSION"
2466_ACEOF
2467
2468cat >>confdefs.h <<_ACEOF
2469#define PACKAGE_STRING "$PACKAGE_STRING"
2470_ACEOF
2471
2472cat >>confdefs.h <<_ACEOF
2473#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2474_ACEOF
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_URL "$PACKAGE_URL"
2478_ACEOF
2479
2480
2481# Let the site file select an alternate cache file if it wants to.
2482# Prefer an explicitly selected file to automatically selected ones.
2483ac_site_file1=NONE
2484ac_site_file2=NONE
2485if test -n "$CONFIG_SITE"; then
2486  ac_site_file1=$CONFIG_SITE
2487elif test "x$prefix" != xNONE; then
2488  ac_site_file1=$prefix/share/config.site
2489  ac_site_file2=$prefix/etc/config.site
2490else
2491  ac_site_file1=$ac_default_prefix/share/config.site
2492  ac_site_file2=$ac_default_prefix/etc/config.site
2493fi
2494for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2495do
2496  test "x$ac_site_file" = xNONE && continue
2497  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2498    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2499$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2500    sed 's/^/| /' "$ac_site_file" >&5
2501    . "$ac_site_file"
2502  fi
2503done
2504
2505if test -r "$cache_file"; then
2506  # Some versions of bash will fail to source /dev/null (special files
2507  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2508  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2509    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2510$as_echo "$as_me: loading cache $cache_file" >&6;}
2511    case $cache_file in
2512      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2513      *)                      . "./$cache_file";;
2514    esac
2515  fi
2516else
2517  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2518$as_echo "$as_me: creating cache $cache_file" >&6;}
2519  >$cache_file
2520fi
2521
2522# Check that the precious variables saved in the cache have kept the same
2523# value.
2524ac_cache_corrupted=false
2525for ac_var in $ac_precious_vars; do
2526  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2527  eval ac_new_set=\$ac_env_${ac_var}_set
2528  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2529  eval ac_new_val=\$ac_env_${ac_var}_value
2530  case $ac_old_set,$ac_new_set in
2531    set,)
2532      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2533$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2534      ac_cache_corrupted=: ;;
2535    ,set)
2536      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2537$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2538      ac_cache_corrupted=: ;;
2539    ,);;
2540    *)
2541      if test "x$ac_old_val" != "x$ac_new_val"; then
2542	# differences in whitespace do not lead to failure.
2543	ac_old_val_w=`echo x $ac_old_val`
2544	ac_new_val_w=`echo x $ac_new_val`
2545	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2546	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2547$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2548	  ac_cache_corrupted=:
2549	else
2550	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2551$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2552	  eval $ac_var=\$ac_old_val
2553	fi
2554	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2555$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2556	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2557$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2558      fi;;
2559  esac
2560  # Pass precious variables to config.status.
2561  if test "$ac_new_set" = set; then
2562    case $ac_new_val in
2563    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2564    *) ac_arg=$ac_var=$ac_new_val ;;
2565    esac
2566    case " $ac_configure_args " in
2567      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2568      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2569    esac
2570  fi
2571done
2572if $ac_cache_corrupted; then
2573  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2575  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2576$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2577  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2578fi
2579## -------------------- ##
2580## Main body of script. ##
2581## -------------------- ##
2582
2583ac_ext=c
2584ac_cpp='$CPP $CPPFLAGS'
2585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587ac_compiler_gnu=$ac_cv_c_compiler_gnu
2588
2589
2590
2591
2592ac_config_headers="$ac_config_headers config.h"
2593
2594
2595am__api_version='1.11'
2596
2597ac_aux_dir=
2598for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2599  for ac_t in install-sh install.sh shtool; do
2600    if test -f "$ac_dir/$ac_t"; then
2601      ac_aux_dir=$ac_dir
2602      ac_install_sh="$ac_aux_dir/$ac_t -c"
2603      break 2
2604    fi
2605  done
2606done
2607if test -z "$ac_aux_dir"; then
2608  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2609fi
2610
2611# These three variables are undocumented and unsupported,
2612# and are intended to be withdrawn in a future Autoconf release.
2613# They can cause serious problems if a builder's source tree is in a directory
2614# whose full name contains unusual characters.
2615ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2616ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2617ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2618
2619
2620# Find a good install program.  We prefer a C program (faster),
2621# so one script is as good as another.  But avoid the broken or
2622# incompatible versions:
2623# SysV /etc/install, /usr/sbin/install
2624# SunOS /usr/etc/install
2625# IRIX /sbin/install
2626# AIX /bin/install
2627# AmigaOS /C/install, which installs bootblocks on floppy discs
2628# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2629# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2630# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2631# OS/2's system install, which has a completely different semantic
2632# ./install, which can be erroneously created by make from ./install.sh.
2633# Reject install programs that cannot install multiple files.
2634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2635$as_echo_n "checking for a BSD-compatible install... " >&6; }
2636if test -z "$INSTALL"; then
2637if test "${ac_cv_path_install+set}" = set; then :
2638  $as_echo_n "(cached) " >&6
2639else
2640  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2641for as_dir in $PATH
2642do
2643  IFS=$as_save_IFS
2644  test -z "$as_dir" && as_dir=.
2645    # Account for people who put trailing slashes in PATH elements.
2646case $as_dir/ in #((
2647  ./ | .// | /[cC]/* | \
2648  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2649  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2650  /usr/ucb/* ) ;;
2651  *)
2652    # OSF1 and SCO ODT 3.0 have their own names for install.
2653    # Don't use installbsd from OSF since it installs stuff as root
2654    # by default.
2655    for ac_prog in ginstall scoinst install; do
2656      for ac_exec_ext in '' $ac_executable_extensions; do
2657	if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2658	  if test $ac_prog = install &&
2659	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2660	    # AIX install.  It has an incompatible calling convention.
2661	    :
2662	  elif test $ac_prog = install &&
2663	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2664	    # program-specific install script used by HP pwplus--don't use.
2665	    :
2666	  else
2667	    rm -rf conftest.one conftest.two conftest.dir
2668	    echo one > conftest.one
2669	    echo two > conftest.two
2670	    mkdir conftest.dir
2671	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2672	      test -s conftest.one && test -s conftest.two &&
2673	      test -s conftest.dir/conftest.one &&
2674	      test -s conftest.dir/conftest.two
2675	    then
2676	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2677	      break 3
2678	    fi
2679	  fi
2680	fi
2681      done
2682    done
2683    ;;
2684esac
2685
2686  done
2687IFS=$as_save_IFS
2688
2689rm -rf conftest.one conftest.two conftest.dir
2690
2691fi
2692  if test "${ac_cv_path_install+set}" = set; then
2693    INSTALL=$ac_cv_path_install
2694  else
2695    # As a last resort, use the slow shell script.  Don't cache a
2696    # value for INSTALL within a source directory, because that will
2697    # break other packages using the cache if that directory is
2698    # removed, or if the value is a relative name.
2699    INSTALL=$ac_install_sh
2700  fi
2701fi
2702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2703$as_echo "$INSTALL" >&6; }
2704
2705# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2706# It thinks the first close brace ends the variable substitution.
2707test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2708
2709test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2710
2711test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2712
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2714$as_echo_n "checking whether build environment is sane... " >&6; }
2715# Just in case
2716sleep 1
2717echo timestamp > conftest.file
2718# Reject unsafe characters in $srcdir or the absolute working directory
2719# name.  Accept space and tab only in the latter.
2720am_lf='
2721'
2722case `pwd` in
2723  *[\\\"\#\$\&\'\`$am_lf]*)
2724    as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2725esac
2726case $srcdir in
2727  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2728    as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2729esac
2730
2731# Do `set' in a subshell so we don't clobber the current shell's
2732# arguments.  Must try -L first in case configure is actually a
2733# symlink; some systems play weird games with the mod time of symlinks
2734# (eg FreeBSD returns the mod time of the symlink's containing
2735# directory).
2736if (
2737   set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2738   if test "$*" = "X"; then
2739      # -L didn't work.
2740      set X `ls -t "$srcdir/configure" conftest.file`
2741   fi
2742   rm -f conftest.file
2743   if test "$*" != "X $srcdir/configure conftest.file" \
2744      && test "$*" != "X conftest.file $srcdir/configure"; then
2745
2746      # If neither matched, then we have a broken ls.  This can happen
2747      # if, for instance, CONFIG_SHELL is bash and it inherits a
2748      # broken ls alias from the environment.  This has actually
2749      # happened.  Such a system could not be considered "sane".
2750      as_fn_error "ls -t appears to fail.  Make sure there is not a broken
2751alias in your environment" "$LINENO" 5
2752   fi
2753
2754   test "$2" = conftest.file
2755   )
2756then
2757   # Ok.
2758   :
2759else
2760   as_fn_error "newly created file is older than distributed files!
2761Check your system clock" "$LINENO" 5
2762fi
2763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764$as_echo "yes" >&6; }
2765test "$program_prefix" != NONE &&
2766  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2767# Use a double $ so make ignores it.
2768test "$program_suffix" != NONE &&
2769  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2770# Double any \ or $.
2771# By default was `s,x,x', remove it if useless.
2772ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2773program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2774
2775# expand $ac_aux_dir to an absolute path
2776am_aux_dir=`cd $ac_aux_dir && pwd`
2777
2778if test x"${MISSING+set}" != xset; then
2779  case $am_aux_dir in
2780  *\ * | *\	*)
2781    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2782  *)
2783    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2784  esac
2785fi
2786# Use eval to expand $SHELL
2787if eval "$MISSING --run true"; then
2788  am_missing_run="$MISSING --run "
2789else
2790  am_missing_run=
2791  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2792$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2793fi
2794
2795if test x"${install_sh}" != xset; then
2796  case $am_aux_dir in
2797  *\ * | *\	*)
2798    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2799  *)
2800    install_sh="\${SHELL} $am_aux_dir/install-sh"
2801  esac
2802fi
2803
2804# Installed binaries are usually stripped using `strip' when the user
2805# run `make install-strip'.  However `strip' might not be the right
2806# tool to use in cross-compilation environments, therefore Automake
2807# will honor the `STRIP' environment variable to overrule this program.
2808if test "$cross_compiling" != no; then
2809  if test -n "$ac_tool_prefix"; then
2810  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2811set dummy ${ac_tool_prefix}strip; ac_word=$2
2812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2813$as_echo_n "checking for $ac_word... " >&6; }
2814if test "${ac_cv_prog_STRIP+set}" = set; then :
2815  $as_echo_n "(cached) " >&6
2816else
2817  if test -n "$STRIP"; then
2818  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2819else
2820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821for as_dir in $PATH
2822do
2823  IFS=$as_save_IFS
2824  test -z "$as_dir" && as_dir=.
2825    for ac_exec_ext in '' $ac_executable_extensions; do
2826  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2828    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2829    break 2
2830  fi
2831done
2832  done
2833IFS=$as_save_IFS
2834
2835fi
2836fi
2837STRIP=$ac_cv_prog_STRIP
2838if test -n "$STRIP"; then
2839  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2840$as_echo "$STRIP" >&6; }
2841else
2842  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2843$as_echo "no" >&6; }
2844fi
2845
2846
2847fi
2848if test -z "$ac_cv_prog_STRIP"; then
2849  ac_ct_STRIP=$STRIP
2850  # Extract the first word of "strip", so it can be a program name with args.
2851set dummy strip; ac_word=$2
2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2853$as_echo_n "checking for $ac_word... " >&6; }
2854if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2855  $as_echo_n "(cached) " >&6
2856else
2857  if test -n "$ac_ct_STRIP"; then
2858  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2859else
2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2861for as_dir in $PATH
2862do
2863  IFS=$as_save_IFS
2864  test -z "$as_dir" && as_dir=.
2865    for ac_exec_ext in '' $ac_executable_extensions; do
2866  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2867    ac_cv_prog_ac_ct_STRIP="strip"
2868    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2869    break 2
2870  fi
2871done
2872  done
2873IFS=$as_save_IFS
2874
2875fi
2876fi
2877ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2878if test -n "$ac_ct_STRIP"; then
2879  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2880$as_echo "$ac_ct_STRIP" >&6; }
2881else
2882  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2883$as_echo "no" >&6; }
2884fi
2885
2886  if test "x$ac_ct_STRIP" = x; then
2887    STRIP=":"
2888  else
2889    case $cross_compiling:$ac_tool_warned in
2890yes:)
2891{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2892$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2893ac_tool_warned=yes ;;
2894esac
2895    STRIP=$ac_ct_STRIP
2896  fi
2897else
2898  STRIP="$ac_cv_prog_STRIP"
2899fi
2900
2901fi
2902INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2903
2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2905$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2906if test -z "$MKDIR_P"; then
2907  if test "${ac_cv_path_mkdir+set}" = set; then :
2908  $as_echo_n "(cached) " >&6
2909else
2910  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2911for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2912do
2913  IFS=$as_save_IFS
2914  test -z "$as_dir" && as_dir=.
2915    for ac_prog in mkdir gmkdir; do
2916	 for ac_exec_ext in '' $ac_executable_extensions; do
2917	   { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2918	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2919	     'mkdir (GNU coreutils) '* | \
2920	     'mkdir (coreutils) '* | \
2921	     'mkdir (fileutils) '4.1*)
2922	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2923	       break 3;;
2924	   esac
2925	 done
2926       done
2927  done
2928IFS=$as_save_IFS
2929
2930fi
2931
2932  test -d ./--version && rmdir ./--version
2933  if test "${ac_cv_path_mkdir+set}" = set; then
2934    MKDIR_P="$ac_cv_path_mkdir -p"
2935  else
2936    # As a last resort, use the slow shell script.  Don't cache a
2937    # value for MKDIR_P within a source directory, because that will
2938    # break other packages using the cache if that directory is
2939    # removed, or if the value is a relative name.
2940    MKDIR_P="$ac_install_sh -d"
2941  fi
2942fi
2943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2944$as_echo "$MKDIR_P" >&6; }
2945
2946mkdir_p="$MKDIR_P"
2947case $mkdir_p in
2948  [\\/$]* | ?:[\\/]*) ;;
2949  */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2950esac
2951
2952for ac_prog in gawk mawk nawk awk
2953do
2954  # Extract the first word of "$ac_prog", so it can be a program name with args.
2955set dummy $ac_prog; ac_word=$2
2956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2957$as_echo_n "checking for $ac_word... " >&6; }
2958if test "${ac_cv_prog_AWK+set}" = set; then :
2959  $as_echo_n "(cached) " >&6
2960else
2961  if test -n "$AWK"; then
2962  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2963else
2964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2965for as_dir in $PATH
2966do
2967  IFS=$as_save_IFS
2968  test -z "$as_dir" && as_dir=.
2969    for ac_exec_ext in '' $ac_executable_extensions; do
2970  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2971    ac_cv_prog_AWK="$ac_prog"
2972    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2973    break 2
2974  fi
2975done
2976  done
2977IFS=$as_save_IFS
2978
2979fi
2980fi
2981AWK=$ac_cv_prog_AWK
2982if test -n "$AWK"; then
2983  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2984$as_echo "$AWK" >&6; }
2985else
2986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2987$as_echo "no" >&6; }
2988fi
2989
2990
2991  test -n "$AWK" && break
2992done
2993
2994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2995$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2996set x ${MAKE-make}
2997ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2998if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2999  $as_echo_n "(cached) " >&6
3000else
3001  cat >conftest.make <<\_ACEOF
3002SHELL = /bin/sh
3003all:
3004	@echo '@@@%%%=$(MAKE)=@@@%%%'
3005_ACEOF
3006# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3007case `${MAKE-make} -f conftest.make 2>/dev/null` in
3008  *@@@%%%=?*=@@@%%%*)
3009    eval ac_cv_prog_make_${ac_make}_set=yes;;
3010  *)
3011    eval ac_cv_prog_make_${ac_make}_set=no;;
3012esac
3013rm -f conftest.make
3014fi
3015if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3017$as_echo "yes" >&6; }
3018  SET_MAKE=
3019else
3020  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3021$as_echo "no" >&6; }
3022  SET_MAKE="MAKE=${MAKE-make}"
3023fi
3024
3025rm -rf .tst 2>/dev/null
3026mkdir .tst 2>/dev/null
3027if test -d .tst; then
3028  am__leading_dot=.
3029else
3030  am__leading_dot=_
3031fi
3032rmdir .tst 2>/dev/null
3033
3034if test "`cd $srcdir && pwd`" != "`pwd`"; then
3035  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3036  # is not polluted with repeated "-I."
3037  am__isrc=' -I$(srcdir)'
3038  # test to see if srcdir already configured
3039  if test -f $srcdir/config.status; then
3040    as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3041  fi
3042fi
3043
3044# test whether we have cygpath
3045if test -z "$CYGPATH_W"; then
3046  if (cygpath --version) >/dev/null 2>/dev/null; then
3047    CYGPATH_W='cygpath -w'
3048  else
3049    CYGPATH_W=echo
3050  fi
3051fi
3052
3053
3054# Define the identity of the package.
3055 PACKAGE='vte'
3056 VERSION='0.28.2'
3057
3058
3059cat >>confdefs.h <<_ACEOF
3060#define PACKAGE "$PACKAGE"
3061_ACEOF
3062
3063
3064cat >>confdefs.h <<_ACEOF
3065#define VERSION "$VERSION"
3066_ACEOF
3067
3068# Some tools Automake needs.
3069
3070ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3071
3072
3073AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3074
3075
3076AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3077
3078
3079AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3080
3081
3082MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3083
3084# We need awk for the "check" target.  The system "awk" is bad on
3085# some platforms.
3086# Always define AMTAR for backward compatibility.
3087
3088AMTAR=${AMTAR-"${am_missing_run}tar"}
3089
3090am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3091
3092
3093
3094
3095
3096
3097# Check whether --enable-silent-rules was given.
3098if test "${enable_silent_rules+set}" = set; then :
3099  enableval=$enable_silent_rules;
3100fi
3101
3102case $enable_silent_rules in
3103yes) AM_DEFAULT_VERBOSITY=0;;
3104no)  AM_DEFAULT_VERBOSITY=1;;
3105*)   AM_DEFAULT_VERBOSITY=0;;
3106esac
3107AM_BACKSLASH='\'
3108
3109
3110if test -z "$enable_maintainer_mode"; then
3111  enable_maintainer_mode=yes
3112fi
3113
3114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
3115$as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
3116    # Check whether --enable-maintainer-mode was given.
3117if test "${enable_maintainer_mode+set}" = set; then :
3118  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3119else
3120  USE_MAINTAINER_MODE=yes
3121fi
3122
3123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3124$as_echo "$USE_MAINTAINER_MODE" >&6; }
3125   if test $USE_MAINTAINER_MODE = yes; then
3126  MAINTAINER_MODE_TRUE=
3127  MAINTAINER_MODE_FALSE='#'
3128else
3129  MAINTAINER_MODE_TRUE='#'
3130  MAINTAINER_MODE_FALSE=
3131fi
3132
3133  MAINT=$MAINTAINER_MODE_TRUE
3134
3135
3136
3137################################################################################
3138# Libtool versioning
3139################################################################################
3140
3141
3142
3143
3144
3145LT_VERSION_INFO="2809:2:2800"
3146
3147
3148################################################################################
3149# GTK+
3150################################################################################
3151
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which gtk+ version to compile against" >&5
3153$as_echo_n "checking which gtk+ version to compile against... " >&6; }
3154
3155# Check whether --with-gtk was given.
3156if test "${with_gtk+set}" = set; then :
3157  withval=$with_gtk; case "$with_gtk" in
3158     2.0|3.0) ;;
3159     *) as_fn_error "invalid gtk version specified" "$LINENO" 5 ;;
3160   esac
3161else
3162  with_gtk=2.0
3163fi
3164
3165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gtk" >&5
3166$as_echo "$with_gtk" >&6; }
3167
3168case "$with_gtk" in
3169  2.0) VTE_API_VERSION=0.0
3170       VTE_API_MAJOR_VERSION=0
3171       VTE_API_MINOR_VERSION=0
3172       VTE_PC_VERSION=
3173       VTE_LIBRARY_SUFFIX=
3174       VTE_SEAL_CFLAGS=
3175       GTK_API_VERSION=2.0
3176       GTK_REQUIRED=2.20.0
3177       GLADE_API_VERSION=1.0
3178       ;;
3179  3.0) VTE_API_VERSION=2.90
3180       VTE_API_MAJOR_VERSION=2
3181       VTE_API_MINOR_VERSION=90
3182       VTE_PC_VERSION=-$VTE_API_VERSION
3183       VTE_LIBRARY_SUFFIX=$VTE_API_VERSION
3184       VTE_SEAL_CFLAGS="-DVTE_SEAL_ENABLE"
3185       GTK_API_VERSION=3.0
3186       GTK_REQUIRED=3.0.0
3187       GLADE_API_VERSION=2.0
3188       ;;
3189esac
3190
3191
3192VTE_API_VERSION_U=`$as_echo "$VTE_API_VERSION" | $as_tr_sh`
3193
3194
3195
3196
3197
3198
3199VTE_LIBRARY_SUFFIX_U=`$as_echo "$VTE_LIBRARY_SUFFIX" | $as_tr_sh`
3200
3201
3202 if test "$with_gtk" = "2.0"; then
3203  HAVE_GTK_2_TRUE=
3204  HAVE_GTK_2_FALSE='#'
3205else
3206  HAVE_GTK_2_TRUE='#'
3207  HAVE_GTK_2_FALSE=
3208fi
3209
3210 if test "$with_gtk" = "3.0"; then
3211  HAVE_GTK_3_TRUE=
3212  HAVE_GTK_3_FALSE='#'
3213else
3214  HAVE_GTK_3_TRUE='#'
3215  HAVE_GTK_3_FALSE=
3216fi
3217
3218
3219################################################################################
3220
3221# Check for programs
3222ac_ext=c
3223ac_cpp='$CPP $CPPFLAGS'
3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227if test -n "$ac_tool_prefix"; then
3228  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3229set dummy ${ac_tool_prefix}gcc; ac_word=$2
3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3231$as_echo_n "checking for $ac_word... " >&6; }
3232if test "${ac_cv_prog_CC+set}" = set; then :
3233  $as_echo_n "(cached) " >&6
3234else
3235  if test -n "$CC"; then
3236  ac_cv_prog_CC="$CC" # Let the user override the test.
3237else
3238as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239for as_dir in $PATH
3240do
3241  IFS=$as_save_IFS
3242  test -z "$as_dir" && as_dir=.
3243    for ac_exec_ext in '' $ac_executable_extensions; do
3244  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3245    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3246    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3247    break 2
3248  fi
3249done
3250  done
3251IFS=$as_save_IFS
3252
3253fi
3254fi
3255CC=$ac_cv_prog_CC
3256if test -n "$CC"; then
3257  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3258$as_echo "$CC" >&6; }
3259else
3260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3261$as_echo "no" >&6; }
3262fi
3263
3264
3265fi
3266if test -z "$ac_cv_prog_CC"; then
3267  ac_ct_CC=$CC
3268  # Extract the first word of "gcc", so it can be a program name with args.
3269set dummy gcc; ac_word=$2
3270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271$as_echo_n "checking for $ac_word... " >&6; }
3272if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3273  $as_echo_n "(cached) " >&6
3274else
3275  if test -n "$ac_ct_CC"; then
3276  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3277else
3278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279for as_dir in $PATH
3280do
3281  IFS=$as_save_IFS
3282  test -z "$as_dir" && as_dir=.
3283    for ac_exec_ext in '' $ac_executable_extensions; do
3284  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3285    ac_cv_prog_ac_ct_CC="gcc"
3286    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287    break 2
3288  fi
3289done
3290  done
3291IFS=$as_save_IFS
3292
3293fi
3294fi
3295ac_ct_CC=$ac_cv_prog_ac_ct_CC
3296if test -n "$ac_ct_CC"; then
3297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3298$as_echo "$ac_ct_CC" >&6; }
3299else
3300  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301$as_echo "no" >&6; }
3302fi
3303
3304  if test "x$ac_ct_CC" = x; then
3305    CC=""
3306  else
3307    case $cross_compiling:$ac_tool_warned in
3308yes:)
3309{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3310$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3311ac_tool_warned=yes ;;
3312esac
3313    CC=$ac_ct_CC
3314  fi
3315else
3316  CC="$ac_cv_prog_CC"
3317fi
3318
3319if test -z "$CC"; then
3320          if test -n "$ac_tool_prefix"; then
3321    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3322set dummy ${ac_tool_prefix}cc; ac_word=$2
3323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3324$as_echo_n "checking for $ac_word... " >&6; }
3325if test "${ac_cv_prog_CC+set}" = set; then :
3326  $as_echo_n "(cached) " >&6
3327else
3328  if test -n "$CC"; then
3329  ac_cv_prog_CC="$CC" # Let the user override the test.
3330else
3331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332for as_dir in $PATH
3333do
3334  IFS=$as_save_IFS
3335  test -z "$as_dir" && as_dir=.
3336    for ac_exec_ext in '' $ac_executable_extensions; do
3337  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3338    ac_cv_prog_CC="${ac_tool_prefix}cc"
3339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3340    break 2
3341  fi
3342done
3343  done
3344IFS=$as_save_IFS
3345
3346fi
3347fi
3348CC=$ac_cv_prog_CC
3349if test -n "$CC"; then
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3351$as_echo "$CC" >&6; }
3352else
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3354$as_echo "no" >&6; }
3355fi
3356
3357
3358  fi
3359fi
3360if test -z "$CC"; then
3361  # Extract the first word of "cc", so it can be a program name with args.
3362set dummy cc; ac_word=$2
3363{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364$as_echo_n "checking for $ac_word... " >&6; }
3365if test "${ac_cv_prog_CC+set}" = set; then :
3366  $as_echo_n "(cached) " >&6
3367else
3368  if test -n "$CC"; then
3369  ac_cv_prog_CC="$CC" # Let the user override the test.
3370else
3371  ac_prog_rejected=no
3372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3373for as_dir in $PATH
3374do
3375  IFS=$as_save_IFS
3376  test -z "$as_dir" && as_dir=.
3377    for ac_exec_ext in '' $ac_executable_extensions; do
3378  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3379    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3380       ac_prog_rejected=yes
3381       continue
3382     fi
3383    ac_cv_prog_CC="cc"
3384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3385    break 2
3386  fi
3387done
3388  done
3389IFS=$as_save_IFS
3390
3391if test $ac_prog_rejected = yes; then
3392  # We found a bogon in the path, so make sure we never use it.
3393  set dummy $ac_cv_prog_CC
3394  shift
3395  if test $# != 0; then
3396    # We chose a different compiler from the bogus one.
3397    # However, it has the same basename, so the bogon will be chosen
3398    # first if we set CC to just the basename; use the full file name.
3399    shift
3400    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3401  fi
3402fi
3403fi
3404fi
3405CC=$ac_cv_prog_CC
3406if test -n "$CC"; then
3407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3408$as_echo "$CC" >&6; }
3409else
3410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3411$as_echo "no" >&6; }
3412fi
3413
3414
3415fi
3416if test -z "$CC"; then
3417  if test -n "$ac_tool_prefix"; then
3418  for ac_prog in cl.exe
3419  do
3420    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3421set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3423$as_echo_n "checking for $ac_word... " >&6; }
3424if test "${ac_cv_prog_CC+set}" = set; then :
3425  $as_echo_n "(cached) " >&6
3426else
3427  if test -n "$CC"; then
3428  ac_cv_prog_CC="$CC" # Let the user override the test.
3429else
3430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431for as_dir in $PATH
3432do
3433  IFS=$as_save_IFS
3434  test -z "$as_dir" && as_dir=.
3435    for ac_exec_ext in '' $ac_executable_extensions; do
3436  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3437    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439    break 2
3440  fi
3441done
3442  done
3443IFS=$as_save_IFS
3444
3445fi
3446fi
3447CC=$ac_cv_prog_CC
3448if test -n "$CC"; then
3449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450$as_echo "$CC" >&6; }
3451else
3452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453$as_echo "no" >&6; }
3454fi
3455
3456
3457    test -n "$CC" && break
3458  done
3459fi
3460if test -z "$CC"; then
3461  ac_ct_CC=$CC
3462  for ac_prog in cl.exe
3463do
3464  # Extract the first word of "$ac_prog", so it can be a program name with args.
3465set dummy $ac_prog; ac_word=$2
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467$as_echo_n "checking for $ac_word... " >&6; }
3468if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3469  $as_echo_n "(cached) " >&6
3470else
3471  if test -n "$ac_ct_CC"; then
3472  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3473else
3474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475for as_dir in $PATH
3476do
3477  IFS=$as_save_IFS
3478  test -z "$as_dir" && as_dir=.
3479    for ac_exec_ext in '' $ac_executable_extensions; do
3480  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3481    ac_cv_prog_ac_ct_CC="$ac_prog"
3482    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3483    break 2
3484  fi
3485done
3486  done
3487IFS=$as_save_IFS
3488
3489fi
3490fi
3491ac_ct_CC=$ac_cv_prog_ac_ct_CC
3492if test -n "$ac_ct_CC"; then
3493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3494$as_echo "$ac_ct_CC" >&6; }
3495else
3496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497$as_echo "no" >&6; }
3498fi
3499
3500
3501  test -n "$ac_ct_CC" && break
3502done
3503
3504  if test "x$ac_ct_CC" = x; then
3505    CC=""
3506  else
3507    case $cross_compiling:$ac_tool_warned in
3508yes:)
3509{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3510$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3511ac_tool_warned=yes ;;
3512esac
3513    CC=$ac_ct_CC
3514  fi
3515fi
3516
3517fi
3518
3519
3520test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522as_fn_error "no acceptable C compiler found in \$PATH
3523See \`config.log' for more details." "$LINENO" 5; }
3524
3525# Provide some information about the compiler.
3526$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3527set X $ac_compile
3528ac_compiler=$2
3529for ac_option in --version -v -V -qversion; do
3530  { { ac_try="$ac_compiler $ac_option >&5"
3531case "(($ac_try" in
3532  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3533  *) ac_try_echo=$ac_try;;
3534esac
3535eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3536$as_echo "$ac_try_echo"; } >&5
3537  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3538  ac_status=$?
3539  if test -s conftest.err; then
3540    sed '10a\
3541... rest of stderr output deleted ...
3542         10q' conftest.err >conftest.er1
3543    cat conftest.er1 >&5
3544  fi
3545  rm -f conftest.er1 conftest.err
3546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3547  test $ac_status = 0; }
3548done
3549
3550cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551/* end confdefs.h.  */
3552
3553int
3554main ()
3555{
3556
3557  ;
3558  return 0;
3559}
3560_ACEOF
3561ac_clean_files_save=$ac_clean_files
3562ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3563# Try to create an executable without -o first, disregard a.out.
3564# It will help us diagnose broken compilers, and finding out an intuition
3565# of exeext.
3566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3567$as_echo_n "checking whether the C compiler works... " >&6; }
3568ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3569
3570# The possible output files:
3571ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3572
3573ac_rmfiles=
3574for ac_file in $ac_files
3575do
3576  case $ac_file in
3577    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3578    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3579  esac
3580done
3581rm -f $ac_rmfiles
3582
3583if { { ac_try="$ac_link_default"
3584case "(($ac_try" in
3585  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586  *) ac_try_echo=$ac_try;;
3587esac
3588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3589$as_echo "$ac_try_echo"; } >&5
3590  (eval "$ac_link_default") 2>&5
3591  ac_status=$?
3592  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3593  test $ac_status = 0; }; then :
3594  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3595# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3596# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3597# so that the user can short-circuit this test for compilers unknown to
3598# Autoconf.
3599for ac_file in $ac_files ''
3600do
3601  test -f "$ac_file" || continue
3602  case $ac_file in
3603    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3604	;;
3605    [ab].out )
3606	# We found the default executable, but exeext='' is most
3607	# certainly right.
3608	break;;
3609    *.* )
3610	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3611	then :; else
3612	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613	fi
3614	# We set ac_cv_exeext here because the later test for it is not
3615	# safe: cross compilers may not add the suffix if given an `-o'
3616	# argument, so we may need to know it at that point already.
3617	# Even if this section looks crufty: it has the advantage of
3618	# actually working.
3619	break;;
3620    * )
3621	break;;
3622  esac
3623done
3624test "$ac_cv_exeext" = no && ac_cv_exeext=
3625
3626else
3627  ac_file=''
3628fi
3629if test -z "$ac_file"; then :
3630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3631$as_echo "no" >&6; }
3632$as_echo "$as_me: failed program was:" >&5
3633sed 's/^/| /' conftest.$ac_ext >&5
3634
3635{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637{ as_fn_set_status 77
3638as_fn_error "C compiler cannot create executables
3639See \`config.log' for more details." "$LINENO" 5; }; }
3640else
3641  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3642$as_echo "yes" >&6; }
3643fi
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3645$as_echo_n "checking for C compiler default output file name... " >&6; }
3646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3647$as_echo "$ac_file" >&6; }
3648ac_exeext=$ac_cv_exeext
3649
3650rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3651ac_clean_files=$ac_clean_files_save
3652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3653$as_echo_n "checking for suffix of executables... " >&6; }
3654if { { ac_try="$ac_link"
3655case "(($ac_try" in
3656  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657  *) ac_try_echo=$ac_try;;
3658esac
3659eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660$as_echo "$ac_try_echo"; } >&5
3661  (eval "$ac_link") 2>&5
3662  ac_status=$?
3663  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664  test $ac_status = 0; }; then :
3665  # If both `conftest.exe' and `conftest' are `present' (well, observable)
3666# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3667# work properly (i.e., refer to `conftest.exe'), while it won't with
3668# `rm'.
3669for ac_file in conftest.exe conftest conftest.*; do
3670  test -f "$ac_file" || continue
3671  case $ac_file in
3672    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3673    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3674	  break;;
3675    * ) break;;
3676  esac
3677done
3678else
3679  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3680$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3681as_fn_error "cannot compute suffix of executables: cannot compile and link
3682See \`config.log' for more details." "$LINENO" 5; }
3683fi
3684rm -f conftest conftest$ac_cv_exeext
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3686$as_echo "$ac_cv_exeext" >&6; }
3687
3688rm -f conftest.$ac_ext
3689EXEEXT=$ac_cv_exeext
3690ac_exeext=$EXEEXT
3691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3692/* end confdefs.h.  */
3693#include <stdio.h>
3694int
3695main ()
3696{
3697FILE *f = fopen ("conftest.out", "w");
3698 return ferror (f) || fclose (f) != 0;
3699
3700  ;
3701  return 0;
3702}
3703_ACEOF
3704ac_clean_files="$ac_clean_files conftest.out"
3705# Check that the compiler produces executables we can run.  If not, either
3706# the compiler is broken, or we cross compile.
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3708$as_echo_n "checking whether we are cross compiling... " >&6; }
3709if test "$cross_compiling" != yes; then
3710  { { ac_try="$ac_link"
3711case "(($ac_try" in
3712  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713  *) ac_try_echo=$ac_try;;
3714esac
3715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716$as_echo "$ac_try_echo"; } >&5
3717  (eval "$ac_link") 2>&5
3718  ac_status=$?
3719  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720  test $ac_status = 0; }
3721  if { ac_try='./conftest$ac_cv_exeext'
3722  { { case "(($ac_try" in
3723  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724  *) ac_try_echo=$ac_try;;
3725esac
3726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3727$as_echo "$ac_try_echo"; } >&5
3728  (eval "$ac_try") 2>&5
3729  ac_status=$?
3730  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3731  test $ac_status = 0; }; }; then
3732    cross_compiling=no
3733  else
3734    if test "$cross_compiling" = maybe; then
3735	cross_compiling=yes
3736    else
3737	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3738$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3739as_fn_error "cannot run C compiled programs.
3740If you meant to cross compile, use \`--host'.
3741See \`config.log' for more details." "$LINENO" 5; }
3742    fi
3743  fi
3744fi
3745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3746$as_echo "$cross_compiling" >&6; }
3747
3748rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3749ac_clean_files=$ac_clean_files_save
3750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3751$as_echo_n "checking for suffix of object files... " >&6; }
3752if test "${ac_cv_objext+set}" = set; then :
3753  $as_echo_n "(cached) " >&6
3754else
3755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756/* end confdefs.h.  */
3757
3758int
3759main ()
3760{
3761
3762  ;
3763  return 0;
3764}
3765_ACEOF
3766rm -f conftest.o conftest.obj
3767if { { ac_try="$ac_compile"
3768case "(($ac_try" in
3769  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770  *) ac_try_echo=$ac_try;;
3771esac
3772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3773$as_echo "$ac_try_echo"; } >&5
3774  (eval "$ac_compile") 2>&5
3775  ac_status=$?
3776  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3777  test $ac_status = 0; }; then :
3778  for ac_file in conftest.o conftest.obj conftest.*; do
3779  test -f "$ac_file" || continue;
3780  case $ac_file in
3781    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3782    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3783       break;;
3784  esac
3785done
3786else
3787  $as_echo "$as_me: failed program was:" >&5
3788sed 's/^/| /' conftest.$ac_ext >&5
3789
3790{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3792as_fn_error "cannot compute suffix of object files: cannot compile
3793See \`config.log' for more details." "$LINENO" 5; }
3794fi
3795rm -f conftest.$ac_cv_objext conftest.$ac_ext
3796fi
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3798$as_echo "$ac_cv_objext" >&6; }
3799OBJEXT=$ac_cv_objext
3800ac_objext=$OBJEXT
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3802$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3803if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3804  $as_echo_n "(cached) " >&6
3805else
3806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807/* end confdefs.h.  */
3808
3809int
3810main ()
3811{
3812#ifndef __GNUC__
3813       choke me
3814#endif
3815
3816  ;
3817  return 0;
3818}
3819_ACEOF
3820if ac_fn_c_try_compile "$LINENO"; then :
3821  ac_compiler_gnu=yes
3822else
3823  ac_compiler_gnu=no
3824fi
3825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3826ac_cv_c_compiler_gnu=$ac_compiler_gnu
3827
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3830$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3831if test $ac_compiler_gnu = yes; then
3832  GCC=yes
3833else
3834  GCC=
3835fi
3836ac_test_CFLAGS=${CFLAGS+set}
3837ac_save_CFLAGS=$CFLAGS
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3839$as_echo_n "checking whether $CC accepts -g... " >&6; }
3840if test "${ac_cv_prog_cc_g+set}" = set; then :
3841  $as_echo_n "(cached) " >&6
3842else
3843  ac_save_c_werror_flag=$ac_c_werror_flag
3844   ac_c_werror_flag=yes
3845   ac_cv_prog_cc_g=no
3846   CFLAGS="-g"
3847   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848/* end confdefs.h.  */
3849
3850int
3851main ()
3852{
3853
3854  ;
3855  return 0;
3856}
3857_ACEOF
3858if ac_fn_c_try_compile "$LINENO"; then :
3859  ac_cv_prog_cc_g=yes
3860else
3861  CFLAGS=""
3862      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863/* end confdefs.h.  */
3864
3865int
3866main ()
3867{
3868
3869  ;
3870  return 0;
3871}
3872_ACEOF
3873if ac_fn_c_try_compile "$LINENO"; then :
3874
3875else
3876  ac_c_werror_flag=$ac_save_c_werror_flag
3877	 CFLAGS="-g"
3878	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3879/* end confdefs.h.  */
3880
3881int
3882main ()
3883{
3884
3885  ;
3886  return 0;
3887}
3888_ACEOF
3889if ac_fn_c_try_compile "$LINENO"; then :
3890  ac_cv_prog_cc_g=yes
3891fi
3892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3893fi
3894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3895fi
3896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3897   ac_c_werror_flag=$ac_save_c_werror_flag
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3900$as_echo "$ac_cv_prog_cc_g" >&6; }
3901if test "$ac_test_CFLAGS" = set; then
3902  CFLAGS=$ac_save_CFLAGS
3903elif test $ac_cv_prog_cc_g = yes; then
3904  if test "$GCC" = yes; then
3905    CFLAGS="-g -O2"
3906  else
3907    CFLAGS="-g"
3908  fi
3909else
3910  if test "$GCC" = yes; then
3911    CFLAGS="-O2"
3912  else
3913    CFLAGS=
3914  fi
3915fi
3916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3917$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3918if test "${ac_cv_prog_cc_c89+set}" = set; then :
3919  $as_echo_n "(cached) " >&6
3920else
3921  ac_cv_prog_cc_c89=no
3922ac_save_CC=$CC
3923cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3924/* end confdefs.h.  */
3925#include <stdarg.h>
3926#include <stdio.h>
3927#include <sys/types.h>
3928#include <sys/stat.h>
3929/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3930struct buf { int x; };
3931FILE * (*rcsopen) (struct buf *, struct stat *, int);
3932static char *e (p, i)
3933     char **p;
3934     int i;
3935{
3936  return p[i];
3937}
3938static char *f (char * (*g) (char **, int), char **p, ...)
3939{
3940  char *s;
3941  va_list v;
3942  va_start (v,p);
3943  s = g (p, va_arg (v,int));
3944  va_end (v);
3945  return s;
3946}
3947
3948/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3949   function prototypes and stuff, but not '\xHH' hex character constants.
3950   These don't provoke an error unfortunately, instead are silently treated
3951   as 'x'.  The following induces an error, until -std is added to get
3952   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3953   array size at least.  It's necessary to write '\x00'==0 to get something
3954   that's true only with -std.  */
3955int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3956
3957/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3958   inside strings and character constants.  */
3959#define FOO(x) 'x'
3960int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3961
3962int test (int i, double x);
3963struct s1 {int (*f) (int a);};
3964struct s2 {int (*f) (double a);};
3965int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3966int argc;
3967char **argv;
3968int
3969main ()
3970{
3971return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3972  ;
3973  return 0;
3974}
3975_ACEOF
3976for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3977	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3978do
3979  CC="$ac_save_CC $ac_arg"
3980  if ac_fn_c_try_compile "$LINENO"; then :
3981  ac_cv_prog_cc_c89=$ac_arg
3982fi
3983rm -f core conftest.err conftest.$ac_objext
3984  test "x$ac_cv_prog_cc_c89" != "xno" && break
3985done
3986rm -f conftest.$ac_ext
3987CC=$ac_save_CC
3988
3989fi
3990# AC_CACHE_VAL
3991case "x$ac_cv_prog_cc_c89" in
3992  x)
3993    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3994$as_echo "none needed" >&6; } ;;
3995  xno)
3996    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3997$as_echo "unsupported" >&6; } ;;
3998  *)
3999    CC="$CC $ac_cv_prog_cc_c89"
4000    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4001$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4002esac
4003if test "x$ac_cv_prog_cc_c89" != xno; then :
4004
4005fi
4006
4007ac_ext=c
4008ac_cpp='$CPP $CPPFLAGS'
4009ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4010ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4011ac_compiler_gnu=$ac_cv_c_compiler_gnu
4012DEPDIR="${am__leading_dot}deps"
4013
4014ac_config_commands="$ac_config_commands depfiles"
4015
4016
4017am_make=${MAKE-make}
4018cat > confinc << 'END'
4019am__doit:
4020	@echo this is the am__doit target
4021.PHONY: am__doit
4022END
4023# If we don't find an include directive, just comment out the code.
4024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4025$as_echo_n "checking for style of include used by $am_make... " >&6; }
4026am__include="#"
4027am__quote=
4028_am_result=none
4029# First try GNU make style include.
4030echo "include confinc" > confmf
4031# Ignore all kinds of additional output from `make'.
4032case `$am_make -s -f confmf 2> /dev/null` in #(
4033*the\ am__doit\ target*)
4034  am__include=include
4035  am__quote=
4036  _am_result=GNU
4037  ;;
4038esac
4039# Now try BSD make style include.
4040if test "$am__include" = "#"; then
4041   echo '.include "confinc"' > confmf
4042   case `$am_make -s -f confmf 2> /dev/null` in #(
4043   *the\ am__doit\ target*)
4044     am__include=.include
4045     am__quote="\""
4046     _am_result=BSD
4047     ;;
4048   esac
4049fi
4050
4051
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4053$as_echo "$_am_result" >&6; }
4054rm -f confinc confmf
4055
4056# Check whether --enable-dependency-tracking was given.
4057if test "${enable_dependency_tracking+set}" = set; then :
4058  enableval=$enable_dependency_tracking;
4059fi
4060
4061if test "x$enable_dependency_tracking" != xno; then
4062  am_depcomp="$ac_aux_dir/depcomp"
4063  AMDEPBACKSLASH='\'
4064fi
4065 if test "x$enable_dependency_tracking" != xno; then
4066  AMDEP_TRUE=
4067  AMDEP_FALSE='#'
4068else
4069  AMDEP_TRUE='#'
4070  AMDEP_FALSE=
4071fi
4072
4073
4074
4075depcc="$CC"   am_compiler_list=
4076
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4078$as_echo_n "checking dependency style of $depcc... " >&6; }
4079if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4080  $as_echo_n "(cached) " >&6
4081else
4082  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4083  # We make a subdir and do the tests there.  Otherwise we can end up
4084  # making bogus files that we don't know about and never remove.  For
4085  # instance it was reported that on HP-UX the gcc test will end up
4086  # making a dummy file named `D' -- because `-MD' means `put the output
4087  # in D'.
4088  mkdir conftest.dir
4089  # Copy depcomp to subdir because otherwise we won't find it if we're
4090  # using a relative directory.
4091  cp "$am_depcomp" conftest.dir
4092  cd conftest.dir
4093  # We will build objects and dependencies in a subdirectory because
4094  # it helps to detect inapplicable dependency modes.  For instance
4095  # both Tru64's cc and ICC support -MD to output dependencies as a
4096  # side effect of compilation, but ICC will put the dependencies in
4097  # the current directory while Tru64 will put them in the object
4098  # directory.
4099  mkdir sub
4100
4101  am_cv_CC_dependencies_compiler_type=none
4102  if test "$am_compiler_list" = ""; then
4103     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4104  fi
4105  am__universal=false
4106  case " $depcc " in #(
4107     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4108     esac
4109
4110  for depmode in $am_compiler_list; do
4111    # Setup a source with many dependencies, because some compilers
4112    # like to wrap large dependency lists on column 80 (with \), and
4113    # we should not choose a depcomp mode which is confused by this.
4114    #
4115    # We need to recreate these files for each test, as the compiler may
4116    # overwrite some of them when testing with obscure command lines.
4117    # This happens at least with the AIX C compiler.
4118    : > sub/conftest.c
4119    for i in 1 2 3 4 5 6; do
4120      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4121      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4122      # Solaris 8's {/usr,}/bin/sh.
4123      touch sub/conftst$i.h
4124    done
4125    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4126
4127    # We check with `-c' and `-o' for the sake of the "dashmstdout"
4128    # mode.  It turns out that the SunPro C++ compiler does not properly
4129    # handle `-M -o', and we need to detect this.  Also, some Intel
4130    # versions had trouble with output in subdirs
4131    am__obj=sub/conftest.${OBJEXT-o}
4132    am__minus_obj="-o $am__obj"
4133    case $depmode in
4134    gcc)
4135      # This depmode causes a compiler race in universal mode.
4136      test "$am__universal" = false || continue
4137      ;;
4138    nosideeffect)
4139      # after this tag, mechanisms are not by side-effect, so they'll
4140      # only be used when explicitly requested
4141      if test "x$enable_dependency_tracking" = xyes; then
4142	continue
4143      else
4144	break
4145      fi
4146      ;;
4147    msvisualcpp | msvcmsys)
4148      # This compiler won't grok `-c -o', but also, the minuso test has
4149      # not run yet.  These depmodes are late enough in the game, and
4150      # so weak that their functioning should not be impacted.
4151      am__obj=conftest.${OBJEXT-o}
4152      am__minus_obj=
4153      ;;
4154    none) break ;;
4155    esac
4156    if depmode=$depmode \
4157       source=sub/conftest.c object=$am__obj \
4158       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4159       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4160         >/dev/null 2>conftest.err &&
4161       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4162       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4163       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4164       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4165      # icc doesn't choke on unknown options, it will just issue warnings
4166      # or remarks (even with -Werror).  So we grep stderr for any message
4167      # that says an option was ignored or not supported.
4168      # When given -MP, icc 7.0 and 7.1 complain thusly:
4169      #   icc: Command line warning: ignoring option '-M'; no argument required
4170      # The diagnosis changed in icc 8.0:
4171      #   icc: Command line remark: option '-MP' not supported
4172      if (grep 'ignoring option' conftest.err ||
4173          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4174        am_cv_CC_dependencies_compiler_type=$depmode
4175        break
4176      fi
4177    fi
4178  done
4179
4180  cd ..
4181  rm -rf conftest.dir
4182else
4183  am_cv_CC_dependencies_compiler_type=none
4184fi
4185
4186fi
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4188$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4189CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4190
4191 if
4192  test "x$enable_dependency_tracking" != xno \
4193  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4194  am__fastdepCC_TRUE=
4195  am__fastdepCC_FALSE='#'
4196else
4197  am__fastdepCC_TRUE='#'
4198  am__fastdepCC_FALSE=
4199fi
4200
4201
4202
4203ac_ext=c
4204ac_cpp='$CPP $CPPFLAGS'
4205ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4209$as_echo_n "checking how to run the C preprocessor... " >&6; }
4210# On Suns, sometimes $CPP names a directory.
4211if test -n "$CPP" && test -d "$CPP"; then
4212  CPP=
4213fi
4214if test -z "$CPP"; then
4215  if test "${ac_cv_prog_CPP+set}" = set; then :
4216  $as_echo_n "(cached) " >&6
4217else
4218      # Double quotes because CPP needs to be expanded
4219    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4220    do
4221      ac_preproc_ok=false
4222for ac_c_preproc_warn_flag in '' yes
4223do
4224  # Use a header file that comes with gcc, so configuring glibc
4225  # with a fresh cross-compiler works.
4226  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4227  # <limits.h> exists even on freestanding compilers.
4228  # On the NeXT, cc -E runs the code through the compiler's parser,
4229  # not just through cpp. "Syntax error" is here to catch this case.
4230  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4231/* end confdefs.h.  */
4232#ifdef __STDC__
4233# include <limits.h>
4234#else
4235# include <assert.h>
4236#endif
4237		     Syntax error
4238_ACEOF
4239if ac_fn_c_try_cpp "$LINENO"; then :
4240
4241else
4242  # Broken: fails on valid input.
4243continue
4244fi
4245rm -f conftest.err conftest.$ac_ext
4246
4247  # OK, works on sane cases.  Now check whether nonexistent headers
4248  # can be detected and how.
4249  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250/* end confdefs.h.  */
4251#include <ac_nonexistent.h>
4252_ACEOF
4253if ac_fn_c_try_cpp "$LINENO"; then :
4254  # Broken: success on invalid input.
4255continue
4256else
4257  # Passes both tests.
4258ac_preproc_ok=:
4259break
4260fi
4261rm -f conftest.err conftest.$ac_ext
4262
4263done
4264# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4265rm -f conftest.err conftest.$ac_ext
4266if $ac_preproc_ok; then :
4267  break
4268fi
4269
4270    done
4271    ac_cv_prog_CPP=$CPP
4272
4273fi
4274  CPP=$ac_cv_prog_CPP
4275else
4276  ac_cv_prog_CPP=$CPP
4277fi
4278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4279$as_echo "$CPP" >&6; }
4280ac_preproc_ok=false
4281for ac_c_preproc_warn_flag in '' yes
4282do
4283  # Use a header file that comes with gcc, so configuring glibc
4284  # with a fresh cross-compiler works.
4285  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4286  # <limits.h> exists even on freestanding compilers.
4287  # On the NeXT, cc -E runs the code through the compiler's parser,
4288  # not just through cpp. "Syntax error" is here to catch this case.
4289  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4290/* end confdefs.h.  */
4291#ifdef __STDC__
4292# include <limits.h>
4293#else
4294# include <assert.h>
4295#endif
4296		     Syntax error
4297_ACEOF
4298if ac_fn_c_try_cpp "$LINENO"; then :
4299
4300else
4301  # Broken: fails on valid input.
4302continue
4303fi
4304rm -f conftest.err conftest.$ac_ext
4305
4306  # OK, works on sane cases.  Now check whether nonexistent headers
4307  # can be detected and how.
4308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4309/* end confdefs.h.  */
4310#include <ac_nonexistent.h>
4311_ACEOF
4312if ac_fn_c_try_cpp "$LINENO"; then :
4313  # Broken: success on invalid input.
4314continue
4315else
4316  # Passes both tests.
4317ac_preproc_ok=:
4318break
4319fi
4320rm -f conftest.err conftest.$ac_ext
4321
4322done
4323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4324rm -f conftest.err conftest.$ac_ext
4325if $ac_preproc_ok; then :
4326
4327else
4328  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330as_fn_error "C preprocessor \"$CPP\" fails sanity check
4331See \`config.log' for more details." "$LINENO" 5; }
4332fi
4333
4334ac_ext=c
4335ac_cpp='$CPP $CPPFLAGS'
4336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4338ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339
4340
4341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4342$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4343if test "${ac_cv_path_GREP+set}" = set; then :
4344  $as_echo_n "(cached) " >&6
4345else
4346  if test -z "$GREP"; then
4347  ac_path_GREP_found=false
4348  # Loop through the user's path and test for each of PROGNAME-LIST
4349  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4350for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4351do
4352  IFS=$as_save_IFS
4353  test -z "$as_dir" && as_dir=.
4354    for ac_prog in grep ggrep; do
4355    for ac_exec_ext in '' $ac_executable_extensions; do
4356      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4357      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4358# Check for GNU ac_path_GREP and select it if it is found.
4359  # Check for GNU $ac_path_GREP
4360case `"$ac_path_GREP" --version 2>&1` in
4361*GNU*)
4362  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4363*)
4364  ac_count=0
4365  $as_echo_n 0123456789 >"conftest.in"
4366  while :
4367  do
4368    cat "conftest.in" "conftest.in" >"conftest.tmp"
4369    mv "conftest.tmp" "conftest.in"
4370    cp "conftest.in" "conftest.nl"
4371    $as_echo 'GREP' >> "conftest.nl"
4372    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4373    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4374    as_fn_arith $ac_count + 1 && ac_count=$as_val
4375    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4376      # Best one so far, save it but keep looking for a better one
4377      ac_cv_path_GREP="$ac_path_GREP"
4378      ac_path_GREP_max=$ac_count
4379    fi
4380    # 10*(2^10) chars as input seems more than enough
4381    test $ac_count -gt 10 && break
4382  done
4383  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4384esac
4385
4386      $ac_path_GREP_found && break 3
4387    done
4388  done
4389  done
4390IFS=$as_save_IFS
4391  if test -z "$ac_cv_path_GREP"; then
4392    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4393  fi
4394else
4395  ac_cv_path_GREP=$GREP
4396fi
4397
4398fi
4399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4400$as_echo "$ac_cv_path_GREP" >&6; }
4401 GREP="$ac_cv_path_GREP"
4402
4403
4404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4405$as_echo_n "checking for egrep... " >&6; }
4406if test "${ac_cv_path_EGREP+set}" = set; then :
4407  $as_echo_n "(cached) " >&6
4408else
4409  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4410   then ac_cv_path_EGREP="$GREP -E"
4411   else
4412     if test -z "$EGREP"; then
4413  ac_path_EGREP_found=false
4414  # Loop through the user's path and test for each of PROGNAME-LIST
4415  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4417do
4418  IFS=$as_save_IFS
4419  test -z "$as_dir" && as_dir=.
4420    for ac_prog in egrep; do
4421    for ac_exec_ext in '' $ac_executable_extensions; do
4422      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4423      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4424# Check for GNU ac_path_EGREP and select it if it is found.
4425  # Check for GNU $ac_path_EGREP
4426case `"$ac_path_EGREP" --version 2>&1` in
4427*GNU*)
4428  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4429*)
4430  ac_count=0
4431  $as_echo_n 0123456789 >"conftest.in"
4432  while :
4433  do
4434    cat "conftest.in" "conftest.in" >"conftest.tmp"
4435    mv "conftest.tmp" "conftest.in"
4436    cp "conftest.in" "conftest.nl"
4437    $as_echo 'EGREP' >> "conftest.nl"
4438    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4439    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4440    as_fn_arith $ac_count + 1 && ac_count=$as_val
4441    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4442      # Best one so far, save it but keep looking for a better one
4443      ac_cv_path_EGREP="$ac_path_EGREP"
4444      ac_path_EGREP_max=$ac_count
4445    fi
4446    # 10*(2^10) chars as input seems more than enough
4447    test $ac_count -gt 10 && break
4448  done
4449  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4450esac
4451
4452      $ac_path_EGREP_found && break 3
4453    done
4454  done
4455  done
4456IFS=$as_save_IFS
4457  if test -z "$ac_cv_path_EGREP"; then
4458    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4459  fi
4460else
4461  ac_cv_path_EGREP=$EGREP
4462fi
4463
4464   fi
4465fi
4466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4467$as_echo "$ac_cv_path_EGREP" >&6; }
4468 EGREP="$ac_cv_path_EGREP"
4469
4470
4471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4472$as_echo_n "checking for ANSI C header files... " >&6; }
4473if test "${ac_cv_header_stdc+set}" = set; then :
4474  $as_echo_n "(cached) " >&6
4475else
4476  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4477/* end confdefs.h.  */
4478#include <stdlib.h>
4479#include <stdarg.h>
4480#include <string.h>
4481#include <float.h>
4482
4483int
4484main ()
4485{
4486
4487  ;
4488  return 0;
4489}
4490_ACEOF
4491if ac_fn_c_try_compile "$LINENO"; then :
4492  ac_cv_header_stdc=yes
4493else
4494  ac_cv_header_stdc=no
4495fi
4496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4497
4498if test $ac_cv_header_stdc = yes; then
4499  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4500  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4501/* end confdefs.h.  */
4502#include <string.h>
4503
4504_ACEOF
4505if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4506  $EGREP "memchr" >/dev/null 2>&1; then :
4507
4508else
4509  ac_cv_header_stdc=no
4510fi
4511rm -f conftest*
4512
4513fi
4514
4515if test $ac_cv_header_stdc = yes; then
4516  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4517  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518/* end confdefs.h.  */
4519#include <stdlib.h>
4520
4521_ACEOF
4522if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4523  $EGREP "free" >/dev/null 2>&1; then :
4524
4525else
4526  ac_cv_header_stdc=no
4527fi
4528rm -f conftest*
4529
4530fi
4531
4532if test $ac_cv_header_stdc = yes; then
4533  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4534  if test "$cross_compiling" = yes; then :
4535  :
4536else
4537  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4538/* end confdefs.h.  */
4539#include <ctype.h>
4540#include <stdlib.h>
4541#if ((' ' & 0x0FF) == 0x020)
4542# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4543# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4544#else
4545# define ISLOWER(c) \
4546		   (('a' <= (c) && (c) <= 'i') \
4547		     || ('j' <= (c) && (c) <= 'r') \
4548		     || ('s' <= (c) && (c) <= 'z'))
4549# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4550#endif
4551
4552#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4553int
4554main ()
4555{
4556  int i;
4557  for (i = 0; i < 256; i++)
4558    if (XOR (islower (i), ISLOWER (i))
4559	|| toupper (i) != TOUPPER (i))
4560      return 2;
4561  return 0;
4562}
4563_ACEOF
4564if ac_fn_c_try_run "$LINENO"; then :
4565
4566else
4567  ac_cv_header_stdc=no
4568fi
4569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4570  conftest.$ac_objext conftest.beam conftest.$ac_ext
4571fi
4572
4573fi
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4576$as_echo "$ac_cv_header_stdc" >&6; }
4577if test $ac_cv_header_stdc = yes; then
4578
4579$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4580
4581fi
4582
4583if test "x$CC" != xcc; then
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4585$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4586else
4587  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4588$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4589fi
4590set dummy $CC; ac_cc=`$as_echo "$2" |
4591		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4592if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
4593  $as_echo_n "(cached) " >&6
4594else
4595  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596/* end confdefs.h.  */
4597
4598int
4599main ()
4600{
4601
4602  ;
4603  return 0;
4604}
4605_ACEOF
4606# Make sure it works both with $CC and with simple cc.
4607# We do the test twice because some compilers refuse to overwrite an
4608# existing .o file with -o, though they will create one.
4609ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4610rm -f conftest2.*
4611if { { case "(($ac_try" in
4612  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613  *) ac_try_echo=$ac_try;;
4614esac
4615eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4616$as_echo "$ac_try_echo"; } >&5
4617  (eval "$ac_try") 2>&5
4618  ac_status=$?
4619  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4620  test $ac_status = 0; } &&
4621   test -f conftest2.$ac_objext && { { case "(($ac_try" in
4622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4623  *) ac_try_echo=$ac_try;;
4624esac
4625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626$as_echo "$ac_try_echo"; } >&5
4627  (eval "$ac_try") 2>&5
4628  ac_status=$?
4629  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630  test $ac_status = 0; };
4631then
4632  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4633  if test "x$CC" != xcc; then
4634    # Test first that cc exists at all.
4635    if { ac_try='cc -c conftest.$ac_ext >&5'
4636  { { case "(($ac_try" in
4637  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638  *) ac_try_echo=$ac_try;;
4639esac
4640eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4641$as_echo "$ac_try_echo"; } >&5
4642  (eval "$ac_try") 2>&5
4643  ac_status=$?
4644  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4645  test $ac_status = 0; }; }; then
4646      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4647      rm -f conftest2.*
4648      if { { case "(($ac_try" in
4649  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650  *) ac_try_echo=$ac_try;;
4651esac
4652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4653$as_echo "$ac_try_echo"; } >&5
4654  (eval "$ac_try") 2>&5
4655  ac_status=$?
4656  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4657  test $ac_status = 0; } &&
4658	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4659  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4660  *) ac_try_echo=$ac_try;;
4661esac
4662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4663$as_echo "$ac_try_echo"; } >&5
4664  (eval "$ac_try") 2>&5
4665  ac_status=$?
4666  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4667  test $ac_status = 0; };
4668      then
4669	# cc works too.
4670	:
4671      else
4672	# cc exists but doesn't like -o.
4673	eval ac_cv_prog_cc_${ac_cc}_c_o=no
4674      fi
4675    fi
4676  fi
4677else
4678  eval ac_cv_prog_cc_${ac_cc}_c_o=no
4679fi
4680rm -f core conftest*
4681
4682fi
4683if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4685$as_echo "yes" >&6; }
4686else
4687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4688$as_echo "no" >&6; }
4689
4690$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4691
4692fi
4693
4694# FIXME: we rely on the cache variable name because
4695# there is no other way.
4696set dummy $CC
4697am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4698eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4699if test "$am_t" != yes; then
4700   # Losing compiler, so override with the script.
4701   # FIXME: It is wrong to rewrite CC.
4702   # But if we don't then we get into trouble of one sort or another.
4703   # A longer-term fix would be to have automake use am__CC in this case,
4704   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4705   CC="$am_aux_dir/compile $CC"
4706fi
4707
4708
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4710$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4711if test "${ac_cv_path_SED+set}" = set; then :
4712  $as_echo_n "(cached) " >&6
4713else
4714            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4715     for ac_i in 1 2 3 4 5 6 7; do
4716       ac_script="$ac_script$as_nl$ac_script"
4717     done
4718     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4719     { ac_script=; unset ac_script;}
4720     if test -z "$SED"; then
4721  ac_path_SED_found=false
4722  # Loop through the user's path and test for each of PROGNAME-LIST
4723  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726  IFS=$as_save_IFS
4727  test -z "$as_dir" && as_dir=.
4728    for ac_prog in sed gsed; do
4729    for ac_exec_ext in '' $ac_executable_extensions; do
4730      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4731      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4732# Check for GNU ac_path_SED and select it if it is found.
4733  # Check for GNU $ac_path_SED
4734case `"$ac_path_SED" --version 2>&1` in
4735*GNU*)
4736  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4737*)
4738  ac_count=0
4739  $as_echo_n 0123456789 >"conftest.in"
4740  while :
4741  do
4742    cat "conftest.in" "conftest.in" >"conftest.tmp"
4743    mv "conftest.tmp" "conftest.in"
4744    cp "conftest.in" "conftest.nl"
4745    $as_echo '' >> "conftest.nl"
4746    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4747    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4748    as_fn_arith $ac_count + 1 && ac_count=$as_val
4749    if test $ac_count -gt ${ac_path_SED_max-0}; then
4750      # Best one so far, save it but keep looking for a better one
4751      ac_cv_path_SED="$ac_path_SED"
4752      ac_path_SED_max=$ac_count
4753    fi
4754    # 10*(2^10) chars as input seems more than enough
4755    test $ac_count -gt 10 && break
4756  done
4757  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4758esac
4759
4760      $ac_path_SED_found && break 3
4761    done
4762  done
4763  done
4764IFS=$as_save_IFS
4765  if test -z "$ac_cv_path_SED"; then
4766    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4767  fi
4768else
4769  ac_cv_path_SED=$SED
4770fi
4771
4772fi
4773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4774$as_echo "$ac_cv_path_SED" >&6; }
4775 SED="$ac_cv_path_SED"
4776  rm -f conftest.sed
4777
4778
4779# Initialize libtool
4780
4781case `pwd` in
4782  *\ * | *\	*)
4783    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4784$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4785esac
4786
4787
4788
4789macro_version='2.2.6b'
4790macro_revision='1.3017'
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804ltmain="$ac_aux_dir/ltmain.sh"
4805
4806# Make sure we can run config.sub.
4807$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4808  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4809
4810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4811$as_echo_n "checking build system type... " >&6; }
4812if test "${ac_cv_build+set}" = set; then :
4813  $as_echo_n "(cached) " >&6
4814else
4815  ac_build_alias=$build_alias
4816test "x$ac_build_alias" = x &&
4817  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4818test "x$ac_build_alias" = x &&
4819  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
4820ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4821  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4822
4823fi
4824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4825$as_echo "$ac_cv_build" >&6; }
4826case $ac_cv_build in
4827*-*-*) ;;
4828*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
4829esac
4830build=$ac_cv_build
4831ac_save_IFS=$IFS; IFS='-'
4832set x $ac_cv_build
4833shift
4834build_cpu=$1
4835build_vendor=$2
4836shift; shift
4837# Remember, the first character of IFS is used to create $*,
4838# except with old shells:
4839build_os=$*
4840IFS=$ac_save_IFS
4841case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4842
4843
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4845$as_echo_n "checking host system type... " >&6; }
4846if test "${ac_cv_host+set}" = set; then :
4847  $as_echo_n "(cached) " >&6
4848else
4849  if test "x$host_alias" = x; then
4850  ac_cv_host=$ac_cv_build
4851else
4852  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4853    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4854fi
4855
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4858$as_echo "$ac_cv_host" >&6; }
4859case $ac_cv_host in
4860*-*-*) ;;
4861*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
4862esac
4863host=$ac_cv_host
4864ac_save_IFS=$IFS; IFS='-'
4865set x $ac_cv_host
4866shift
4867host_cpu=$1
4868host_vendor=$2
4869shift; shift
4870# Remember, the first character of IFS is used to create $*,
4871# except with old shells:
4872host_os=$*
4873IFS=$ac_save_IFS
4874case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4875
4876
4877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4878$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4879if test "${ac_cv_path_SED+set}" = set; then :
4880  $as_echo_n "(cached) " >&6
4881else
4882            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4883     for ac_i in 1 2 3 4 5 6 7; do
4884       ac_script="$ac_script$as_nl$ac_script"
4885     done
4886     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4887     { ac_script=; unset ac_script;}
4888     if test -z "$SED"; then
4889  ac_path_SED_found=false
4890  # Loop through the user's path and test for each of PROGNAME-LIST
4891  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4892for as_dir in $PATH
4893do
4894  IFS=$as_save_IFS
4895  test -z "$as_dir" && as_dir=.
4896    for ac_prog in sed gsed; do
4897    for ac_exec_ext in '' $ac_executable_extensions; do
4898      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4899      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4900# Check for GNU ac_path_SED and select it if it is found.
4901  # Check for GNU $ac_path_SED
4902case `"$ac_path_SED" --version 2>&1` in
4903*GNU*)
4904  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4905*)
4906  ac_count=0
4907  $as_echo_n 0123456789 >"conftest.in"
4908  while :
4909  do
4910    cat "conftest.in" "conftest.in" >"conftest.tmp"
4911    mv "conftest.tmp" "conftest.in"
4912    cp "conftest.in" "conftest.nl"
4913    $as_echo '' >> "conftest.nl"
4914    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4915    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4916    as_fn_arith $ac_count + 1 && ac_count=$as_val
4917    if test $ac_count -gt ${ac_path_SED_max-0}; then
4918      # Best one so far, save it but keep looking for a better one
4919      ac_cv_path_SED="$ac_path_SED"
4920      ac_path_SED_max=$ac_count
4921    fi
4922    # 10*(2^10) chars as input seems more than enough
4923    test $ac_count -gt 10 && break
4924  done
4925  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4926esac
4927
4928      $ac_path_SED_found && break 3
4929    done
4930  done
4931  done
4932IFS=$as_save_IFS
4933  if test -z "$ac_cv_path_SED"; then
4934    as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4935  fi
4936else
4937  ac_cv_path_SED=$SED
4938fi
4939
4940fi
4941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4942$as_echo "$ac_cv_path_SED" >&6; }
4943 SED="$ac_cv_path_SED"
4944  rm -f conftest.sed
4945
4946test -z "$SED" && SED=sed
4947Xsed="$SED -e 1s/^X//"
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4960$as_echo_n "checking for fgrep... " >&6; }
4961if test "${ac_cv_path_FGREP+set}" = set; then :
4962  $as_echo_n "(cached) " >&6
4963else
4964  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4965   then ac_cv_path_FGREP="$GREP -F"
4966   else
4967     if test -z "$FGREP"; then
4968  ac_path_FGREP_found=false
4969  # Loop through the user's path and test for each of PROGNAME-LIST
4970  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4971for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4972do
4973  IFS=$as_save_IFS
4974  test -z "$as_dir" && as_dir=.
4975    for ac_prog in fgrep; do
4976    for ac_exec_ext in '' $ac_executable_extensions; do
4977      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4978      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4979# Check for GNU ac_path_FGREP and select it if it is found.
4980  # Check for GNU $ac_path_FGREP
4981case `"$ac_path_FGREP" --version 2>&1` in
4982*GNU*)
4983  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4984*)
4985  ac_count=0
4986  $as_echo_n 0123456789 >"conftest.in"
4987  while :
4988  do
4989    cat "conftest.in" "conftest.in" >"conftest.tmp"
4990    mv "conftest.tmp" "conftest.in"
4991    cp "conftest.in" "conftest.nl"
4992    $as_echo 'FGREP' >> "conftest.nl"
4993    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4994    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4995    as_fn_arith $ac_count + 1 && ac_count=$as_val
4996    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4997      # Best one so far, save it but keep looking for a better one
4998      ac_cv_path_FGREP="$ac_path_FGREP"
4999      ac_path_FGREP_max=$ac_count
5000    fi
5001    # 10*(2^10) chars as input seems more than enough
5002    test $ac_count -gt 10 && break
5003  done
5004  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5005esac
5006
5007      $ac_path_FGREP_found && break 3
5008    done
5009  done
5010  done
5011IFS=$as_save_IFS
5012  if test -z "$ac_cv_path_FGREP"; then
5013    as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5014  fi
5015else
5016  ac_cv_path_FGREP=$FGREP
5017fi
5018
5019   fi
5020fi
5021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5022$as_echo "$ac_cv_path_FGREP" >&6; }
5023 FGREP="$ac_cv_path_FGREP"
5024
5025
5026test -z "$GREP" && GREP=grep
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046# Check whether --with-gnu-ld was given.
5047if test "${with_gnu_ld+set}" = set; then :
5048  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5049else
5050  with_gnu_ld=no
5051fi
5052
5053ac_prog=ld
5054if test "$GCC" = yes; then
5055  # Check if gcc -print-prog-name=ld gives a path.
5056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5057$as_echo_n "checking for ld used by $CC... " >&6; }
5058  case $host in
5059  *-*-mingw*)
5060    # gcc leaves a trailing carriage return which upsets mingw
5061    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5062  *)
5063    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5064  esac
5065  case $ac_prog in
5066    # Accept absolute paths.
5067    [\\/]* | ?:[\\/]*)
5068      re_direlt='/[^/][^/]*/\.\./'
5069      # Canonicalize the pathname of ld
5070      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5071      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5072	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5073      done
5074      test -z "$LD" && LD="$ac_prog"
5075      ;;
5076  "")
5077    # If it fails, then pretend we aren't using GCC.
5078    ac_prog=ld
5079    ;;
5080  *)
5081    # If it is relative, then search for the first ld in PATH.
5082    with_gnu_ld=unknown
5083    ;;
5084  esac
5085elif test "$with_gnu_ld" = yes; then
5086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5087$as_echo_n "checking for GNU ld... " >&6; }
5088else
5089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5090$as_echo_n "checking for non-GNU ld... " >&6; }
5091fi
5092if test "${lt_cv_path_LD+set}" = set; then :
5093  $as_echo_n "(cached) " >&6
5094else
5095  if test -z "$LD"; then
5096  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5097  for ac_dir in $PATH; do
5098    IFS="$lt_save_ifs"
5099    test -z "$ac_dir" && ac_dir=.
5100    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5101      lt_cv_path_LD="$ac_dir/$ac_prog"
5102      # Check to see if the program is GNU ld.  I'd rather use --version,
5103      # but apparently some variants of GNU ld only accept -v.
5104      # Break only if it was the GNU/non-GNU ld that we prefer.
5105      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5106      *GNU* | *'with BFD'*)
5107	test "$with_gnu_ld" != no && break
5108	;;
5109      *)
5110	test "$with_gnu_ld" != yes && break
5111	;;
5112      esac
5113    fi
5114  done
5115  IFS="$lt_save_ifs"
5116else
5117  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5118fi
5119fi
5120
5121LD="$lt_cv_path_LD"
5122if test -n "$LD"; then
5123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5124$as_echo "$LD" >&6; }
5125else
5126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5127$as_echo "no" >&6; }
5128fi
5129test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5131$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5132if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5133  $as_echo_n "(cached) " >&6
5134else
5135  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5136case `$LD -v 2>&1 </dev/null` in
5137*GNU* | *'with BFD'*)
5138  lt_cv_prog_gnu_ld=yes
5139  ;;
5140*)
5141  lt_cv_prog_gnu_ld=no
5142  ;;
5143esac
5144fi
5145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5146$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5147with_gnu_ld=$lt_cv_prog_gnu_ld
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5158$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5159if test "${lt_cv_path_NM+set}" = set; then :
5160  $as_echo_n "(cached) " >&6
5161else
5162  if test -n "$NM"; then
5163  # Let the user override the test.
5164  lt_cv_path_NM="$NM"
5165else
5166  lt_nm_to_check="${ac_tool_prefix}nm"
5167  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5168    lt_nm_to_check="$lt_nm_to_check nm"
5169  fi
5170  for lt_tmp_nm in $lt_nm_to_check; do
5171    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5172    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5173      IFS="$lt_save_ifs"
5174      test -z "$ac_dir" && ac_dir=.
5175      tmp_nm="$ac_dir/$lt_tmp_nm"
5176      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5177	# Check to see if the nm accepts a BSD-compat flag.
5178	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5179	#   nm: unknown option "B" ignored
5180	# Tru64's nm complains that /dev/null is an invalid object file
5181	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5182	*/dev/null* | *'Invalid file or object type'*)
5183	  lt_cv_path_NM="$tmp_nm -B"
5184	  break
5185	  ;;
5186	*)
5187	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5188	  */dev/null*)
5189	    lt_cv_path_NM="$tmp_nm -p"
5190	    break
5191	    ;;
5192	  *)
5193	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5194	    continue # so that we can try to find one that supports BSD flags
5195	    ;;
5196	  esac
5197	  ;;
5198	esac
5199      fi
5200    done
5201    IFS="$lt_save_ifs"
5202  done
5203  : ${lt_cv_path_NM=no}
5204fi
5205fi
5206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5207$as_echo "$lt_cv_path_NM" >&6; }
5208if test "$lt_cv_path_NM" != "no"; then
5209  NM="$lt_cv_path_NM"
5210else
5211  # Didn't find any BSD compatible name lister, look for dumpbin.
5212  if test -n "$ac_tool_prefix"; then
5213  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5214  do
5215    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5216set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218$as_echo_n "checking for $ac_word... " >&6; }
5219if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5220  $as_echo_n "(cached) " >&6
5221else
5222  if test -n "$DUMPBIN"; then
5223  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5224else
5225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226for as_dir in $PATH
5227do
5228  IFS=$as_save_IFS
5229  test -z "$as_dir" && as_dir=.
5230    for ac_exec_ext in '' $ac_executable_extensions; do
5231  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5232    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5233    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234    break 2
5235  fi
5236done
5237  done
5238IFS=$as_save_IFS
5239
5240fi
5241fi
5242DUMPBIN=$ac_cv_prog_DUMPBIN
5243if test -n "$DUMPBIN"; then
5244  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5245$as_echo "$DUMPBIN" >&6; }
5246else
5247  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248$as_echo "no" >&6; }
5249fi
5250
5251
5252    test -n "$DUMPBIN" && break
5253  done
5254fi
5255if test -z "$DUMPBIN"; then
5256  ac_ct_DUMPBIN=$DUMPBIN
5257  for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5258do
5259  # Extract the first word of "$ac_prog", so it can be a program name with args.
5260set dummy $ac_prog; ac_word=$2
5261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5262$as_echo_n "checking for $ac_word... " >&6; }
5263if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5264  $as_echo_n "(cached) " >&6
5265else
5266  if test -n "$ac_ct_DUMPBIN"; then
5267  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5268else
5269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270for as_dir in $PATH
5271do
5272  IFS=$as_save_IFS
5273  test -z "$as_dir" && as_dir=.
5274    for ac_exec_ext in '' $ac_executable_extensions; do
5275  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5276    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5277    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278    break 2
5279  fi
5280done
5281  done
5282IFS=$as_save_IFS
5283
5284fi
5285fi
5286ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5287if test -n "$ac_ct_DUMPBIN"; then
5288  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5289$as_echo "$ac_ct_DUMPBIN" >&6; }
5290else
5291  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5292$as_echo "no" >&6; }
5293fi
5294
5295
5296  test -n "$ac_ct_DUMPBIN" && break
5297done
5298
5299  if test "x$ac_ct_DUMPBIN" = x; then
5300    DUMPBIN=":"
5301  else
5302    case $cross_compiling:$ac_tool_warned in
5303yes:)
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5305$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5306ac_tool_warned=yes ;;
5307esac
5308    DUMPBIN=$ac_ct_DUMPBIN
5309  fi
5310fi
5311
5312
5313  if test "$DUMPBIN" != ":"; then
5314    NM="$DUMPBIN"
5315  fi
5316fi
5317test -z "$NM" && NM=nm
5318
5319
5320
5321
5322
5323
5324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5325$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5326if test "${lt_cv_nm_interface+set}" = set; then :
5327  $as_echo_n "(cached) " >&6
5328else
5329  lt_cv_nm_interface="BSD nm"
5330  echo "int some_variable = 0;" > conftest.$ac_ext
5331  (eval echo "\"\$as_me:5331: $ac_compile\"" >&5)
5332  (eval "$ac_compile" 2>conftest.err)
5333  cat conftest.err >&5
5334  (eval echo "\"\$as_me:5334: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5335  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5336  cat conftest.err >&5
5337  (eval echo "\"\$as_me:5337: output\"" >&5)
5338  cat conftest.out >&5
5339  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5340    lt_cv_nm_interface="MS dumpbin"
5341  fi
5342  rm -f conftest*
5343fi
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5345$as_echo "$lt_cv_nm_interface" >&6; }
5346
5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5348$as_echo_n "checking whether ln -s works... " >&6; }
5349LN_S=$as_ln_s
5350if test "$LN_S" = "ln -s"; then
5351  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5352$as_echo "yes" >&6; }
5353else
5354  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5355$as_echo "no, using $LN_S" >&6; }
5356fi
5357
5358# find the maximum length of command line arguments
5359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5360$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5361if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5362  $as_echo_n "(cached) " >&6
5363else
5364    i=0
5365  teststring="ABCD"
5366
5367  case $build_os in
5368  msdosdjgpp*)
5369    # On DJGPP, this test can blow up pretty badly due to problems in libc
5370    # (any single argument exceeding 2000 bytes causes a buffer overrun
5371    # during glob expansion).  Even if it were fixed, the result of this
5372    # check would be larger than it should be.
5373    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5374    ;;
5375
5376  gnu*)
5377    # Under GNU Hurd, this test is not required because there is
5378    # no limit to the length of command line arguments.
5379    # Libtool will interpret -1 as no limit whatsoever
5380    lt_cv_sys_max_cmd_len=-1;
5381    ;;
5382
5383  cygwin* | mingw* | cegcc*)
5384    # On Win9x/ME, this test blows up -- it succeeds, but takes
5385    # about 5 minutes as the teststring grows exponentially.
5386    # Worse, since 9x/ME are not pre-emptively multitasking,
5387    # you end up with a "frozen" computer, even though with patience
5388    # the test eventually succeeds (with a max line length of 256k).
5389    # Instead, let's just punt: use the minimum linelength reported by
5390    # all of the supported platforms: 8192 (on NT/2K/XP).
5391    lt_cv_sys_max_cmd_len=8192;
5392    ;;
5393
5394  amigaos*)
5395    # On AmigaOS with pdksh, this test takes hours, literally.
5396    # So we just punt and use a minimum line length of 8192.
5397    lt_cv_sys_max_cmd_len=8192;
5398    ;;
5399
5400  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5401    # This has been around since 386BSD, at least.  Likely further.
5402    if test -x /sbin/sysctl; then
5403      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5404    elif test -x /usr/sbin/sysctl; then
5405      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5406    else
5407      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5408    fi
5409    # And add a safety zone
5410    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5411    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5412    ;;
5413
5414  interix*)
5415    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5416    lt_cv_sys_max_cmd_len=196608
5417    ;;
5418
5419  osf*)
5420    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5421    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5422    # nice to cause kernel panics so lets avoid the loop below.
5423    # First set a reasonable default.
5424    lt_cv_sys_max_cmd_len=16384
5425    #
5426    if test -x /sbin/sysconfig; then
5427      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5428        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5429      esac
5430    fi
5431    ;;
5432  sco3.2v5*)
5433    lt_cv_sys_max_cmd_len=102400
5434    ;;
5435  sysv5* | sco5v6* | sysv4.2uw2*)
5436    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5437    if test -n "$kargmax"; then
5438      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
5439    else
5440      lt_cv_sys_max_cmd_len=32768
5441    fi
5442    ;;
5443  *)
5444    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5445    if test -n "$lt_cv_sys_max_cmd_len"; then
5446      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5447      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5448    else
5449      # Make teststring a little bigger before we do anything with it.
5450      # a 1K string should be a reasonable start.
5451      for i in 1 2 3 4 5 6 7 8 ; do
5452        teststring=$teststring$teststring
5453      done
5454      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5455      # If test is not a shell built-in, we'll probably end up computing a
5456      # maximum length that is only half of the actual maximum length, but
5457      # we can't tell.
5458      while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5459	         = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5460	      test $i != 17 # 1/2 MB should be enough
5461      do
5462        i=`expr $i + 1`
5463        teststring=$teststring$teststring
5464      done
5465      # Only check the string length outside the loop.
5466      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5467      teststring=
5468      # Add a significant safety factor because C++ compilers can tack on
5469      # massive amounts of additional arguments before passing them to the
5470      # linker.  It appears as though 1/2 is a usable value.
5471      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5472    fi
5473    ;;
5474  esac
5475
5476fi
5477
5478if test -n $lt_cv_sys_max_cmd_len ; then
5479  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5480$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5481else
5482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5483$as_echo "none" >&6; }
5484fi
5485max_cmd_len=$lt_cv_sys_max_cmd_len
5486
5487
5488
5489
5490
5491
5492: ${CP="cp -f"}
5493: ${MV="mv -f"}
5494: ${RM="rm -f"}
5495
5496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5497$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5498# Try some XSI features
5499xsi_shell=no
5500( _lt_dummy="a/b/c"
5501  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5502      = c,a/b,, \
5503    && eval 'test $(( 1 + 1 )) -eq 2 \
5504    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5505  && xsi_shell=yes
5506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5507$as_echo "$xsi_shell" >&6; }
5508
5509
5510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5511$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5512lt_shell_append=no
5513( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5514    >/dev/null 2>&1 \
5515  && lt_shell_append=yes
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5517$as_echo "$lt_shell_append" >&6; }
5518
5519
5520if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5521  lt_unset=unset
5522else
5523  lt_unset=false
5524fi
5525
5526
5527
5528
5529
5530# test EBCDIC or ASCII
5531case `echo X|tr X '\101'` in
5532 A) # ASCII based system
5533    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5534  lt_SP2NL='tr \040 \012'
5535  lt_NL2SP='tr \015\012 \040\040'
5536  ;;
5537 *) # EBCDIC based system
5538  lt_SP2NL='tr \100 \n'
5539  lt_NL2SP='tr \r\n \100\100'
5540  ;;
5541esac
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5552$as_echo_n "checking for $LD option to reload object files... " >&6; }
5553if test "${lt_cv_ld_reload_flag+set}" = set; then :
5554  $as_echo_n "(cached) " >&6
5555else
5556  lt_cv_ld_reload_flag='-r'
5557fi
5558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5559$as_echo "$lt_cv_ld_reload_flag" >&6; }
5560reload_flag=$lt_cv_ld_reload_flag
5561case $reload_flag in
5562"" | " "*) ;;
5563*) reload_flag=" $reload_flag" ;;
5564esac
5565reload_cmds='$LD$reload_flag -o $output$reload_objs'
5566case $host_os in
5567  darwin*)
5568    if test "$GCC" = yes; then
5569      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5570    else
5571      reload_cmds='$LD$reload_flag -o $output$reload_objs'
5572    fi
5573    ;;
5574esac
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584if test -n "$ac_tool_prefix"; then
5585  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5586set dummy ${ac_tool_prefix}objdump; ac_word=$2
5587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5588$as_echo_n "checking for $ac_word... " >&6; }
5589if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5590  $as_echo_n "(cached) " >&6
5591else
5592  if test -n "$OBJDUMP"; then
5593  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5594else
5595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596for as_dir in $PATH
5597do
5598  IFS=$as_save_IFS
5599  test -z "$as_dir" && as_dir=.
5600    for ac_exec_ext in '' $ac_executable_extensions; do
5601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5602    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604    break 2
5605  fi
5606done
5607  done
5608IFS=$as_save_IFS
5609
5610fi
5611fi
5612OBJDUMP=$ac_cv_prog_OBJDUMP
5613if test -n "$OBJDUMP"; then
5614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5615$as_echo "$OBJDUMP" >&6; }
5616else
5617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618$as_echo "no" >&6; }
5619fi
5620
5621
5622fi
5623if test -z "$ac_cv_prog_OBJDUMP"; then
5624  ac_ct_OBJDUMP=$OBJDUMP
5625  # Extract the first word of "objdump", so it can be a program name with args.
5626set dummy objdump; ac_word=$2
5627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5628$as_echo_n "checking for $ac_word... " >&6; }
5629if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5630  $as_echo_n "(cached) " >&6
5631else
5632  if test -n "$ac_ct_OBJDUMP"; then
5633  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5634else
5635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636for as_dir in $PATH
5637do
5638  IFS=$as_save_IFS
5639  test -z "$as_dir" && as_dir=.
5640    for ac_exec_ext in '' $ac_executable_extensions; do
5641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5642    ac_cv_prog_ac_ct_OBJDUMP="objdump"
5643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644    break 2
5645  fi
5646done
5647  done
5648IFS=$as_save_IFS
5649
5650fi
5651fi
5652ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5653if test -n "$ac_ct_OBJDUMP"; then
5654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5655$as_echo "$ac_ct_OBJDUMP" >&6; }
5656else
5657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5658$as_echo "no" >&6; }
5659fi
5660
5661  if test "x$ac_ct_OBJDUMP" = x; then
5662    OBJDUMP="false"
5663  else
5664    case $cross_compiling:$ac_tool_warned in
5665yes:)
5666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5668ac_tool_warned=yes ;;
5669esac
5670    OBJDUMP=$ac_ct_OBJDUMP
5671  fi
5672else
5673  OBJDUMP="$ac_cv_prog_OBJDUMP"
5674fi
5675
5676test -z "$OBJDUMP" && OBJDUMP=objdump
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5687$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5688if test "${lt_cv_deplibs_check_method+set}" = set; then :
5689  $as_echo_n "(cached) " >&6
5690else
5691  lt_cv_file_magic_cmd='$MAGIC_CMD'
5692lt_cv_file_magic_test_file=
5693lt_cv_deplibs_check_method='unknown'
5694# Need to set the preceding variable on all platforms that support
5695# interlibrary dependencies.
5696# 'none' -- dependencies not supported.
5697# `unknown' -- same as none, but documents that we really don't know.
5698# 'pass_all' -- all dependencies passed with no checks.
5699# 'test_compile' -- check by making test program.
5700# 'file_magic [[regex]]' -- check by looking for files in library path
5701# which responds to the $file_magic_cmd with a given extended regex.
5702# If you have `file' or equivalent on your system and you're not sure
5703# whether `pass_all' will *always* work, you probably want this one.
5704
5705case $host_os in
5706aix[4-9]*)
5707  lt_cv_deplibs_check_method=pass_all
5708  ;;
5709
5710beos*)
5711  lt_cv_deplibs_check_method=pass_all
5712  ;;
5713
5714bsdi[45]*)
5715  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5716  lt_cv_file_magic_cmd='/usr/bin/file -L'
5717  lt_cv_file_magic_test_file=/shlib/libc.so
5718  ;;
5719
5720cygwin*)
5721  # func_win32_libid is a shell function defined in ltmain.sh
5722  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5723  lt_cv_file_magic_cmd='func_win32_libid'
5724  ;;
5725
5726mingw* | pw32*)
5727  # Base MSYS/MinGW do not provide the 'file' command needed by
5728  # func_win32_libid shell function, so use a weaker test based on 'objdump',
5729  # unless we find 'file', for example because we are cross-compiling.
5730  if ( file / ) >/dev/null 2>&1; then
5731    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5732    lt_cv_file_magic_cmd='func_win32_libid'
5733  else
5734    lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5735    lt_cv_file_magic_cmd='$OBJDUMP -f'
5736  fi
5737  ;;
5738
5739cegcc)
5740  # use the weaker test based on 'objdump'. See mingw*.
5741  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5742  lt_cv_file_magic_cmd='$OBJDUMP -f'
5743  ;;
5744
5745darwin* | rhapsody*)
5746  lt_cv_deplibs_check_method=pass_all
5747  ;;
5748
5749freebsd* | dragonfly*)
5750  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5751    case $host_cpu in
5752    i*86 )
5753      # Not sure whether the presence of OpenBSD here was a mistake.
5754      # Let's accept both of them until this is cleared up.
5755      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5756      lt_cv_file_magic_cmd=/usr/bin/file
5757      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5758      ;;
5759    esac
5760  else
5761    lt_cv_deplibs_check_method=pass_all
5762  fi
5763  ;;
5764
5765gnu*)
5766  lt_cv_deplibs_check_method=pass_all
5767  ;;
5768
5769hpux10.20* | hpux11*)
5770  lt_cv_file_magic_cmd=/usr/bin/file
5771  case $host_cpu in
5772  ia64*)
5773    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5774    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5775    ;;
5776  hppa*64*)
5777    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]'
5778    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5779    ;;
5780  *)
5781    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5782    lt_cv_file_magic_test_file=/usr/lib/libc.sl
5783    ;;
5784  esac
5785  ;;
5786
5787interix[3-9]*)
5788  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5789  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5790  ;;
5791
5792irix5* | irix6* | nonstopux*)
5793  case $LD in
5794  *-32|*"-32 ") libmagic=32-bit;;
5795  *-n32|*"-n32 ") libmagic=N32;;
5796  *-64|*"-64 ") libmagic=64-bit;;
5797  *) libmagic=never-match;;
5798  esac
5799  lt_cv_deplibs_check_method=pass_all
5800  ;;
5801
5802# This must be Linux ELF.
5803linux* | k*bsd*-gnu)
5804  lt_cv_deplibs_check_method=pass_all
5805  ;;
5806
5807netbsd*)
5808  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5809    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5810  else
5811    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5812  fi
5813  ;;
5814
5815newos6*)
5816  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5817  lt_cv_file_magic_cmd=/usr/bin/file
5818  lt_cv_file_magic_test_file=/usr/lib/libnls.so
5819  ;;
5820
5821*nto* | *qnx*)
5822  lt_cv_deplibs_check_method=pass_all
5823  ;;
5824
5825openbsd*)
5826  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5827    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5828  else
5829    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5830  fi
5831  ;;
5832
5833osf3* | osf4* | osf5*)
5834  lt_cv_deplibs_check_method=pass_all
5835  ;;
5836
5837rdos*)
5838  lt_cv_deplibs_check_method=pass_all
5839  ;;
5840
5841solaris*)
5842  lt_cv_deplibs_check_method=pass_all
5843  ;;
5844
5845sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5846  lt_cv_deplibs_check_method=pass_all
5847  ;;
5848
5849sysv4 | sysv4.3*)
5850  case $host_vendor in
5851  motorola)
5852    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]'
5853    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5854    ;;
5855  ncr)
5856    lt_cv_deplibs_check_method=pass_all
5857    ;;
5858  sequent)
5859    lt_cv_file_magic_cmd='/bin/file'
5860    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5861    ;;
5862  sni)
5863    lt_cv_file_magic_cmd='/bin/file'
5864    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5865    lt_cv_file_magic_test_file=/lib/libc.so
5866    ;;
5867  siemens)
5868    lt_cv_deplibs_check_method=pass_all
5869    ;;
5870  pc)
5871    lt_cv_deplibs_check_method=pass_all
5872    ;;
5873  esac
5874  ;;
5875
5876tpf*)
5877  lt_cv_deplibs_check_method=pass_all
5878  ;;
5879esac
5880
5881fi
5882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5883$as_echo "$lt_cv_deplibs_check_method" >&6; }
5884file_magic_cmd=$lt_cv_file_magic_cmd
5885deplibs_check_method=$lt_cv_deplibs_check_method
5886test -z "$deplibs_check_method" && deplibs_check_method=unknown
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899if test -n "$ac_tool_prefix"; then
5900  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5901set dummy ${ac_tool_prefix}ar; ac_word=$2
5902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903$as_echo_n "checking for $ac_word... " >&6; }
5904if test "${ac_cv_prog_AR+set}" = set; then :
5905  $as_echo_n "(cached) " >&6
5906else
5907  if test -n "$AR"; then
5908  ac_cv_prog_AR="$AR" # Let the user override the test.
5909else
5910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911for as_dir in $PATH
5912do
5913  IFS=$as_save_IFS
5914  test -z "$as_dir" && as_dir=.
5915    for ac_exec_ext in '' $ac_executable_extensions; do
5916  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917    ac_cv_prog_AR="${ac_tool_prefix}ar"
5918    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919    break 2
5920  fi
5921done
5922  done
5923IFS=$as_save_IFS
5924
5925fi
5926fi
5927AR=$ac_cv_prog_AR
5928if test -n "$AR"; then
5929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5930$as_echo "$AR" >&6; }
5931else
5932  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933$as_echo "no" >&6; }
5934fi
5935
5936
5937fi
5938if test -z "$ac_cv_prog_AR"; then
5939  ac_ct_AR=$AR
5940  # Extract the first word of "ar", so it can be a program name with args.
5941set dummy ar; ac_word=$2
5942{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943$as_echo_n "checking for $ac_word... " >&6; }
5944if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5945  $as_echo_n "(cached) " >&6
5946else
5947  if test -n "$ac_ct_AR"; then
5948  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5949else
5950as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951for as_dir in $PATH
5952do
5953  IFS=$as_save_IFS
5954  test -z "$as_dir" && as_dir=.
5955    for ac_exec_ext in '' $ac_executable_extensions; do
5956  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957    ac_cv_prog_ac_ct_AR="ar"
5958    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959    break 2
5960  fi
5961done
5962  done
5963IFS=$as_save_IFS
5964
5965fi
5966fi
5967ac_ct_AR=$ac_cv_prog_ac_ct_AR
5968if test -n "$ac_ct_AR"; then
5969  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5970$as_echo "$ac_ct_AR" >&6; }
5971else
5972  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973$as_echo "no" >&6; }
5974fi
5975
5976  if test "x$ac_ct_AR" = x; then
5977    AR="false"
5978  else
5979    case $cross_compiling:$ac_tool_warned in
5980yes:)
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5982$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5983ac_tool_warned=yes ;;
5984esac
5985    AR=$ac_ct_AR
5986  fi
5987else
5988  AR="$ac_cv_prog_AR"
5989fi
5990
5991test -z "$AR" && AR=ar
5992test -z "$AR_FLAGS" && AR_FLAGS=cru
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004if test -n "$ac_tool_prefix"; then
6005  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6006set dummy ${ac_tool_prefix}strip; ac_word=$2
6007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6008$as_echo_n "checking for $ac_word... " >&6; }
6009if test "${ac_cv_prog_STRIP+set}" = set; then :
6010  $as_echo_n "(cached) " >&6
6011else
6012  if test -n "$STRIP"; then
6013  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6014else
6015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6016for as_dir in $PATH
6017do
6018  IFS=$as_save_IFS
6019  test -z "$as_dir" && as_dir=.
6020    for ac_exec_ext in '' $ac_executable_extensions; do
6021  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6022    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6023    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024    break 2
6025  fi
6026done
6027  done
6028IFS=$as_save_IFS
6029
6030fi
6031fi
6032STRIP=$ac_cv_prog_STRIP
6033if test -n "$STRIP"; then
6034  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6035$as_echo "$STRIP" >&6; }
6036else
6037  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6038$as_echo "no" >&6; }
6039fi
6040
6041
6042fi
6043if test -z "$ac_cv_prog_STRIP"; then
6044  ac_ct_STRIP=$STRIP
6045  # Extract the first word of "strip", so it can be a program name with args.
6046set dummy strip; ac_word=$2
6047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048$as_echo_n "checking for $ac_word... " >&6; }
6049if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6050  $as_echo_n "(cached) " >&6
6051else
6052  if test -n "$ac_ct_STRIP"; then
6053  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6054else
6055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6056for as_dir in $PATH
6057do
6058  IFS=$as_save_IFS
6059  test -z "$as_dir" && as_dir=.
6060    for ac_exec_ext in '' $ac_executable_extensions; do
6061  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6062    ac_cv_prog_ac_ct_STRIP="strip"
6063    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6064    break 2
6065  fi
6066done
6067  done
6068IFS=$as_save_IFS
6069
6070fi
6071fi
6072ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6073if test -n "$ac_ct_STRIP"; then
6074  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6075$as_echo "$ac_ct_STRIP" >&6; }
6076else
6077  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6078$as_echo "no" >&6; }
6079fi
6080
6081  if test "x$ac_ct_STRIP" = x; then
6082    STRIP=":"
6083  else
6084    case $cross_compiling:$ac_tool_warned in
6085yes:)
6086{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6087$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6088ac_tool_warned=yes ;;
6089esac
6090    STRIP=$ac_ct_STRIP
6091  fi
6092else
6093  STRIP="$ac_cv_prog_STRIP"
6094fi
6095
6096test -z "$STRIP" && STRIP=:
6097
6098
6099
6100
6101
6102
6103if test -n "$ac_tool_prefix"; then
6104  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6105set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6107$as_echo_n "checking for $ac_word... " >&6; }
6108if test "${ac_cv_prog_RANLIB+set}" = set; then :
6109  $as_echo_n "(cached) " >&6
6110else
6111  if test -n "$RANLIB"; then
6112  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6113else
6114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6115for as_dir in $PATH
6116do
6117  IFS=$as_save_IFS
6118  test -z "$as_dir" && as_dir=.
6119    for ac_exec_ext in '' $ac_executable_extensions; do
6120  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6121    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6122    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6123    break 2
6124  fi
6125done
6126  done
6127IFS=$as_save_IFS
6128
6129fi
6130fi
6131RANLIB=$ac_cv_prog_RANLIB
6132if test -n "$RANLIB"; then
6133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6134$as_echo "$RANLIB" >&6; }
6135else
6136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6137$as_echo "no" >&6; }
6138fi
6139
6140
6141fi
6142if test -z "$ac_cv_prog_RANLIB"; then
6143  ac_ct_RANLIB=$RANLIB
6144  # Extract the first word of "ranlib", so it can be a program name with args.
6145set dummy ranlib; ac_word=$2
6146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6147$as_echo_n "checking for $ac_word... " >&6; }
6148if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6149  $as_echo_n "(cached) " >&6
6150else
6151  if test -n "$ac_ct_RANLIB"; then
6152  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6153else
6154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6155for as_dir in $PATH
6156do
6157  IFS=$as_save_IFS
6158  test -z "$as_dir" && as_dir=.
6159    for ac_exec_ext in '' $ac_executable_extensions; do
6160  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6161    ac_cv_prog_ac_ct_RANLIB="ranlib"
6162    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6163    break 2
6164  fi
6165done
6166  done
6167IFS=$as_save_IFS
6168
6169fi
6170fi
6171ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6172if test -n "$ac_ct_RANLIB"; then
6173  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6174$as_echo "$ac_ct_RANLIB" >&6; }
6175else
6176  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6177$as_echo "no" >&6; }
6178fi
6179
6180  if test "x$ac_ct_RANLIB" = x; then
6181    RANLIB=":"
6182  else
6183    case $cross_compiling:$ac_tool_warned in
6184yes:)
6185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6187ac_tool_warned=yes ;;
6188esac
6189    RANLIB=$ac_ct_RANLIB
6190  fi
6191else
6192  RANLIB="$ac_cv_prog_RANLIB"
6193fi
6194
6195test -z "$RANLIB" && RANLIB=:
6196
6197
6198
6199
6200
6201
6202# Determine commands to create old-style static archives.
6203old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6204old_postinstall_cmds='chmod 644 $oldlib'
6205old_postuninstall_cmds=
6206
6207if test -n "$RANLIB"; then
6208  case $host_os in
6209  openbsd*)
6210    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6211    ;;
6212  *)
6213    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6214    ;;
6215  esac
6216  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6217fi
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252# If no C compiler was specified, use CC.
6253LTCC=${LTCC-"$CC"}
6254
6255# If no C compiler flags were specified, use CFLAGS.
6256LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6257
6258# Allow CC to be a program name with arguments.
6259compiler=$CC
6260
6261
6262# Check for command to grab the raw symbol name followed by C symbol from nm.
6263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6264$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6265if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6266  $as_echo_n "(cached) " >&6
6267else
6268
6269# These are sane defaults that work on at least a few old systems.
6270# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6271
6272# Character class describing NM global symbol codes.
6273symcode='[BCDEGRST]'
6274
6275# Regexp to match symbols that can be accessed directly from C.
6276sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6277
6278# Define system-specific variables.
6279case $host_os in
6280aix*)
6281  symcode='[BCDT]'
6282  ;;
6283cygwin* | mingw* | pw32* | cegcc*)
6284  symcode='[ABCDGISTW]'
6285  ;;
6286hpux*)
6287  if test "$host_cpu" = ia64; then
6288    symcode='[ABCDEGRST]'
6289  fi
6290  ;;
6291irix* | nonstopux*)
6292  symcode='[BCDEGRST]'
6293  ;;
6294osf*)
6295  symcode='[BCDEGQRST]'
6296  ;;
6297solaris*)
6298  symcode='[BDRT]'
6299  ;;
6300sco3.2v5*)
6301  symcode='[DT]'
6302  ;;
6303sysv4.2uw2*)
6304  symcode='[DT]'
6305  ;;
6306sysv5* | sco5v6* | unixware* | OpenUNIX*)
6307  symcode='[ABDT]'
6308  ;;
6309sysv4)
6310  symcode='[DFNSTU]'
6311  ;;
6312esac
6313
6314# If we're using GNU nm, then use its standard symbol codes.
6315case `$NM -V 2>&1` in
6316*GNU* | *'with BFD'*)
6317  symcode='[ABCDGIRSTW]' ;;
6318esac
6319
6320# Transform an extracted symbol line into a proper C declaration.
6321# Some systems (esp. on ia64) link data and code symbols differently,
6322# so use this general approach.
6323lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6324
6325# Transform an extracted symbol line into symbol name and symbol address
6326lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6327lt_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'"
6328
6329# Handle CRLF in mingw tool chain
6330opt_cr=
6331case $build_os in
6332mingw*)
6333  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6334  ;;
6335esac
6336
6337# Try without a prefix underscore, then with it.
6338for ac_symprfx in "" "_"; do
6339
6340  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6341  symxfrm="\\1 $ac_symprfx\\2 \\2"
6342
6343  # Write the raw and C identifiers.
6344  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6345    # Fake it for dumpbin and say T for any non-static function
6346    # and D for any global variable.
6347    # Also find C++ and __fastcall symbols from MSVC++,
6348    # which start with @ or ?.
6349    lt_cv_sys_global_symbol_pipe="$AWK '"\
6350"     {last_section=section; section=\$ 3};"\
6351"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6352"     \$ 0!~/External *\|/{next};"\
6353"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6354"     {if(hide[section]) next};"\
6355"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6356"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6357"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6358"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6359"     ' prfx=^$ac_symprfx"
6360  else
6361    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6362  fi
6363
6364  # Check to see that the pipe works correctly.
6365  pipe_works=no
6366
6367  rm -f conftest*
6368  cat > conftest.$ac_ext <<_LT_EOF
6369#ifdef __cplusplus
6370extern "C" {
6371#endif
6372char nm_test_var;
6373void nm_test_func(void);
6374void nm_test_func(void){}
6375#ifdef __cplusplus
6376}
6377#endif
6378int main(){nm_test_var='a';nm_test_func();return(0);}
6379_LT_EOF
6380
6381  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6382  (eval $ac_compile) 2>&5
6383  ac_status=$?
6384  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6385  test $ac_status = 0; }; then
6386    # Now try to grab the symbols.
6387    nlist=conftest.nm
6388    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6389  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6390  ac_status=$?
6391  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6392  test $ac_status = 0; } && test -s "$nlist"; then
6393      # Try sorting and uniquifying the output.
6394      if sort "$nlist" | uniq > "$nlist"T; then
6395	mv -f "$nlist"T "$nlist"
6396      else
6397	rm -f "$nlist"T
6398      fi
6399
6400      # Make sure that we snagged all the symbols we need.
6401      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6402	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6403	  cat <<_LT_EOF > conftest.$ac_ext
6404#ifdef __cplusplus
6405extern "C" {
6406#endif
6407
6408_LT_EOF
6409	  # Now generate the symbol file.
6410	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6411
6412	  cat <<_LT_EOF >> conftest.$ac_ext
6413
6414/* The mapping between symbol names and symbols.  */
6415const struct {
6416  const char *name;
6417  void       *address;
6418}
6419lt__PROGRAM__LTX_preloaded_symbols[] =
6420{
6421  { "@PROGRAM@", (void *) 0 },
6422_LT_EOF
6423	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6424	  cat <<\_LT_EOF >> conftest.$ac_ext
6425  {0, (void *) 0}
6426};
6427
6428/* This works around a problem in FreeBSD linker */
6429#ifdef FREEBSD_WORKAROUND
6430static const void *lt_preloaded_setup() {
6431  return lt__PROGRAM__LTX_preloaded_symbols;
6432}
6433#endif
6434
6435#ifdef __cplusplus
6436}
6437#endif
6438_LT_EOF
6439	  # Now try linking the two files.
6440	  mv conftest.$ac_objext conftstm.$ac_objext
6441	  lt_save_LIBS="$LIBS"
6442	  lt_save_CFLAGS="$CFLAGS"
6443	  LIBS="conftstm.$ac_objext"
6444	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6445	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6446  (eval $ac_link) 2>&5
6447  ac_status=$?
6448  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6449  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6450	    pipe_works=yes
6451	  fi
6452	  LIBS="$lt_save_LIBS"
6453	  CFLAGS="$lt_save_CFLAGS"
6454	else
6455	  echo "cannot find nm_test_func in $nlist" >&5
6456	fi
6457      else
6458	echo "cannot find nm_test_var in $nlist" >&5
6459      fi
6460    else
6461      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6462    fi
6463  else
6464    echo "$progname: failed program was:" >&5
6465    cat conftest.$ac_ext >&5
6466  fi
6467  rm -rf conftest* conftst*
6468
6469  # Do not use the global_symbol_pipe unless it works.
6470  if test "$pipe_works" = yes; then
6471    break
6472  else
6473    lt_cv_sys_global_symbol_pipe=
6474  fi
6475done
6476
6477fi
6478
6479if test -z "$lt_cv_sys_global_symbol_pipe"; then
6480  lt_cv_sys_global_symbol_to_cdecl=
6481fi
6482if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6483  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6484$as_echo "failed" >&6; }
6485else
6486  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6487$as_echo "ok" >&6; }
6488fi
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511# Check whether --enable-libtool-lock was given.
6512if test "${enable_libtool_lock+set}" = set; then :
6513  enableval=$enable_libtool_lock;
6514fi
6515
6516test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6517
6518# Some flags need to be propagated to the compiler or linker for good
6519# libtool support.
6520case $host in
6521ia64-*-hpux*)
6522  # Find out which ABI we are using.
6523  echo 'int i;' > conftest.$ac_ext
6524  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6525  (eval $ac_compile) 2>&5
6526  ac_status=$?
6527  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6528  test $ac_status = 0; }; then
6529    case `/usr/bin/file conftest.$ac_objext` in
6530      *ELF-32*)
6531	HPUX_IA64_MODE="32"
6532	;;
6533      *ELF-64*)
6534	HPUX_IA64_MODE="64"
6535	;;
6536    esac
6537  fi
6538  rm -rf conftest*
6539  ;;
6540*-*-irix6*)
6541  # Find out which ABI we are using.
6542  echo '#line 6542 "configure"' > conftest.$ac_ext
6543  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6544  (eval $ac_compile) 2>&5
6545  ac_status=$?
6546  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6547  test $ac_status = 0; }; then
6548    if test "$lt_cv_prog_gnu_ld" = yes; then
6549      case `/usr/bin/file conftest.$ac_objext` in
6550	*32-bit*)
6551	  LD="${LD-ld} -melf32bsmip"
6552	  ;;
6553	*N32*)
6554	  LD="${LD-ld} -melf32bmipn32"
6555	  ;;
6556	*64-bit*)
6557	  LD="${LD-ld} -melf64bmip"
6558	;;
6559      esac
6560    else
6561      case `/usr/bin/file conftest.$ac_objext` in
6562	*32-bit*)
6563	  LD="${LD-ld} -32"
6564	  ;;
6565	*N32*)
6566	  LD="${LD-ld} -n32"
6567	  ;;
6568	*64-bit*)
6569	  LD="${LD-ld} -64"
6570	  ;;
6571      esac
6572    fi
6573  fi
6574  rm -rf conftest*
6575  ;;
6576
6577x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6578s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6579  # Find out which ABI we are using.
6580  echo 'int i;' > conftest.$ac_ext
6581  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6582  (eval $ac_compile) 2>&5
6583  ac_status=$?
6584  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6585  test $ac_status = 0; }; then
6586    case `/usr/bin/file conftest.o` in
6587      *32-bit*)
6588	case $host in
6589	  x86_64-*kfreebsd*-gnu)
6590	    LD="${LD-ld} -m elf_i386_fbsd"
6591	    ;;
6592	  x86_64-*linux*)
6593	    LD="${LD-ld} -m elf_i386"
6594	    ;;
6595	  ppc64-*linux*|powerpc64-*linux*)
6596	    LD="${LD-ld} -m elf32ppclinux"
6597	    ;;
6598	  s390x-*linux*)
6599	    LD="${LD-ld} -m elf_s390"
6600	    ;;
6601	  sparc64-*linux*)
6602	    LD="${LD-ld} -m elf32_sparc"
6603	    ;;
6604	esac
6605	;;
6606      *64-bit*)
6607	case $host in
6608	  x86_64-*kfreebsd*-gnu)
6609	    LD="${LD-ld} -m elf_x86_64_fbsd"
6610	    ;;
6611	  x86_64-*linux*)
6612	    LD="${LD-ld} -m elf_x86_64"
6613	    ;;
6614	  ppc*-*linux*|powerpc*-*linux*)
6615	    LD="${LD-ld} -m elf64ppc"
6616	    ;;
6617	  s390*-*linux*|s390*-*tpf*)
6618	    LD="${LD-ld} -m elf64_s390"
6619	    ;;
6620	  sparc*-*linux*)
6621	    LD="${LD-ld} -m elf64_sparc"
6622	    ;;
6623	esac
6624	;;
6625    esac
6626  fi
6627  rm -rf conftest*
6628  ;;
6629
6630*-*-sco3.2v5*)
6631  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6632  SAVE_CFLAGS="$CFLAGS"
6633  CFLAGS="$CFLAGS -belf"
6634  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6635$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6636if test "${lt_cv_cc_needs_belf+set}" = set; then :
6637  $as_echo_n "(cached) " >&6
6638else
6639  ac_ext=c
6640ac_cpp='$CPP $CPPFLAGS'
6641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643ac_compiler_gnu=$ac_cv_c_compiler_gnu
6644
6645     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6646/* end confdefs.h.  */
6647
6648int
6649main ()
6650{
6651
6652  ;
6653  return 0;
6654}
6655_ACEOF
6656if ac_fn_c_try_link "$LINENO"; then :
6657  lt_cv_cc_needs_belf=yes
6658else
6659  lt_cv_cc_needs_belf=no
6660fi
6661rm -f core conftest.err conftest.$ac_objext \
6662    conftest$ac_exeext conftest.$ac_ext
6663     ac_ext=c
6664ac_cpp='$CPP $CPPFLAGS'
6665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6667ac_compiler_gnu=$ac_cv_c_compiler_gnu
6668
6669fi
6670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6671$as_echo "$lt_cv_cc_needs_belf" >&6; }
6672  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6673    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6674    CFLAGS="$SAVE_CFLAGS"
6675  fi
6676  ;;
6677sparc*-*solaris*)
6678  # Find out which ABI we are using.
6679  echo 'int i;' > conftest.$ac_ext
6680  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6681  (eval $ac_compile) 2>&5
6682  ac_status=$?
6683  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6684  test $ac_status = 0; }; then
6685    case `/usr/bin/file conftest.o` in
6686    *64-bit*)
6687      case $lt_cv_prog_gnu_ld in
6688      yes*) LD="${LD-ld} -m elf64_sparc" ;;
6689      *)
6690	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6691	  LD="${LD-ld} -64"
6692	fi
6693	;;
6694      esac
6695      ;;
6696    esac
6697  fi
6698  rm -rf conftest*
6699  ;;
6700esac
6701
6702need_locks="$enable_libtool_lock"
6703
6704
6705  case $host_os in
6706    rhapsody* | darwin*)
6707    if test -n "$ac_tool_prefix"; then
6708  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6709set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711$as_echo_n "checking for $ac_word... " >&6; }
6712if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6713  $as_echo_n "(cached) " >&6
6714else
6715  if test -n "$DSYMUTIL"; then
6716  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6717else
6718as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719for as_dir in $PATH
6720do
6721  IFS=$as_save_IFS
6722  test -z "$as_dir" && as_dir=.
6723    for ac_exec_ext in '' $ac_executable_extensions; do
6724  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6725    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6726    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727    break 2
6728  fi
6729done
6730  done
6731IFS=$as_save_IFS
6732
6733fi
6734fi
6735DSYMUTIL=$ac_cv_prog_DSYMUTIL
6736if test -n "$DSYMUTIL"; then
6737  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6738$as_echo "$DSYMUTIL" >&6; }
6739else
6740  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741$as_echo "no" >&6; }
6742fi
6743
6744
6745fi
6746if test -z "$ac_cv_prog_DSYMUTIL"; then
6747  ac_ct_DSYMUTIL=$DSYMUTIL
6748  # Extract the first word of "dsymutil", so it can be a program name with args.
6749set dummy dsymutil; ac_word=$2
6750{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6751$as_echo_n "checking for $ac_word... " >&6; }
6752if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6753  $as_echo_n "(cached) " >&6
6754else
6755  if test -n "$ac_ct_DSYMUTIL"; then
6756  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6757else
6758as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759for as_dir in $PATH
6760do
6761  IFS=$as_save_IFS
6762  test -z "$as_dir" && as_dir=.
6763    for ac_exec_ext in '' $ac_executable_extensions; do
6764  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6765    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6766    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6767    break 2
6768  fi
6769done
6770  done
6771IFS=$as_save_IFS
6772
6773fi
6774fi
6775ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6776if test -n "$ac_ct_DSYMUTIL"; then
6777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6778$as_echo "$ac_ct_DSYMUTIL" >&6; }
6779else
6780  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6781$as_echo "no" >&6; }
6782fi
6783
6784  if test "x$ac_ct_DSYMUTIL" = x; then
6785    DSYMUTIL=":"
6786  else
6787    case $cross_compiling:$ac_tool_warned in
6788yes:)
6789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6791ac_tool_warned=yes ;;
6792esac
6793    DSYMUTIL=$ac_ct_DSYMUTIL
6794  fi
6795else
6796  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6797fi
6798
6799    if test -n "$ac_tool_prefix"; then
6800  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6801set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6803$as_echo_n "checking for $ac_word... " >&6; }
6804if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6805  $as_echo_n "(cached) " >&6
6806else
6807  if test -n "$NMEDIT"; then
6808  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6809else
6810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811for as_dir in $PATH
6812do
6813  IFS=$as_save_IFS
6814  test -z "$as_dir" && as_dir=.
6815    for ac_exec_ext in '' $ac_executable_extensions; do
6816  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6819    break 2
6820  fi
6821done
6822  done
6823IFS=$as_save_IFS
6824
6825fi
6826fi
6827NMEDIT=$ac_cv_prog_NMEDIT
6828if test -n "$NMEDIT"; then
6829  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6830$as_echo "$NMEDIT" >&6; }
6831else
6832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833$as_echo "no" >&6; }
6834fi
6835
6836
6837fi
6838if test -z "$ac_cv_prog_NMEDIT"; then
6839  ac_ct_NMEDIT=$NMEDIT
6840  # Extract the first word of "nmedit", so it can be a program name with args.
6841set dummy nmedit; ac_word=$2
6842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6843$as_echo_n "checking for $ac_word... " >&6; }
6844if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6845  $as_echo_n "(cached) " >&6
6846else
6847  if test -n "$ac_ct_NMEDIT"; then
6848  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6849else
6850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851for as_dir in $PATH
6852do
6853  IFS=$as_save_IFS
6854  test -z "$as_dir" && as_dir=.
6855    for ac_exec_ext in '' $ac_executable_extensions; do
6856  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6857    ac_cv_prog_ac_ct_NMEDIT="nmedit"
6858    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6859    break 2
6860  fi
6861done
6862  done
6863IFS=$as_save_IFS
6864
6865fi
6866fi
6867ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6868if test -n "$ac_ct_NMEDIT"; then
6869  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6870$as_echo "$ac_ct_NMEDIT" >&6; }
6871else
6872  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6873$as_echo "no" >&6; }
6874fi
6875
6876  if test "x$ac_ct_NMEDIT" = x; then
6877    NMEDIT=":"
6878  else
6879    case $cross_compiling:$ac_tool_warned in
6880yes:)
6881{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6882$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6883ac_tool_warned=yes ;;
6884esac
6885    NMEDIT=$ac_ct_NMEDIT
6886  fi
6887else
6888  NMEDIT="$ac_cv_prog_NMEDIT"
6889fi
6890
6891    if test -n "$ac_tool_prefix"; then
6892  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6893set dummy ${ac_tool_prefix}lipo; ac_word=$2
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895$as_echo_n "checking for $ac_word... " >&6; }
6896if test "${ac_cv_prog_LIPO+set}" = set; then :
6897  $as_echo_n "(cached) " >&6
6898else
6899  if test -n "$LIPO"; then
6900  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6901else
6902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903for as_dir in $PATH
6904do
6905  IFS=$as_save_IFS
6906  test -z "$as_dir" && as_dir=.
6907    for ac_exec_ext in '' $ac_executable_extensions; do
6908  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6909    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6910    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911    break 2
6912  fi
6913done
6914  done
6915IFS=$as_save_IFS
6916
6917fi
6918fi
6919LIPO=$ac_cv_prog_LIPO
6920if test -n "$LIPO"; then
6921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6922$as_echo "$LIPO" >&6; }
6923else
6924  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925$as_echo "no" >&6; }
6926fi
6927
6928
6929fi
6930if test -z "$ac_cv_prog_LIPO"; then
6931  ac_ct_LIPO=$LIPO
6932  # Extract the first word of "lipo", so it can be a program name with args.
6933set dummy lipo; ac_word=$2
6934{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935$as_echo_n "checking for $ac_word... " >&6; }
6936if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6937  $as_echo_n "(cached) " >&6
6938else
6939  if test -n "$ac_ct_LIPO"; then
6940  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6941else
6942as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943for as_dir in $PATH
6944do
6945  IFS=$as_save_IFS
6946  test -z "$as_dir" && as_dir=.
6947    for ac_exec_ext in '' $ac_executable_extensions; do
6948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6949    ac_cv_prog_ac_ct_LIPO="lipo"
6950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951    break 2
6952  fi
6953done
6954  done
6955IFS=$as_save_IFS
6956
6957fi
6958fi
6959ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6960if test -n "$ac_ct_LIPO"; then
6961  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6962$as_echo "$ac_ct_LIPO" >&6; }
6963else
6964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965$as_echo "no" >&6; }
6966fi
6967
6968  if test "x$ac_ct_LIPO" = x; then
6969    LIPO=":"
6970  else
6971    case $cross_compiling:$ac_tool_warned in
6972yes:)
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6974$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6975ac_tool_warned=yes ;;
6976esac
6977    LIPO=$ac_ct_LIPO
6978  fi
6979else
6980  LIPO="$ac_cv_prog_LIPO"
6981fi
6982
6983    if test -n "$ac_tool_prefix"; then
6984  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6985set dummy ${ac_tool_prefix}otool; ac_word=$2
6986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6987$as_echo_n "checking for $ac_word... " >&6; }
6988if test "${ac_cv_prog_OTOOL+set}" = set; then :
6989  $as_echo_n "(cached) " >&6
6990else
6991  if test -n "$OTOOL"; then
6992  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6993else
6994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6995for as_dir in $PATH
6996do
6997  IFS=$as_save_IFS
6998  test -z "$as_dir" && as_dir=.
6999    for ac_exec_ext in '' $ac_executable_extensions; do
7000  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7001    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7002    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7003    break 2
7004  fi
7005done
7006  done
7007IFS=$as_save_IFS
7008
7009fi
7010fi
7011OTOOL=$ac_cv_prog_OTOOL
7012if test -n "$OTOOL"; then
7013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7014$as_echo "$OTOOL" >&6; }
7015else
7016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7017$as_echo "no" >&6; }
7018fi
7019
7020
7021fi
7022if test -z "$ac_cv_prog_OTOOL"; then
7023  ac_ct_OTOOL=$OTOOL
7024  # Extract the first word of "otool", so it can be a program name with args.
7025set dummy otool; ac_word=$2
7026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7027$as_echo_n "checking for $ac_word... " >&6; }
7028if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7029  $as_echo_n "(cached) " >&6
7030else
7031  if test -n "$ac_ct_OTOOL"; then
7032  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7033else
7034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7035for as_dir in $PATH
7036do
7037  IFS=$as_save_IFS
7038  test -z "$as_dir" && as_dir=.
7039    for ac_exec_ext in '' $ac_executable_extensions; do
7040  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7041    ac_cv_prog_ac_ct_OTOOL="otool"
7042    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7043    break 2
7044  fi
7045done
7046  done
7047IFS=$as_save_IFS
7048
7049fi
7050fi
7051ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7052if test -n "$ac_ct_OTOOL"; then
7053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7054$as_echo "$ac_ct_OTOOL" >&6; }
7055else
7056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7057$as_echo "no" >&6; }
7058fi
7059
7060  if test "x$ac_ct_OTOOL" = x; then
7061    OTOOL=":"
7062  else
7063    case $cross_compiling:$ac_tool_warned in
7064yes:)
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7067ac_tool_warned=yes ;;
7068esac
7069    OTOOL=$ac_ct_OTOOL
7070  fi
7071else
7072  OTOOL="$ac_cv_prog_OTOOL"
7073fi
7074
7075    if test -n "$ac_tool_prefix"; then
7076  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7077set dummy ${ac_tool_prefix}otool64; ac_word=$2
7078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7079$as_echo_n "checking for $ac_word... " >&6; }
7080if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7081  $as_echo_n "(cached) " >&6
7082else
7083  if test -n "$OTOOL64"; then
7084  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7085else
7086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7087for as_dir in $PATH
7088do
7089  IFS=$as_save_IFS
7090  test -z "$as_dir" && as_dir=.
7091    for ac_exec_ext in '' $ac_executable_extensions; do
7092  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7093    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7094    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7095    break 2
7096  fi
7097done
7098  done
7099IFS=$as_save_IFS
7100
7101fi
7102fi
7103OTOOL64=$ac_cv_prog_OTOOL64
7104if test -n "$OTOOL64"; then
7105  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7106$as_echo "$OTOOL64" >&6; }
7107else
7108  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7109$as_echo "no" >&6; }
7110fi
7111
7112
7113fi
7114if test -z "$ac_cv_prog_OTOOL64"; then
7115  ac_ct_OTOOL64=$OTOOL64
7116  # Extract the first word of "otool64", so it can be a program name with args.
7117set dummy otool64; ac_word=$2
7118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7119$as_echo_n "checking for $ac_word... " >&6; }
7120if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7121  $as_echo_n "(cached) " >&6
7122else
7123  if test -n "$ac_ct_OTOOL64"; then
7124  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7125else
7126as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7127for as_dir in $PATH
7128do
7129  IFS=$as_save_IFS
7130  test -z "$as_dir" && as_dir=.
7131    for ac_exec_ext in '' $ac_executable_extensions; do
7132  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7133    ac_cv_prog_ac_ct_OTOOL64="otool64"
7134    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7135    break 2
7136  fi
7137done
7138  done
7139IFS=$as_save_IFS
7140
7141fi
7142fi
7143ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7144if test -n "$ac_ct_OTOOL64"; then
7145  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7146$as_echo "$ac_ct_OTOOL64" >&6; }
7147else
7148  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7149$as_echo "no" >&6; }
7150fi
7151
7152  if test "x$ac_ct_OTOOL64" = x; then
7153    OTOOL64=":"
7154  else
7155    case $cross_compiling:$ac_tool_warned in
7156yes:)
7157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7159ac_tool_warned=yes ;;
7160esac
7161    OTOOL64=$ac_ct_OTOOL64
7162  fi
7163else
7164  OTOOL64="$ac_cv_prog_OTOOL64"
7165fi
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
7190
7191
7192
7193    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7194$as_echo_n "checking for -single_module linker flag... " >&6; }
7195if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7196  $as_echo_n "(cached) " >&6
7197else
7198  lt_cv_apple_cc_single_mod=no
7199      if test -z "${LT_MULTI_MODULE}"; then
7200	# By default we will add the -single_module flag. You can override
7201	# by either setting the environment variable LT_MULTI_MODULE
7202	# non-empty at configure time, or by adding -multi_module to the
7203	# link flags.
7204	rm -rf libconftest.dylib*
7205	echo "int foo(void){return 1;}" > conftest.c
7206	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7207-dynamiclib -Wl,-single_module conftest.c" >&5
7208	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7209	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7210        _lt_result=$?
7211	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7212	  lt_cv_apple_cc_single_mod=yes
7213	else
7214	  cat conftest.err >&5
7215	fi
7216	rm -rf libconftest.dylib*
7217	rm -f conftest.*
7218      fi
7219fi
7220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7221$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7223$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7224if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7225  $as_echo_n "(cached) " >&6
7226else
7227  lt_cv_ld_exported_symbols_list=no
7228      save_LDFLAGS=$LDFLAGS
7229      echo "_main" > conftest.sym
7230      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7231      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7232/* end confdefs.h.  */
7233
7234int
7235main ()
7236{
7237
7238  ;
7239  return 0;
7240}
7241_ACEOF
7242if ac_fn_c_try_link "$LINENO"; then :
7243  lt_cv_ld_exported_symbols_list=yes
7244else
7245  lt_cv_ld_exported_symbols_list=no
7246fi
7247rm -f core conftest.err conftest.$ac_objext \
7248    conftest$ac_exeext conftest.$ac_ext
7249	LDFLAGS="$save_LDFLAGS"
7250
7251fi
7252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7253$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7254    case $host_os in
7255    rhapsody* | darwin1.[012])
7256      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7257    darwin1.*)
7258      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7259    darwin*) # darwin 5.x on
7260      # if running on 10.5 or later, the deployment target defaults
7261      # to the OS version, if on x86, and 10.4, the deployment
7262      # target defaults to 10.4. Don't you love it?
7263      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7264	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7265	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7266	10.[012]*)
7267	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7268	10.*)
7269	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7270      esac
7271    ;;
7272  esac
7273    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7274      _lt_dar_single_mod='$single_module'
7275    fi
7276    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7277      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7278    else
7279      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7280    fi
7281    if test "$DSYMUTIL" != ":"; then
7282      _lt_dsymutil='~$DSYMUTIL $lib || :'
7283    else
7284      _lt_dsymutil=
7285    fi
7286    ;;
7287  esac
7288
7289# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7290for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7291		  inttypes.h stdint.h unistd.h
7292do :
7293  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7294ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7295"
7296eval as_val=\$$as_ac_Header
7297   if test "x$as_val" = x""yes; then :
7298  cat >>confdefs.h <<_ACEOF
7299#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7300_ACEOF
7301
7302fi
7303
7304done
7305
7306
7307for ac_header in dlfcn.h
7308do :
7309  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7310"
7311if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7312  cat >>confdefs.h <<_ACEOF
7313#define HAVE_DLFCN_H 1
7314_ACEOF
7315
7316fi
7317
7318done
7319
7320
7321
7322# Set options
7323
7324
7325
7326        enable_dlopen=no
7327
7328
7329  enable_win32_dll=no
7330
7331
7332            # Check whether --enable-shared was given.
7333if test "${enable_shared+set}" = set; then :
7334  enableval=$enable_shared; p=${PACKAGE-default}
7335    case $enableval in
7336    yes) enable_shared=yes ;;
7337    no) enable_shared=no ;;
7338    *)
7339      enable_shared=no
7340      # Look at the argument we got.  We use all the common list separators.
7341      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7342      for pkg in $enableval; do
7343	IFS="$lt_save_ifs"
7344	if test "X$pkg" = "X$p"; then
7345	  enable_shared=yes
7346	fi
7347      done
7348      IFS="$lt_save_ifs"
7349      ;;
7350    esac
7351else
7352  enable_shared=yes
7353fi
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363  # Check whether --enable-static was given.
7364if test "${enable_static+set}" = set; then :
7365  enableval=$enable_static; p=${PACKAGE-default}
7366    case $enableval in
7367    yes) enable_static=yes ;;
7368    no) enable_static=no ;;
7369    *)
7370     enable_static=no
7371      # Look at the argument we got.  We use all the common list separators.
7372      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7373      for pkg in $enableval; do
7374	IFS="$lt_save_ifs"
7375	if test "X$pkg" = "X$p"; then
7376	  enable_static=yes
7377	fi
7378      done
7379      IFS="$lt_save_ifs"
7380      ;;
7381    esac
7382else
7383  enable_static=yes
7384fi
7385
7386
7387
7388
7389
7390
7391
7392
7393
7394
7395# Check whether --with-pic was given.
7396if test "${with_pic+set}" = set; then :
7397  withval=$with_pic; pic_mode="$withval"
7398else
7399  pic_mode=default
7400fi
7401
7402
7403test -z "$pic_mode" && pic_mode=default
7404
7405
7406
7407
7408
7409
7410
7411  # Check whether --enable-fast-install was given.
7412if test "${enable_fast_install+set}" = set; then :
7413  enableval=$enable_fast_install; p=${PACKAGE-default}
7414    case $enableval in
7415    yes) enable_fast_install=yes ;;
7416    no) enable_fast_install=no ;;
7417    *)
7418      enable_fast_install=no
7419      # Look at the argument we got.  We use all the common list separators.
7420      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7421      for pkg in $enableval; do
7422	IFS="$lt_save_ifs"
7423	if test "X$pkg" = "X$p"; then
7424	  enable_fast_install=yes
7425	fi
7426      done
7427      IFS="$lt_save_ifs"
7428      ;;
7429    esac
7430else
7431  enable_fast_install=yes
7432fi
7433
7434
7435
7436
7437
7438
7439
7440
7441
7442
7443
7444# This can be used to rebuild libtool when needed
7445LIBTOOL_DEPS="$ltmain"
7446
7447# Always use our own libtool.
7448LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474test -z "$LN_S" && LN_S="ln -s"
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486
7487
7488
7489if test -n "${ZSH_VERSION+set}" ; then
7490   setopt NO_GLOB_SUBST
7491fi
7492
7493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7494$as_echo_n "checking for objdir... " >&6; }
7495if test "${lt_cv_objdir+set}" = set; then :
7496  $as_echo_n "(cached) " >&6
7497else
7498  rm -f .libs 2>/dev/null
7499mkdir .libs 2>/dev/null
7500if test -d .libs; then
7501  lt_cv_objdir=.libs
7502else
7503  # MS-DOS does not allow filenames that begin with a dot.
7504  lt_cv_objdir=_libs
7505fi
7506rmdir .libs 2>/dev/null
7507fi
7508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7509$as_echo "$lt_cv_objdir" >&6; }
7510objdir=$lt_cv_objdir
7511
7512
7513
7514
7515
7516cat >>confdefs.h <<_ACEOF
7517#define LT_OBJDIR "$lt_cv_objdir/"
7518_ACEOF
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536case $host_os in
7537aix3*)
7538  # AIX sometimes has problems with the GCC collect2 program.  For some
7539  # reason, if we set the COLLECT_NAMES environment variable, the problems
7540  # vanish in a puff of smoke.
7541  if test "X${COLLECT_NAMES+set}" != Xset; then
7542    COLLECT_NAMES=
7543    export COLLECT_NAMES
7544  fi
7545  ;;
7546esac
7547
7548# Sed substitution that helps us do robust quoting.  It backslashifies
7549# metacharacters that are still active within double-quoted strings.
7550sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7551
7552# Same as above, but do not quote variable references.
7553double_quote_subst='s/\(["`\\]\)/\\\1/g'
7554
7555# Sed substitution to delay expansion of an escaped shell variable in a
7556# double_quote_subst'ed string.
7557delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7558
7559# Sed substitution to delay expansion of an escaped single quote.
7560delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7561
7562# Sed substitution to avoid accidental globbing in evaled expressions
7563no_glob_subst='s/\*/\\\*/g'
7564
7565# Global variables:
7566ofile=libtool
7567can_build_shared=yes
7568
7569# All known linkers require a `.a' archive for static linking (except MSVC,
7570# which needs '.lib').
7571libext=a
7572
7573with_gnu_ld="$lt_cv_prog_gnu_ld"
7574
7575old_CC="$CC"
7576old_CFLAGS="$CFLAGS"
7577
7578# Set sane defaults for various variables
7579test -z "$CC" && CC=cc
7580test -z "$LTCC" && LTCC=$CC
7581test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7582test -z "$LD" && LD=ld
7583test -z "$ac_objext" && ac_objext=o
7584
7585for cc_temp in $compiler""; do
7586  case $cc_temp in
7587    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7588    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7589    \-*) ;;
7590    *) break;;
7591  esac
7592done
7593cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7594
7595
7596# Only perform the check for file, if the check method requires it
7597test -z "$MAGIC_CMD" && MAGIC_CMD=file
7598case $deplibs_check_method in
7599file_magic*)
7600  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7601    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7602$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7603if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7604  $as_echo_n "(cached) " >&6
7605else
7606  case $MAGIC_CMD in
7607[\\/*] |  ?:[\\/]*)
7608  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7609  ;;
7610*)
7611  lt_save_MAGIC_CMD="$MAGIC_CMD"
7612  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7613  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7614  for ac_dir in $ac_dummy; do
7615    IFS="$lt_save_ifs"
7616    test -z "$ac_dir" && ac_dir=.
7617    if test -f $ac_dir/${ac_tool_prefix}file; then
7618      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7619      if test -n "$file_magic_test_file"; then
7620	case $deplibs_check_method in
7621	"file_magic "*)
7622	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7623	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7624	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7625	    $EGREP "$file_magic_regex" > /dev/null; then
7626	    :
7627	  else
7628	    cat <<_LT_EOF 1>&2
7629
7630*** Warning: the command libtool uses to detect shared libraries,
7631*** $file_magic_cmd, produces output that libtool cannot recognize.
7632*** The result is that libtool may fail to recognize shared libraries
7633*** as such.  This will affect the creation of libtool libraries that
7634*** depend on shared libraries, but programs linked with such libtool
7635*** libraries will work regardless of this problem.  Nevertheless, you
7636*** may want to report the problem to your system manager and/or to
7637*** bug-libtool@gnu.org
7638
7639_LT_EOF
7640	  fi ;;
7641	esac
7642      fi
7643      break
7644    fi
7645  done
7646  IFS="$lt_save_ifs"
7647  MAGIC_CMD="$lt_save_MAGIC_CMD"
7648  ;;
7649esac
7650fi
7651
7652MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7653if test -n "$MAGIC_CMD"; then
7654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7655$as_echo "$MAGIC_CMD" >&6; }
7656else
7657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7658$as_echo "no" >&6; }
7659fi
7660
7661
7662
7663
7664
7665if test -z "$lt_cv_path_MAGIC_CMD"; then
7666  if test -n "$ac_tool_prefix"; then
7667    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7668$as_echo_n "checking for file... " >&6; }
7669if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7670  $as_echo_n "(cached) " >&6
7671else
7672  case $MAGIC_CMD in
7673[\\/*] |  ?:[\\/]*)
7674  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7675  ;;
7676*)
7677  lt_save_MAGIC_CMD="$MAGIC_CMD"
7678  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7679  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7680  for ac_dir in $ac_dummy; do
7681    IFS="$lt_save_ifs"
7682    test -z "$ac_dir" && ac_dir=.
7683    if test -f $ac_dir/file; then
7684      lt_cv_path_MAGIC_CMD="$ac_dir/file"
7685      if test -n "$file_magic_test_file"; then
7686	case $deplibs_check_method in
7687	"file_magic "*)
7688	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7689	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7690	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7691	    $EGREP "$file_magic_regex" > /dev/null; then
7692	    :
7693	  else
7694	    cat <<_LT_EOF 1>&2
7695
7696*** Warning: the command libtool uses to detect shared libraries,
7697*** $file_magic_cmd, produces output that libtool cannot recognize.
7698*** The result is that libtool may fail to recognize shared libraries
7699*** as such.  This will affect the creation of libtool libraries that
7700*** depend on shared libraries, but programs linked with such libtool
7701*** libraries will work regardless of this problem.  Nevertheless, you
7702*** may want to report the problem to your system manager and/or to
7703*** bug-libtool@gnu.org
7704
7705_LT_EOF
7706	  fi ;;
7707	esac
7708      fi
7709      break
7710    fi
7711  done
7712  IFS="$lt_save_ifs"
7713  MAGIC_CMD="$lt_save_MAGIC_CMD"
7714  ;;
7715esac
7716fi
7717
7718MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7719if test -n "$MAGIC_CMD"; then
7720  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7721$as_echo "$MAGIC_CMD" >&6; }
7722else
7723  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7724$as_echo "no" >&6; }
7725fi
7726
7727
7728  else
7729    MAGIC_CMD=:
7730  fi
7731fi
7732
7733  fi
7734  ;;
7735esac
7736
7737# Use C for the default configuration in the libtool script
7738
7739lt_save_CC="$CC"
7740ac_ext=c
7741ac_cpp='$CPP $CPPFLAGS'
7742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744ac_compiler_gnu=$ac_cv_c_compiler_gnu
7745
7746
7747# Source file extension for C test sources.
7748ac_ext=c
7749
7750# Object file extension for compiled C test sources.
7751objext=o
7752objext=$objext
7753
7754# Code to be used in simple compile tests
7755lt_simple_compile_test_code="int some_variable = 0;"
7756
7757# Code to be used in simple link tests
7758lt_simple_link_test_code='int main(){return(0);}'
7759
7760
7761
7762
7763
7764
7765
7766# If no C compiler was specified, use CC.
7767LTCC=${LTCC-"$CC"}
7768
7769# If no C compiler flags were specified, use CFLAGS.
7770LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7771
7772# Allow CC to be a program name with arguments.
7773compiler=$CC
7774
7775# Save the default compiler, since it gets overwritten when the other
7776# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7777compiler_DEFAULT=$CC
7778
7779# save warnings/boilerplate of simple test code
7780ac_outfile=conftest.$ac_objext
7781echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7782eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7783_lt_compiler_boilerplate=`cat conftest.err`
7784$RM conftest*
7785
7786ac_outfile=conftest.$ac_objext
7787echo "$lt_simple_link_test_code" >conftest.$ac_ext
7788eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7789_lt_linker_boilerplate=`cat conftest.err`
7790$RM -r conftest*
7791
7792
7793if test -n "$compiler"; then
7794
7795lt_prog_compiler_no_builtin_flag=
7796
7797if test "$GCC" = yes; then
7798  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7799
7800  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7801$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7802if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7803  $as_echo_n "(cached) " >&6
7804else
7805  lt_cv_prog_compiler_rtti_exceptions=no
7806   ac_outfile=conftest.$ac_objext
7807   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7808   lt_compiler_flag="-fno-rtti -fno-exceptions"
7809   # Insert the option either (1) after the last *FLAGS variable, or
7810   # (2) before a word containing "conftest.", or (3) at the end.
7811   # Note that $ac_compile itself does not contain backslashes and begins
7812   # with a dollar sign (not a hyphen), so the echo should work correctly.
7813   # The option is referenced via a variable to avoid confusing sed.
7814   lt_compile=`echo "$ac_compile" | $SED \
7815   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7816   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7817   -e 's:$: $lt_compiler_flag:'`
7818   (eval echo "\"\$as_me:7818: $lt_compile\"" >&5)
7819   (eval "$lt_compile" 2>conftest.err)
7820   ac_status=$?
7821   cat conftest.err >&5
7822   echo "$as_me:7822: \$? = $ac_status" >&5
7823   if (exit $ac_status) && test -s "$ac_outfile"; then
7824     # The compiler can only warn and ignore the option if not recognized
7825     # So say no if there are warnings other than the usual output.
7826     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7827     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7828     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7829       lt_cv_prog_compiler_rtti_exceptions=yes
7830     fi
7831   fi
7832   $RM conftest*
7833
7834fi
7835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7836$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7837
7838if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7839    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7840else
7841    :
7842fi
7843
7844fi
7845
7846
7847
7848
7849
7850
7851  lt_prog_compiler_wl=
7852lt_prog_compiler_pic=
7853lt_prog_compiler_static=
7854
7855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7856$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7857
7858  if test "$GCC" = yes; then
7859    lt_prog_compiler_wl='-Wl,'
7860    lt_prog_compiler_static='-static'
7861
7862    case $host_os in
7863      aix*)
7864      # All AIX code is PIC.
7865      if test "$host_cpu" = ia64; then
7866	# AIX 5 now supports IA64 processor
7867	lt_prog_compiler_static='-Bstatic'
7868      fi
7869      ;;
7870
7871    amigaos*)
7872      case $host_cpu in
7873      powerpc)
7874            # see comment about AmigaOS4 .so support
7875            lt_prog_compiler_pic='-fPIC'
7876        ;;
7877      m68k)
7878            # FIXME: we need at least 68020 code to build shared libraries, but
7879            # adding the `-m68020' flag to GCC prevents building anything better,
7880            # like `-m68040'.
7881            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7882        ;;
7883      esac
7884      ;;
7885
7886    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7887      # PIC is the default for these OSes.
7888      ;;
7889
7890    mingw* | cygwin* | pw32* | os2* | cegcc*)
7891      # This hack is so that the source file can tell whether it is being
7892      # built for inclusion in a dll (and should export symbols for example).
7893      # Although the cygwin gcc ignores -fPIC, still need this for old-style
7894      # (--disable-auto-import) libraries
7895      lt_prog_compiler_pic='-DDLL_EXPORT'
7896      ;;
7897
7898    darwin* | rhapsody*)
7899      # PIC is the default on this platform
7900      # Common symbols not allowed in MH_DYLIB files
7901      lt_prog_compiler_pic='-fno-common'
7902      ;;
7903
7904    hpux*)
7905      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7906      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
7907      # sets the default TLS model and affects inlining.
7908      case $host_cpu in
7909      hppa*64*)
7910	# +Z the default
7911	;;
7912      *)
7913	lt_prog_compiler_pic='-fPIC'
7914	;;
7915      esac
7916      ;;
7917
7918    interix[3-9]*)
7919      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7920      # Instead, we relocate shared libraries at runtime.
7921      ;;
7922
7923    msdosdjgpp*)
7924      # Just because we use GCC doesn't mean we suddenly get shared libraries
7925      # on systems that don't support them.
7926      lt_prog_compiler_can_build_shared=no
7927      enable_shared=no
7928      ;;
7929
7930    *nto* | *qnx*)
7931      # QNX uses GNU C++, but need to define -shared option too, otherwise
7932      # it will coredump.
7933      lt_prog_compiler_pic='-fPIC -shared'
7934      ;;
7935
7936    sysv4*MP*)
7937      if test -d /usr/nec; then
7938	lt_prog_compiler_pic=-Kconform_pic
7939      fi
7940      ;;
7941
7942    *)
7943      lt_prog_compiler_pic='-fPIC'
7944      ;;
7945    esac
7946  else
7947    # PORTME Check for flag to pass linker flags through the system compiler.
7948    case $host_os in
7949    aix*)
7950      lt_prog_compiler_wl='-Wl,'
7951      if test "$host_cpu" = ia64; then
7952	# AIX 5 now supports IA64 processor
7953	lt_prog_compiler_static='-Bstatic'
7954      else
7955	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7956      fi
7957      ;;
7958
7959    mingw* | cygwin* | pw32* | os2* | cegcc*)
7960      # This hack is so that the source file can tell whether it is being
7961      # built for inclusion in a dll (and should export symbols for example).
7962      lt_prog_compiler_pic='-DDLL_EXPORT'
7963      ;;
7964
7965    hpux9* | hpux10* | hpux11*)
7966      lt_prog_compiler_wl='-Wl,'
7967      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7968      # not for PA HP-UX.
7969      case $host_cpu in
7970      hppa*64*|ia64*)
7971	# +Z the default
7972	;;
7973      *)
7974	lt_prog_compiler_pic='+Z'
7975	;;
7976      esac
7977      # Is there a better lt_prog_compiler_static that works with the bundled CC?
7978      lt_prog_compiler_static='${wl}-a ${wl}archive'
7979      ;;
7980
7981    irix5* | irix6* | nonstopux*)
7982      lt_prog_compiler_wl='-Wl,'
7983      # PIC (with -KPIC) is the default.
7984      lt_prog_compiler_static='-non_shared'
7985      ;;
7986
7987    linux* | k*bsd*-gnu)
7988      case $cc_basename in
7989      # old Intel for x86_64 which still supported -KPIC.
7990      ecc*)
7991	lt_prog_compiler_wl='-Wl,'
7992	lt_prog_compiler_pic='-KPIC'
7993	lt_prog_compiler_static='-static'
7994        ;;
7995      # icc used to be incompatible with GCC.
7996      # ICC 10 doesn't accept -KPIC any more.
7997      icc* | ifort*)
7998	lt_prog_compiler_wl='-Wl,'
7999	lt_prog_compiler_pic='-fPIC'
8000	lt_prog_compiler_static='-static'
8001        ;;
8002      # Lahey Fortran 8.1.
8003      lf95*)
8004	lt_prog_compiler_wl='-Wl,'
8005	lt_prog_compiler_pic='--shared'
8006	lt_prog_compiler_static='--static'
8007	;;
8008      pgcc* | pgf77* | pgf90* | pgf95*)
8009        # Portland Group compilers (*not* the Pentium gcc compiler,
8010	# which looks to be a dead project)
8011	lt_prog_compiler_wl='-Wl,'
8012	lt_prog_compiler_pic='-fpic'
8013	lt_prog_compiler_static='-Bstatic'
8014        ;;
8015      ccc*)
8016        lt_prog_compiler_wl='-Wl,'
8017        # All Alpha code is PIC.
8018        lt_prog_compiler_static='-non_shared'
8019        ;;
8020      xl*)
8021	# IBM XL C 8.0/Fortran 10.1 on PPC
8022	lt_prog_compiler_wl='-Wl,'
8023	lt_prog_compiler_pic='-qpic'
8024	lt_prog_compiler_static='-qstaticlink'
8025	;;
8026      *)
8027	case `$CC -V 2>&1 | sed 5q` in
8028	*Sun\ C*)
8029	  # Sun C 5.9
8030	  lt_prog_compiler_pic='-KPIC'
8031	  lt_prog_compiler_static='-Bstatic'
8032	  lt_prog_compiler_wl='-Wl,'
8033	  ;;
8034	*Sun\ F*)
8035	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8036	  lt_prog_compiler_pic='-KPIC'
8037	  lt_prog_compiler_static='-Bstatic'
8038	  lt_prog_compiler_wl=''
8039	  ;;
8040	esac
8041	;;
8042      esac
8043      ;;
8044
8045    newsos6)
8046      lt_prog_compiler_pic='-KPIC'
8047      lt_prog_compiler_static='-Bstatic'
8048      ;;
8049
8050    *nto* | *qnx*)
8051      # QNX uses GNU C++, but need to define -shared option too, otherwise
8052      # it will coredump.
8053      lt_prog_compiler_pic='-fPIC -shared'
8054      ;;
8055
8056    osf3* | osf4* | osf5*)
8057      lt_prog_compiler_wl='-Wl,'
8058      # All OSF/1 code is PIC.
8059      lt_prog_compiler_static='-non_shared'
8060      ;;
8061
8062    rdos*)
8063      lt_prog_compiler_static='-non_shared'
8064      ;;
8065
8066    solaris*)
8067      lt_prog_compiler_pic='-KPIC'
8068      lt_prog_compiler_static='-Bstatic'
8069      case $cc_basename in
8070      f77* | f90* | f95*)
8071	lt_prog_compiler_wl='-Qoption ld ';;
8072      *)
8073	lt_prog_compiler_wl='-Wl,';;
8074      esac
8075      ;;
8076
8077    sunos4*)
8078      lt_prog_compiler_wl='-Qoption ld '
8079      lt_prog_compiler_pic='-PIC'
8080      lt_prog_compiler_static='-Bstatic'
8081      ;;
8082
8083    sysv4 | sysv4.2uw2* | sysv4.3*)
8084      lt_prog_compiler_wl='-Wl,'
8085      lt_prog_compiler_pic='-KPIC'
8086      lt_prog_compiler_static='-Bstatic'
8087      ;;
8088
8089    sysv4*MP*)
8090      if test -d /usr/nec ;then
8091	lt_prog_compiler_pic='-Kconform_pic'
8092	lt_prog_compiler_static='-Bstatic'
8093      fi
8094      ;;
8095
8096    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8097      lt_prog_compiler_wl='-Wl,'
8098      lt_prog_compiler_pic='-KPIC'
8099      lt_prog_compiler_static='-Bstatic'
8100      ;;
8101
8102    unicos*)
8103      lt_prog_compiler_wl='-Wl,'
8104      lt_prog_compiler_can_build_shared=no
8105      ;;
8106
8107    uts4*)
8108      lt_prog_compiler_pic='-pic'
8109      lt_prog_compiler_static='-Bstatic'
8110      ;;
8111
8112    *)
8113      lt_prog_compiler_can_build_shared=no
8114      ;;
8115    esac
8116  fi
8117
8118case $host_os in
8119  # For platforms which do not support PIC, -DPIC is meaningless:
8120  *djgpp*)
8121    lt_prog_compiler_pic=
8122    ;;
8123  *)
8124    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8125    ;;
8126esac
8127{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8128$as_echo "$lt_prog_compiler_pic" >&6; }
8129
8130
8131
8132
8133
8134
8135#
8136# Check to make sure the PIC flag actually works.
8137#
8138if test -n "$lt_prog_compiler_pic"; then
8139  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8140$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8141if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8142  $as_echo_n "(cached) " >&6
8143else
8144  lt_cv_prog_compiler_pic_works=no
8145   ac_outfile=conftest.$ac_objext
8146   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8147   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8148   # Insert the option either (1) after the last *FLAGS variable, or
8149   # (2) before a word containing "conftest.", or (3) at the end.
8150   # Note that $ac_compile itself does not contain backslashes and begins
8151   # with a dollar sign (not a hyphen), so the echo should work correctly.
8152   # The option is referenced via a variable to avoid confusing sed.
8153   lt_compile=`echo "$ac_compile" | $SED \
8154   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8155   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8156   -e 's:$: $lt_compiler_flag:'`
8157   (eval echo "\"\$as_me:8157: $lt_compile\"" >&5)
8158   (eval "$lt_compile" 2>conftest.err)
8159   ac_status=$?
8160   cat conftest.err >&5
8161   echo "$as_me:8161: \$? = $ac_status" >&5
8162   if (exit $ac_status) && test -s "$ac_outfile"; then
8163     # The compiler can only warn and ignore the option if not recognized
8164     # So say no if there are warnings other than the usual output.
8165     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8166     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8167     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8168       lt_cv_prog_compiler_pic_works=yes
8169     fi
8170   fi
8171   $RM conftest*
8172
8173fi
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8175$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8176
8177if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8178    case $lt_prog_compiler_pic in
8179     "" | " "*) ;;
8180     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8181     esac
8182else
8183    lt_prog_compiler_pic=
8184     lt_prog_compiler_can_build_shared=no
8185fi
8186
8187fi
8188
8189
8190
8191
8192
8193
8194#
8195# Check to make sure the static flag actually works.
8196#
8197wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8199$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8200if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8201  $as_echo_n "(cached) " >&6
8202else
8203  lt_cv_prog_compiler_static_works=no
8204   save_LDFLAGS="$LDFLAGS"
8205   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8206   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8207   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8208     # The linker can only warn and ignore the option if not recognized
8209     # So say no if there are warnings
8210     if test -s conftest.err; then
8211       # Append any errors to the config.log.
8212       cat conftest.err 1>&5
8213       $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8214       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8215       if diff conftest.exp conftest.er2 >/dev/null; then
8216         lt_cv_prog_compiler_static_works=yes
8217       fi
8218     else
8219       lt_cv_prog_compiler_static_works=yes
8220     fi
8221   fi
8222   $RM -r conftest*
8223   LDFLAGS="$save_LDFLAGS"
8224
8225fi
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8227$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8228
8229if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8230    :
8231else
8232    lt_prog_compiler_static=
8233fi
8234
8235
8236
8237
8238
8239
8240
8241  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8242$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8243if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8244  $as_echo_n "(cached) " >&6
8245else
8246  lt_cv_prog_compiler_c_o=no
8247   $RM -r conftest 2>/dev/null
8248   mkdir conftest
8249   cd conftest
8250   mkdir out
8251   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8252
8253   lt_compiler_flag="-o out/conftest2.$ac_objext"
8254   # Insert the option either (1) after the last *FLAGS variable, or
8255   # (2) before a word containing "conftest.", or (3) at the end.
8256   # Note that $ac_compile itself does not contain backslashes and begins
8257   # with a dollar sign (not a hyphen), so the echo should work correctly.
8258   lt_compile=`echo "$ac_compile" | $SED \
8259   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8260   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8261   -e 's:$: $lt_compiler_flag:'`
8262   (eval echo "\"\$as_me:8262: $lt_compile\"" >&5)
8263   (eval "$lt_compile" 2>out/conftest.err)
8264   ac_status=$?
8265   cat out/conftest.err >&5
8266   echo "$as_me:8266: \$? = $ac_status" >&5
8267   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8268   then
8269     # The compiler can only warn and ignore the option if not recognized
8270     # So say no if there are warnings
8271     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8272     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8273     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8274       lt_cv_prog_compiler_c_o=yes
8275     fi
8276   fi
8277   chmod u+w . 2>&5
8278   $RM conftest*
8279   # SGI C++ compiler will create directory out/ii_files/ for
8280   # template instantiation
8281   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8282   $RM out/* && rmdir out
8283   cd ..
8284   $RM -r conftest
8285   $RM conftest*
8286
8287fi
8288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8289$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8290
8291
8292
8293
8294
8295
8296  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8297$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8298if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8299  $as_echo_n "(cached) " >&6
8300else
8301  lt_cv_prog_compiler_c_o=no
8302   $RM -r conftest 2>/dev/null
8303   mkdir conftest
8304   cd conftest
8305   mkdir out
8306   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8307
8308   lt_compiler_flag="-o out/conftest2.$ac_objext"
8309   # Insert the option either (1) after the last *FLAGS variable, or
8310   # (2) before a word containing "conftest.", or (3) at the end.
8311   # Note that $ac_compile itself does not contain backslashes and begins
8312   # with a dollar sign (not a hyphen), so the echo should work correctly.
8313   lt_compile=`echo "$ac_compile" | $SED \
8314   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8315   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8316   -e 's:$: $lt_compiler_flag:'`
8317   (eval echo "\"\$as_me:8317: $lt_compile\"" >&5)
8318   (eval "$lt_compile" 2>out/conftest.err)
8319   ac_status=$?
8320   cat out/conftest.err >&5
8321   echo "$as_me:8321: \$? = $ac_status" >&5
8322   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8323   then
8324     # The compiler can only warn and ignore the option if not recognized
8325     # So say no if there are warnings
8326     $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8327     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8328     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8329       lt_cv_prog_compiler_c_o=yes
8330     fi
8331   fi
8332   chmod u+w . 2>&5
8333   $RM conftest*
8334   # SGI C++ compiler will create directory out/ii_files/ for
8335   # template instantiation
8336   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8337   $RM out/* && rmdir out
8338   cd ..
8339   $RM -r conftest
8340   $RM conftest*
8341
8342fi
8343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8344$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8345
8346
8347
8348
8349hard_links="nottested"
8350if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8351  # do not overwrite the value of need_locks provided by the user
8352  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8353$as_echo_n "checking if we can lock with hard links... " >&6; }
8354  hard_links=yes
8355  $RM conftest*
8356  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8357  touch conftest.a
8358  ln conftest.a conftest.b 2>&5 || hard_links=no
8359  ln conftest.a conftest.b 2>/dev/null && hard_links=no
8360  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8361$as_echo "$hard_links" >&6; }
8362  if test "$hard_links" = no; then
8363    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8364$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8365    need_locks=warn
8366  fi
8367else
8368  need_locks=no
8369fi
8370
8371
8372
8373
8374
8375
8376  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8377$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8378
8379  runpath_var=
8380  allow_undefined_flag=
8381  always_export_symbols=no
8382  archive_cmds=
8383  archive_expsym_cmds=
8384  compiler_needs_object=no
8385  enable_shared_with_static_runtimes=no
8386  export_dynamic_flag_spec=
8387  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8388  hardcode_automatic=no
8389  hardcode_direct=no
8390  hardcode_direct_absolute=no
8391  hardcode_libdir_flag_spec=
8392  hardcode_libdir_flag_spec_ld=
8393  hardcode_libdir_separator=
8394  hardcode_minus_L=no
8395  hardcode_shlibpath_var=unsupported
8396  inherit_rpath=no
8397  link_all_deplibs=unknown
8398  module_cmds=
8399  module_expsym_cmds=
8400  old_archive_from_new_cmds=
8401  old_archive_from_expsyms_cmds=
8402  thread_safe_flag_spec=
8403  whole_archive_flag_spec=
8404  # include_expsyms should be a list of space-separated symbols to be *always*
8405  # included in the symbol list
8406  include_expsyms=
8407  # exclude_expsyms can be an extended regexp of symbols to exclude
8408  # it will be wrapped by ` (' and `)$', so one must not match beginning or
8409  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8410  # as well as any symbol that contains `d'.
8411  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8412  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8413  # platforms (ab)use it in PIC code, but their linkers get confused if
8414  # the symbol is explicitly referenced.  Since portable code cannot
8415  # rely on this symbol name, it's probably fine to never include it in
8416  # preloaded symbol tables.
8417  # Exclude shared library initialization/finalization symbols.
8418  extract_expsyms_cmds=
8419
8420  case $host_os in
8421  cygwin* | mingw* | pw32* | cegcc*)
8422    # FIXME: the MSVC++ port hasn't been tested in a loooong time
8423    # When not using gcc, we currently assume that we are using
8424    # Microsoft Visual C++.
8425    if test "$GCC" != yes; then
8426      with_gnu_ld=no
8427    fi
8428    ;;
8429  interix*)
8430    # we just hope/assume this is gcc and not c89 (= MSVC++)
8431    with_gnu_ld=yes
8432    ;;
8433  openbsd*)
8434    with_gnu_ld=no
8435    ;;
8436  esac
8437
8438  ld_shlibs=yes
8439  if test "$with_gnu_ld" = yes; then
8440    # If archive_cmds runs LD, not CC, wlarc should be empty
8441    wlarc='${wl}'
8442
8443    # Set some defaults for GNU ld with shared library support. These
8444    # are reset later if shared libraries are not supported. Putting them
8445    # here allows them to be overridden if necessary.
8446    runpath_var=LD_RUN_PATH
8447    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8448    export_dynamic_flag_spec='${wl}--export-dynamic'
8449    # ancient GNU ld didn't support --whole-archive et. al.
8450    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8451      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8452    else
8453      whole_archive_flag_spec=
8454    fi
8455    supports_anon_versioning=no
8456    case `$LD -v 2>&1` in
8457      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8458      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8459      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8460      *\ 2.11.*) ;; # other 2.11 versions
8461      *) supports_anon_versioning=yes ;;
8462    esac
8463
8464    # See if GNU ld supports shared libraries.
8465    case $host_os in
8466    aix[3-9]*)
8467      # On AIX/PPC, the GNU linker is very broken
8468      if test "$host_cpu" != ia64; then
8469	ld_shlibs=no
8470	cat <<_LT_EOF 1>&2
8471
8472*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8473*** to be unable to reliably create shared libraries on AIX.
8474*** Therefore, libtool is disabling shared libraries support.  If you
8475*** really care for shared libraries, you may want to modify your PATH
8476*** so that a non-GNU linker is found, and then restart.
8477
8478_LT_EOF
8479      fi
8480      ;;
8481
8482    amigaos*)
8483      case $host_cpu in
8484      powerpc)
8485            # see comment about AmigaOS4 .so support
8486            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8487            archive_expsym_cmds=''
8488        ;;
8489      m68k)
8490            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)'
8491            hardcode_libdir_flag_spec='-L$libdir'
8492            hardcode_minus_L=yes
8493        ;;
8494      esac
8495      ;;
8496
8497    beos*)
8498      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8499	allow_undefined_flag=unsupported
8500	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8501	# support --undefined.  This deserves some investigation.  FIXME
8502	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8503      else
8504	ld_shlibs=no
8505      fi
8506      ;;
8507
8508    cygwin* | mingw* | pw32* | cegcc*)
8509      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8510      # as there is no search path for DLLs.
8511      hardcode_libdir_flag_spec='-L$libdir'
8512      allow_undefined_flag=unsupported
8513      always_export_symbols=no
8514      enable_shared_with_static_runtimes=yes
8515      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8516
8517      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8518        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8519	# If the export-symbols file already is a .def file (1st line
8520	# is EXPORTS), use it as is; otherwise, prepend...
8521	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8522	  cp $export_symbols $output_objdir/$soname.def;
8523	else
8524	  echo EXPORTS > $output_objdir/$soname.def;
8525	  cat $export_symbols >> $output_objdir/$soname.def;
8526	fi~
8527	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8528      else
8529	ld_shlibs=no
8530      fi
8531      ;;
8532
8533    interix[3-9]*)
8534      hardcode_direct=no
8535      hardcode_shlibpath_var=no
8536      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8537      export_dynamic_flag_spec='${wl}-E'
8538      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8539      # Instead, shared libraries are loaded at an image base (0x10000000 by
8540      # default) and relocated if they conflict, which is a slow very memory
8541      # consuming and fragmenting process.  To avoid this, we pick a random,
8542      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8543      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8544      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8545      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'
8546      ;;
8547
8548    gnu* | linux* | tpf* | k*bsd*-gnu)
8549      tmp_diet=no
8550      if test "$host_os" = linux-dietlibc; then
8551	case $cc_basename in
8552	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
8553	esac
8554      fi
8555      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8556	 && test "$tmp_diet" = no
8557      then
8558	tmp_addflag=
8559	tmp_sharedflag='-shared'
8560	case $cc_basename,$host_cpu in
8561        pgcc*)				# Portland Group C compiler
8562	  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'
8563	  tmp_addflag=' $pic_flag'
8564	  ;;
8565	pgf77* | pgf90* | pgf95*)	# Portland Group f77 and f90 compilers
8566	  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'
8567	  tmp_addflag=' $pic_flag -Mnomain' ;;
8568	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
8569	  tmp_addflag=' -i_dynamic' ;;
8570	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
8571	  tmp_addflag=' -i_dynamic -nofor_main' ;;
8572	ifc* | ifort*)			# Intel Fortran compiler
8573	  tmp_addflag=' -nofor_main' ;;
8574	lf95*)				# Lahey Fortran 8.1
8575	  whole_archive_flag_spec=
8576	  tmp_sharedflag='--shared' ;;
8577	xl[cC]*)			# IBM XL C 8.0 on PPC (deal with xlf below)
8578	  tmp_sharedflag='-qmkshrobj'
8579	  tmp_addflag= ;;
8580	esac
8581	case `$CC -V 2>&1 | sed 5q` in
8582	*Sun\ C*)			# Sun C 5.9
8583	  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'
8584	  compiler_needs_object=yes
8585	  tmp_sharedflag='-G' ;;
8586	*Sun\ F*)			# Sun Fortran 8.3
8587	  tmp_sharedflag='-G' ;;
8588	esac
8589	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8590
8591        if test "x$supports_anon_versioning" = xyes; then
8592          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8593	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8594	    echo "local: *; };" >> $output_objdir/$libname.ver~
8595	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8596        fi
8597
8598	case $cc_basename in
8599	xlf*)
8600	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8601	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8602	  hardcode_libdir_flag_spec=
8603	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
8604	  archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8605	  if test "x$supports_anon_versioning" = xyes; then
8606	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8607	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8608	      echo "local: *; };" >> $output_objdir/$libname.ver~
8609	      $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8610	  fi
8611	  ;;
8612	esac
8613      else
8614        ld_shlibs=no
8615      fi
8616      ;;
8617
8618    netbsd*)
8619      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8620	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8621	wlarc=
8622      else
8623	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8624	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8625      fi
8626      ;;
8627
8628    solaris*)
8629      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8630	ld_shlibs=no
8631	cat <<_LT_EOF 1>&2
8632
8633*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8634*** create shared libraries on Solaris systems.  Therefore, libtool
8635*** is disabling shared libraries support.  We urge you to upgrade GNU
8636*** binutils to release 2.9.1 or newer.  Another option is to modify
8637*** your PATH or compiler configuration so that the native linker is
8638*** used, and then restart.
8639
8640_LT_EOF
8641      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8642	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8643	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8644      else
8645	ld_shlibs=no
8646      fi
8647      ;;
8648
8649    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8650      case `$LD -v 2>&1` in
8651        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8652	ld_shlibs=no
8653	cat <<_LT_EOF 1>&2
8654
8655*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8656*** reliably create shared libraries on SCO systems.  Therefore, libtool
8657*** is disabling shared libraries support.  We urge you to upgrade GNU
8658*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8659*** your PATH or compiler configuration so that the native linker is
8660*** used, and then restart.
8661
8662_LT_EOF
8663	;;
8664	*)
8665	  # For security reasons, it is highly recommended that you always
8666	  # use absolute paths for naming shared libraries, and exclude the
8667	  # DT_RUNPATH tag from executables and libraries.  But doing so
8668	  # requires that you compile everything twice, which is a pain.
8669	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8670	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8671	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8673	  else
8674	    ld_shlibs=no
8675	  fi
8676	;;
8677      esac
8678      ;;
8679
8680    sunos4*)
8681      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8682      wlarc=
8683      hardcode_direct=yes
8684      hardcode_shlibpath_var=no
8685      ;;
8686
8687    *)
8688      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8689	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8691      else
8692	ld_shlibs=no
8693      fi
8694      ;;
8695    esac
8696
8697    if test "$ld_shlibs" = no; then
8698      runpath_var=
8699      hardcode_libdir_flag_spec=
8700      export_dynamic_flag_spec=
8701      whole_archive_flag_spec=
8702    fi
8703  else
8704    # PORTME fill in a description of your system's linker (not GNU ld)
8705    case $host_os in
8706    aix3*)
8707      allow_undefined_flag=unsupported
8708      always_export_symbols=yes
8709      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'
8710      # Note: this linker hardcodes the directories in LIBPATH if there
8711      # are no directories specified by -L.
8712      hardcode_minus_L=yes
8713      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8714	# Neither direct hardcoding nor static linking is supported with a
8715	# broken collect2.
8716	hardcode_direct=unsupported
8717      fi
8718      ;;
8719
8720    aix[4-9]*)
8721      if test "$host_cpu" = ia64; then
8722	# On IA64, the linker does run time linking by default, so we don't
8723	# have to do anything special.
8724	aix_use_runtimelinking=no
8725	exp_sym_flag='-Bexport'
8726	no_entry_flag=""
8727      else
8728	# If we're using GNU nm, then we don't want the "-C" option.
8729	# -C means demangle to AIX nm, but means don't demangle with GNU nm
8730	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8731	  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'
8732	else
8733	  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'
8734	fi
8735	aix_use_runtimelinking=no
8736
8737	# Test if we are trying to use run time linking or normal
8738	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8739	# need to do runtime linking.
8740	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8741	  for ld_flag in $LDFLAGS; do
8742	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8743	    aix_use_runtimelinking=yes
8744	    break
8745	  fi
8746	  done
8747	  ;;
8748	esac
8749
8750	exp_sym_flag='-bexport'
8751	no_entry_flag='-bnoentry'
8752      fi
8753
8754      # When large executables or shared objects are built, AIX ld can
8755      # have problems creating the table of contents.  If linking a library
8756      # or program results in "error TOC overflow" add -mminimal-toc to
8757      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8758      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8759
8760      archive_cmds=''
8761      hardcode_direct=yes
8762      hardcode_direct_absolute=yes
8763      hardcode_libdir_separator=':'
8764      link_all_deplibs=yes
8765      file_list_spec='${wl}-f,'
8766
8767      if test "$GCC" = yes; then
8768	case $host_os in aix4.[012]|aix4.[012].*)
8769	# We only want to do this on AIX 4.2 and lower, the check
8770	# below for broken collect2 doesn't work under 4.3+
8771	  collect2name=`${CC} -print-prog-name=collect2`
8772	  if test -f "$collect2name" &&
8773	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8774	  then
8775	  # We have reworked collect2
8776	  :
8777	  else
8778	  # We have old collect2
8779	  hardcode_direct=unsupported
8780	  # It fails to find uninstalled libraries when the uninstalled
8781	  # path is not listed in the libpath.  Setting hardcode_minus_L
8782	  # to unsupported forces relinking
8783	  hardcode_minus_L=yes
8784	  hardcode_libdir_flag_spec='-L$libdir'
8785	  hardcode_libdir_separator=
8786	  fi
8787	  ;;
8788	esac
8789	shared_flag='-shared'
8790	if test "$aix_use_runtimelinking" = yes; then
8791	  shared_flag="$shared_flag "'${wl}-G'
8792	fi
8793      else
8794	# not using gcc
8795	if test "$host_cpu" = ia64; then
8796	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8797	# chokes on -Wl,-G. The following line is correct:
8798	  shared_flag='-G'
8799	else
8800	  if test "$aix_use_runtimelinking" = yes; then
8801	    shared_flag='${wl}-G'
8802	  else
8803	    shared_flag='${wl}-bM:SRE'
8804	  fi
8805	fi
8806      fi
8807
8808      export_dynamic_flag_spec='${wl}-bexpall'
8809      # It seems that -bexpall does not export symbols beginning with
8810      # underscore (_), so it is better to generate a list of symbols to export.
8811      always_export_symbols=yes
8812      if test "$aix_use_runtimelinking" = yes; then
8813	# Warning - without using the other runtime loading flags (-brtl),
8814	# -berok will link without error, but may produce a broken library.
8815	allow_undefined_flag='-berok'
8816        # Determine the default libpath from the value encoded in an
8817        # empty executable.
8818        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8819/* end confdefs.h.  */
8820
8821int
8822main ()
8823{
8824
8825  ;
8826  return 0;
8827}
8828_ACEOF
8829if ac_fn_c_try_link "$LINENO"; then :
8830
8831lt_aix_libpath_sed='
8832    /Import File Strings/,/^$/ {
8833	/^0/ {
8834	    s/^0  *\(.*\)$/\1/
8835	    p
8836	}
8837    }'
8838aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8839# Check for a 64-bit object if we didn't find anything.
8840if test -z "$aix_libpath"; then
8841  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8842fi
8843fi
8844rm -f core conftest.err conftest.$ac_objext \
8845    conftest$ac_exeext conftest.$ac_ext
8846if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8847
8848        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8849        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"
8850      else
8851	if test "$host_cpu" = ia64; then
8852	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8853	  allow_undefined_flag="-z nodefs"
8854	  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"
8855	else
8856	 # Determine the default libpath from the value encoded in an
8857	 # empty executable.
8858	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8859/* end confdefs.h.  */
8860
8861int
8862main ()
8863{
8864
8865  ;
8866  return 0;
8867}
8868_ACEOF
8869if ac_fn_c_try_link "$LINENO"; then :
8870
8871lt_aix_libpath_sed='
8872    /Import File Strings/,/^$/ {
8873	/^0/ {
8874	    s/^0  *\(.*\)$/\1/
8875	    p
8876	}
8877    }'
8878aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8879# Check for a 64-bit object if we didn't find anything.
8880if test -z "$aix_libpath"; then
8881  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8882fi
8883fi
8884rm -f core conftest.err conftest.$ac_objext \
8885    conftest$ac_exeext conftest.$ac_ext
8886if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8887
8888	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8889	  # Warning - without using the other run time loading flags,
8890	  # -berok will link without error, but may produce a broken library.
8891	  no_undefined_flag=' ${wl}-bernotok'
8892	  allow_undefined_flag=' ${wl}-berok'
8893	  # Exported symbols can be pulled into shared objects from archives
8894	  whole_archive_flag_spec='$convenience'
8895	  archive_cmds_need_lc=yes
8896	  # This is similar to how AIX traditionally builds its shared libraries.
8897	  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'
8898	fi
8899      fi
8900      ;;
8901
8902    amigaos*)
8903      case $host_cpu in
8904      powerpc)
8905            # see comment about AmigaOS4 .so support
8906            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8907            archive_expsym_cmds=''
8908        ;;
8909      m68k)
8910            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)'
8911            hardcode_libdir_flag_spec='-L$libdir'
8912            hardcode_minus_L=yes
8913        ;;
8914      esac
8915      ;;
8916
8917    bsdi[45]*)
8918      export_dynamic_flag_spec=-rdynamic
8919      ;;
8920
8921    cygwin* | mingw* | pw32* | cegcc*)
8922      # When not using gcc, we currently assume that we are using
8923      # Microsoft Visual C++.
8924      # hardcode_libdir_flag_spec is actually meaningless, as there is
8925      # no search path for DLLs.
8926      hardcode_libdir_flag_spec=' '
8927      allow_undefined_flag=unsupported
8928      # Tell ltmain to make .lib files, not .a files.
8929      libext=lib
8930      # Tell ltmain to make .dll files, not .so files.
8931      shrext_cmds=".dll"
8932      # FIXME: Setting linknames here is a bad hack.
8933      archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8934      # The linker will automatically build a .lib file if we build a DLL.
8935      old_archive_from_new_cmds='true'
8936      # FIXME: Should let the user specify the lib program.
8937      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8938      fix_srcfile_path='`cygpath -w "$srcfile"`'
8939      enable_shared_with_static_runtimes=yes
8940      ;;
8941
8942    darwin* | rhapsody*)
8943
8944
8945  archive_cmds_need_lc=no
8946  hardcode_direct=no
8947  hardcode_automatic=yes
8948  hardcode_shlibpath_var=unsupported
8949  whole_archive_flag_spec=''
8950  link_all_deplibs=yes
8951  allow_undefined_flag="$_lt_dar_allow_undefined"
8952  case $cc_basename in
8953     ifort*) _lt_dar_can_shared=yes ;;
8954     *) _lt_dar_can_shared=$GCC ;;
8955  esac
8956  if test "$_lt_dar_can_shared" = "yes"; then
8957    output_verbose_link_cmd=echo
8958    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8959    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8960    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}"
8961    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}"
8962
8963  else
8964  ld_shlibs=no
8965  fi
8966
8967      ;;
8968
8969    dgux*)
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    freebsd1*)
8976      ld_shlibs=no
8977      ;;
8978
8979    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8980    # support.  Future versions do this automatically, but an explicit c++rt0.o
8981    # does not break anything, and helps significantly (at the cost of a little
8982    # extra space).
8983    freebsd2.2*)
8984      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8985      hardcode_libdir_flag_spec='-R$libdir'
8986      hardcode_direct=yes
8987      hardcode_shlibpath_var=no
8988      ;;
8989
8990    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8991    freebsd2*)
8992      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8993      hardcode_direct=yes
8994      hardcode_minus_L=yes
8995      hardcode_shlibpath_var=no
8996      ;;
8997
8998    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8999    freebsd* | dragonfly*)
9000      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9001      hardcode_libdir_flag_spec='-R$libdir'
9002      hardcode_direct=yes
9003      hardcode_shlibpath_var=no
9004      ;;
9005
9006    hpux9*)
9007      if test "$GCC" = yes; then
9008	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'
9009      else
9010	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'
9011      fi
9012      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9013      hardcode_libdir_separator=:
9014      hardcode_direct=yes
9015
9016      # hardcode_minus_L: Not really in the search PATH,
9017      # but as the default location of the library.
9018      hardcode_minus_L=yes
9019      export_dynamic_flag_spec='${wl}-E'
9020      ;;
9021
9022    hpux10*)
9023      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9024	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9025      else
9026	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9027      fi
9028      if test "$with_gnu_ld" = no; then
9029	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9030	hardcode_libdir_flag_spec_ld='+b $libdir'
9031	hardcode_libdir_separator=:
9032	hardcode_direct=yes
9033	hardcode_direct_absolute=yes
9034	export_dynamic_flag_spec='${wl}-E'
9035	# hardcode_minus_L: Not really in the search PATH,
9036	# but as the default location of the library.
9037	hardcode_minus_L=yes
9038      fi
9039      ;;
9040
9041    hpux11*)
9042      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9043	case $host_cpu in
9044	hppa*64*)
9045	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9046	  ;;
9047	ia64*)
9048	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9049	  ;;
9050	*)
9051	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9052	  ;;
9053	esac
9054      else
9055	case $host_cpu in
9056	hppa*64*)
9057	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9058	  ;;
9059	ia64*)
9060	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9061	  ;;
9062	*)
9063	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9064	  ;;
9065	esac
9066      fi
9067      if test "$with_gnu_ld" = no; then
9068	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9069	hardcode_libdir_separator=:
9070
9071	case $host_cpu in
9072	hppa*64*|ia64*)
9073	  hardcode_direct=no
9074	  hardcode_shlibpath_var=no
9075	  ;;
9076	*)
9077	  hardcode_direct=yes
9078	  hardcode_direct_absolute=yes
9079	  export_dynamic_flag_spec='${wl}-E'
9080
9081	  # hardcode_minus_L: Not really in the search PATH,
9082	  # but as the default location of the library.
9083	  hardcode_minus_L=yes
9084	  ;;
9085	esac
9086      fi
9087      ;;
9088
9089    irix5* | irix6* | nonstopux*)
9090      if test "$GCC" = yes; then
9091	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'
9092	# Try to use the -exported_symbol ld option, if it does not
9093	# work, assume that -exports_file does not work either and
9094	# implicitly export all symbols.
9095        save_LDFLAGS="$LDFLAGS"
9096        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9097        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9098/* end confdefs.h.  */
9099int foo(void) {}
9100_ACEOF
9101if ac_fn_c_try_link "$LINENO"; then :
9102  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'
9103
9104fi
9105rm -f core conftest.err conftest.$ac_objext \
9106    conftest$ac_exeext conftest.$ac_ext
9107        LDFLAGS="$save_LDFLAGS"
9108      else
9109	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'
9110	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'
9111      fi
9112      archive_cmds_need_lc='no'
9113      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9114      hardcode_libdir_separator=:
9115      inherit_rpath=yes
9116      link_all_deplibs=yes
9117      ;;
9118
9119    netbsd*)
9120      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9121	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9122      else
9123	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9124      fi
9125      hardcode_libdir_flag_spec='-R$libdir'
9126      hardcode_direct=yes
9127      hardcode_shlibpath_var=no
9128      ;;
9129
9130    newsos6)
9131      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9132      hardcode_direct=yes
9133      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9134      hardcode_libdir_separator=:
9135      hardcode_shlibpath_var=no
9136      ;;
9137
9138    *nto* | *qnx*)
9139      ;;
9140
9141    openbsd*)
9142      if test -f /usr/libexec/ld.so; then
9143	hardcode_direct=yes
9144	hardcode_shlibpath_var=no
9145	hardcode_direct_absolute=yes
9146	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9147	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9148	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9149	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9150	  export_dynamic_flag_spec='${wl}-E'
9151	else
9152	  case $host_os in
9153	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9154	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9155	     hardcode_libdir_flag_spec='-R$libdir'
9156	     ;;
9157	   *)
9158	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9159	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9160	     ;;
9161	  esac
9162	fi
9163      else
9164	ld_shlibs=no
9165      fi
9166      ;;
9167
9168    os2*)
9169      hardcode_libdir_flag_spec='-L$libdir'
9170      hardcode_minus_L=yes
9171      allow_undefined_flag=unsupported
9172      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'
9173      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9174      ;;
9175
9176    osf3*)
9177      if test "$GCC" = yes; then
9178	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9179	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'
9180      else
9181	allow_undefined_flag=' -expect_unresolved \*'
9182	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'
9183      fi
9184      archive_cmds_need_lc='no'
9185      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186      hardcode_libdir_separator=:
9187      ;;
9188
9189    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9190      if test "$GCC" = yes; then
9191	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9192	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'
9193	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9194      else
9195	allow_undefined_flag=' -expect_unresolved \*'
9196	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'
9197	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~
9198	$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'
9199
9200	# Both c and cxx compiler support -rpath directly
9201	hardcode_libdir_flag_spec='-rpath $libdir'
9202      fi
9203      archive_cmds_need_lc='no'
9204      hardcode_libdir_separator=:
9205      ;;
9206
9207    solaris*)
9208      no_undefined_flag=' -z defs'
9209      if test "$GCC" = yes; then
9210	wlarc='${wl}'
9211	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9212	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9213	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9214      else
9215	case `$CC -V 2>&1` in
9216	*"Compilers 5.0"*)
9217	  wlarc=''
9218	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9219	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9220	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9221	  ;;
9222	*)
9223	  wlarc='${wl}'
9224	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9225	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9226	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9227	  ;;
9228	esac
9229      fi
9230      hardcode_libdir_flag_spec='-R$libdir'
9231      hardcode_shlibpath_var=no
9232      case $host_os in
9233      solaris2.[0-5] | solaris2.[0-5].*) ;;
9234      *)
9235	# The compiler driver will combine and reorder linker options,
9236	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9237	# but is careful enough not to reorder.
9238	# Supported since Solaris 2.6 (maybe 2.5.1?)
9239	if test "$GCC" = yes; then
9240	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9241	else
9242	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9243	fi
9244	;;
9245      esac
9246      link_all_deplibs=yes
9247      ;;
9248
9249    sunos4*)
9250      if test "x$host_vendor" = xsequent; then
9251	# Use $CC to link under sequent, because it throws in some extra .o
9252	# files that make .init and .fini sections work.
9253	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9254      else
9255	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9256      fi
9257      hardcode_libdir_flag_spec='-L$libdir'
9258      hardcode_direct=yes
9259      hardcode_minus_L=yes
9260      hardcode_shlibpath_var=no
9261      ;;
9262
9263    sysv4)
9264      case $host_vendor in
9265	sni)
9266	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9267	  hardcode_direct=yes # is this really true???
9268	;;
9269	siemens)
9270	  ## LD is ld it makes a PLAMLIB
9271	  ## CC just makes a GrossModule.
9272	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9273	  reload_cmds='$CC -r -o $output$reload_objs'
9274	  hardcode_direct=no
9275        ;;
9276	motorola)
9277	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9278	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9279	;;
9280      esac
9281      runpath_var='LD_RUN_PATH'
9282      hardcode_shlibpath_var=no
9283      ;;
9284
9285    sysv4.3*)
9286      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9287      hardcode_shlibpath_var=no
9288      export_dynamic_flag_spec='-Bexport'
9289      ;;
9290
9291    sysv4*MP*)
9292      if test -d /usr/nec; then
9293	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9294	hardcode_shlibpath_var=no
9295	runpath_var=LD_RUN_PATH
9296	hardcode_runpath_var=yes
9297	ld_shlibs=yes
9298      fi
9299      ;;
9300
9301    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9302      no_undefined_flag='${wl}-z,text'
9303      archive_cmds_need_lc=no
9304      hardcode_shlibpath_var=no
9305      runpath_var='LD_RUN_PATH'
9306
9307      if test "$GCC" = yes; then
9308	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9309	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9310      else
9311	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9312	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9313      fi
9314      ;;
9315
9316    sysv5* | sco3.2v5* | sco5v6*)
9317      # Note: We can NOT use -z defs as we might desire, because we do not
9318      # link with -lc, and that would cause any symbols used from libc to
9319      # always be unresolved, which means just about no library would
9320      # ever link correctly.  If we're not using GNU ld we use -z text
9321      # though, which does catch some bad symbols but isn't as heavy-handed
9322      # as -z defs.
9323      no_undefined_flag='${wl}-z,text'
9324      allow_undefined_flag='${wl}-z,nodefs'
9325      archive_cmds_need_lc=no
9326      hardcode_shlibpath_var=no
9327      hardcode_libdir_flag_spec='${wl}-R,$libdir'
9328      hardcode_libdir_separator=':'
9329      link_all_deplibs=yes
9330      export_dynamic_flag_spec='${wl}-Bexport'
9331      runpath_var='LD_RUN_PATH'
9332
9333      if test "$GCC" = yes; then
9334	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9335	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9336      else
9337	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9338	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9339      fi
9340      ;;
9341
9342    uts4*)
9343      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9344      hardcode_libdir_flag_spec='-L$libdir'
9345      hardcode_shlibpath_var=no
9346      ;;
9347
9348    *)
9349      ld_shlibs=no
9350      ;;
9351    esac
9352
9353    if test x$host_vendor = xsni; then
9354      case $host in
9355      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9356	export_dynamic_flag_spec='${wl}-Blargedynsym'
9357	;;
9358      esac
9359    fi
9360  fi
9361
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9363$as_echo "$ld_shlibs" >&6; }
9364test "$ld_shlibs" = no && can_build_shared=no
9365
9366with_gnu_ld=$with_gnu_ld
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382#
9383# Do we need to explicitly link libc?
9384#
9385case "x$archive_cmds_need_lc" in
9386x|xyes)
9387  # Assume -lc should be added
9388  archive_cmds_need_lc=yes
9389
9390  if test "$enable_shared" = yes && test "$GCC" = yes; then
9391    case $archive_cmds in
9392    *'~'*)
9393      # FIXME: we may have to deal with multi-command sequences.
9394      ;;
9395    '$CC '*)
9396      # Test whether the compiler implicitly links with -lc since on some
9397      # systems, -lgcc has to come before -lc. If gcc already passes -lc
9398      # to ld, don't add -lc before -lgcc.
9399      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9400$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9401      $RM conftest*
9402      echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9403
9404      if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9405  (eval $ac_compile) 2>&5
9406  ac_status=$?
9407  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9408  test $ac_status = 0; } 2>conftest.err; then
9409        soname=conftest
9410        lib=conftest
9411        libobjs=conftest.$ac_objext
9412        deplibs=
9413        wl=$lt_prog_compiler_wl
9414	pic_flag=$lt_prog_compiler_pic
9415        compiler_flags=-v
9416        linker_flags=-v
9417        verstring=
9418        output_objdir=.
9419        libname=conftest
9420        lt_save_allow_undefined_flag=$allow_undefined_flag
9421        allow_undefined_flag=
9422        if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9423  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9424  ac_status=$?
9425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9426  test $ac_status = 0; }
9427        then
9428	  archive_cmds_need_lc=no
9429        else
9430	  archive_cmds_need_lc=yes
9431        fi
9432        allow_undefined_flag=$lt_save_allow_undefined_flag
9433      else
9434        cat conftest.err 1>&5
9435      fi
9436      $RM conftest*
9437      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9438$as_echo "$archive_cmds_need_lc" >&6; }
9439      ;;
9440    esac
9441  fi
9442  ;;
9443esac
9444
9445
9446
9447
9448
9449
9450
9451
9452
9453
9454
9455
9456
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472
9473
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540
9541
9542
9543
9544
9545
9546
9547
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597
9598
9599
9600
9601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9602$as_echo_n "checking dynamic linker characteristics... " >&6; }
9603
9604if test "$GCC" = yes; then
9605  case $host_os in
9606    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9607    *) lt_awk_arg="/^libraries:/" ;;
9608  esac
9609  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9610  if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9611    # if the path contains ";" then we assume it to be the separator
9612    # otherwise default to the standard path separator (i.e. ":") - it is
9613    # assumed that no part of a normal pathname contains ";" but that should
9614    # okay in the real world where ";" in dirpaths is itself problematic.
9615    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9616  else
9617    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9618  fi
9619  # Ok, now we have the path, separated by spaces, we can step through it
9620  # and add multilib dir if necessary.
9621  lt_tmp_lt_search_path_spec=
9622  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9623  for lt_sys_path in $lt_search_path_spec; do
9624    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9625      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9626    else
9627      test -d "$lt_sys_path" && \
9628	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9629    fi
9630  done
9631  lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9632BEGIN {RS=" "; FS="/|\n";} {
9633  lt_foo="";
9634  lt_count=0;
9635  for (lt_i = NF; lt_i > 0; lt_i--) {
9636    if ($lt_i != "" && $lt_i != ".") {
9637      if ($lt_i == "..") {
9638        lt_count++;
9639      } else {
9640        if (lt_count == 0) {
9641          lt_foo="/" $lt_i lt_foo;
9642        } else {
9643          lt_count--;
9644        }
9645      }
9646    }
9647  }
9648  if (lt_foo != "") { lt_freq[lt_foo]++; }
9649  if (lt_freq[lt_foo] == 1) { print lt_foo; }
9650}'`
9651  sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9652else
9653  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9654fi
9655library_names_spec=
9656libname_spec='lib$name'
9657soname_spec=
9658shrext_cmds=".so"
9659postinstall_cmds=
9660postuninstall_cmds=
9661finish_cmds=
9662finish_eval=
9663shlibpath_var=
9664shlibpath_overrides_runpath=unknown
9665version_type=none
9666dynamic_linker="$host_os ld.so"
9667sys_lib_dlsearch_path_spec="/lib /usr/lib"
9668need_lib_prefix=unknown
9669hardcode_into_libs=no
9670
9671# when you set need_version to no, make sure it does not cause -set_version
9672# flags to be left without arguments
9673need_version=unknown
9674
9675case $host_os in
9676aix3*)
9677  version_type=linux
9678  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9679  shlibpath_var=LIBPATH
9680
9681  # AIX 3 has no versioning support, so we append a major version to the name.
9682  soname_spec='${libname}${release}${shared_ext}$major'
9683  ;;
9684
9685aix[4-9]*)
9686  version_type=linux
9687  need_lib_prefix=no
9688  need_version=no
9689  hardcode_into_libs=yes
9690  if test "$host_cpu" = ia64; then
9691    # AIX 5 supports IA64
9692    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9693    shlibpath_var=LD_LIBRARY_PATH
9694  else
9695    # With GCC up to 2.95.x, collect2 would create an import file
9696    # for dependence libraries.  The import file would start with
9697    # the line `#! .'.  This would cause the generated library to
9698    # depend on `.', always an invalid library.  This was fixed in
9699    # development snapshots of GCC prior to 3.0.
9700    case $host_os in
9701      aix4 | aix4.[01] | aix4.[01].*)
9702      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9703	   echo ' yes '
9704	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9705	:
9706      else
9707	can_build_shared=no
9708      fi
9709      ;;
9710    esac
9711    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9712    # soname into executable. Probably we can add versioning support to
9713    # collect2, so additional links can be useful in future.
9714    if test "$aix_use_runtimelinking" = yes; then
9715      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9716      # instead of lib<name>.a to let people know that these are not
9717      # typical AIX shared libraries.
9718      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9719    else
9720      # We preserve .a as extension for shared libraries through AIX4.2
9721      # and later when we are not doing run time linking.
9722      library_names_spec='${libname}${release}.a $libname.a'
9723      soname_spec='${libname}${release}${shared_ext}$major'
9724    fi
9725    shlibpath_var=LIBPATH
9726  fi
9727  ;;
9728
9729amigaos*)
9730  case $host_cpu in
9731  powerpc)
9732    # Since July 2007 AmigaOS4 officially supports .so libraries.
9733    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9734    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9735    ;;
9736  m68k)
9737    library_names_spec='$libname.ixlibrary $libname.a'
9738    # Create ${libname}_ixlibrary.a entries in /sys/libs.
9739    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'
9740    ;;
9741  esac
9742  ;;
9743
9744beos*)
9745  library_names_spec='${libname}${shared_ext}'
9746  dynamic_linker="$host_os ld.so"
9747  shlibpath_var=LIBRARY_PATH
9748  ;;
9749
9750bsdi[45]*)
9751  version_type=linux
9752  need_version=no
9753  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9754  soname_spec='${libname}${release}${shared_ext}$major'
9755  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9756  shlibpath_var=LD_LIBRARY_PATH
9757  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9758  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9759  # the default ld.so.conf also contains /usr/contrib/lib and
9760  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9761  # libtool to hard-code these into programs
9762  ;;
9763
9764cygwin* | mingw* | pw32* | cegcc*)
9765  version_type=windows
9766  shrext_cmds=".dll"
9767  need_version=no
9768  need_lib_prefix=no
9769
9770  case $GCC,$host_os in
9771  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9772    library_names_spec='$libname.dll.a'
9773    # DLL is installed to $(libdir)/../bin by postinstall_cmds
9774    postinstall_cmds='base_file=`basename \${file}`~
9775      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9776      dldir=$destdir/`dirname \$dlpath`~
9777      test -d \$dldir || mkdir -p \$dldir~
9778      $install_prog $dir/$dlname \$dldir/$dlname~
9779      chmod a+x \$dldir/$dlname~
9780      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9781        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9782      fi'
9783    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9784      dlpath=$dir/\$dldll~
9785       $RM \$dlpath'
9786    shlibpath_overrides_runpath=yes
9787
9788    case $host_os in
9789    cygwin*)
9790      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9791      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9792      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9793      ;;
9794    mingw* | cegcc*)
9795      # MinGW DLLs use traditional 'lib' prefix
9796      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9797      sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9798      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9799        # It is most probably a Windows format PATH printed by
9800        # mingw gcc, but we are running on Cygwin. Gcc prints its search
9801        # path with ; separators, and with drive letters. We can handle the
9802        # drive letters (cygwin fileutils understands them), so leave them,
9803        # especially as we might pass files found there to a mingw objdump,
9804        # which wouldn't understand a cygwinified path. Ahh.
9805        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9806      else
9807        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9808      fi
9809      ;;
9810    pw32*)
9811      # pw32 DLLs use 'pw' prefix rather than 'lib'
9812      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9813      ;;
9814    esac
9815    ;;
9816
9817  *)
9818    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9819    ;;
9820  esac
9821  dynamic_linker='Win32 ld.exe'
9822  # FIXME: first we should search . and the directory the executable is in
9823  shlibpath_var=PATH
9824  ;;
9825
9826darwin* | rhapsody*)
9827  dynamic_linker="$host_os dyld"
9828  version_type=darwin
9829  need_lib_prefix=no
9830  need_version=no
9831  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9832  soname_spec='${libname}${release}${major}$shared_ext'
9833  shlibpath_overrides_runpath=yes
9834  shlibpath_var=DYLD_LIBRARY_PATH
9835  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9836
9837  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9838  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9839  ;;
9840
9841dgux*)
9842  version_type=linux
9843  need_lib_prefix=no
9844  need_version=no
9845  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9846  soname_spec='${libname}${release}${shared_ext}$major'
9847  shlibpath_var=LD_LIBRARY_PATH
9848  ;;
9849
9850freebsd1*)
9851  dynamic_linker=no
9852  ;;
9853
9854freebsd* | dragonfly*)
9855  # DragonFly does not have aout.  When/if they implement a new
9856  # versioning mechanism, adjust this.
9857  if test -x /usr/bin/objformat; then
9858    objformat=`/usr/bin/objformat`
9859  else
9860    case $host_os in
9861    freebsd[123]*) objformat=aout ;;
9862    *) objformat=elf ;;
9863    esac
9864  fi
9865  version_type=freebsd-$objformat
9866  case $version_type in
9867    freebsd-elf*)
9868      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9869      need_version=no
9870      need_lib_prefix=no
9871      ;;
9872    freebsd-*)
9873      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9874      need_version=yes
9875      ;;
9876  esac
9877  shlibpath_var=LD_LIBRARY_PATH
9878  case $host_os in
9879  freebsd2*)
9880    shlibpath_overrides_runpath=yes
9881    ;;
9882  freebsd3.[01]* | freebsdelf3.[01]*)
9883    shlibpath_overrides_runpath=yes
9884    hardcode_into_libs=yes
9885    ;;
9886  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9887  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9888    shlibpath_overrides_runpath=no
9889    hardcode_into_libs=yes
9890    ;;
9891  *) # from 4.6 on, and DragonFly
9892    shlibpath_overrides_runpath=yes
9893    hardcode_into_libs=yes
9894    ;;
9895  esac
9896  ;;
9897
9898gnu*)
9899  version_type=linux
9900  need_lib_prefix=no
9901  need_version=no
9902  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9903  soname_spec='${libname}${release}${shared_ext}$major'
9904  shlibpath_var=LD_LIBRARY_PATH
9905  hardcode_into_libs=yes
9906  ;;
9907
9908hpux9* | hpux10* | hpux11*)
9909  # Give a soname corresponding to the major version so that dld.sl refuses to
9910  # link against other versions.
9911  version_type=sunos
9912  need_lib_prefix=no
9913  need_version=no
9914  case $host_cpu in
9915  ia64*)
9916    shrext_cmds='.so'
9917    hardcode_into_libs=yes
9918    dynamic_linker="$host_os dld.so"
9919    shlibpath_var=LD_LIBRARY_PATH
9920    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9921    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922    soname_spec='${libname}${release}${shared_ext}$major'
9923    if test "X$HPUX_IA64_MODE" = X32; then
9924      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9925    else
9926      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9927    fi
9928    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9929    ;;
9930  hppa*64*)
9931    shrext_cmds='.sl'
9932    hardcode_into_libs=yes
9933    dynamic_linker="$host_os dld.sl"
9934    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9935    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9936    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9937    soname_spec='${libname}${release}${shared_ext}$major'
9938    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9939    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9940    ;;
9941  *)
9942    shrext_cmds='.sl'
9943    dynamic_linker="$host_os dld.sl"
9944    shlibpath_var=SHLIB_PATH
9945    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9946    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9947    soname_spec='${libname}${release}${shared_ext}$major'
9948    ;;
9949  esac
9950  # HP-UX runs *really* slowly unless shared libraries are mode 555.
9951  postinstall_cmds='chmod 555 $lib'
9952  ;;
9953
9954interix[3-9]*)
9955  version_type=linux
9956  need_lib_prefix=no
9957  need_version=no
9958  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9959  soname_spec='${libname}${release}${shared_ext}$major'
9960  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9961  shlibpath_var=LD_LIBRARY_PATH
9962  shlibpath_overrides_runpath=no
9963  hardcode_into_libs=yes
9964  ;;
9965
9966irix5* | irix6* | nonstopux*)
9967  case $host_os in
9968    nonstopux*) version_type=nonstopux ;;
9969    *)
9970	if test "$lt_cv_prog_gnu_ld" = yes; then
9971		version_type=linux
9972	else
9973		version_type=irix
9974	fi ;;
9975  esac
9976  need_lib_prefix=no
9977  need_version=no
9978  soname_spec='${libname}${release}${shared_ext}$major'
9979  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9980  case $host_os in
9981  irix5* | nonstopux*)
9982    libsuff= shlibsuff=
9983    ;;
9984  *)
9985    case $LD in # libtool.m4 will add one of these switches to LD
9986    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9987      libsuff= shlibsuff= libmagic=32-bit;;
9988    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9989      libsuff=32 shlibsuff=N32 libmagic=N32;;
9990    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9991      libsuff=64 shlibsuff=64 libmagic=64-bit;;
9992    *) libsuff= shlibsuff= libmagic=never-match;;
9993    esac
9994    ;;
9995  esac
9996  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9997  shlibpath_overrides_runpath=no
9998  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9999  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10000  hardcode_into_libs=yes
10001  ;;
10002
10003# No shared lib support for Linux oldld, aout, or coff.
10004linux*oldld* | linux*aout* | linux*coff*)
10005  dynamic_linker=no
10006  ;;
10007
10008# This must be Linux ELF.
10009linux* | k*bsd*-gnu)
10010  version_type=linux
10011  need_lib_prefix=no
10012  need_version=no
10013  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014  soname_spec='${libname}${release}${shared_ext}$major'
10015  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10016  shlibpath_var=LD_LIBRARY_PATH
10017  shlibpath_overrides_runpath=no
10018  # Some binutils ld are patched to set DT_RUNPATH
10019  save_LDFLAGS=$LDFLAGS
10020  save_libdir=$libdir
10021  eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10022       LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10023  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024/* end confdefs.h.  */
10025
10026int
10027main ()
10028{
10029
10030  ;
10031  return 0;
10032}
10033_ACEOF
10034if ac_fn_c_try_link "$LINENO"; then :
10035  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10036  shlibpath_overrides_runpath=yes
10037fi
10038fi
10039rm -f core conftest.err conftest.$ac_objext \
10040    conftest$ac_exeext conftest.$ac_ext
10041  LDFLAGS=$save_LDFLAGS
10042  libdir=$save_libdir
10043
10044  # This implies no fast_install, which is unacceptable.
10045  # Some rework will be needed to allow for fast_install
10046  # before this can be enabled.
10047  hardcode_into_libs=yes
10048
10049  # Add ABI-specific directories to the system library path.
10050  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10051
10052  # Append ld.so.conf contents to the search path
10053  if test -f /etc/ld.so.conf; then
10054    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' ' '`
10055    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10056  fi
10057
10058  # We used to test for /lib/ld.so.1 and disable shared libraries on
10059  # powerpc, because MkLinux only supported shared libraries with the
10060  # GNU dynamic linker.  Since this was broken with cross compilers,
10061  # most powerpc-linux boxes support dynamic linking these days and
10062  # people can always --disable-shared, the test was removed, and we
10063  # assume the GNU/Linux dynamic linker is in use.
10064  dynamic_linker='GNU/Linux ld.so'
10065  ;;
10066
10067netbsd*)
10068  version_type=sunos
10069  need_lib_prefix=no
10070  need_version=no
10071  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10072    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10073    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10074    dynamic_linker='NetBSD (a.out) ld.so'
10075  else
10076    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10077    soname_spec='${libname}${release}${shared_ext}$major'
10078    dynamic_linker='NetBSD ld.elf_so'
10079  fi
10080  shlibpath_var=LD_LIBRARY_PATH
10081  shlibpath_overrides_runpath=yes
10082  hardcode_into_libs=yes
10083  ;;
10084
10085newsos6)
10086  version_type=linux
10087  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10088  shlibpath_var=LD_LIBRARY_PATH
10089  shlibpath_overrides_runpath=yes
10090  ;;
10091
10092*nto* | *qnx*)
10093  version_type=qnx
10094  need_lib_prefix=no
10095  need_version=no
10096  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10097  soname_spec='${libname}${release}${shared_ext}$major'
10098  shlibpath_var=LD_LIBRARY_PATH
10099  shlibpath_overrides_runpath=no
10100  hardcode_into_libs=yes
10101  dynamic_linker='ldqnx.so'
10102  ;;
10103
10104openbsd*)
10105  version_type=sunos
10106  sys_lib_dlsearch_path_spec="/usr/lib"
10107  need_lib_prefix=no
10108  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10109  case $host_os in
10110    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10111    *)				need_version=no  ;;
10112  esac
10113  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10114  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10115  shlibpath_var=LD_LIBRARY_PATH
10116  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10117    case $host_os in
10118      openbsd2.[89] | openbsd2.[89].*)
10119	shlibpath_overrides_runpath=no
10120	;;
10121      *)
10122	shlibpath_overrides_runpath=yes
10123	;;
10124      esac
10125  else
10126    shlibpath_overrides_runpath=yes
10127  fi
10128  ;;
10129
10130os2*)
10131  libname_spec='$name'
10132  shrext_cmds=".dll"
10133  need_lib_prefix=no
10134  library_names_spec='$libname${shared_ext} $libname.a'
10135  dynamic_linker='OS/2 ld.exe'
10136  shlibpath_var=LIBPATH
10137  ;;
10138
10139osf3* | osf4* | osf5*)
10140  version_type=osf
10141  need_lib_prefix=no
10142  need_version=no
10143  soname_spec='${libname}${release}${shared_ext}$major'
10144  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10145  shlibpath_var=LD_LIBRARY_PATH
10146  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10147  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10148  ;;
10149
10150rdos*)
10151  dynamic_linker=no
10152  ;;
10153
10154solaris*)
10155  version_type=linux
10156  need_lib_prefix=no
10157  need_version=no
10158  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159  soname_spec='${libname}${release}${shared_ext}$major'
10160  shlibpath_var=LD_LIBRARY_PATH
10161  shlibpath_overrides_runpath=yes
10162  hardcode_into_libs=yes
10163  # ldd complains unless libraries are executable
10164  postinstall_cmds='chmod +x $lib'
10165  ;;
10166
10167sunos4*)
10168  version_type=sunos
10169  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10170  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10171  shlibpath_var=LD_LIBRARY_PATH
10172  shlibpath_overrides_runpath=yes
10173  if test "$with_gnu_ld" = yes; then
10174    need_lib_prefix=no
10175  fi
10176  need_version=yes
10177  ;;
10178
10179sysv4 | sysv4.3*)
10180  version_type=linux
10181  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182  soname_spec='${libname}${release}${shared_ext}$major'
10183  shlibpath_var=LD_LIBRARY_PATH
10184  case $host_vendor in
10185    sni)
10186      shlibpath_overrides_runpath=no
10187      need_lib_prefix=no
10188      runpath_var=LD_RUN_PATH
10189      ;;
10190    siemens)
10191      need_lib_prefix=no
10192      ;;
10193    motorola)
10194      need_lib_prefix=no
10195      need_version=no
10196      shlibpath_overrides_runpath=no
10197      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10198      ;;
10199  esac
10200  ;;
10201
10202sysv4*MP*)
10203  if test -d /usr/nec ;then
10204    version_type=linux
10205    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10206    soname_spec='$libname${shared_ext}.$major'
10207    shlibpath_var=LD_LIBRARY_PATH
10208  fi
10209  ;;
10210
10211sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10212  version_type=freebsd-elf
10213  need_lib_prefix=no
10214  need_version=no
10215  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10216  soname_spec='${libname}${release}${shared_ext}$major'
10217  shlibpath_var=LD_LIBRARY_PATH
10218  shlibpath_overrides_runpath=yes
10219  hardcode_into_libs=yes
10220  if test "$with_gnu_ld" = yes; then
10221    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10222  else
10223    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10224    case $host_os in
10225      sco3.2v5*)
10226        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10227	;;
10228    esac
10229  fi
10230  sys_lib_dlsearch_path_spec='/usr/lib'
10231  ;;
10232
10233tpf*)
10234  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
10235  version_type=linux
10236  need_lib_prefix=no
10237  need_version=no
10238  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10239  shlibpath_var=LD_LIBRARY_PATH
10240  shlibpath_overrides_runpath=no
10241  hardcode_into_libs=yes
10242  ;;
10243
10244uts4*)
10245  version_type=linux
10246  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10247  soname_spec='${libname}${release}${shared_ext}$major'
10248  shlibpath_var=LD_LIBRARY_PATH
10249  ;;
10250
10251*)
10252  dynamic_linker=no
10253  ;;
10254esac
10255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10256$as_echo "$dynamic_linker" >&6; }
10257test "$dynamic_linker" = no && can_build_shared=no
10258
10259variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10260if test "$GCC" = yes; then
10261  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10262fi
10263
10264if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10265  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10266fi
10267if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10268  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10269fi
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10358$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10359hardcode_action=
10360if test -n "$hardcode_libdir_flag_spec" ||
10361   test -n "$runpath_var" ||
10362   test "X$hardcode_automatic" = "Xyes" ; then
10363
10364  # We can hardcode non-existent directories.
10365  if test "$hardcode_direct" != no &&
10366     # If the only mechanism to avoid hardcoding is shlibpath_var, we
10367     # have to relink, otherwise we might link with an installed library
10368     # when we should be linking with a yet-to-be-installed one
10369     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10370     test "$hardcode_minus_L" != no; then
10371    # Linking always hardcodes the temporary library directory.
10372    hardcode_action=relink
10373  else
10374    # We can link without hardcoding, and we can hardcode nonexisting dirs.
10375    hardcode_action=immediate
10376  fi
10377else
10378  # We cannot hardcode anything, or else we can only hardcode existing
10379  # directories.
10380  hardcode_action=unsupported
10381fi
10382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10383$as_echo "$hardcode_action" >&6; }
10384
10385if test "$hardcode_action" = relink ||
10386   test "$inherit_rpath" = yes; then
10387  # Fast installation is not supported
10388  enable_fast_install=no
10389elif test "$shlibpath_overrides_runpath" = yes ||
10390     test "$enable_shared" = no; then
10391  # Fast installation is not necessary
10392  enable_fast_install=needless
10393fi
10394
10395
10396
10397
10398
10399
10400  if test "x$enable_dlopen" != xyes; then
10401  enable_dlopen=unknown
10402  enable_dlopen_self=unknown
10403  enable_dlopen_self_static=unknown
10404else
10405  lt_cv_dlopen=no
10406  lt_cv_dlopen_libs=
10407
10408  case $host_os in
10409  beos*)
10410    lt_cv_dlopen="load_add_on"
10411    lt_cv_dlopen_libs=
10412    lt_cv_dlopen_self=yes
10413    ;;
10414
10415  mingw* | pw32* | cegcc*)
10416    lt_cv_dlopen="LoadLibrary"
10417    lt_cv_dlopen_libs=
10418    ;;
10419
10420  cygwin*)
10421    lt_cv_dlopen="dlopen"
10422    lt_cv_dlopen_libs=
10423    ;;
10424
10425  darwin*)
10426  # if libdl is installed we need to link against it
10427    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10428$as_echo_n "checking for dlopen in -ldl... " >&6; }
10429if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10430  $as_echo_n "(cached) " >&6
10431else
10432  ac_check_lib_save_LIBS=$LIBS
10433LIBS="-ldl  $LIBS"
10434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435/* end confdefs.h.  */
10436
10437/* Override any GCC internal prototype to avoid an error.
10438   Use char because int might match the return type of a GCC
10439   builtin and then its argument prototype would still apply.  */
10440#ifdef __cplusplus
10441extern "C"
10442#endif
10443char dlopen ();
10444int
10445main ()
10446{
10447return dlopen ();
10448  ;
10449  return 0;
10450}
10451_ACEOF
10452if ac_fn_c_try_link "$LINENO"; then :
10453  ac_cv_lib_dl_dlopen=yes
10454else
10455  ac_cv_lib_dl_dlopen=no
10456fi
10457rm -f core conftest.err conftest.$ac_objext \
10458    conftest$ac_exeext conftest.$ac_ext
10459LIBS=$ac_check_lib_save_LIBS
10460fi
10461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10462$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10463if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10464  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10465else
10466
10467    lt_cv_dlopen="dyld"
10468    lt_cv_dlopen_libs=
10469    lt_cv_dlopen_self=yes
10470
10471fi
10472
10473    ;;
10474
10475  *)
10476    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10477if test "x$ac_cv_func_shl_load" = x""yes; then :
10478  lt_cv_dlopen="shl_load"
10479else
10480  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10481$as_echo_n "checking for shl_load in -ldld... " >&6; }
10482if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10483  $as_echo_n "(cached) " >&6
10484else
10485  ac_check_lib_save_LIBS=$LIBS
10486LIBS="-ldld  $LIBS"
10487cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488/* end confdefs.h.  */
10489
10490/* Override any GCC internal prototype to avoid an error.
10491   Use char because int might match the return type of a GCC
10492   builtin and then its argument prototype would still apply.  */
10493#ifdef __cplusplus
10494extern "C"
10495#endif
10496char shl_load ();
10497int
10498main ()
10499{
10500return shl_load ();
10501  ;
10502  return 0;
10503}
10504_ACEOF
10505if ac_fn_c_try_link "$LINENO"; then :
10506  ac_cv_lib_dld_shl_load=yes
10507else
10508  ac_cv_lib_dld_shl_load=no
10509fi
10510rm -f core conftest.err conftest.$ac_objext \
10511    conftest$ac_exeext conftest.$ac_ext
10512LIBS=$ac_check_lib_save_LIBS
10513fi
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10515$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10516if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10517  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10518else
10519  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10520if test "x$ac_cv_func_dlopen" = x""yes; then :
10521  lt_cv_dlopen="dlopen"
10522else
10523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10524$as_echo_n "checking for dlopen in -ldl... " >&6; }
10525if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10526  $as_echo_n "(cached) " >&6
10527else
10528  ac_check_lib_save_LIBS=$LIBS
10529LIBS="-ldl  $LIBS"
10530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10531/* end confdefs.h.  */
10532
10533/* Override any GCC internal prototype to avoid an error.
10534   Use char because int might match the return type of a GCC
10535   builtin and then its argument prototype would still apply.  */
10536#ifdef __cplusplus
10537extern "C"
10538#endif
10539char dlopen ();
10540int
10541main ()
10542{
10543return dlopen ();
10544  ;
10545  return 0;
10546}
10547_ACEOF
10548if ac_fn_c_try_link "$LINENO"; then :
10549  ac_cv_lib_dl_dlopen=yes
10550else
10551  ac_cv_lib_dl_dlopen=no
10552fi
10553rm -f core conftest.err conftest.$ac_objext \
10554    conftest$ac_exeext conftest.$ac_ext
10555LIBS=$ac_check_lib_save_LIBS
10556fi
10557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10558$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10559if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10560  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10561else
10562  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10563$as_echo_n "checking for dlopen in -lsvld... " >&6; }
10564if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10565  $as_echo_n "(cached) " >&6
10566else
10567  ac_check_lib_save_LIBS=$LIBS
10568LIBS="-lsvld  $LIBS"
10569cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570/* end confdefs.h.  */
10571
10572/* Override any GCC internal prototype to avoid an error.
10573   Use char because int might match the return type of a GCC
10574   builtin and then its argument prototype would still apply.  */
10575#ifdef __cplusplus
10576extern "C"
10577#endif
10578char dlopen ();
10579int
10580main ()
10581{
10582return dlopen ();
10583  ;
10584  return 0;
10585}
10586_ACEOF
10587if ac_fn_c_try_link "$LINENO"; then :
10588  ac_cv_lib_svld_dlopen=yes
10589else
10590  ac_cv_lib_svld_dlopen=no
10591fi
10592rm -f core conftest.err conftest.$ac_objext \
10593    conftest$ac_exeext conftest.$ac_ext
10594LIBS=$ac_check_lib_save_LIBS
10595fi
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10597$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10598if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10599  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10600else
10601  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10602$as_echo_n "checking for dld_link in -ldld... " >&6; }
10603if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10604  $as_echo_n "(cached) " >&6
10605else
10606  ac_check_lib_save_LIBS=$LIBS
10607LIBS="-ldld  $LIBS"
10608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10609/* end confdefs.h.  */
10610
10611/* Override any GCC internal prototype to avoid an error.
10612   Use char because int might match the return type of a GCC
10613   builtin and then its argument prototype would still apply.  */
10614#ifdef __cplusplus
10615extern "C"
10616#endif
10617char dld_link ();
10618int
10619main ()
10620{
10621return dld_link ();
10622  ;
10623  return 0;
10624}
10625_ACEOF
10626if ac_fn_c_try_link "$LINENO"; then :
10627  ac_cv_lib_dld_dld_link=yes
10628else
10629  ac_cv_lib_dld_dld_link=no
10630fi
10631rm -f core conftest.err conftest.$ac_objext \
10632    conftest$ac_exeext conftest.$ac_ext
10633LIBS=$ac_check_lib_save_LIBS
10634fi
10635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10636$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10637if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10638  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10639fi
10640
10641
10642fi
10643
10644
10645fi
10646
10647
10648fi
10649
10650
10651fi
10652
10653
10654fi
10655
10656    ;;
10657  esac
10658
10659  if test "x$lt_cv_dlopen" != xno; then
10660    enable_dlopen=yes
10661  else
10662    enable_dlopen=no
10663  fi
10664
10665  case $lt_cv_dlopen in
10666  dlopen)
10667    save_CPPFLAGS="$CPPFLAGS"
10668    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10669
10670    save_LDFLAGS="$LDFLAGS"
10671    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10672
10673    save_LIBS="$LIBS"
10674    LIBS="$lt_cv_dlopen_libs $LIBS"
10675
10676    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10677$as_echo_n "checking whether a program can dlopen itself... " >&6; }
10678if test "${lt_cv_dlopen_self+set}" = set; then :
10679  $as_echo_n "(cached) " >&6
10680else
10681  	  if test "$cross_compiling" = yes; then :
10682  lt_cv_dlopen_self=cross
10683else
10684  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10685  lt_status=$lt_dlunknown
10686  cat > conftest.$ac_ext <<_LT_EOF
10687#line 10687 "configure"
10688#include "confdefs.h"
10689
10690#if HAVE_DLFCN_H
10691#include <dlfcn.h>
10692#endif
10693
10694#include <stdio.h>
10695
10696#ifdef RTLD_GLOBAL
10697#  define LT_DLGLOBAL		RTLD_GLOBAL
10698#else
10699#  ifdef DL_GLOBAL
10700#    define LT_DLGLOBAL		DL_GLOBAL
10701#  else
10702#    define LT_DLGLOBAL		0
10703#  endif
10704#endif
10705
10706/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10707   find out it does not work in some platform. */
10708#ifndef LT_DLLAZY_OR_NOW
10709#  ifdef RTLD_LAZY
10710#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10711#  else
10712#    ifdef DL_LAZY
10713#      define LT_DLLAZY_OR_NOW		DL_LAZY
10714#    else
10715#      ifdef RTLD_NOW
10716#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10717#      else
10718#        ifdef DL_NOW
10719#          define LT_DLLAZY_OR_NOW	DL_NOW
10720#        else
10721#          define LT_DLLAZY_OR_NOW	0
10722#        endif
10723#      endif
10724#    endif
10725#  endif
10726#endif
10727
10728void fnord() { int i=42;}
10729int main ()
10730{
10731  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10732  int status = $lt_dlunknown;
10733
10734  if (self)
10735    {
10736      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10737      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10738      /* dlclose (self); */
10739    }
10740  else
10741    puts (dlerror ());
10742
10743  return status;
10744}
10745_LT_EOF
10746  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10747  (eval $ac_link) 2>&5
10748  ac_status=$?
10749  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10750  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10751    (./conftest; exit; ) >&5 2>/dev/null
10752    lt_status=$?
10753    case x$lt_status in
10754      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10755      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10756      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10757    esac
10758  else :
10759    # compilation failed
10760    lt_cv_dlopen_self=no
10761  fi
10762fi
10763rm -fr conftest*
10764
10765
10766fi
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10768$as_echo "$lt_cv_dlopen_self" >&6; }
10769
10770    if test "x$lt_cv_dlopen_self" = xyes; then
10771      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10772      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10773$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10774if test "${lt_cv_dlopen_self_static+set}" = set; then :
10775  $as_echo_n "(cached) " >&6
10776else
10777  	  if test "$cross_compiling" = yes; then :
10778  lt_cv_dlopen_self_static=cross
10779else
10780  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10781  lt_status=$lt_dlunknown
10782  cat > conftest.$ac_ext <<_LT_EOF
10783#line 10783 "configure"
10784#include "confdefs.h"
10785
10786#if HAVE_DLFCN_H
10787#include <dlfcn.h>
10788#endif
10789
10790#include <stdio.h>
10791
10792#ifdef RTLD_GLOBAL
10793#  define LT_DLGLOBAL		RTLD_GLOBAL
10794#else
10795#  ifdef DL_GLOBAL
10796#    define LT_DLGLOBAL		DL_GLOBAL
10797#  else
10798#    define LT_DLGLOBAL		0
10799#  endif
10800#endif
10801
10802/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10803   find out it does not work in some platform. */
10804#ifndef LT_DLLAZY_OR_NOW
10805#  ifdef RTLD_LAZY
10806#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
10807#  else
10808#    ifdef DL_LAZY
10809#      define LT_DLLAZY_OR_NOW		DL_LAZY
10810#    else
10811#      ifdef RTLD_NOW
10812#        define LT_DLLAZY_OR_NOW	RTLD_NOW
10813#      else
10814#        ifdef DL_NOW
10815#          define LT_DLLAZY_OR_NOW	DL_NOW
10816#        else
10817#          define LT_DLLAZY_OR_NOW	0
10818#        endif
10819#      endif
10820#    endif
10821#  endif
10822#endif
10823
10824void fnord() { int i=42;}
10825int main ()
10826{
10827  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10828  int status = $lt_dlunknown;
10829
10830  if (self)
10831    {
10832      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10833      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10834      /* dlclose (self); */
10835    }
10836  else
10837    puts (dlerror ());
10838
10839  return status;
10840}
10841_LT_EOF
10842  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10843  (eval $ac_link) 2>&5
10844  ac_status=$?
10845  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10846  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10847    (./conftest; exit; ) >&5 2>/dev/null
10848    lt_status=$?
10849    case x$lt_status in
10850      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10851      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10852      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10853    esac
10854  else :
10855    # compilation failed
10856    lt_cv_dlopen_self_static=no
10857  fi
10858fi
10859rm -fr conftest*
10860
10861
10862fi
10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10864$as_echo "$lt_cv_dlopen_self_static" >&6; }
10865    fi
10866
10867    CPPFLAGS="$save_CPPFLAGS"
10868    LDFLAGS="$save_LDFLAGS"
10869    LIBS="$save_LIBS"
10870    ;;
10871  esac
10872
10873  case $lt_cv_dlopen_self in
10874  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10875  *) enable_dlopen_self=unknown ;;
10876  esac
10877
10878  case $lt_cv_dlopen_self_static in
10879  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10880  *) enable_dlopen_self_static=unknown ;;
10881  esac
10882fi
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900striplib=
10901old_striplib=
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10903$as_echo_n "checking whether stripping libraries is possible... " >&6; }
10904if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
10905  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10906  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10907  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10908$as_echo "yes" >&6; }
10909else
10910# FIXME - insert some real tests, host_os isn't really good enough
10911  case $host_os in
10912  darwin*)
10913    if test -n "$STRIP" ; then
10914      striplib="$STRIP -x"
10915      old_striplib="$STRIP -S"
10916      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10917$as_echo "yes" >&6; }
10918    else
10919      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10920$as_echo "no" >&6; }
10921    fi
10922    ;;
10923  *)
10924    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10925$as_echo "no" >&6; }
10926    ;;
10927  esac
10928fi
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941  # Report which library types will actually be built
10942  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10943$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10944  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10945$as_echo "$can_build_shared" >&6; }
10946
10947  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10948$as_echo_n "checking whether to build shared libraries... " >&6; }
10949  test "$can_build_shared" = "no" && enable_shared=no
10950
10951  # On AIX, shared libraries and static libraries use the same namespace, and
10952  # are all built from PIC.
10953  case $host_os in
10954  aix3*)
10955    test "$enable_shared" = yes && enable_static=no
10956    if test -n "$RANLIB"; then
10957      archive_cmds="$archive_cmds~\$RANLIB \$lib"
10958      postinstall_cmds='$RANLIB $lib'
10959    fi
10960    ;;
10961
10962  aix[4-9]*)
10963    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10964      test "$enable_shared" = yes && enable_static=no
10965    fi
10966    ;;
10967  esac
10968  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10969$as_echo "$enable_shared" >&6; }
10970
10971  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10972$as_echo_n "checking whether to build static libraries... " >&6; }
10973  # Make sure either enable_shared or enable_static is yes.
10974  test "$enable_shared" = yes || enable_static=yes
10975  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10976$as_echo "$enable_static" >&6; }
10977
10978
10979
10980
10981fi
10982ac_ext=c
10983ac_cpp='$CPP $CPPFLAGS'
10984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10986ac_compiler_gnu=$ac_cv_c_compiler_gnu
10987
10988CC="$lt_save_CC"
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002        ac_config_commands="$ac_config_commands libtool"
11003
11004
11005
11006
11007# Only expand once:
11008
11009
11010
11011
11012################################################################################
11013# i18n
11014################################################################################
11015
11016
11017  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
11018$as_echo_n "checking whether NLS is requested... " >&6; }
11019    # Check whether --enable-nls was given.
11020if test "${enable_nls+set}" = set; then :
11021  enableval=$enable_nls; USE_NLS=$enableval
11022else
11023  USE_NLS=yes
11024fi
11025
11026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11027$as_echo "$USE_NLS" >&6; }
11028
11029
11030
11031
11032case "$am__api_version" in
11033    1.01234)
11034	as_fn_error "Automake 1.5 or newer is required to use intltool" "$LINENO" 5
11035    ;;
11036    *)
11037    ;;
11038esac
11039
11040if test -n "0.35.0"; then
11041    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intltool >= 0.35.0" >&5
11042$as_echo_n "checking for intltool >= 0.35.0... " >&6; }
11043
11044    INTLTOOL_REQUIRED_VERSION_AS_INT=`echo 0.35.0 | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
11045    INTLTOOL_APPLIED_VERSION=`intltool-update --version | head -1 | cut -d" " -f3`
11046    INTLTOOL_APPLIED_VERSION_AS_INT=`echo $INTLTOOL_APPLIED_VERSION | awk -F. '{ print $ 1 * 1000 + $ 2 * 100 + $ 3; }'`
11047
11048    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_APPLIED_VERSION found" >&5
11049$as_echo "$INTLTOOL_APPLIED_VERSION found" >&6; }
11050    test "$INTLTOOL_APPLIED_VERSION_AS_INT" -ge "$INTLTOOL_REQUIRED_VERSION_AS_INT" ||
11051	as_fn_error "Your intltool is too old.  You need intltool 0.35.0 or later." "$LINENO" 5
11052fi
11053
11054# Extract the first word of "intltool-update", so it can be a program name with args.
11055set dummy intltool-update; ac_word=$2
11056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057$as_echo_n "checking for $ac_word... " >&6; }
11058if test "${ac_cv_path_INTLTOOL_UPDATE+set}" = set; then :
11059  $as_echo_n "(cached) " >&6
11060else
11061  case $INTLTOOL_UPDATE in
11062  [\\/]* | ?:[\\/]*)
11063  ac_cv_path_INTLTOOL_UPDATE="$INTLTOOL_UPDATE" # Let the user override the test with a path.
11064  ;;
11065  *)
11066  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067for as_dir in $PATH
11068do
11069  IFS=$as_save_IFS
11070  test -z "$as_dir" && as_dir=.
11071    for ac_exec_ext in '' $ac_executable_extensions; do
11072  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11073    ac_cv_path_INTLTOOL_UPDATE="$as_dir/$ac_word$ac_exec_ext"
11074    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11075    break 2
11076  fi
11077done
11078  done
11079IFS=$as_save_IFS
11080
11081  ;;
11082esac
11083fi
11084INTLTOOL_UPDATE=$ac_cv_path_INTLTOOL_UPDATE
11085if test -n "$INTLTOOL_UPDATE"; then
11086  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_UPDATE" >&5
11087$as_echo "$INTLTOOL_UPDATE" >&6; }
11088else
11089  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11090$as_echo "no" >&6; }
11091fi
11092
11093
11094# Extract the first word of "intltool-merge", so it can be a program name with args.
11095set dummy intltool-merge; ac_word=$2
11096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11097$as_echo_n "checking for $ac_word... " >&6; }
11098if test "${ac_cv_path_INTLTOOL_MERGE+set}" = set; then :
11099  $as_echo_n "(cached) " >&6
11100else
11101  case $INTLTOOL_MERGE in
11102  [\\/]* | ?:[\\/]*)
11103  ac_cv_path_INTLTOOL_MERGE="$INTLTOOL_MERGE" # Let the user override the test with a path.
11104  ;;
11105  *)
11106  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11107for as_dir in $PATH
11108do
11109  IFS=$as_save_IFS
11110  test -z "$as_dir" && as_dir=.
11111    for ac_exec_ext in '' $ac_executable_extensions; do
11112  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11113    ac_cv_path_INTLTOOL_MERGE="$as_dir/$ac_word$ac_exec_ext"
11114    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11115    break 2
11116  fi
11117done
11118  done
11119IFS=$as_save_IFS
11120
11121  ;;
11122esac
11123fi
11124INTLTOOL_MERGE=$ac_cv_path_INTLTOOL_MERGE
11125if test -n "$INTLTOOL_MERGE"; then
11126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_MERGE" >&5
11127$as_echo "$INTLTOOL_MERGE" >&6; }
11128else
11129  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130$as_echo "no" >&6; }
11131fi
11132
11133
11134# Extract the first word of "intltool-extract", so it can be a program name with args.
11135set dummy intltool-extract; ac_word=$2
11136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11137$as_echo_n "checking for $ac_word... " >&6; }
11138if test "${ac_cv_path_INTLTOOL_EXTRACT+set}" = set; then :
11139  $as_echo_n "(cached) " >&6
11140else
11141  case $INTLTOOL_EXTRACT in
11142  [\\/]* | ?:[\\/]*)
11143  ac_cv_path_INTLTOOL_EXTRACT="$INTLTOOL_EXTRACT" # Let the user override the test with a path.
11144  ;;
11145  *)
11146  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11147for as_dir in $PATH
11148do
11149  IFS=$as_save_IFS
11150  test -z "$as_dir" && as_dir=.
11151    for ac_exec_ext in '' $ac_executable_extensions; do
11152  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11153    ac_cv_path_INTLTOOL_EXTRACT="$as_dir/$ac_word$ac_exec_ext"
11154    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11155    break 2
11156  fi
11157done
11158  done
11159IFS=$as_save_IFS
11160
11161  ;;
11162esac
11163fi
11164INTLTOOL_EXTRACT=$ac_cv_path_INTLTOOL_EXTRACT
11165if test -n "$INTLTOOL_EXTRACT"; then
11166  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_EXTRACT" >&5
11167$as_echo "$INTLTOOL_EXTRACT" >&6; }
11168else
11169  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11170$as_echo "no" >&6; }
11171fi
11172
11173
11174if test -z "$INTLTOOL_UPDATE" -o -z "$INTLTOOL_MERGE" -o -z "$INTLTOOL_EXTRACT"; then
11175    as_fn_error "The intltool scripts were not found. Please install intltool." "$LINENO" 5
11176fi
11177
11178  INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11179INTLTOOL_DIRECTORY_RULE='%.directory: %.directory.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11180     INTLTOOL_KEYS_RULE='%.keys:      %.keys.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -k -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11181     INTLTOOL_PROP_RULE='%.prop:      %.prop.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11182      INTLTOOL_OAF_RULE='%.oaf:       %.oaf.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -p $(top_srcdir)/po $< $@'
11183     INTLTOOL_PONG_RULE='%.pong:      %.pong.in      $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11184   INTLTOOL_SERVER_RULE='%.server:    %.server.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -o -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11185    INTLTOOL_SHEET_RULE='%.sheet:     %.sheet.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11186INTLTOOL_SOUNDLIST_RULE='%.soundlist: %.soundlist.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11187       INTLTOOL_UI_RULE='%.ui:        %.ui.in        $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11188      INTLTOOL_XML_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11189      INTLTOOL_XML_NOMERGE_RULE='%.xml:       %.xml.in       $(INTLTOOL_MERGE) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u /tmp $< $@'
11190      INTLTOOL_XAM_RULE='%.xam:       %.xml.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11191      INTLTOOL_KBD_RULE='%.kbd:       %.kbd.in       $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -m -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11192    INTLTOOL_CAVES_RULE='%.caves:     %.caves.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11193  INTLTOOL_SCHEMAS_RULE='%.schemas:   %.schemas.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -s -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11194    INTLTOOL_THEME_RULE='%.theme:     %.theme.in     $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11195    INTLTOOL_SERVICE_RULE='%.service: %.service.in   $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11196   INTLTOOL_POLICY_RULE='%.policy:    %.policy.in    $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -x -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@'
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294# Check the gettext tools to make sure they are GNU
11295# Extract the first word of "xgettext", so it can be a program name with args.
11296set dummy xgettext; ac_word=$2
11297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11298$as_echo_n "checking for $ac_word... " >&6; }
11299if test "${ac_cv_path_XGETTEXT+set}" = set; then :
11300  $as_echo_n "(cached) " >&6
11301else
11302  case $XGETTEXT in
11303  [\\/]* | ?:[\\/]*)
11304  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
11305  ;;
11306  *)
11307  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308for as_dir in $PATH
11309do
11310  IFS=$as_save_IFS
11311  test -z "$as_dir" && as_dir=.
11312    for ac_exec_ext in '' $ac_executable_extensions; do
11313  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11314    ac_cv_path_XGETTEXT="$as_dir/$ac_word$ac_exec_ext"
11315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11316    break 2
11317  fi
11318done
11319  done
11320IFS=$as_save_IFS
11321
11322  ;;
11323esac
11324fi
11325XGETTEXT=$ac_cv_path_XGETTEXT
11326if test -n "$XGETTEXT"; then
11327  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
11328$as_echo "$XGETTEXT" >&6; }
11329else
11330  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11331$as_echo "no" >&6; }
11332fi
11333
11334
11335# Extract the first word of "msgmerge", so it can be a program name with args.
11336set dummy msgmerge; ac_word=$2
11337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338$as_echo_n "checking for $ac_word... " >&6; }
11339if test "${ac_cv_path_MSGMERGE+set}" = set; then :
11340  $as_echo_n "(cached) " >&6
11341else
11342  case $MSGMERGE in
11343  [\\/]* | ?:[\\/]*)
11344  ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
11345  ;;
11346  *)
11347  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348for as_dir in $PATH
11349do
11350  IFS=$as_save_IFS
11351  test -z "$as_dir" && as_dir=.
11352    for ac_exec_ext in '' $ac_executable_extensions; do
11353  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11354    ac_cv_path_MSGMERGE="$as_dir/$ac_word$ac_exec_ext"
11355    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11356    break 2
11357  fi
11358done
11359  done
11360IFS=$as_save_IFS
11361
11362  ;;
11363esac
11364fi
11365MSGMERGE=$ac_cv_path_MSGMERGE
11366if test -n "$MSGMERGE"; then
11367  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
11368$as_echo "$MSGMERGE" >&6; }
11369else
11370  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11371$as_echo "no" >&6; }
11372fi
11373
11374
11375# Extract the first word of "msgfmt", so it can be a program name with args.
11376set dummy msgfmt; ac_word=$2
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11378$as_echo_n "checking for $ac_word... " >&6; }
11379if test "${ac_cv_path_MSGFMT+set}" = set; then :
11380  $as_echo_n "(cached) " >&6
11381else
11382  case $MSGFMT in
11383  [\\/]* | ?:[\\/]*)
11384  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11385  ;;
11386  *)
11387  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388for as_dir in $PATH
11389do
11390  IFS=$as_save_IFS
11391  test -z "$as_dir" && as_dir=.
11392    for ac_exec_ext in '' $ac_executable_extensions; do
11393  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11394    ac_cv_path_MSGFMT="$as_dir/$ac_word$ac_exec_ext"
11395    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11396    break 2
11397  fi
11398done
11399  done
11400IFS=$as_save_IFS
11401
11402  ;;
11403esac
11404fi
11405MSGFMT=$ac_cv_path_MSGFMT
11406if test -n "$MSGFMT"; then
11407  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
11408$as_echo "$MSGFMT" >&6; }
11409else
11410  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11411$as_echo "no" >&6; }
11412fi
11413
11414
11415# Extract the first word of "gmsgfmt", so it can be a program name with args.
11416set dummy gmsgfmt; ac_word=$2
11417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11418$as_echo_n "checking for $ac_word... " >&6; }
11419if test "${ac_cv_path_GMSGFMT+set}" = set; then :
11420  $as_echo_n "(cached) " >&6
11421else
11422  case $GMSGFMT in
11423  [\\/]* | ?:[\\/]*)
11424  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
11425  ;;
11426  *)
11427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428for as_dir in $PATH
11429do
11430  IFS=$as_save_IFS
11431  test -z "$as_dir" && as_dir=.
11432    for ac_exec_ext in '' $ac_executable_extensions; do
11433  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11434    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
11435    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436    break 2
11437  fi
11438done
11439  done
11440IFS=$as_save_IFS
11441
11442  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
11443  ;;
11444esac
11445fi
11446GMSGFMT=$ac_cv_path_GMSGFMT
11447if test -n "$GMSGFMT"; then
11448  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
11449$as_echo "$GMSGFMT" >&6; }
11450else
11451  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11452$as_echo "no" >&6; }
11453fi
11454
11455
11456if test -z "$XGETTEXT" -o -z "$MSGMERGE" -o -z "$MSGFMT"; then
11457    as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
11458fi
11459xgversion="`$XGETTEXT --version|grep '(GNU ' 2> /dev/null`"
11460mmversion="`$MSGMERGE --version|grep '(GNU ' 2> /dev/null`"
11461mfversion="`$MSGFMT --version|grep '(GNU ' 2> /dev/null`"
11462if test -z "$xgversion" -o -z "$mmversion" -o -z "$mfversion"; then
11463    as_fn_error "GNU gettext tools not found; required for intltool" "$LINENO" 5
11464fi
11465
11466# Extract the first word of "perl", so it can be a program name with args.
11467set dummy perl; ac_word=$2
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469$as_echo_n "checking for $ac_word... " >&6; }
11470if test "${ac_cv_path_INTLTOOL_PERL+set}" = set; then :
11471  $as_echo_n "(cached) " >&6
11472else
11473  case $INTLTOOL_PERL in
11474  [\\/]* | ?:[\\/]*)
11475  ac_cv_path_INTLTOOL_PERL="$INTLTOOL_PERL" # Let the user override the test with a path.
11476  ;;
11477  *)
11478  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11479for as_dir in $PATH
11480do
11481  IFS=$as_save_IFS
11482  test -z "$as_dir" && as_dir=.
11483    for ac_exec_ext in '' $ac_executable_extensions; do
11484  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11485    ac_cv_path_INTLTOOL_PERL="$as_dir/$ac_word$ac_exec_ext"
11486    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11487    break 2
11488  fi
11489done
11490  done
11491IFS=$as_save_IFS
11492
11493  ;;
11494esac
11495fi
11496INTLTOOL_PERL=$ac_cv_path_INTLTOOL_PERL
11497if test -n "$INTLTOOL_PERL"; then
11498  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLTOOL_PERL" >&5
11499$as_echo "$INTLTOOL_PERL" >&6; }
11500else
11501  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502$as_echo "no" >&6; }
11503fi
11504
11505
11506if test -z "$INTLTOOL_PERL"; then
11507   as_fn_error "perl not found" "$LINENO" 5
11508fi
11509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl >= 5.8.1" >&5
11510$as_echo_n "checking for perl >= 5.8.1... " >&6; }
11511$INTLTOOL_PERL -e "use 5.8.1;" > /dev/null 2>&1
11512if test $? -ne 0; then
11513   as_fn_error "perl 5.8.1 is required for intltool" "$LINENO" 5
11514else
11515   IT_PERL_VERSION="`$INTLTOOL_PERL -e \"printf '%vd', $^V\"`"
11516   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IT_PERL_VERSION" >&5
11517$as_echo "$IT_PERL_VERSION" >&6; }
11518fi
11519if test "x" != "xno-xml"; then
11520   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML::Parser" >&5
11521$as_echo_n "checking for XML::Parser... " >&6; }
11522   if `$INTLTOOL_PERL -e "require XML::Parser" 2>/dev/null`; then
11523       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11524$as_echo "ok" >&6; }
11525   else
11526       as_fn_error "XML::Parser perl module is required for intltool" "$LINENO" 5
11527   fi
11528fi
11529
11530# Substitute ALL_LINGUAS so we can use it in po/Makefile
11531
11532
11533# Set DATADIRNAME correctly if it is not set yet
11534# (copied from glib-gettext.m4)
11535if test -z "$DATADIRNAME"; then
11536  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11537/* end confdefs.h.  */
11538
11539int
11540main ()
11541{
11542extern int _nl_msg_cat_cntr;
11543                       return _nl_msg_cat_cntr
11544  ;
11545  return 0;
11546}
11547_ACEOF
11548if ac_fn_c_try_link "$LINENO"; then :
11549  DATADIRNAME=share
11550else
11551  case $host in
11552    *-*-solaris*)
11553                        ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11554if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
11555  DATADIRNAME=share
11556else
11557  DATADIRNAME=lib
11558fi
11559
11560    ;;
11561    *)
11562    DATADIRNAME=lib
11563    ;;
11564    esac
11565fi
11566rm -f core conftest.err conftest.$ac_objext \
11567    conftest$ac_exeext conftest.$ac_ext
11568fi
11569
11570
11571
11572
11573
11574
11575GETTEXT_PACKAGE=vte-$VTE_API_VERSION
11576
11577
11578cat >>confdefs.h <<_ACEOF
11579#define GETTEXT_PACKAGE "$GETTEXT_PACKAGE"
11580_ACEOF
11581
11582
11583   for ac_header in locale.h
11584do :
11585  ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
11586if test "x$ac_cv_header_locale_h" = x""yes; then :
11587  cat >>confdefs.h <<_ACEOF
11588#define HAVE_LOCALE_H 1
11589_ACEOF
11590
11591fi
11592
11593done
11594
11595    if test $ac_cv_header_locale_h = yes; then
11596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
11597$as_echo_n "checking for LC_MESSAGES... " >&6; }
11598if test "${am_cv_val_LC_MESSAGES+set}" = set; then :
11599  $as_echo_n "(cached) " >&6
11600else
11601  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11602/* end confdefs.h.  */
11603#include <locale.h>
11604int
11605main ()
11606{
11607return LC_MESSAGES
11608  ;
11609  return 0;
11610}
11611_ACEOF
11612if ac_fn_c_try_link "$LINENO"; then :
11613  am_cv_val_LC_MESSAGES=yes
11614else
11615  am_cv_val_LC_MESSAGES=no
11616fi
11617rm -f core conftest.err conftest.$ac_objext \
11618    conftest$ac_exeext conftest.$ac_ext
11619fi
11620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5
11621$as_echo "$am_cv_val_LC_MESSAGES" >&6; }
11622    if test $am_cv_val_LC_MESSAGES = yes; then
11623
11624$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
11625
11626    fi
11627  fi
11628     USE_NLS=yes
11629
11630
11631    gt_cv_have_gettext=no
11632
11633    CATOBJEXT=NONE
11634    XGETTEXT=:
11635    INTLLIBS=
11636
11637    ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
11638if test "x$ac_cv_header_libintl_h" = x""yes; then :
11639  gt_cv_func_dgettext_libintl="no"
11640      libintl_extra_libs=""
11641
11642      #
11643      # First check in libc
11644      #
11645      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in libc" >&5
11646$as_echo_n "checking for ngettext in libc... " >&6; }
11647if test "${gt_cv_func_ngettext_libc+set}" = set; then :
11648  $as_echo_n "(cached) " >&6
11649else
11650  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11651/* end confdefs.h.  */
11652
11653#include <libintl.h>
11654
11655int
11656main ()
11657{
11658return !ngettext ("","", 1)
11659  ;
11660  return 0;
11661}
11662_ACEOF
11663if ac_fn_c_try_link "$LINENO"; then :
11664  gt_cv_func_ngettext_libc=yes
11665else
11666  gt_cv_func_ngettext_libc=no
11667fi
11668rm -f core conftest.err conftest.$ac_objext \
11669    conftest$ac_exeext conftest.$ac_ext
11670
11671fi
11672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_ngettext_libc" >&5
11673$as_echo "$gt_cv_func_ngettext_libc" >&6; }
11674
11675      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11676	      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in libc" >&5
11677$as_echo_n "checking for dgettext in libc... " >&6; }
11678if test "${gt_cv_func_dgettext_libc+set}" = set; then :
11679  $as_echo_n "(cached) " >&6
11680else
11681  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11682/* end confdefs.h.  */
11683
11684#include <libintl.h>
11685
11686int
11687main ()
11688{
11689return !dgettext ("","")
11690  ;
11691  return 0;
11692}
11693_ACEOF
11694if ac_fn_c_try_link "$LINENO"; then :
11695  gt_cv_func_dgettext_libc=yes
11696else
11697  gt_cv_func_dgettext_libc=no
11698fi
11699rm -f core conftest.err conftest.$ac_objext \
11700    conftest$ac_exeext conftest.$ac_ext
11701
11702fi
11703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_dgettext_libc" >&5
11704$as_echo "$gt_cv_func_dgettext_libc" >&6; }
11705      fi
11706
11707      if test "$gt_cv_func_ngettext_libc" = "yes" ; then
11708        for ac_func in bind_textdomain_codeset
11709do :
11710  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11711if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
11712  cat >>confdefs.h <<_ACEOF
11713#define HAVE_BIND_TEXTDOMAIN_CODESET 1
11714_ACEOF
11715
11716fi
11717done
11718
11719      fi
11720
11721      #
11722      # If we don't have everything we want, check in libintl
11723      #
11724      if test "$gt_cv_func_dgettext_libc" != "yes" \
11725	 || test "$gt_cv_func_ngettext_libc" != "yes" \
11726         || test "$ac_cv_func_bind_textdomain_codeset" != "yes" ; then
11727
11728        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bindtextdomain in -lintl" >&5
11729$as_echo_n "checking for bindtextdomain in -lintl... " >&6; }
11730if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then :
11731  $as_echo_n "(cached) " >&6
11732else
11733  ac_check_lib_save_LIBS=$LIBS
11734LIBS="-lintl  $LIBS"
11735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736/* end confdefs.h.  */
11737
11738/* Override any GCC internal prototype to avoid an error.
11739   Use char because int might match the return type of a GCC
11740   builtin and then its argument prototype would still apply.  */
11741#ifdef __cplusplus
11742extern "C"
11743#endif
11744char bindtextdomain ();
11745int
11746main ()
11747{
11748return bindtextdomain ();
11749  ;
11750  return 0;
11751}
11752_ACEOF
11753if ac_fn_c_try_link "$LINENO"; then :
11754  ac_cv_lib_intl_bindtextdomain=yes
11755else
11756  ac_cv_lib_intl_bindtextdomain=no
11757fi
11758rm -f core conftest.err conftest.$ac_objext \
11759    conftest$ac_exeext conftest.$ac_ext
11760LIBS=$ac_check_lib_save_LIBS
11761fi
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_bindtextdomain" >&5
11763$as_echo "$ac_cv_lib_intl_bindtextdomain" >&6; }
11764if test "x$ac_cv_lib_intl_bindtextdomain" = x""yes; then :
11765  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
11766$as_echo_n "checking for ngettext in -lintl... " >&6; }
11767if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
11768  $as_echo_n "(cached) " >&6
11769else
11770  ac_check_lib_save_LIBS=$LIBS
11771LIBS="-lintl  $LIBS"
11772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11773/* end confdefs.h.  */
11774
11775/* Override any GCC internal prototype to avoid an error.
11776   Use char because int might match the return type of a GCC
11777   builtin and then its argument prototype would still apply.  */
11778#ifdef __cplusplus
11779extern "C"
11780#endif
11781char ngettext ();
11782int
11783main ()
11784{
11785return ngettext ();
11786  ;
11787  return 0;
11788}
11789_ACEOF
11790if ac_fn_c_try_link "$LINENO"; then :
11791  ac_cv_lib_intl_ngettext=yes
11792else
11793  ac_cv_lib_intl_ngettext=no
11794fi
11795rm -f core conftest.err conftest.$ac_objext \
11796    conftest$ac_exeext conftest.$ac_ext
11797LIBS=$ac_check_lib_save_LIBS
11798fi
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
11800$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11801if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
11802  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
11803$as_echo_n "checking for dgettext in -lintl... " >&6; }
11804if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
11805  $as_echo_n "(cached) " >&6
11806else
11807  ac_check_lib_save_LIBS=$LIBS
11808LIBS="-lintl  $LIBS"
11809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810/* end confdefs.h.  */
11811
11812/* Override any GCC internal prototype to avoid an error.
11813   Use char because int might match the return type of a GCC
11814   builtin and then its argument prototype would still apply.  */
11815#ifdef __cplusplus
11816extern "C"
11817#endif
11818char dgettext ();
11819int
11820main ()
11821{
11822return dgettext ();
11823  ;
11824  return 0;
11825}
11826_ACEOF
11827if ac_fn_c_try_link "$LINENO"; then :
11828  ac_cv_lib_intl_dgettext=yes
11829else
11830  ac_cv_lib_intl_dgettext=no
11831fi
11832rm -f core conftest.err conftest.$ac_objext \
11833    conftest$ac_exeext conftest.$ac_ext
11834LIBS=$ac_check_lib_save_LIBS
11835fi
11836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
11837$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
11838if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
11839  gt_cv_func_dgettext_libintl=yes
11840fi
11841
11842fi
11843
11844fi
11845
11846
11847	if test "$gt_cv_func_dgettext_libintl" != "yes" ; then
11848	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if -liconv is needed to use gettext" >&5
11849$as_echo_n "checking if -liconv is needed to use gettext... " >&6; }
11850	  { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11851$as_echo "" >&6; }
11852  	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngettext in -lintl" >&5
11853$as_echo_n "checking for ngettext in -lintl... " >&6; }
11854if test "${ac_cv_lib_intl_ngettext+set}" = set; then :
11855  $as_echo_n "(cached) " >&6
11856else
11857  ac_check_lib_save_LIBS=$LIBS
11858LIBS="-lintl -liconv $LIBS"
11859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860/* end confdefs.h.  */
11861
11862/* Override any GCC internal prototype to avoid an error.
11863   Use char because int might match the return type of a GCC
11864   builtin and then its argument prototype would still apply.  */
11865#ifdef __cplusplus
11866extern "C"
11867#endif
11868char ngettext ();
11869int
11870main ()
11871{
11872return ngettext ();
11873  ;
11874  return 0;
11875}
11876_ACEOF
11877if ac_fn_c_try_link "$LINENO"; then :
11878  ac_cv_lib_intl_ngettext=yes
11879else
11880  ac_cv_lib_intl_ngettext=no
11881fi
11882rm -f core conftest.err conftest.$ac_objext \
11883    conftest$ac_exeext conftest.$ac_ext
11884LIBS=$ac_check_lib_save_LIBS
11885fi
11886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_ngettext" >&5
11887$as_echo "$ac_cv_lib_intl_ngettext" >&6; }
11888if test "x$ac_cv_lib_intl_ngettext" = x""yes; then :
11889  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dcgettext in -lintl" >&5
11890$as_echo_n "checking for dcgettext in -lintl... " >&6; }
11891if test "${ac_cv_lib_intl_dcgettext+set}" = set; then :
11892  $as_echo_n "(cached) " >&6
11893else
11894  ac_check_lib_save_LIBS=$LIBS
11895LIBS="-lintl -liconv $LIBS"
11896cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11897/* end confdefs.h.  */
11898
11899/* Override any GCC internal prototype to avoid an error.
11900   Use char because int might match the return type of a GCC
11901   builtin and then its argument prototype would still apply.  */
11902#ifdef __cplusplus
11903extern "C"
11904#endif
11905char dcgettext ();
11906int
11907main ()
11908{
11909return dcgettext ();
11910  ;
11911  return 0;
11912}
11913_ACEOF
11914if ac_fn_c_try_link "$LINENO"; then :
11915  ac_cv_lib_intl_dcgettext=yes
11916else
11917  ac_cv_lib_intl_dcgettext=no
11918fi
11919rm -f core conftest.err conftest.$ac_objext \
11920    conftest$ac_exeext conftest.$ac_ext
11921LIBS=$ac_check_lib_save_LIBS
11922fi
11923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dcgettext" >&5
11924$as_echo "$ac_cv_lib_intl_dcgettext" >&6; }
11925if test "x$ac_cv_lib_intl_dcgettext" = x""yes; then :
11926  gt_cv_func_dgettext_libintl=yes
11927			libintl_extra_libs=-liconv
11928else
11929  :
11930fi
11931
11932else
11933  :
11934fi
11935
11936        fi
11937
11938        #
11939        # If we found libintl, then check in it for bind_textdomain_codeset();
11940        # we'll prefer libc if neither have bind_textdomain_codeset(),
11941        # and both have dgettext and ngettext
11942        #
11943        if test "$gt_cv_func_dgettext_libintl" = "yes" ; then
11944          glib_save_LIBS="$LIBS"
11945          LIBS="$LIBS -lintl $libintl_extra_libs"
11946          unset ac_cv_func_bind_textdomain_codeset
11947          for ac_func in bind_textdomain_codeset
11948do :
11949  ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
11950if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
11951  cat >>confdefs.h <<_ACEOF
11952#define HAVE_BIND_TEXTDOMAIN_CODESET 1
11953_ACEOF
11954
11955fi
11956done
11957
11958          LIBS="$glib_save_LIBS"
11959
11960          if test "$ac_cv_func_bind_textdomain_codeset" = "yes" ; then
11961            gt_cv_func_dgettext_libc=no
11962          else
11963            if test "$gt_cv_func_dgettext_libc" = "yes" \
11964		&& test "$gt_cv_func_ngettext_libc" = "yes"; then
11965              gt_cv_func_dgettext_libintl=no
11966            fi
11967          fi
11968        fi
11969      fi
11970
11971      if test "$gt_cv_func_dgettext_libc" = "yes" \
11972	|| test "$gt_cv_func_dgettext_libintl" = "yes"; then
11973        gt_cv_have_gettext=yes
11974      fi
11975
11976      if test "$gt_cv_func_dgettext_libintl" = "yes"; then
11977        INTLLIBS="-lintl $libintl_extra_libs"
11978      fi
11979
11980      if test "$gt_cv_have_gettext" = "yes"; then
11981
11982$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
11983
11984	# Extract the first word of "msgfmt", so it can be a program name with args.
11985set dummy msgfmt; ac_word=$2
11986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987$as_echo_n "checking for $ac_word... " >&6; }
11988if test "${ac_cv_path_MSGFMT+set}" = set; then :
11989  $as_echo_n "(cached) " >&6
11990else
11991  case "$MSGFMT" in
11992  /*)
11993  ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
11994  ;;
11995  *)
11996  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
11997  for ac_dir in $PATH; do
11998    test -z "$ac_dir" && ac_dir=.
11999    if test -f $ac_dir/$ac_word; then
12000      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then
12001	ac_cv_path_MSGFMT="$ac_dir/$ac_word"
12002	break
12003      fi
12004    fi
12005  done
12006  IFS="$ac_save_ifs"
12007  test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no"
12008  ;;
12009esac
12010fi
12011MSGFMT="$ac_cv_path_MSGFMT"
12012if test "$MSGFMT" != "no"; then
12013  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
12014$as_echo "$MSGFMT" >&6; }
12015else
12016  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017$as_echo "no" >&6; }
12018fi
12019	if test "$MSGFMT" != "no"; then
12020          glib_save_LIBS="$LIBS"
12021          LIBS="$LIBS $INTLLIBS"
12022	  for ac_func in dcgettext
12023do :
12024  ac_fn_c_check_func "$LINENO" "dcgettext" "ac_cv_func_dcgettext"
12025if test "x$ac_cv_func_dcgettext" = x""yes; then :
12026  cat >>confdefs.h <<_ACEOF
12027#define HAVE_DCGETTEXT 1
12028_ACEOF
12029
12030fi
12031done
12032
12033	  MSGFMT_OPTS=
12034	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if msgfmt accepts -c" >&5
12035$as_echo_n "checking if msgfmt accepts -c... " >&6; }
12036	  cat >conftest.foo <<_ACEOF
12037
12038msgid ""
12039msgstr ""
12040"Content-Type: text/plain; charset=UTF-8\n"
12041"Project-Id-Version: test 1.0\n"
12042"PO-Revision-Date: 2007-02-15 12:01+0100\n"
12043"Last-Translator: test <foo@bar.xx>\n"
12044"Language-Team: C <LL@li.org>\n"
12045"MIME-Version: 1.0\n"
12046"Content-Transfer-Encoding: 8bit\n"
12047
12048_ACEOF
12049if { { $as_echo "$as_me:${as_lineno-$LINENO}: \$MSGFMT -c -o /dev/null conftest.foo"; } >&5
12050  ($MSGFMT -c -o /dev/null conftest.foo) 2>&5
12051  ac_status=$?
12052  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12053  test $ac_status = 0; }; then
12054  MSGFMT_OPTS=-c; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12055$as_echo "yes" >&6; }
12056else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12057$as_echo "no" >&6; }
12058echo "$as_me: failed input was:" >&5
12059sed 's/^/| /' conftest.foo >&5
12060fi
12061
12062	  # Extract the first word of "gmsgfmt", so it can be a program name with args.
12063set dummy gmsgfmt; ac_word=$2
12064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12065$as_echo_n "checking for $ac_word... " >&6; }
12066if test "${ac_cv_path_GMSGFMT+set}" = set; then :
12067  $as_echo_n "(cached) " >&6
12068else
12069  case $GMSGFMT in
12070  [\\/]* | ?:[\\/]*)
12071  ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
12072  ;;
12073  *)
12074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12075for as_dir in $PATH
12076do
12077  IFS=$as_save_IFS
12078  test -z "$as_dir" && as_dir=.
12079    for ac_exec_ext in '' $ac_executable_extensions; do
12080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12081    ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
12082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12083    break 2
12084  fi
12085done
12086  done
12087IFS=$as_save_IFS
12088
12089  test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
12090  ;;
12091esac
12092fi
12093GMSGFMT=$ac_cv_path_GMSGFMT
12094if test -n "$GMSGFMT"; then
12095  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
12096$as_echo "$GMSGFMT" >&6; }
12097else
12098  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099$as_echo "no" >&6; }
12100fi
12101
12102
12103	  # Extract the first word of "xgettext", so it can be a program name with args.
12104set dummy xgettext; ac_word=$2
12105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12106$as_echo_n "checking for $ac_word... " >&6; }
12107if test "${ac_cv_path_XGETTEXT+set}" = set; then :
12108  $as_echo_n "(cached) " >&6
12109else
12110  case "$XGETTEXT" in
12111  /*)
12112  ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
12113  ;;
12114  *)
12115  IFS="${IFS= 	}"; ac_save_ifs="$IFS"; IFS="${IFS}:"
12116  for ac_dir in $PATH; do
12117    test -z "$ac_dir" && ac_dir=.
12118    if test -f $ac_dir/$ac_word; then
12119      if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then
12120	ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
12121	break
12122      fi
12123    fi
12124  done
12125  IFS="$ac_save_ifs"
12126  test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
12127  ;;
12128esac
12129fi
12130XGETTEXT="$ac_cv_path_XGETTEXT"
12131if test "$XGETTEXT" != ":"; then
12132  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
12133$as_echo "$XGETTEXT" >&6; }
12134else
12135  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12136$as_echo "no" >&6; }
12137fi
12138
12139	  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12140/* end confdefs.h.  */
12141
12142int
12143main ()
12144{
12145extern int _nl_msg_cat_cntr;
12146			 return _nl_msg_cat_cntr
12147  ;
12148  return 0;
12149}
12150_ACEOF
12151if ac_fn_c_try_link "$LINENO"; then :
12152  CATOBJEXT=.gmo
12153             DATADIRNAME=share
12154else
12155  case $host in
12156	    *-*-solaris*)
12157	    	                	    	                ac_fn_c_check_func "$LINENO" "bind_textdomain_codeset" "ac_cv_func_bind_textdomain_codeset"
12158if test "x$ac_cv_func_bind_textdomain_codeset" = x""yes; then :
12159  CATOBJEXT=.gmo
12160               DATADIRNAME=share
12161else
12162  CATOBJEXT=.mo
12163               DATADIRNAME=lib
12164fi
12165
12166	    ;;
12167	    *)
12168	    CATOBJEXT=.mo
12169            DATADIRNAME=lib
12170	    ;;
12171	    esac
12172fi
12173rm -f core conftest.err conftest.$ac_objext \
12174    conftest$ac_exeext conftest.$ac_ext
12175          LIBS="$glib_save_LIBS"
12176	  INSTOBJEXT=.mo
12177	else
12178	  gt_cv_have_gettext=no
12179	fi
12180      fi
12181
12182fi
12183
12184
12185
12186    if test "$gt_cv_have_gettext" = "yes" ; then
12187
12188$as_echo "#define ENABLE_NLS 1" >>confdefs.h
12189
12190    fi
12191
12192        if test "$XGETTEXT" != ":"; then
12193                  if $XGETTEXT --omit-header /dev/null 2> /dev/null; then
12194        : ;
12195      else
12196        { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5
12197$as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; }
12198        XGETTEXT=":"
12199      fi
12200    fi
12201
12202    # We need to process the po/ directory.
12203    POSUB=po
12204
12205    ac_config_commands="$ac_config_commands default-1"
12206
12207
12208                for lang in $ALL_LINGUAS; do
12209      GMOFILES="$GMOFILES $lang.gmo"
12210      POFILES="$POFILES $lang.po"
12211    done
12212
12213
12214
12215
12216
12217
12218
12219
12220
12221
12222
12223
12224
12225   if test "$gt_cv_have_gettext" = "yes"; then
12226     if test "x$ALL_LINGUAS" = "x"; then
12227       LINGUAS=
12228     else
12229       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5
12230$as_echo_n "checking for catalogs to be installed... " >&6; }
12231       NEW_LINGUAS=
12232       for presentlang in $ALL_LINGUAS; do
12233         useit=no
12234         if test "%UNSET%" != "${LINGUAS-%UNSET%}"; then
12235           desiredlanguages="$LINGUAS"
12236         else
12237           desiredlanguages="$ALL_LINGUAS"
12238         fi
12239         for desiredlang in $desiredlanguages; do
12240 	   # Use the presentlang catalog if desiredlang is
12241           #   a. equal to presentlang, or
12242           #   b. a variant of presentlang (because in this case,
12243           #      presentlang can be used as a fallback for messages
12244           #      which are not translated in the desiredlang catalog).
12245           case "$desiredlang" in
12246             "$presentlang"*) useit=yes;;
12247           esac
12248         done
12249         if test $useit = yes; then
12250           NEW_LINGUAS="$NEW_LINGUAS $presentlang"
12251         fi
12252       done
12253       LINGUAS=$NEW_LINGUAS
12254       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5
12255$as_echo "$LINGUAS" >&6; }
12256     fi
12257
12258          if test -n "$LINGUAS"; then
12259       for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
12260     fi
12261   fi
12262
12263            MKINSTALLDIRS=
12264   if test -n "$ac_aux_dir"; then
12265     MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
12266   fi
12267   if test -z "$MKINSTALLDIRS"; then
12268     MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
12269   fi
12270
12271
12272         test -d po || mkdir po
12273   if test "x$srcdir" != "x."; then
12274     if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then
12275       posrcprefix="$srcdir/"
12276     else
12277       posrcprefix="../$srcdir/"
12278     fi
12279   else
12280     posrcprefix="../"
12281   fi
12282   rm -f po/POTFILES
12283   sed -e "/^#/d" -e "/^\$/d" -e "s,.*,	$posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \
12284	< $srcdir/po/POTFILES.in > po/POTFILES
12285
12286ac_fn_c_check_decl "$LINENO" "bind_textdomain_codeset" "ac_cv_have_decl_bind_textdomain_codeset" "#include \"libintl.h\"
12287"
12288if test "x$ac_cv_have_decl_bind_textdomain_codeset" = x""yes; then :
12289  ac_have_decl=1
12290else
12291  ac_have_decl=0
12292fi
12293
12294cat >>confdefs.h <<_ACEOF
12295#define HAVE_DECL_BIND_TEXTDOMAIN_CODESET $ac_have_decl
12296_ACEOF
12297
12298
12299
12300################################################################################
12301# Platform checks
12302################################################################################
12303
12304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a win32 platform" >&5
12305$as_echo_n "checking for a win32 platform... " >&6; }
12306platform_win32=no
12307case "$host" in
12308	*-*-mingw*|*-*-cygwin*)
12309		platform_win32=yes
12310		;;
12311esac
12312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $platform_win32" >&5
12313$as_echo "$platform_win32" >&6; }
12314 if test "$platform_win32" = "yes"; then
12315  PLATFORM_WIN32_TRUE=
12316  PLATFORM_WIN32_FALSE='#'
12317else
12318  PLATFORM_WIN32_TRUE='#'
12319  PLATFORM_WIN32_FALSE=
12320fi
12321
12322
12323os_win32=no
12324if test "x$platform_win32" = "xyes"; then
12325	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native win32" >&5
12326$as_echo_n "checking for native win32... " >&6; }
12327	case "$host" in
12328		*-*-mingw*)
12329			os_win32=yes
12330			;;
12331	esac
12332	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_win32" >&5
12333$as_echo "$os_win32" >&6; }
12334fi
12335 if test "x$os_win32" = "xyes"; then
12336  OS_WIN32_TRUE=
12337  OS_WIN32_FALSE='#'
12338else
12339  OS_WIN32_TRUE='#'
12340  OS_WIN32_FALSE=
12341fi
12342
12343
12344
12345if test "x$platform_win32" != "xyes"; then
12346	LIBTOOL_EXPORT_OPTIONS=
12347else
12348	LIBTOOL_EXPORT_OPTIONS='-no-undefined'
12349fi
12350
12351LIBTOOL_FLAGS='-as-needed'
12352
12353
12354
12355################################################################################
12356# Compilation
12357################################################################################
12358
12359
12360
12361
12362
12363
12364MAYBE_WARN="-Wall -Wextra \
12365-Wsign-compare -Werror-implicit-function-declaration \
12366-Wpointer-arith -Wwrite-strings -Wstrict-prototypes \
12367-Waggregate-return -Wcast-align -Wimplicit -Wuninitialised \
12368-Wmissing-prototypes -Wmissing-declarations -Wnested-externs \
12369-Wpacked -Wmissing-format-attribute -Wshadow \
12370-Wstrict-aliasing=2 -Winit-self -Wunsafe-loop-optimizations \
12371-Wdeclaration-after-statement -Wold-style-definition \
12372-Wno-missing-field-initializers -Wno-unused-parameter \
12373-fno-common -Wno-switch-enum"
12374
12375# invalidate cached value if MAYBE_WARN has changed
12376if test "x$vte_cv_warn_maybe" != "x$MAYBE_WARN"; then
12377	unset vte_cv_warn_cflags
12378fi
12379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for supported warning flags" >&5
12380$as_echo_n "checking for supported warning flags... " >&6; }
12381if test "${vte_cv_warn_cflags+set}" = set; then :
12382  $as_echo_n "(cached) " >&6
12383else
12384
12385	echo
12386	WARN_CFLAGS=""
12387
12388	# Some warning options are not supported by all versions of
12389	# gcc, so test all desired options against the current
12390	# compiler.
12391	#
12392	# Note that there are some order dependencies
12393	# here. Specifically, an option that disables a warning will
12394	# have no net effect if a later option then enables that
12395	# warnings, (perhaps implicitly). So we put some grouped
12396	# options (-Wall and -Wextra) up front and the -Wno options
12397	# last.
12398
12399	for W in $MAYBE_WARN; do
12400
12401  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $W" >&5
12402$as_echo_n "checking whether $CC supports $W... " >&6; }
12403
12404  vte_save_CFLAGS="$CFLAGS"
12405  CFLAGS="$CFLAGS $W"
12406
12407  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12408/* end confdefs.h.  */
12409
12410_ACEOF
12411if ac_fn_c_try_compile "$LINENO"; then :
12412  vte_cc_flag=yes
12413else
12414  vte_cc_flag=no
12415fi
12416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12417  CFLAGS="$vte_save_CFLAGS"
12418
12419  if test "x$vte_cc_flag" = "xyes"; then
12420    WARN_CFLAGS="$WARN_CFLAGS $W"
12421  else
12422    :
12423  fi
12424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vte_cc_flag" >&5
12425$as_echo "$vte_cc_flag" >&6; }
12426
12427	done
12428
12429	vte_cv_warn_cflags=$WARN_CFLAGS
12430	vte_cv_warn_maybe=$MAYBE_WARN
12431
12432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which warning flags were supported" >&5
12433$as_echo_n "checking which warning flags were supported... " >&6; }
12434fi
12435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vte_cv_warn_cflags" >&5
12436$as_echo "$vte_cv_warn_cflags" >&6; }
12437WARN_CFLAGS=$vte_cv_warn_cflags
12438
12439CFLAGS="$CFLAGS $WARN_CFLAGS"
12440
12441PYTHON_LDFLAGS=""
12442for W in "-Wl,--warn-unresolved-symbols"; do
12443
12444  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $W when linking" >&5
12445$as_echo_n "checking whether $CC supports $W when linking... " >&6; }
12446
12447  vte_save_LDFLAGS="$LDFLAGS"
12448  LDFLAGS="$LDFLAGS $W"
12449
12450  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451/* end confdefs.h.  */
12452int main(void) {return 0;}
12453_ACEOF
12454if ac_fn_c_try_link "$LINENO"; then :
12455  vte_ld_flag=yes
12456else
12457  vte_ld_flag=no
12458fi
12459rm -f core conftest.err conftest.$ac_objext \
12460    conftest$ac_exeext conftest.$ac_ext
12461  LDFLAGS="$vte_save_LDFLAGS"
12462
12463  if test "x$vte_ld_flag" = "xyes"; then
12464    PYTHON_LDFLAGS="$PYTHON_LDFLAGS $W"
12465  else
12466    :
12467  fi
12468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vte_ld_flag" >&5
12469$as_echo "$vte_ld_flag" >&6; }
12470
12471done
12472
12473
12474# Enable debugging messages and additional run-time checks.
12475# Check whether --enable-debug was given.
12476if test "${enable_debug+set}" = set; then :
12477  enableval=$enable_debug; DEBUG=$enableval
12478else
12479  DEBUG=no
12480fi
12481
12482if test "x$DEBUG" != "xno" ; then
12483	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling debug checks and messages" >&5
12484$as_echo "enabling debug checks and messages" >&6; }
12485
12486$as_echo "#define VTE_DEBUG 1" >>confdefs.h
12487
12488fi
12489
12490##########################################################
12491# Check for -Bsymbolic-functions linker flag used to avoid
12492# intra-library PLT jumps, if available.
12493##########################################################
12494
12495# Check whether --enable-Bsymbolic was given.
12496if test "${enable_Bsymbolic+set}" = set; then :
12497  enableval=$enable_Bsymbolic;
12498else
12499  enable_Bsymbolic=yes
12500fi
12501
12502
12503VTE_LDFLAGS=
12504if test "$enable_Bsymbolic" != "no"; then
12505  FLAG="-Wl,-Bsymbolic-functions"
12506
12507  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $FLAG when linking" >&5
12508$as_echo_n "checking whether $CC supports $FLAG when linking... " >&6; }
12509
12510  vte_save_LDFLAGS="$LDFLAGS"
12511  LDFLAGS="$LDFLAGS $FLAG"
12512
12513  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12514/* end confdefs.h.  */
12515int main(void) {return 0;}
12516_ACEOF
12517if ac_fn_c_try_link "$LINENO"; then :
12518  vte_ld_flag=yes
12519else
12520  vte_ld_flag=no
12521fi
12522rm -f core conftest.err conftest.$ac_objext \
12523    conftest$ac_exeext conftest.$ac_ext
12524  LDFLAGS="$vte_save_LDFLAGS"
12525
12526  if test "x$vte_ld_flag" = "xyes"; then
12527    VTE_LDFLAGS="$VTE_LDFLAGS $FLAG"
12528  else
12529    if test "$enable_Bsymbolic" = "auto"; then
12530       { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -Bsymbolic not supported by ld; disabling" >&5
12531$as_echo "$as_me: WARNING: -Bsymbolic not supported by ld; disabling" >&2;}
12532       enable_Bsymbolic=no
12533     else
12534       as_fn_error "-Bsymbolic requested but not supported by ld. Use --disable-Bsymbolic to disable" "$LINENO" 5
12535     fi
12536  fi
12537  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vte_ld_flag" >&5
12538$as_echo "$vte_ld_flag" >&6; }
12539
12540fi
12541
12542
12543
12544################################################################################
12545
12546# Disable deprecations and single includes
12547# We don't use GNOME_MAINTAINER_MODE_DEFINES here since it's too much and
12548# it also defines VTE's own defines.
12549
12550################################################################################
12551# Core
12552################################################################################
12553
12554# Use all available features under glibc, and disable accidental use of
12555# deprecated functionality.
12556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557/* end confdefs.h.  */
12558
12559		 #include <stdio.h>
12560		 #ifdef __GLIBC__
12561		 glibc
12562		 #endif
12563
12564_ACEOF
12565if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12566  $EGREP "glibc" >/dev/null 2>&1; then :
12567
12568$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
12569
12570fi
12571rm -f conftest*
12572
12573
12574case $host in
12575*-*-solaris*)
12576
12577$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
12578
12579
12580$as_echo "#define _XOPEN_SOURCE 1" >>confdefs.h
12581
12582
12583$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
12584
12585	;;
12586esac
12587
12588GLIB_REQUIRED=2.26.0
12589PANGO_REQUIRED=1.22.0
12590
12591$as_echo "#define GDK_MULTIHEAD_SAFE 1" >>confdefs.h
12592
12593
12594
12595if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12596	if test -n "$ac_tool_prefix"; then
12597  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12598set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12600$as_echo_n "checking for $ac_word... " >&6; }
12601if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12602  $as_echo_n "(cached) " >&6
12603else
12604  case $PKG_CONFIG in
12605  [\\/]* | ?:[\\/]*)
12606  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12607  ;;
12608  *)
12609  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12610for as_dir in $PATH
12611do
12612  IFS=$as_save_IFS
12613  test -z "$as_dir" && as_dir=.
12614    for ac_exec_ext in '' $ac_executable_extensions; do
12615  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12616    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12617    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12618    break 2
12619  fi
12620done
12621  done
12622IFS=$as_save_IFS
12623
12624  ;;
12625esac
12626fi
12627PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12628if test -n "$PKG_CONFIG"; then
12629  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12630$as_echo "$PKG_CONFIG" >&6; }
12631else
12632  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12633$as_echo "no" >&6; }
12634fi
12635
12636
12637fi
12638if test -z "$ac_cv_path_PKG_CONFIG"; then
12639  ac_pt_PKG_CONFIG=$PKG_CONFIG
12640  # Extract the first word of "pkg-config", so it can be a program name with args.
12641set dummy pkg-config; ac_word=$2
12642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12643$as_echo_n "checking for $ac_word... " >&6; }
12644if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
12645  $as_echo_n "(cached) " >&6
12646else
12647  case $ac_pt_PKG_CONFIG in
12648  [\\/]* | ?:[\\/]*)
12649  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12650  ;;
12651  *)
12652  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12653for as_dir in $PATH
12654do
12655  IFS=$as_save_IFS
12656  test -z "$as_dir" && as_dir=.
12657    for ac_exec_ext in '' $ac_executable_extensions; do
12658  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12659    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12661    break 2
12662  fi
12663done
12664  done
12665IFS=$as_save_IFS
12666
12667  ;;
12668esac
12669fi
12670ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12671if test -n "$ac_pt_PKG_CONFIG"; then
12672  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12673$as_echo "$ac_pt_PKG_CONFIG" >&6; }
12674else
12675  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676$as_echo "no" >&6; }
12677fi
12678
12679  if test "x$ac_pt_PKG_CONFIG" = x; then
12680    PKG_CONFIG=""
12681  else
12682    case $cross_compiling:$ac_tool_warned in
12683yes:)
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12685$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12686ac_tool_warned=yes ;;
12687esac
12688    PKG_CONFIG=$ac_pt_PKG_CONFIG
12689  fi
12690else
12691  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12692fi
12693
12694fi
12695if test -n "$PKG_CONFIG"; then
12696	_pkg_min_version=0.9.0
12697	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12698$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12699	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12700		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12701$as_echo "yes" >&6; }
12702	else
12703		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12704$as_echo "no" >&6; }
12705		PKG_CONFIG=""
12706	fi
12707
12708fi
12709
12710pkg_failed=no
12711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
12712$as_echo_n "checking for GLIB... " >&6; }
12713
12714if test -n "$GLIB_CFLAGS"; then
12715    pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
12716 elif test -n "$PKG_CONFIG"; then
12717    if test -n "$PKG_CONFIG" && \
12718    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0\""; } >&5
12719  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0") 2>&5
12720  ac_status=$?
12721  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12722  test $ac_status = 0; }; then
12723  pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gobject-2.0" 2>/dev/null`
12724else
12725  pkg_failed=yes
12726fi
12727 else
12728    pkg_failed=untried
12729fi
12730if test -n "$GLIB_LIBS"; then
12731    pkg_cv_GLIB_LIBS="$GLIB_LIBS"
12732 elif test -n "$PKG_CONFIG"; then
12733    if test -n "$PKG_CONFIG" && \
12734    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0\""; } >&5
12735  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0") 2>&5
12736  ac_status=$?
12737  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12738  test $ac_status = 0; }; then
12739  pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0" 2>/dev/null`
12740else
12741  pkg_failed=yes
12742fi
12743 else
12744    pkg_failed=untried
12745fi
12746
12747
12748
12749if test $pkg_failed = yes; then
12750
12751if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12752        _pkg_short_errors_supported=yes
12753else
12754        _pkg_short_errors_supported=no
12755fi
12756        if test $_pkg_short_errors_supported = yes; then
12757	        GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0" 2>&1`
12758        else
12759	        GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0" 2>&1`
12760        fi
12761	# Put the nasty error message in config.log where it belongs
12762	echo "$GLIB_PKG_ERRORS" >&5
12763
12764	as_fn_error "Package requirements (glib-2.0 >= $GLIB_REQUIRED gobject-2.0) were not met:
12765
12766$GLIB_PKG_ERRORS
12767
12768Consider adjusting the PKG_CONFIG_PATH environment variable if you
12769installed software in a non-standard prefix.
12770
12771Alternatively, you may set the environment variables GLIB_CFLAGS
12772and GLIB_LIBS to avoid the need to call pkg-config.
12773See the pkg-config man page for more details.
12774" "$LINENO" 5
12775elif test $pkg_failed = untried; then
12776	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12777$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12778as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12779is in your PATH or set the PKG_CONFIG environment variable to the full
12780path to pkg-config.
12781
12782Alternatively, you may set the environment variables GLIB_CFLAGS
12783and GLIB_LIBS to avoid the need to call pkg-config.
12784See the pkg-config man page for more details.
12785
12786To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12787See \`config.log' for more details." "$LINENO" 5; }
12788else
12789	GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
12790	GLIB_LIBS=$pkg_cv_GLIB_LIBS
12791        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12792$as_echo "yes" >&6; }
12793	:
12794fi
12795
12796pkg_failed=no
12797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
12798$as_echo_n "checking for GTK... " >&6; }
12799
12800if test -n "$GTK_CFLAGS"; then
12801    pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
12802 elif test -n "$PKG_CONFIG"; then
12803    if test -n "$PKG_CONFIG" && \
12804    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 gtk+-\$GTK_API_VERSION >= \$GTK_REQUIRED\""; } >&5
12805  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 gtk+-$GTK_API_VERSION >= $GTK_REQUIRED") 2>&5
12806  ac_status=$?
12807  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12808  test $ac_status = 0; }; then
12809  pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>/dev/null`
12810else
12811  pkg_failed=yes
12812fi
12813 else
12814    pkg_failed=untried
12815fi
12816if test -n "$GTK_LIBS"; then
12817    pkg_cv_GTK_LIBS="$GTK_LIBS"
12818 elif test -n "$PKG_CONFIG"; then
12819    if test -n "$PKG_CONFIG" && \
12820    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0 >= \$GLIB_REQUIRED gobject-2.0 gtk+-\$GTK_API_VERSION >= \$GTK_REQUIRED\""; } >&5
12821  ($PKG_CONFIG --exists --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 gtk+-$GTK_API_VERSION >= $GTK_REQUIRED") 2>&5
12822  ac_status=$?
12823  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12824  test $ac_status = 0; }; then
12825  pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>/dev/null`
12826else
12827  pkg_failed=yes
12828fi
12829 else
12830    pkg_failed=untried
12831fi
12832
12833
12834
12835if test $pkg_failed = yes; then
12836
12837if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12838        _pkg_short_errors_supported=yes
12839else
12840        _pkg_short_errors_supported=no
12841fi
12842        if test $_pkg_short_errors_supported = yes; then
12843	        GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>&1`
12844        else
12845	        GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "glib-2.0 >= $GLIB_REQUIRED gobject-2.0 gtk+-$GTK_API_VERSION >= $GTK_REQUIRED" 2>&1`
12846        fi
12847	# Put the nasty error message in config.log where it belongs
12848	echo "$GTK_PKG_ERRORS" >&5
12849
12850	as_fn_error "Package requirements (glib-2.0 >= $GLIB_REQUIRED gobject-2.0 gtk+-$GTK_API_VERSION >= $GTK_REQUIRED) were not met:
12851
12852$GTK_PKG_ERRORS
12853
12854Consider adjusting the PKG_CONFIG_PATH environment variable if you
12855installed software in a non-standard prefix.
12856
12857Alternatively, you may set the environment variables GTK_CFLAGS
12858and GTK_LIBS to avoid the need to call pkg-config.
12859See the pkg-config man page for more details.
12860" "$LINENO" 5
12861elif test $pkg_failed = untried; then
12862	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12863$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12864as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
12865is in your PATH or set the PKG_CONFIG environment variable to the full
12866path to pkg-config.
12867
12868Alternatively, you may set the environment variables GTK_CFLAGS
12869and GTK_LIBS to avoid the need to call pkg-config.
12870See the pkg-config man page for more details.
12871
12872To get pkg-config, see <http://pkg-config.freedesktop.org/>.
12873See \`config.log' for more details." "$LINENO" 5; }
12874else
12875	GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
12876	GTK_LIBS=$pkg_cv_GTK_LIBS
12877        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12878$as_echo "yes" >&6; }
12879	:
12880fi
12881
12882# Extract the first word of "glib-genmarshal", so it can be a program name with args.
12883set dummy glib-genmarshal; ac_word=$2
12884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12885$as_echo_n "checking for $ac_word... " >&6; }
12886if test "${ac_cv_path_GLIB_GENMARSHAL+set}" = set; then :
12887  $as_echo_n "(cached) " >&6
12888else
12889  case $GLIB_GENMARSHAL in
12890  [\\/]* | ?:[\\/]*)
12891  ac_cv_path_GLIB_GENMARSHAL="$GLIB_GENMARSHAL" # Let the user override the test with a path.
12892  ;;
12893  *)
12894  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12895for as_dir in $PATH
12896do
12897  IFS=$as_save_IFS
12898  test -z "$as_dir" && as_dir=.
12899    for ac_exec_ext in '' $ac_executable_extensions; do
12900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12901    ac_cv_path_GLIB_GENMARSHAL="$as_dir/$ac_word$ac_exec_ext"
12902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12903    break 2
12904  fi
12905done
12906  done
12907IFS=$as_save_IFS
12908
12909  ;;
12910esac
12911fi
12912GLIB_GENMARSHAL=$ac_cv_path_GLIB_GENMARSHAL
12913if test -n "$GLIB_GENMARSHAL"; then
12914  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_GENMARSHAL" >&5
12915$as_echo "$GLIB_GENMARSHAL" >&6; }
12916else
12917  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12918$as_echo "no" >&6; }
12919fi
12920
12921
12922# Extract the first word of "glib-mkenums", so it can be a program name with args.
12923set dummy glib-mkenums; ac_word=$2
12924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12925$as_echo_n "checking for $ac_word... " >&6; }
12926if test "${ac_cv_path_GLIB_MKENUMS+set}" = set; then :
12927  $as_echo_n "(cached) " >&6
12928else
12929  case $GLIB_MKENUMS in
12930  [\\/]* | ?:[\\/]*)
12931  ac_cv_path_GLIB_MKENUMS="$GLIB_MKENUMS" # Let the user override the test with a path.
12932  ;;
12933  *)
12934  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12935for as_dir in $PATH
12936do
12937  IFS=$as_save_IFS
12938  test -z "$as_dir" && as_dir=.
12939    for ac_exec_ext in '' $ac_executable_extensions; do
12940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12941    ac_cv_path_GLIB_MKENUMS="$as_dir/$ac_word$ac_exec_ext"
12942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12943    break 2
12944  fi
12945done
12946  done
12947IFS=$as_save_IFS
12948
12949  ;;
12950esac
12951fi
12952GLIB_MKENUMS=$ac_cv_path_GLIB_MKENUMS
12953if test -n "$GLIB_MKENUMS"; then
12954  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_MKENUMS" >&5
12955$as_echo "$GLIB_MKENUMS" >&6; }
12956else
12957  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958$as_echo "no" >&6; }
12959fi
12960
12961
12962
12963# Let the user specify the default terminal emulation.
12964
12965# Check whether --with-default-emulation was given.
12966if test "${with_default_emulation+set}" = set; then :
12967  withval=$with_default_emulation; emulation=$withval
12968else
12969  emulation=xterm
12970fi
12971
12972
12973cat >>confdefs.h <<_ACEOF
12974#define VTE_DEFAULT_EMULATION "$emulation"
12975_ACEOF
12976
12977VTE_DEFAULT_EMULATION=$emulation
12978
12979 if test "$emulation" != xterm; then
12980  VTE_DEFAULT_EMULATION_TRUE=
12981  VTE_DEFAULT_EMULATION_FALSE='#'
12982else
12983  VTE_DEFAULT_EMULATION_TRUE='#'
12984  VTE_DEFAULT_EMULATION_FALSE=
12985fi
12986
12987
12988# Check for headers.
12989for ac_header in sys/select.h sys/syslimits.h sys/termios.h sys/un.h sys/wait.h stropts.h termios.h wchar.h
12990do :
12991  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12992ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12993eval as_val=\$$as_ac_Header
12994   if test "x$as_val" = x""yes; then :
12995  cat >>confdefs.h <<_ACEOF
12996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12997_ACEOF
12998
12999fi
13000
13001done
13002
13003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
13004$as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
13005if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then :
13006  $as_echo_n "(cached) " >&6
13007else
13008  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13009/* end confdefs.h.  */
13010#include <sys/types.h>
13011#include <termios.h>
13012#ifdef TIOCGWINSZ
13013  yes
13014#endif
13015
13016_ACEOF
13017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13018  $EGREP "yes" >/dev/null 2>&1; then :
13019  ac_cv_sys_tiocgwinsz_in_termios_h=yes
13020else
13021  ac_cv_sys_tiocgwinsz_in_termios_h=no
13022fi
13023rm -f conftest*
13024
13025fi
13026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
13027$as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
13028
13029if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
13030  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
13031$as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
13032if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then :
13033  $as_echo_n "(cached) " >&6
13034else
13035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13036/* end confdefs.h.  */
13037#include <sys/types.h>
13038#include <sys/ioctl.h>
13039#ifdef TIOCGWINSZ
13040  yes
13041#endif
13042
13043_ACEOF
13044if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13045  $EGREP "yes" >/dev/null 2>&1; then :
13046  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
13047else
13048  ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
13049fi
13050rm -f conftest*
13051
13052fi
13053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
13054$as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
13055
13056  if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
13057
13058$as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
13059
13060  fi
13061fi
13062
13063
13064# Check for PTY handling functions.
13065for ac_func in cfmakeraw fork setsid setpgid getpgid getpt grantpt posix_openpt unlockpt ptsname ptsname_r tcgetattr tcsetattr
13066do :
13067  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13068ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13069eval as_val=\$$as_ac_var
13070   if test "x$as_val" = x""yes; then :
13071  cat >>confdefs.h <<_ACEOF
13072#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13073_ACEOF
13074
13075fi
13076done
13077
13078
13079# Pull in the right libraries for various functions which might not be
13080# bundled into an exploded libc.
13081ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
13082if test "x$ac_cv_func_socket" = x""yes; then :
13083  have_socket=1
13084else
13085  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13086$as_echo_n "checking for socket in -lsocket... " >&6; }
13087if test "${ac_cv_lib_socket_socket+set}" = set; then :
13088  $as_echo_n "(cached) " >&6
13089else
13090  ac_check_lib_save_LIBS=$LIBS
13091LIBS="-lsocket  $LIBS"
13092cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13093/* end confdefs.h.  */
13094
13095/* Override any GCC internal prototype to avoid an error.
13096   Use char because int might match the return type of a GCC
13097   builtin and then its argument prototype would still apply.  */
13098#ifdef __cplusplus
13099extern "C"
13100#endif
13101char socket ();
13102int
13103main ()
13104{
13105return socket ();
13106  ;
13107  return 0;
13108}
13109_ACEOF
13110if ac_fn_c_try_link "$LINENO"; then :
13111  ac_cv_lib_socket_socket=yes
13112else
13113  ac_cv_lib_socket_socket=no
13114fi
13115rm -f core conftest.err conftest.$ac_objext \
13116    conftest$ac_exeext conftest.$ac_ext
13117LIBS=$ac_check_lib_save_LIBS
13118fi
13119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13120$as_echo "$ac_cv_lib_socket_socket" >&6; }
13121if test "x$ac_cv_lib_socket_socket" = x""yes; then :
13122  have_socket=1; LIBS="$LIBS -lsocket"
13123fi
13124
13125fi
13126
13127ac_fn_c_check_func "$LINENO" "socketpair" "ac_cv_func_socketpair"
13128if test "x$ac_cv_func_socketpair" = x""yes; then :
13129  have_socketpair=1
13130else
13131  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socketpair in -lsocket" >&5
13132$as_echo_n "checking for socketpair in -lsocket... " >&6; }
13133if test "${ac_cv_lib_socket_socketpair+set}" = set; then :
13134  $as_echo_n "(cached) " >&6
13135else
13136  ac_check_lib_save_LIBS=$LIBS
13137LIBS="-lsocket  $LIBS"
13138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13139/* end confdefs.h.  */
13140
13141/* Override any GCC internal prototype to avoid an error.
13142   Use char because int might match the return type of a GCC
13143   builtin and then its argument prototype would still apply.  */
13144#ifdef __cplusplus
13145extern "C"
13146#endif
13147char socketpair ();
13148int
13149main ()
13150{
13151return socketpair ();
13152  ;
13153  return 0;
13154}
13155_ACEOF
13156if ac_fn_c_try_link "$LINENO"; then :
13157  ac_cv_lib_socket_socketpair=yes
13158else
13159  ac_cv_lib_socket_socketpair=no
13160fi
13161rm -f core conftest.err conftest.$ac_objext \
13162    conftest$ac_exeext conftest.$ac_ext
13163LIBS=$ac_check_lib_save_LIBS
13164fi
13165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socketpair" >&5
13166$as_echo "$ac_cv_lib_socket_socketpair" >&6; }
13167if test "x$ac_cv_lib_socket_socketpair" = x""yes; then :
13168  have_socketpair=1; LIBS="$LIBS -lsocket"
13169fi
13170
13171fi
13172
13173ac_fn_c_check_func "$LINENO" "recvmsg" "ac_cv_func_recvmsg"
13174if test "x$ac_cv_func_recvmsg" = x""yes; then :
13175  have_recvmsg=1
13176else
13177  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recvmsg in -lsocket" >&5
13178$as_echo_n "checking for recvmsg in -lsocket... " >&6; }
13179if test "${ac_cv_lib_socket_recvmsg+set}" = set; then :
13180  $as_echo_n "(cached) " >&6
13181else
13182  ac_check_lib_save_LIBS=$LIBS
13183LIBS="-lsocket  $LIBS"
13184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185/* end confdefs.h.  */
13186
13187/* Override any GCC internal prototype to avoid an error.
13188   Use char because int might match the return type of a GCC
13189   builtin and then its argument prototype would still apply.  */
13190#ifdef __cplusplus
13191extern "C"
13192#endif
13193char recvmsg ();
13194int
13195main ()
13196{
13197return recvmsg ();
13198  ;
13199  return 0;
13200}
13201_ACEOF
13202if ac_fn_c_try_link "$LINENO"; then :
13203  ac_cv_lib_socket_recvmsg=yes
13204else
13205  ac_cv_lib_socket_recvmsg=no
13206fi
13207rm -f core conftest.err conftest.$ac_objext \
13208    conftest$ac_exeext conftest.$ac_ext
13209LIBS=$ac_check_lib_save_LIBS
13210fi
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_recvmsg" >&5
13212$as_echo "$ac_cv_lib_socket_recvmsg" >&6; }
13213if test "x$ac_cv_lib_socket_recvmsg" = x""yes; then :
13214  have_recvmsg=1; LIBS="$LIBS -lsocket -lnsl"
13215fi
13216
13217fi
13218
13219if test x$have_socket = x1 ; then
13220
13221$as_echo "#define HAVE_SOCKET 1" >>confdefs.h
13222
13223fi
13224if test x$have_socketpair = x1 ; then
13225
13226$as_echo "#define HAVE_SOCKETPAIR 1" >>confdefs.h
13227
13228fi
13229if test x$have_recvmsg = x1 ; then
13230
13231$as_echo "#define HAVE_RECVMSG 1" >>confdefs.h
13232
13233fi
13234ac_fn_c_check_func "$LINENO" "floor" "ac_cv_func_floor"
13235if test "x$ac_cv_func_floor" = x""yes; then :
13236
13237else
13238  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
13239$as_echo_n "checking for floor in -lm... " >&6; }
13240if test "${ac_cv_lib_m_floor+set}" = set; then :
13241  $as_echo_n "(cached) " >&6
13242else
13243  ac_check_lib_save_LIBS=$LIBS
13244LIBS="-lm  $LIBS"
13245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13246/* end confdefs.h.  */
13247
13248/* Override any GCC internal prototype to avoid an error.
13249   Use char because int might match the return type of a GCC
13250   builtin and then its argument prototype would still apply.  */
13251#ifdef __cplusplus
13252extern "C"
13253#endif
13254char floor ();
13255int
13256main ()
13257{
13258return floor ();
13259  ;
13260  return 0;
13261}
13262_ACEOF
13263if ac_fn_c_try_link "$LINENO"; then :
13264  ac_cv_lib_m_floor=yes
13265else
13266  ac_cv_lib_m_floor=no
13267fi
13268rm -f core conftest.err conftest.$ac_objext \
13269    conftest$ac_exeext conftest.$ac_ext
13270LIBS=$ac_check_lib_save_LIBS
13271fi
13272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
13273$as_echo "$ac_cv_lib_m_floor" >&6; }
13274if test "x$ac_cv_lib_m_floor" = x""yes; then :
13275  LIBS="$LIBS -lm"
13276fi
13277
13278fi
13279
13280for ac_func in ceil floor
13281do :
13282  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13283ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13284eval as_val=\$$as_ac_var
13285   if test "x$as_val" = x""yes; then :
13286  cat >>confdefs.h <<_ACEOF
13287#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13288_ACEOF
13289
13290fi
13291done
13292
13293
13294# Look for tgetent
13295
13296ac_fn_c_check_func "$LINENO" "tgetent" "ac_cv_func_tgetent"
13297if test "x$ac_cv_func_tgetent" = x""yes; then :
13298  vte_cv_termcap_lib=libc
13299else
13300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lncurses" >&5
13301$as_echo_n "checking for tgetent in -lncurses... " >&6; }
13302if test "${ac_cv_lib_ncurses_tgetent+set}" = set; then :
13303  $as_echo_n "(cached) " >&6
13304else
13305  ac_check_lib_save_LIBS=$LIBS
13306LIBS="-lncurses  $LIBS"
13307cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308/* end confdefs.h.  */
13309
13310/* Override any GCC internal prototype to avoid an error.
13311   Use char because int might match the return type of a GCC
13312   builtin and then its argument prototype would still apply.  */
13313#ifdef __cplusplus
13314extern "C"
13315#endif
13316char tgetent ();
13317int
13318main ()
13319{
13320return tgetent ();
13321  ;
13322  return 0;
13323}
13324_ACEOF
13325if ac_fn_c_try_link "$LINENO"; then :
13326  ac_cv_lib_ncurses_tgetent=yes
13327else
13328  ac_cv_lib_ncurses_tgetent=no
13329fi
13330rm -f core conftest.err conftest.$ac_objext \
13331    conftest$ac_exeext conftest.$ac_ext
13332LIBS=$ac_check_lib_save_LIBS
13333fi
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tgetent" >&5
13335$as_echo "$ac_cv_lib_ncurses_tgetent" >&6; }
13336if test "x$ac_cv_lib_ncurses_tgetent" = x""yes; then :
13337  vte_cv_termcap_lib=libncurses
13338else
13339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltinfo" >&5
13340$as_echo_n "checking for tgetent in -ltinfo... " >&6; }
13341if test "${ac_cv_lib_tinfo_tgetent+set}" = set; then :
13342  $as_echo_n "(cached) " >&6
13343else
13344  ac_check_lib_save_LIBS=$LIBS
13345LIBS="-ltinfo  $LIBS"
13346cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13347/* end confdefs.h.  */
13348
13349/* Override any GCC internal prototype to avoid an error.
13350   Use char because int might match the return type of a GCC
13351   builtin and then its argument prototype would still apply.  */
13352#ifdef __cplusplus
13353extern "C"
13354#endif
13355char tgetent ();
13356int
13357main ()
13358{
13359return tgetent ();
13360  ;
13361  return 0;
13362}
13363_ACEOF
13364if ac_fn_c_try_link "$LINENO"; then :
13365  ac_cv_lib_tinfo_tgetent=yes
13366else
13367  ac_cv_lib_tinfo_tgetent=no
13368fi
13369rm -f core conftest.err conftest.$ac_objext \
13370    conftest$ac_exeext conftest.$ac_ext
13371LIBS=$ac_check_lib_save_LIBS
13372fi
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tinfo_tgetent" >&5
13374$as_echo "$ac_cv_lib_tinfo_tgetent" >&6; }
13375if test "x$ac_cv_lib_tinfo_tgetent" = x""yes; then :
13376  vte_cv_termcap_lib=libtinfo
13377else
13378  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -lcurses" >&5
13379$as_echo_n "checking for tgetent in -lcurses... " >&6; }
13380if test "${ac_cv_lib_curses_tgetent+set}" = set; then :
13381  $as_echo_n "(cached) " >&6
13382else
13383  ac_check_lib_save_LIBS=$LIBS
13384LIBS="-lcurses  $LIBS"
13385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386/* end confdefs.h.  */
13387
13388/* Override any GCC internal prototype to avoid an error.
13389   Use char because int might match the return type of a GCC
13390   builtin and then its argument prototype would still apply.  */
13391#ifdef __cplusplus
13392extern "C"
13393#endif
13394char tgetent ();
13395int
13396main ()
13397{
13398return tgetent ();
13399  ;
13400  return 0;
13401}
13402_ACEOF
13403if ac_fn_c_try_link "$LINENO"; then :
13404  ac_cv_lib_curses_tgetent=yes
13405else
13406  ac_cv_lib_curses_tgetent=no
13407fi
13408rm -f core conftest.err conftest.$ac_objext \
13409    conftest$ac_exeext conftest.$ac_ext
13410LIBS=$ac_check_lib_save_LIBS
13411fi
13412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tgetent" >&5
13413$as_echo "$ac_cv_lib_curses_tgetent" >&6; }
13414if test "x$ac_cv_lib_curses_tgetent" = x""yes; then :
13415  vte_cv_termcap_lib=libcurses
13416else
13417  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgetent in -ltermcap" >&5
13418$as_echo_n "checking for tgetent in -ltermcap... " >&6; }
13419if test "${ac_cv_lib_termcap_tgetent+set}" = set; then :
13420  $as_echo_n "(cached) " >&6
13421else
13422  ac_check_lib_save_LIBS=$LIBS
13423LIBS="-ltermcap  $LIBS"
13424cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13425/* end confdefs.h.  */
13426
13427/* Override any GCC internal prototype to avoid an error.
13428   Use char because int might match the return type of a GCC
13429   builtin and then its argument prototype would still apply.  */
13430#ifdef __cplusplus
13431extern "C"
13432#endif
13433char tgetent ();
13434int
13435main ()
13436{
13437return tgetent ();
13438  ;
13439  return 0;
13440}
13441_ACEOF
13442if ac_fn_c_try_link "$LINENO"; then :
13443  ac_cv_lib_termcap_tgetent=yes
13444else
13445  ac_cv_lib_termcap_tgetent=no
13446fi
13447rm -f core conftest.err conftest.$ac_objext \
13448    conftest$ac_exeext conftest.$ac_ext
13449LIBS=$ac_check_lib_save_LIBS
13450fi
13451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_termcap_tgetent" >&5
13452$as_echo "$ac_cv_lib_termcap_tgetent" >&6; }
13453if test "x$ac_cv_lib_termcap_tgetent" = x""yes; then :
13454  vte_cv_termcap_lib=libtermcap
13455else
13456  vte_cv_termcap_lib=
13457fi
13458
13459fi
13460
13461fi
13462
13463fi
13464
13465fi
13466
13467
13468case "$vte_cv_termcap_lib" in
13469  libc)       # FIXME: which headers to include here?
13470              ;;
13471  libncurses) # We need ncurses.h and term.h, or ncurses/curses.h and ncurses/term.h
13472              for ac_header in ncurses.h term.h
13473do :
13474  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13475ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13476eval as_val=\$$as_ac_Header
13477   if test "x$as_val" = x""yes; then :
13478  cat >>confdefs.h <<_ACEOF
13479#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13480_ACEOF
13481
13482else
13483  for ac_header in ncurses/curses.h ncurses/term.h
13484do :
13485  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13486ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13487eval as_val=\$$as_ac_Header
13488   if test "x$as_val" = x""yes; then :
13489  cat >>confdefs.h <<_ACEOF
13490#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13491_ACEOF
13492
13493else
13494  as_fn_error "ncurses headers not found" "$LINENO" 5
13495fi
13496
13497done
13498
13499fi
13500
13501done
13502
13503              LIBS="-lncurses $LIBS"
13504              ;;
13505  libtinfo)   # Need ncurses/curses.h and ncurses/term.h
13506              for ac_header in ncurses.h term.h
13507do :
13508  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13509ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13510eval as_val=\$$as_ac_Header
13511   if test "x$as_val" = x""yes; then :
13512  cat >>confdefs.h <<_ACEOF
13513#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13514_ACEOF
13515
13516else
13517  for ac_header in ncurses/curses.h ncurses/term.h
13518do :
13519  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13520ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13521eval as_val=\$$as_ac_Header
13522   if test "x$as_val" = x""yes; then :
13523  cat >>confdefs.h <<_ACEOF
13524#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13525_ACEOF
13526
13527else
13528  as_fn_error "ncurses headers not found" "$LINENO" 5
13529fi
13530
13531done
13532
13533fi
13534
13535done
13536
13537              LIBS="-ltinfo $LIBS"
13538              ;;
13539  libcurses)  # Need curses.h and term.h
13540              for ac_header in curses.h term.h
13541do :
13542  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13543ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_CURSES_H
13544                  #include <curses.h>
13545                  #endif
13546"
13547eval as_val=\$$as_ac_Header
13548   if test "x$as_val" = x""yes; then :
13549  cat >>confdefs.h <<_ACEOF
13550#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13551_ACEOF
13552
13553else
13554  as_fn_error "curses headers not found" "$LINENO" 5
13555fi
13556
13557done
13558
13559              LIBS="-lcurses $LIBS"
13560              ;;
13561  libtermcap) # Need termcap.h
13562              for ac_header in termcap.h
13563do :
13564  ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
13565if test "x$ac_cv_header_termcap_h" = x""yes; then :
13566  cat >>confdefs.h <<_ACEOF
13567#define HAVE_TERMCAP_H 1
13568_ACEOF
13569
13570else
13571  as_fn_error "termcap headers not found" "$LINENO" 5
13572fi
13573
13574done
13575
13576              LIBS="-ltermcap $LIBS"
13577              ;;
13578  *)          as_fn_error "tgetent not found in any library" "$LINENO" 5 ;;
13579esac
13580
13581# Search for the required modules.
13582
13583# We have a direct dependency on X11 on gdk-x11, see bug #613525
13584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GDK target" >&5
13585$as_echo_n "checking for GDK target... " >&6; }
13586GDK_TARGET="$($PKG_CONFIG --variable target gdk-$GTK_API_VERSION)"
13587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_TARGET" >&5
13588$as_echo "$GDK_TARGET" >&6; }
13589case "$GDK_TARGET" in
13590  x11) PLATFORM_PKGS="x11 cairo-xlib" ;;
13591  *) PLATFORM_PKGS="" ;;
13592esac
13593
13594VTE_PKGS="glib-2.0 >= $GLIB_REQUIRED gobject-2.0 pango >= $PANGO_REQUIRED gtk+-$GTK_API_VERSION >= $GTK_REQUIRED gobject-2.0 gio-2.0 gio-unix-2.0 $PLATFORM_PKGS"
13595
13596pkg_failed=no
13597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for VTE" >&5
13598$as_echo_n "checking for VTE... " >&6; }
13599
13600if test -n "$VTE_CFLAGS"; then
13601    pkg_cv_VTE_CFLAGS="$VTE_CFLAGS"
13602 elif test -n "$PKG_CONFIG"; then
13603    if test -n "$PKG_CONFIG" && \
13604    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VTE_PKGS\""; } >&5
13605  ($PKG_CONFIG --exists --print-errors "$VTE_PKGS") 2>&5
13606  ac_status=$?
13607  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13608  test $ac_status = 0; }; then
13609  pkg_cv_VTE_CFLAGS=`$PKG_CONFIG --cflags "$VTE_PKGS" 2>/dev/null`
13610else
13611  pkg_failed=yes
13612fi
13613 else
13614    pkg_failed=untried
13615fi
13616if test -n "$VTE_LIBS"; then
13617    pkg_cv_VTE_LIBS="$VTE_LIBS"
13618 elif test -n "$PKG_CONFIG"; then
13619    if test -n "$PKG_CONFIG" && \
13620    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$VTE_PKGS\""; } >&5
13621  ($PKG_CONFIG --exists --print-errors "$VTE_PKGS") 2>&5
13622  ac_status=$?
13623  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13624  test $ac_status = 0; }; then
13625  pkg_cv_VTE_LIBS=`$PKG_CONFIG --libs "$VTE_PKGS" 2>/dev/null`
13626else
13627  pkg_failed=yes
13628fi
13629 else
13630    pkg_failed=untried
13631fi
13632
13633
13634
13635if test $pkg_failed = yes; then
13636
13637if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13638        _pkg_short_errors_supported=yes
13639else
13640        _pkg_short_errors_supported=no
13641fi
13642        if test $_pkg_short_errors_supported = yes; then
13643	        VTE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$VTE_PKGS" 2>&1`
13644        else
13645	        VTE_PKG_ERRORS=`$PKG_CONFIG --print-errors "$VTE_PKGS" 2>&1`
13646        fi
13647	# Put the nasty error message in config.log where it belongs
13648	echo "$VTE_PKG_ERRORS" >&5
13649
13650	as_fn_error "Package requirements ($VTE_PKGS) were not met:
13651
13652$VTE_PKG_ERRORS
13653
13654Consider adjusting the PKG_CONFIG_PATH environment variable if you
13655installed software in a non-standard prefix.
13656
13657Alternatively, you may set the environment variables VTE_CFLAGS
13658and VTE_LIBS to avoid the need to call pkg-config.
13659See the pkg-config man page for more details.
13660" "$LINENO" 5
13661elif test $pkg_failed = untried; then
13662	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13663$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13664as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
13665is in your PATH or set the PKG_CONFIG environment variable to the full
13666path to pkg-config.
13667
13668Alternatively, you may set the environment variables VTE_CFLAGS
13669and VTE_LIBS to avoid the need to call pkg-config.
13670See the pkg-config man page for more details.
13671
13672To get pkg-config, see <http://pkg-config.freedesktop.org/>.
13673See \`config.log' for more details." "$LINENO" 5; }
13674else
13675	VTE_CFLAGS=$pkg_cv_VTE_CFLAGS
13676	VTE_LIBS=$pkg_cv_VTE_LIBS
13677        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13678$as_echo "yes" >&6; }
13679	:
13680fi
13681
13682
13683wcs_funcs_includes="
13684#ifdef HAVE_STRING_H
13685# if !STDC_HEADERS && HAVE_MEMORY_H
13686#  include <memory.h>
13687# endif
13688# include <string.h>
13689#else
13690# ifdef HAVE_STRINGS_H
13691#  include <strings.h>
13692# endif
13693#endif
13694#ifdef HAVE_WCHAR_H
13695# include <wchar.h>
13696#endif
13697"
13698
13699ac_fn_c_check_type "$LINENO" "wint_t" "ac_cv_type_wint_t" "$wcs_funcs_includes
13700"
13701if test "x$ac_cv_type_wint_t" = x""yes; then :
13702
13703cat >>confdefs.h <<_ACEOF
13704#define HAVE_WINT_T 1
13705_ACEOF
13706
13707
13708$as_echo "#define HAVE_WINT_T /**/" >>confdefs.h
13709
13710fi
13711
13712
13713
13714################################################################################
13715# Auxillary modules
13716################################################################################
13717
13718if test "$with_gtk" = "2.0"; then
13719
13720# Search for Python.
13721BUILD_PYTHON=true
13722# Check whether --enable-python was given.
13723if test "${enable_python+set}" = set; then :
13724  enableval=$enable_python;
13725if test x"$enableval" != xno ; then
13726	BUILD_PYTHON=true
13727else
13728	BUILD_PYTHON=false
13729fi
13730else
13731  BUILD_PYTHON=true
13732fi
13733
13734
13735if $BUILD_PYTHON ; then
13736
13737
13738
13739
13740        # Find any Python interpreter.
13741    if test -z "$PYTHON"; then
13742      for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
13743do
13744  # Extract the first word of "$ac_prog", so it can be a program name with args.
13745set dummy $ac_prog; ac_word=$2
13746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13747$as_echo_n "checking for $ac_word... " >&6; }
13748if test "${ac_cv_path_PYTHON+set}" = set; then :
13749  $as_echo_n "(cached) " >&6
13750else
13751  case $PYTHON in
13752  [\\/]* | ?:[\\/]*)
13753  ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13754  ;;
13755  *)
13756  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13757for as_dir in $PATH
13758do
13759  IFS=$as_save_IFS
13760  test -z "$as_dir" && as_dir=.
13761    for ac_exec_ext in '' $ac_executable_extensions; do
13762  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13763    ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
13764    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13765    break 2
13766  fi
13767done
13768  done
13769IFS=$as_save_IFS
13770
13771  ;;
13772esac
13773fi
13774PYTHON=$ac_cv_path_PYTHON
13775if test -n "$PYTHON"; then
13776  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13777$as_echo "$PYTHON" >&6; }
13778else
13779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780$as_echo "no" >&6; }
13781fi
13782
13783
13784  test -n "$PYTHON" && break
13785done
13786test -n "$PYTHON" || PYTHON=":"
13787
13788    fi
13789    am_display_PYTHON=python
13790
13791
13792  if test "$PYTHON" = :; then
13793      as_fn_error "no suitable Python interpreter found" "$LINENO" 5
13794  else
13795
13796
13797  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13798$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
13799if test "${am_cv_python_version+set}" = set; then :
13800  $as_echo_n "(cached) " >&6
13801else
13802  am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
13803fi
13804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13805$as_echo "$am_cv_python_version" >&6; }
13806  PYTHON_VERSION=$am_cv_python_version
13807
13808
13809
13810  PYTHON_PREFIX='${prefix}'
13811
13812  PYTHON_EXEC_PREFIX='${exec_prefix}'
13813
13814
13815
13816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13817$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
13818if test "${am_cv_python_platform+set}" = set; then :
13819  $as_echo_n "(cached) " >&6
13820else
13821  am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
13822fi
13823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13824$as_echo "$am_cv_python_platform" >&6; }
13825  PYTHON_PLATFORM=$am_cv_python_platform
13826
13827
13828
13829
13830                { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
13831$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
13832if test "${am_cv_python_pythondir+set}" = set; then :
13833  $as_echo_n "(cached) " >&6
13834else
13835  if test "x$prefix" = xNONE
13836     then
13837       am_py_prefix=$ac_default_prefix
13838     else
13839       am_py_prefix=$prefix
13840     fi
13841     am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
13842     echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
13843     case $am_cv_python_pythondir in
13844     $am_py_prefix*)
13845       am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13846       am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
13847       ;;
13848     *)
13849       case $am_py_prefix in
13850         /usr|/System*) ;;
13851         *)
13852	  am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
13853	  ;;
13854       esac
13855       ;;
13856     esac
13857
13858fi
13859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13860$as_echo "$am_cv_python_pythondir" >&6; }
13861  pythondir=$am_cv_python_pythondir
13862
13863
13864
13865  pkgpythondir=\${pythondir}/$PACKAGE
13866
13867
13868            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
13869$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
13870if test "${am_cv_python_pyexecdir+set}" = set; then :
13871  $as_echo_n "(cached) " >&6
13872else
13873  if test "x$exec_prefix" = xNONE
13874     then
13875       am_py_exec_prefix=$am_py_prefix
13876     else
13877       am_py_exec_prefix=$exec_prefix
13878     fi
13879     am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
13880     echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
13881     case $am_cv_python_pyexecdir in
13882     $am_py_exec_prefix*)
13883       am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13884       am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
13885       ;;
13886     *)
13887       case $am_py_exec_prefix in
13888         /usr|/System*) ;;
13889         *)
13890	   am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
13891	   ;;
13892       esac
13893       ;;
13894     esac
13895
13896fi
13897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13898$as_echo "$am_cv_python_pyexecdir" >&6; }
13899  pyexecdir=$am_cv_python_pyexecdir
13900
13901
13902
13903  pkgpyexecdir=\${pyexecdir}/$PACKAGE
13904
13905
13906
13907  fi
13908
13909
13910	if test -z "$PYTHON" ; then
13911		BUILD_PYTHON=false
13912	fi
13913fi
13914
13915if $BUILD_PYTHON ; then
13916	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for python >= 2.2" >&5
13917$as_echo_n "checking for python >= 2.2... " >&6; }
13918	prog="
13919import sys, string
13920minver = (2,2,0,'final',0)
13921if sys.version_info < minver:
13922	sys.exit(1)
13923sys.exit(0)
13924"
13925	if $PYTHON -c "$prog" 1>&5 2>&5
13926	then
13927		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
13928$as_echo "okay" >&6; }
13929	else
13930		BUILD_PYTHON=false
13931		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: too old" >&5
13932$as_echo "too old" >&6; }
13933	fi
13934fi
13935
13936if $BUILD_PYTHON ; then
13937
13938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for headers required to compile python extensions" >&5
13939$as_echo_n "checking for headers required to compile python extensions... " >&6; }
13940py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
13941py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
13942if test -x "$PYTHON-config"; then
13943    PYTHON_INCLUDES=`$PYTHON-config --includes 2>/dev/null`
13944else
13945    PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
13946    if test "$py_prefix" != "$py_exec_prefix"; then
13947      PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
13948    fi
13949fi
13950PYTHON_LIBS="-L${py_prefix}/libs -lpython${PYTHON_VERSION}"
13951
13952
13953save_CPPFLAGS="$CPPFLAGS"
13954CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
13955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13956/* end confdefs.h.  */
13957#include <Python.h>
13958_ACEOF
13959if ac_fn_c_try_cpp "$LINENO"; then :
13960  { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13961$as_echo "found" >&6; }
13962
13963else
13964  { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
13965$as_echo "not found" >&6; }
13966BUILD_PYTHON=false
13967fi
13968rm -f conftest.err conftest.$ac_ext
13969CPPFLAGS="$save_CPPFLAGS"
13970
13971fi
13972
13973if $BUILD_PYTHON ; then
13974	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygtk-2.0" >&5
13975$as_echo_n "checking for pygtk-2.0... " >&6; }
13976	if pkg-config --exists pygtk-2.0 ; then
13977		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
13978$as_echo "found" >&6; }
13979
13980pkg_failed=no
13981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PYGTK" >&5
13982$as_echo_n "checking for PYGTK... " >&6; }
13983
13984if test -n "$PYGTK_CFLAGS"; then
13985    pkg_cv_PYGTK_CFLAGS="$PYGTK_CFLAGS"
13986 elif test -n "$PKG_CONFIG"; then
13987    if test -n "$PKG_CONFIG" && \
13988    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygtk-2.0\""; } >&5
13989  ($PKG_CONFIG --exists --print-errors "pygtk-2.0") 2>&5
13990  ac_status=$?
13991  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13992  test $ac_status = 0; }; then
13993  pkg_cv_PYGTK_CFLAGS=`$PKG_CONFIG --cflags "pygtk-2.0" 2>/dev/null`
13994else
13995  pkg_failed=yes
13996fi
13997 else
13998    pkg_failed=untried
13999fi
14000if test -n "$PYGTK_LIBS"; then
14001    pkg_cv_PYGTK_LIBS="$PYGTK_LIBS"
14002 elif test -n "$PKG_CONFIG"; then
14003    if test -n "$PKG_CONFIG" && \
14004    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pygtk-2.0\""; } >&5
14005  ($PKG_CONFIG --exists --print-errors "pygtk-2.0") 2>&5
14006  ac_status=$?
14007  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14008  test $ac_status = 0; }; then
14009  pkg_cv_PYGTK_LIBS=`$PKG_CONFIG --libs "pygtk-2.0" 2>/dev/null`
14010else
14011  pkg_failed=yes
14012fi
14013 else
14014    pkg_failed=untried
14015fi
14016
14017
14018
14019if test $pkg_failed = yes; then
14020
14021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14022        _pkg_short_errors_supported=yes
14023else
14024        _pkg_short_errors_supported=no
14025fi
14026        if test $_pkg_short_errors_supported = yes; then
14027	        PYGTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pygtk-2.0" 2>&1`
14028        else
14029	        PYGTK_PKG_ERRORS=`$PKG_CONFIG --print-errors "pygtk-2.0" 2>&1`
14030        fi
14031	# Put the nasty error message in config.log where it belongs
14032	echo "$PYGTK_PKG_ERRORS" >&5
14033
14034	as_fn_error "Package requirements (pygtk-2.0) were not met:
14035
14036$PYGTK_PKG_ERRORS
14037
14038Consider adjusting the PKG_CONFIG_PATH environment variable if you
14039installed software in a non-standard prefix.
14040
14041Alternatively, you may set the environment variables PYGTK_CFLAGS
14042and PYGTK_LIBS to avoid the need to call pkg-config.
14043See the pkg-config man page for more details.
14044" "$LINENO" 5
14045elif test $pkg_failed = untried; then
14046	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14047$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14048as_fn_error "The pkg-config script could not be found or is too old.  Make sure it
14049is in your PATH or set the PKG_CONFIG environment variable to the full
14050path to pkg-config.
14051
14052Alternatively, you may set the environment variables PYGTK_CFLAGS
14053and PYGTK_LIBS to avoid the need to call pkg-config.
14054See the pkg-config man page for more details.
14055
14056To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14057See \`config.log' for more details." "$LINENO" 5; }
14058else
14059	PYGTK_CFLAGS=$pkg_cv_PYGTK_CFLAGS
14060	PYGTK_LIBS=$pkg_cv_PYGTK_LIBS
14061        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14062$as_echo "yes" >&6; }
14063	:
14064fi
14065
14066		# Extract the first word of "pygtk-codegen-2.0", so it can be a program name with args.
14067set dummy pygtk-codegen-2.0; ac_word=$2
14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14069$as_echo_n "checking for $ac_word... " >&6; }
14070if test "${ac_cv_path_PYGTK_CODEGEN+set}" = set; then :
14071  $as_echo_n "(cached) " >&6
14072else
14073  case $PYGTK_CODEGEN in
14074  [\\/]* | ?:[\\/]*)
14075  ac_cv_path_PYGTK_CODEGEN="$PYGTK_CODEGEN" # Let the user override the test with a path.
14076  ;;
14077  *)
14078  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14079for as_dir in $PATH
14080do
14081  IFS=$as_save_IFS
14082  test -z "$as_dir" && as_dir=.
14083    for ac_exec_ext in '' $ac_executable_extensions; do
14084  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14085    ac_cv_path_PYGTK_CODEGEN="$as_dir/$ac_word$ac_exec_ext"
14086    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14087    break 2
14088  fi
14089done
14090  done
14091IFS=$as_save_IFS
14092
14093  test -z "$ac_cv_path_PYGTK_CODEGEN" && ac_cv_path_PYGTK_CODEGEN="no"
14094  ;;
14095esac
14096fi
14097PYGTK_CODEGEN=$ac_cv_path_PYGTK_CODEGEN
14098if test -n "$PYGTK_CODEGEN"; then
14099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGTK_CODEGEN" >&5
14100$as_echo "$PYGTK_CODEGEN" >&6; }
14101else
14102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14103$as_echo "no" >&6; }
14104fi
14105
14106
14107		if test "x$PYGTK_CODEGEN" = xno; then
14108		  as_fn_error "could not find pygtk-codegen-2.0 script" "$LINENO" 5
14109		fi
14110
14111		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pygtk defs" >&5
14112$as_echo_n "checking for pygtk defs... " >&6; }
14113		PYGTK_DEFSDIR=`$PKG_CONFIG --variable=defsdir pygtk-2.0`
14114
14115		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYGTK_DEFSDIR" >&5
14116$as_echo "$PYGTK_DEFSDIR" >&6; }
14117	else
14118		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
14119$as_echo "not found" >&6; }
14120		BUILD_PYTHON=false
14121	fi
14122fi
14123
14124if ! $BUILD_PYTHON ; then
14125	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Python bindings disabled." >&5
14126$as_echo "Python bindings disabled." >&6; }
14127fi
14128
14129
14130
14131
14132else # with_gtk = 3.0
14133  BUILD_PYTHON=false
14134fi # with_gtk = 2.0
14135
14136 if $BUILD_PYTHON; then
14137  BUILD_PYTHON_MODULES_TRUE=
14138  BUILD_PYTHON_MODULES_FALSE='#'
14139else
14140  BUILD_PYTHON_MODULES_TRUE='#'
14141  BUILD_PYTHON_MODULES_FALSE=
14142fi
14143
14144
14145################################################################################
14146# GNOME PTY Helper
14147################################################################################
14148
14149# Check whether --enable-gnome-pty-helper was given.
14150if test "${enable_gnome_pty_helper+set}" = set; then :
14151  enableval=$enable_gnome_pty_helper; enable_gnome_pty_helper="$enableval"
14152else
14153  enable_gnome_pty_helper=yes
14154fi
14155
14156if test "$enable_gnome_pty_helper" != no; then
14157
14158$as_echo "#define VTE_USE_GNOME_PTY_HELPER 1" >>confdefs.h
14159
14160
14161
14162subdirs="$subdirs gnome-pty-helper"
14163
14164fi
14165 if test "$enable_gnome_pty_helper" != no; then
14166  BUILD_GNOME_PTY_HELPER_TRUE=
14167  BUILD_GNOME_PTY_HELPER_FALSE='#'
14168else
14169  BUILD_GNOME_PTY_HELPER_TRUE='#'
14170  BUILD_GNOME_PTY_HELPER_FALSE=
14171fi
14172
14173
14174################################################################################
14175# Glade catalogue
14176################################################################################
14177
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install the glade catalogue" >&5
14179$as_echo_n "checking whether to install the glade catalogue... " >&6; }
14180# Check whether --enable-glade-catalogue was given.
14181if test "${enable_glade_catalogue+set}" = set; then :
14182  enableval=$enable_glade_catalogue;
14183else
14184  enable_glade_catalogue=no
14185fi
14186
14187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_glade_catalogue" >&5
14188$as_echo "$enable_glade_catalogue" >&6; }
14189
14190if test "$enable_glade_catalogue" = "yes"; then
14191  GLADE_CATALOGUE_DIR="$($PKG_CONFIG --variable=catalogdir gladeui-$GLADE_API_VERSION)"
14192  GLADE_ICON_DIR="$($PKG_CONFIG --variable=pixmapdir gladeui-$GLADE_API_VERSION)"
14193  GLADE_MODULE_DIR="$($PKG_CONFIG --variable=moduledir gladeui-$GLADE_API_VERSION)"
14194
14195  if test -z "$GLADE_CATALOGUE_DIR" -o -z "$GLADE_MODULE_DIR"; then
14196    as_fn_error "gladeui-$GLADE_API_VERSION not found" "$LINENO" 5
14197  fi
14198
14199
14200
14201
14202fi
14203
14204 if test "$enable_glade_catalogue" = "yes"; then
14205  ENABLE_GLADE_CATALOGUE_TRUE=
14206  ENABLE_GLADE_CATALOGUE_FALSE='#'
14207else
14208  ENABLE_GLADE_CATALOGUE_TRUE='#'
14209  ENABLE_GLADE_CATALOGUE_FALSE=
14210fi
14211
14212
14213# *************
14214# Introspection
14215# *************
14216
14217# No automagic please!
14218if test -z "$enable_introspection"; then
14219  enable_introspection=no
14220fi
14221
14222
14223
14224
14225                # Check whether --enable-introspection was given.
14226if test "${enable_introspection+set}" = set; then :
14227  enableval=$enable_introspection;
14228else
14229  enable_introspection=auto
14230fi
14231
14232
14233    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gobject-introspection" >&5
14234$as_echo_n "checking for gobject-introspection... " >&6; }
14235
14236        case $enable_introspection in #(
14237  no) :
14238            found_introspection="no (disabled, use --enable-introspection to enable)"
14239     ;; #(
14240      yes) :
14241            if test -n "$PKG_CONFIG" && \
14242    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0\""; } >&5
14243  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0") 2>&5
14244  ac_status=$?
14245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246  test $ac_status = 0; }; then
14247  :
14248else
14249  as_fn_error "gobject-introspection-1.0 is not installed" "$LINENO" 5
14250fi
14251        if test -n "$PKG_CONFIG" && \
14252    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.0\""; } >&5
14253  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.0") 2>&5
14254  ac_status=$?
14255  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14256  test $ac_status = 0; }; then
14257  found_introspection=yes
14258else
14259  as_fn_error "You need to have gobject-introspection >= 0.9.0 installed to build vte" "$LINENO" 5
14260fi
14261     ;; #(
14262      auto) :
14263            if test -n "$PKG_CONFIG" && \
14264    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gobject-introspection-1.0 >= 0.9.0\""; } >&5
14265  ($PKG_CONFIG --exists --print-errors "gobject-introspection-1.0 >= 0.9.0") 2>&5
14266  ac_status=$?
14267  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14268  test $ac_status = 0; }; then
14269  found_introspection=yes
14270else
14271  found_introspection=no
14272fi
14273     ;; #(
14274  *) :
14275                as_fn_error "invalid argument passed to --enable-introspection, should be one of [no/auto/yes]" "$LINENO" 5
14276     ;;
14277esac
14278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $found_introspection" >&5
14279$as_echo "$found_introspection" >&6; }
14280
14281    INTROSPECTION_SCANNER=
14282    INTROSPECTION_COMPILER=
14283    INTROSPECTION_GENERATE=
14284    INTROSPECTION_GIRDIR=
14285    INTROSPECTION_TYPELIBDIR=
14286    if test "x$found_introspection" = "xyes"; then
14287       INTROSPECTION_SCANNER=`$PKG_CONFIG --variable=g_ir_scanner gobject-introspection-1.0`
14288       INTROSPECTION_COMPILER=`$PKG_CONFIG --variable=g_ir_compiler gobject-introspection-1.0`
14289       INTROSPECTION_GENERATE=`$PKG_CONFIG --variable=g_ir_generate gobject-introspection-1.0`
14290       INTROSPECTION_GIRDIR=`$PKG_CONFIG --variable=girdir gobject-introspection-1.0`
14291       INTROSPECTION_TYPELIBDIR="$($PKG_CONFIG --variable=typelibdir gobject-introspection-1.0)"
14292       INTROSPECTION_CFLAGS=`$PKG_CONFIG --cflags gobject-introspection-1.0`
14293       INTROSPECTION_LIBS=`$PKG_CONFIG --libs gobject-introspection-1.0`
14294       INTROSPECTION_MAKEFILE=`$PKG_CONFIG --variable=datadir gobject-introspection-1.0`/gobject-introspection-1.0/Makefile.introspection
14295    fi
14296
14297
14298
14299
14300
14301
14302
14303
14304
14305     if test "x$found_introspection" = "xyes"; then
14306  HAVE_INTROSPECTION_TRUE=
14307  HAVE_INTROSPECTION_FALSE='#'
14308else
14309  HAVE_INTROSPECTION_TRUE='#'
14310  HAVE_INTROSPECTION_FALSE=
14311fi
14312
14313
14314
14315
14316################################################################################
14317
14318
14319
14320    # Extract the first word of "gtkdoc-check", so it can be a program name with args.
14321set dummy gtkdoc-check; ac_word=$2
14322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14323$as_echo_n "checking for $ac_word... " >&6; }
14324if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then :
14325  $as_echo_n "(cached) " >&6
14326else
14327  case $GTKDOC_CHECK in
14328  [\\/]* | ?:[\\/]*)
14329  ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path.
14330  ;;
14331  *)
14332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14333for as_dir in $PATH
14334do
14335  IFS=$as_save_IFS
14336  test -z "$as_dir" && as_dir=.
14337    for ac_exec_ext in '' $ac_executable_extensions; do
14338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14339    ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext"
14340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14341    break 2
14342  fi
14343done
14344  done
14345IFS=$as_save_IFS
14346
14347  ;;
14348esac
14349fi
14350GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK
14351if test -n "$GTKDOC_CHECK"; then
14352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_CHECK" >&5
14353$as_echo "$GTKDOC_CHECK" >&6; }
14354else
14355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14356$as_echo "no" >&6; }
14357fi
14358
14359
14360  for ac_prog in gtkdoc-rebase
14361do
14362  # Extract the first word of "$ac_prog", so it can be a program name with args.
14363set dummy $ac_prog; ac_word=$2
14364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14365$as_echo_n "checking for $ac_word... " >&6; }
14366if test "${ac_cv_path_GTKDOC_REBASE+set}" = set; then :
14367  $as_echo_n "(cached) " >&6
14368else
14369  case $GTKDOC_REBASE in
14370  [\\/]* | ?:[\\/]*)
14371  ac_cv_path_GTKDOC_REBASE="$GTKDOC_REBASE" # Let the user override the test with a path.
14372  ;;
14373  *)
14374  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14375for as_dir in $PATH
14376do
14377  IFS=$as_save_IFS
14378  test -z "$as_dir" && as_dir=.
14379    for ac_exec_ext in '' $ac_executable_extensions; do
14380  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14381    ac_cv_path_GTKDOC_REBASE="$as_dir/$ac_word$ac_exec_ext"
14382    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14383    break 2
14384  fi
14385done
14386  done
14387IFS=$as_save_IFS
14388
14389  ;;
14390esac
14391fi
14392GTKDOC_REBASE=$ac_cv_path_GTKDOC_REBASE
14393if test -n "$GTKDOC_REBASE"; then
14394  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_REBASE" >&5
14395$as_echo "$GTKDOC_REBASE" >&6; }
14396else
14397  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14398$as_echo "no" >&6; }
14399fi
14400
14401
14402  test -n "$GTKDOC_REBASE" && break
14403done
14404test -n "$GTKDOC_REBASE" || GTKDOC_REBASE="true"
14405
14406  # Extract the first word of "gtkdoc-mkpdf", so it can be a program name with args.
14407set dummy gtkdoc-mkpdf; ac_word=$2
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14409$as_echo_n "checking for $ac_word... " >&6; }
14410if test "${ac_cv_path_GTKDOC_MKPDF+set}" = set; then :
14411  $as_echo_n "(cached) " >&6
14412else
14413  case $GTKDOC_MKPDF in
14414  [\\/]* | ?:[\\/]*)
14415  ac_cv_path_GTKDOC_MKPDF="$GTKDOC_MKPDF" # Let the user override the test with a path.
14416  ;;
14417  *)
14418  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14419for as_dir in $PATH
14420do
14421  IFS=$as_save_IFS
14422  test -z "$as_dir" && as_dir=.
14423    for ac_exec_ext in '' $ac_executable_extensions; do
14424  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14425    ac_cv_path_GTKDOC_MKPDF="$as_dir/$ac_word$ac_exec_ext"
14426    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14427    break 2
14428  fi
14429done
14430  done
14431IFS=$as_save_IFS
14432
14433  ;;
14434esac
14435fi
14436GTKDOC_MKPDF=$ac_cv_path_GTKDOC_MKPDF
14437if test -n "$GTKDOC_MKPDF"; then
14438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTKDOC_MKPDF" >&5
14439$as_echo "$GTKDOC_MKPDF" >&6; }
14440else
14441  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14442$as_echo "no" >&6; }
14443fi
14444
14445
14446
14447
14448# Check whether --with-html-dir was given.
14449if test "${with_html_dir+set}" = set; then :
14450  withval=$with_html_dir;
14451else
14452  with_html_dir='${datadir}/gtk-doc/html'
14453fi
14454
14455  HTML_DIR="$with_html_dir"
14456
14457
14458    # Check whether --enable-gtk-doc was given.
14459if test "${enable_gtk_doc+set}" = set; then :
14460  enableval=$enable_gtk_doc;
14461else
14462  enable_gtk_doc=no
14463fi
14464
14465
14466  if test x$enable_gtk_doc = xyes; then
14467    if test -n "$PKG_CONFIG" && \
14468    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk-doc >= 1.13\""; } >&5
14469  ($PKG_CONFIG --exists --print-errors "gtk-doc >= 1.13") 2>&5
14470  ac_status=$?
14471  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14472  test $ac_status = 0; }; then
14473  :
14474else
14475  as_fn_error "You need to have gtk-doc >= 1.13 installed to build $PACKAGE_NAME" "$LINENO" 5
14476fi
14477  fi
14478
14479  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build gtk-doc documentation" >&5
14480$as_echo_n "checking whether to build gtk-doc documentation... " >&6; }
14481  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_gtk_doc" >&5
14482$as_echo "$enable_gtk_doc" >&6; }
14483
14484    # Check whether --enable-gtk-doc-html was given.
14485if test "${enable_gtk_doc_html+set}" = set; then :
14486  enableval=$enable_gtk_doc_html;
14487else
14488  enable_gtk_doc_html=yes
14489fi
14490
14491    # Check whether --enable-gtk-doc-pdf was given.
14492if test "${enable_gtk_doc_pdf+set}" = set; then :
14493  enableval=$enable_gtk_doc_pdf;
14494else
14495  enable_gtk_doc_pdf=no
14496fi
14497
14498
14499  if test -z "$GTKDOC_MKPDF"; then
14500    enable_gtk_doc_pdf=no
14501  fi
14502
14503
14504   if test x$enable_gtk_doc = xyes; then
14505  ENABLE_GTK_DOC_TRUE=
14506  ENABLE_GTK_DOC_FALSE='#'
14507else
14508  ENABLE_GTK_DOC_TRUE='#'
14509  ENABLE_GTK_DOC_FALSE=
14510fi
14511
14512   if test x$enable_gtk_doc_html = xyes; then
14513  GTK_DOC_BUILD_HTML_TRUE=
14514  GTK_DOC_BUILD_HTML_FALSE='#'
14515else
14516  GTK_DOC_BUILD_HTML_TRUE='#'
14517  GTK_DOC_BUILD_HTML_FALSE=
14518fi
14519
14520   if test x$enable_gtk_doc_pdf = xyes; then
14521  GTK_DOC_BUILD_PDF_TRUE=
14522  GTK_DOC_BUILD_PDF_FALSE='#'
14523else
14524  GTK_DOC_BUILD_PDF_TRUE='#'
14525  GTK_DOC_BUILD_PDF_FALSE=
14526fi
14527
14528   if test -n "$LIBTOOL"; then
14529  GTK_DOC_USE_LIBTOOL_TRUE=
14530  GTK_DOC_USE_LIBTOOL_FALSE='#'
14531else
14532  GTK_DOC_USE_LIBTOOL_TRUE='#'
14533  GTK_DOC_USE_LIBTOOL_FALSE=
14534fi
14535
14536   if test -n "$GTKDOC_REBASE"; then
14537  GTK_DOC_USE_REBASE_TRUE=
14538  GTK_DOC_USE_REBASE_FALSE='#'
14539else
14540  GTK_DOC_USE_REBASE_TRUE='#'
14541  GTK_DOC_USE_REBASE_FALSE=
14542fi
14543
14544
14545
14546GLIB_PREFIX=$($PKG_CONFIG --variable=prefix glib-2.0)
14547
14548GTK_PREFIX=$($PKG_CONFIG --variable=prefix gtk+-$GTK_API_VERSION)
14549
14550
14551################################################################################
14552
14553VTE_MAJOR_VERSION=0
14554
14555VTE_MINOR_VERSION=28
14556
14557VTE_MICRO_VERSION=2
14558
14559
14560################################################################################
14561
14562ac_config_files="$ac_config_files Makefile src/Makefile src/vteversion.h termcaps/Makefile perf/Makefile python/Makefile python/pyvte.pc po/Makefile.in doc/Makefile doc/openi18n/Makefile doc/reference/Makefile doc/reference/version.xml glade/Makefile"
14563
14564
14565ac_config_files="$ac_config_files vte${VTE_PC_VERSION}.pc:vte.pc.in"
14566
14567ac_config_files="$ac_config_files vte${VTE_PC_VERSION}-uninstalled.pc:vte-uninstalled.pc.in"
14568
14569
14570cat >confcache <<\_ACEOF
14571# This file is a shell script that caches the results of configure
14572# tests run on this system so they can be shared between configure
14573# scripts and configure runs, see configure's option --config-cache.
14574# It is not useful on other systems.  If it contains results you don't
14575# want to keep, you may remove or edit it.
14576#
14577# config.status only pays attention to the cache file if you give it
14578# the --recheck option to rerun configure.
14579#
14580# `ac_cv_env_foo' variables (set or unset) will be overridden when
14581# loading this file, other *unset* `ac_cv_foo' will be assigned the
14582# following values.
14583
14584_ACEOF
14585
14586# The following way of writing the cache mishandles newlines in values,
14587# but we know of no workaround that is simple, portable, and efficient.
14588# So, we kill variables containing newlines.
14589# Ultrix sh set writes to stderr and can't be redirected directly,
14590# and sets the high bit in the cache file unless we assign to the vars.
14591(
14592  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14593    eval ac_val=\$$ac_var
14594    case $ac_val in #(
14595    *${as_nl}*)
14596      case $ac_var in #(
14597      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14598$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14599      esac
14600      case $ac_var in #(
14601      _ | IFS | as_nl) ;; #(
14602      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14603      *) { eval $ac_var=; unset $ac_var;} ;;
14604      esac ;;
14605    esac
14606  done
14607
14608  (set) 2>&1 |
14609    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14610    *${as_nl}ac_space=\ *)
14611      # `set' does not quote correctly, so add quotes: double-quote
14612      # substitution turns \\\\ into \\, and sed turns \\ into \.
14613      sed -n \
14614	"s/'/'\\\\''/g;
14615	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14616      ;; #(
14617    *)
14618      # `set' quotes correctly as required by POSIX, so do not add quotes.
14619      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14620      ;;
14621    esac |
14622    sort
14623) |
14624  sed '
14625     /^ac_cv_env_/b end
14626     t clear
14627     :clear
14628     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14629     t end
14630     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14631     :end' >>confcache
14632if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14633  if test -w "$cache_file"; then
14634    test "x$cache_file" != "x/dev/null" &&
14635      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14636$as_echo "$as_me: updating cache $cache_file" >&6;}
14637    cat confcache >$cache_file
14638  else
14639    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14640$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14641  fi
14642fi
14643rm -f confcache
14644
14645test "x$prefix" = xNONE && prefix=$ac_default_prefix
14646# Let make expand exec_prefix.
14647test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14648
14649DEFS=-DHAVE_CONFIG_H
14650
14651ac_libobjs=
14652ac_ltlibobjs=
14653for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14654  # 1. Remove the extension, and $U if already installed.
14655  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14656  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14657  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
14658  #    will be set to the directory where LIBOBJS objects are built.
14659  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14660  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14661done
14662LIBOBJS=$ac_libobjs
14663
14664LTLIBOBJS=$ac_ltlibobjs
14665
14666
14667 if test -n "$EXEEXT"; then
14668  am__EXEEXT_TRUE=
14669  am__EXEEXT_FALSE='#'
14670else
14671  am__EXEEXT_TRUE='#'
14672  am__EXEEXT_FALSE=
14673fi
14674
14675if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14676  as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14677Usually this means the macro was only invoked conditionally." "$LINENO" 5
14678fi
14679if test -z "${HAVE_GTK_2_TRUE}" && test -z "${HAVE_GTK_2_FALSE}"; then
14680  as_fn_error "conditional \"HAVE_GTK_2\" was never defined.
14681Usually this means the macro was only invoked conditionally." "$LINENO" 5
14682fi
14683if test -z "${HAVE_GTK_3_TRUE}" && test -z "${HAVE_GTK_3_FALSE}"; then
14684  as_fn_error "conditional \"HAVE_GTK_3\" was never defined.
14685Usually this means the macro was only invoked conditionally." "$LINENO" 5
14686fi
14687if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14688  as_fn_error "conditional \"AMDEP\" was never defined.
14689Usually this means the macro was only invoked conditionally." "$LINENO" 5
14690fi
14691if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14692  as_fn_error "conditional \"am__fastdepCC\" was never defined.
14693Usually this means the macro was only invoked conditionally." "$LINENO" 5
14694fi
14695
14696  ac_config_commands="$ac_config_commands po/stamp-it"
14697
14698
14699if test -z "${PLATFORM_WIN32_TRUE}" && test -z "${PLATFORM_WIN32_FALSE}"; then
14700  as_fn_error "conditional \"PLATFORM_WIN32\" was never defined.
14701Usually this means the macro was only invoked conditionally." "$LINENO" 5
14702fi
14703if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
14704  as_fn_error "conditional \"OS_WIN32\" was never defined.
14705Usually this means the macro was only invoked conditionally." "$LINENO" 5
14706fi
14707if test -z "${VTE_DEFAULT_EMULATION_TRUE}" && test -z "${VTE_DEFAULT_EMULATION_FALSE}"; then
14708  as_fn_error "conditional \"VTE_DEFAULT_EMULATION\" was never defined.
14709Usually this means the macro was only invoked conditionally." "$LINENO" 5
14710fi
14711if test -z "${BUILD_PYTHON_MODULES_TRUE}" && test -z "${BUILD_PYTHON_MODULES_FALSE}"; then
14712  as_fn_error "conditional \"BUILD_PYTHON_MODULES\" was never defined.
14713Usually this means the macro was only invoked conditionally." "$LINENO" 5
14714fi
14715if test -z "${BUILD_GNOME_PTY_HELPER_TRUE}" && test -z "${BUILD_GNOME_PTY_HELPER_FALSE}"; then
14716  as_fn_error "conditional \"BUILD_GNOME_PTY_HELPER\" was never defined.
14717Usually this means the macro was only invoked conditionally." "$LINENO" 5
14718fi
14719if test -z "${ENABLE_GLADE_CATALOGUE_TRUE}" && test -z "${ENABLE_GLADE_CATALOGUE_FALSE}"; then
14720  as_fn_error "conditional \"ENABLE_GLADE_CATALOGUE\" was never defined.
14721Usually this means the macro was only invoked conditionally." "$LINENO" 5
14722fi
14723if test -z "${HAVE_INTROSPECTION_TRUE}" && test -z "${HAVE_INTROSPECTION_FALSE}"; then
14724  as_fn_error "conditional \"HAVE_INTROSPECTION\" was never defined.
14725Usually this means the macro was only invoked conditionally." "$LINENO" 5
14726fi
14727if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
14728  as_fn_error "conditional \"ENABLE_GTK_DOC\" was never defined.
14729Usually this means the macro was only invoked conditionally." "$LINENO" 5
14730fi
14731if test -z "${GTK_DOC_BUILD_HTML_TRUE}" && test -z "${GTK_DOC_BUILD_HTML_FALSE}"; then
14732  as_fn_error "conditional \"GTK_DOC_BUILD_HTML\" was never defined.
14733Usually this means the macro was only invoked conditionally." "$LINENO" 5
14734fi
14735if test -z "${GTK_DOC_BUILD_PDF_TRUE}" && test -z "${GTK_DOC_BUILD_PDF_FALSE}"; then
14736  as_fn_error "conditional \"GTK_DOC_BUILD_PDF\" was never defined.
14737Usually this means the macro was only invoked conditionally." "$LINENO" 5
14738fi
14739if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
14740  as_fn_error "conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
14741Usually this means the macro was only invoked conditionally." "$LINENO" 5
14742fi
14743if test -z "${GTK_DOC_USE_REBASE_TRUE}" && test -z "${GTK_DOC_USE_REBASE_FALSE}"; then
14744  as_fn_error "conditional \"GTK_DOC_USE_REBASE\" was never defined.
14745Usually this means the macro was only invoked conditionally." "$LINENO" 5
14746fi
14747
14748: ${CONFIG_STATUS=./config.status}
14749ac_write_fail=0
14750ac_clean_files_save=$ac_clean_files
14751ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14752{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14753$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14754as_write_fail=0
14755cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14756#! $SHELL
14757# Generated by $as_me.
14758# Run this file to recreate the current configuration.
14759# Compiler output produced by configure, useful for debugging
14760# configure, is in config.log if it exists.
14761
14762debug=false
14763ac_cs_recheck=false
14764ac_cs_silent=false
14765
14766SHELL=\${CONFIG_SHELL-$SHELL}
14767export SHELL
14768_ASEOF
14769cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14770## -------------------- ##
14771## M4sh Initialization. ##
14772## -------------------- ##
14773
14774# Be more Bourne compatible
14775DUALCASE=1; export DUALCASE # for MKS sh
14776if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14777  emulate sh
14778  NULLCMD=:
14779  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14780  # is contrary to our usage.  Disable this feature.
14781  alias -g '${1+"$@"}'='"$@"'
14782  setopt NO_GLOB_SUBST
14783else
14784  case `(set -o) 2>/dev/null` in #(
14785  *posix*) :
14786    set -o posix ;; #(
14787  *) :
14788     ;;
14789esac
14790fi
14791
14792
14793as_nl='
14794'
14795export as_nl
14796# Printing a long string crashes Solaris 7 /usr/bin/printf.
14797as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14798as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14799as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14800# Prefer a ksh shell builtin over an external printf program on Solaris,
14801# but without wasting forks for bash or zsh.
14802if test -z "$BASH_VERSION$ZSH_VERSION" \
14803    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14804  as_echo='print -r --'
14805  as_echo_n='print -rn --'
14806elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14807  as_echo='printf %s\n'
14808  as_echo_n='printf %s'
14809else
14810  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14811    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14812    as_echo_n='/usr/ucb/echo -n'
14813  else
14814    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14815    as_echo_n_body='eval
14816      arg=$1;
14817      case $arg in #(
14818      *"$as_nl"*)
14819	expr "X$arg" : "X\\(.*\\)$as_nl";
14820	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14821      esac;
14822      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14823    '
14824    export as_echo_n_body
14825    as_echo_n='sh -c $as_echo_n_body as_echo'
14826  fi
14827  export as_echo_body
14828  as_echo='sh -c $as_echo_body as_echo'
14829fi
14830
14831# The user is always right.
14832if test "${PATH_SEPARATOR+set}" != set; then
14833  PATH_SEPARATOR=:
14834  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14835    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14836      PATH_SEPARATOR=';'
14837  }
14838fi
14839
14840
14841# IFS
14842# We need space, tab and new line, in precisely that order.  Quoting is
14843# there to prevent editors from complaining about space-tab.
14844# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14845# splitting by setting IFS to empty value.)
14846IFS=" ""	$as_nl"
14847
14848# Find who we are.  Look in the path if we contain no directory separator.
14849case $0 in #((
14850  *[\\/]* ) as_myself=$0 ;;
14851  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14852for as_dir in $PATH
14853do
14854  IFS=$as_save_IFS
14855  test -z "$as_dir" && as_dir=.
14856    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14857  done
14858IFS=$as_save_IFS
14859
14860     ;;
14861esac
14862# We did not find ourselves, most probably we were run as `sh COMMAND'
14863# in which case we are not to be found in the path.
14864if test "x$as_myself" = x; then
14865  as_myself=$0
14866fi
14867if test ! -f "$as_myself"; then
14868  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14869  exit 1
14870fi
14871
14872# Unset variables that we do not need and which cause bugs (e.g. in
14873# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
14874# suppresses any "Segmentation fault" message there.  '((' could
14875# trigger a bug in pdksh 5.2.14.
14876for as_var in BASH_ENV ENV MAIL MAILPATH
14877do eval test x\${$as_var+set} = xset \
14878  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14879done
14880PS1='$ '
14881PS2='> '
14882PS4='+ '
14883
14884# NLS nuisances.
14885LC_ALL=C
14886export LC_ALL
14887LANGUAGE=C
14888export LANGUAGE
14889
14890# CDPATH.
14891(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14892
14893
14894# as_fn_error ERROR [LINENO LOG_FD]
14895# ---------------------------------
14896# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14897# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14898# script with status $?, using 1 if that was 0.
14899as_fn_error ()
14900{
14901  as_status=$?; test $as_status -eq 0 && as_status=1
14902  if test "$3"; then
14903    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14904    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14905  fi
14906  $as_echo "$as_me: error: $1" >&2
14907  as_fn_exit $as_status
14908} # as_fn_error
14909
14910
14911# as_fn_set_status STATUS
14912# -----------------------
14913# Set $? to STATUS, without forking.
14914as_fn_set_status ()
14915{
14916  return $1
14917} # as_fn_set_status
14918
14919# as_fn_exit STATUS
14920# -----------------
14921# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14922as_fn_exit ()
14923{
14924  set +e
14925  as_fn_set_status $1
14926  exit $1
14927} # as_fn_exit
14928
14929# as_fn_unset VAR
14930# ---------------
14931# Portably unset VAR.
14932as_fn_unset ()
14933{
14934  { eval $1=; unset $1;}
14935}
14936as_unset=as_fn_unset
14937# as_fn_append VAR VALUE
14938# ----------------------
14939# Append the text in VALUE to the end of the definition contained in VAR. Take
14940# advantage of any shell optimizations that allow amortized linear growth over
14941# repeated appends, instead of the typical quadratic growth present in naive
14942# implementations.
14943if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14944  eval 'as_fn_append ()
14945  {
14946    eval $1+=\$2
14947  }'
14948else
14949  as_fn_append ()
14950  {
14951    eval $1=\$$1\$2
14952  }
14953fi # as_fn_append
14954
14955# as_fn_arith ARG...
14956# ------------------
14957# Perform arithmetic evaluation on the ARGs, and store the result in the
14958# global $as_val. Take advantage of shells that can avoid forks. The arguments
14959# must be portable across $(()) and expr.
14960if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14961  eval 'as_fn_arith ()
14962  {
14963    as_val=$(( $* ))
14964  }'
14965else
14966  as_fn_arith ()
14967  {
14968    as_val=`expr "$@" || test $? -eq 1`
14969  }
14970fi # as_fn_arith
14971
14972
14973if expr a : '\(a\)' >/dev/null 2>&1 &&
14974   test "X`expr 00001 : '.*\(...\)'`" = X001; then
14975  as_expr=expr
14976else
14977  as_expr=false
14978fi
14979
14980if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14981  as_basename=basename
14982else
14983  as_basename=false
14984fi
14985
14986if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14987  as_dirname=dirname
14988else
14989  as_dirname=false
14990fi
14991
14992as_me=`$as_basename -- "$0" ||
14993$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14994	 X"$0" : 'X\(//\)$' \| \
14995	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14996$as_echo X/"$0" |
14997    sed '/^.*\/\([^/][^/]*\)\/*$/{
14998	    s//\1/
14999	    q
15000	  }
15001	  /^X\/\(\/\/\)$/{
15002	    s//\1/
15003	    q
15004	  }
15005	  /^X\/\(\/\).*/{
15006	    s//\1/
15007	    q
15008	  }
15009	  s/.*/./; q'`
15010
15011# Avoid depending upon Character Ranges.
15012as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15013as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15014as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15015as_cr_digits='0123456789'
15016as_cr_alnum=$as_cr_Letters$as_cr_digits
15017
15018ECHO_C= ECHO_N= ECHO_T=
15019case `echo -n x` in #(((((
15020-n*)
15021  case `echo 'xy\c'` in
15022  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15023  xy)  ECHO_C='\c';;
15024  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15025       ECHO_T='	';;
15026  esac;;
15027*)
15028  ECHO_N='-n';;
15029esac
15030
15031rm -f conf$$ conf$$.exe conf$$.file
15032if test -d conf$$.dir; then
15033  rm -f conf$$.dir/conf$$.file
15034else
15035  rm -f conf$$.dir
15036  mkdir conf$$.dir 2>/dev/null
15037fi
15038if (echo >conf$$.file) 2>/dev/null; then
15039  if ln -s conf$$.file conf$$ 2>/dev/null; then
15040    as_ln_s='ln -s'
15041    # ... but there are two gotchas:
15042    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15043    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15044    # In both cases, we have to default to `cp -p'.
15045    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15046      as_ln_s='cp -p'
15047  elif ln conf$$.file conf$$ 2>/dev/null; then
15048    as_ln_s=ln
15049  else
15050    as_ln_s='cp -p'
15051  fi
15052else
15053  as_ln_s='cp -p'
15054fi
15055rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15056rmdir conf$$.dir 2>/dev/null
15057
15058
15059# as_fn_mkdir_p
15060# -------------
15061# Create "$as_dir" as a directory, including parents if necessary.
15062as_fn_mkdir_p ()
15063{
15064
15065  case $as_dir in #(
15066  -*) as_dir=./$as_dir;;
15067  esac
15068  test -d "$as_dir" || eval $as_mkdir_p || {
15069    as_dirs=
15070    while :; do
15071      case $as_dir in #(
15072      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15073      *) as_qdir=$as_dir;;
15074      esac
15075      as_dirs="'$as_qdir' $as_dirs"
15076      as_dir=`$as_dirname -- "$as_dir" ||
15077$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15078	 X"$as_dir" : 'X\(//\)[^/]' \| \
15079	 X"$as_dir" : 'X\(//\)$' \| \
15080	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15081$as_echo X"$as_dir" |
15082    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15083	    s//\1/
15084	    q
15085	  }
15086	  /^X\(\/\/\)[^/].*/{
15087	    s//\1/
15088	    q
15089	  }
15090	  /^X\(\/\/\)$/{
15091	    s//\1/
15092	    q
15093	  }
15094	  /^X\(\/\).*/{
15095	    s//\1/
15096	    q
15097	  }
15098	  s/.*/./; q'`
15099      test -d "$as_dir" && break
15100    done
15101    test -z "$as_dirs" || eval "mkdir $as_dirs"
15102  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15103
15104
15105} # as_fn_mkdir_p
15106if mkdir -p . 2>/dev/null; then
15107  as_mkdir_p='mkdir -p "$as_dir"'
15108else
15109  test -d ./-p && rmdir ./-p
15110  as_mkdir_p=false
15111fi
15112
15113if test -x / >/dev/null 2>&1; then
15114  as_test_x='test -x'
15115else
15116  if ls -dL / >/dev/null 2>&1; then
15117    as_ls_L_option=L
15118  else
15119    as_ls_L_option=
15120  fi
15121  as_test_x='
15122    eval sh -c '\''
15123      if test -d "$1"; then
15124	test -d "$1/.";
15125      else
15126	case $1 in #(
15127	-*)set "./$1";;
15128	esac;
15129	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15130	???[sx]*):;;*)false;;esac;fi
15131    '\'' sh
15132  '
15133fi
15134as_executable_p=$as_test_x
15135
15136# Sed expression to map a string onto a valid CPP name.
15137as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15138
15139# Sed expression to map a string onto a valid variable name.
15140as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15141
15142
15143exec 6>&1
15144## ----------------------------------- ##
15145## Main body of $CONFIG_STATUS script. ##
15146## ----------------------------------- ##
15147_ASEOF
15148test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15149
15150cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15151# Save the log message, to keep $0 and so on meaningful, and to
15152# report actual input values of CONFIG_FILES etc. instead of their
15153# values after options handling.
15154ac_log="
15155This file was extended by vte $as_me 0.28.2, which was
15156generated by GNU Autoconf 2.65.  Invocation command line was
15157
15158  CONFIG_FILES    = $CONFIG_FILES
15159  CONFIG_HEADERS  = $CONFIG_HEADERS
15160  CONFIG_LINKS    = $CONFIG_LINKS
15161  CONFIG_COMMANDS = $CONFIG_COMMANDS
15162  $ $0 $@
15163
15164on `(hostname || uname -n) 2>/dev/null | sed 1q`
15165"
15166
15167_ACEOF
15168
15169case $ac_config_files in *"
15170"*) set x $ac_config_files; shift; ac_config_files=$*;;
15171esac
15172
15173case $ac_config_headers in *"
15174"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15175esac
15176
15177
15178cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15179# Files that config.status was made for.
15180config_files="$ac_config_files"
15181config_headers="$ac_config_headers"
15182config_commands="$ac_config_commands"
15183
15184_ACEOF
15185
15186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15187ac_cs_usage="\
15188\`$as_me' instantiates files and other configuration actions
15189from templates according to the current configuration.  Unless the files
15190and actions are specified as TAGs, all are instantiated by default.
15191
15192Usage: $0 [OPTION]... [TAG]...
15193
15194  -h, --help       print this help, then exit
15195  -V, --version    print version number and configuration settings, then exit
15196      --config     print configuration, then exit
15197  -q, --quiet, --silent
15198                   do not print progress messages
15199  -d, --debug      don't remove temporary files
15200      --recheck    update $as_me by reconfiguring in the same conditions
15201      --file=FILE[:TEMPLATE]
15202                   instantiate the configuration file FILE
15203      --header=FILE[:TEMPLATE]
15204                   instantiate the configuration header FILE
15205
15206Configuration files:
15207$config_files
15208
15209Configuration headers:
15210$config_headers
15211
15212Configuration commands:
15213$config_commands
15214
15215Report bugs to <http://bugzilla.gnome.org/enter_bug.cgi?product=vte>."
15216
15217_ACEOF
15218cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15219ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15220ac_cs_version="\\
15221vte config.status 0.28.2
15222configured by $0, generated by GNU Autoconf 2.65,
15223  with options \\"\$ac_cs_config\\"
15224
15225Copyright (C) 2009 Free Software Foundation, Inc.
15226This config.status script is free software; the Free Software Foundation
15227gives unlimited permission to copy, distribute and modify it."
15228
15229ac_pwd='$ac_pwd'
15230srcdir='$srcdir'
15231INSTALL='$INSTALL'
15232MKDIR_P='$MKDIR_P'
15233AWK='$AWK'
15234test -n "\$AWK" || AWK=awk
15235_ACEOF
15236
15237cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15238# The default lists apply if the user does not specify any file.
15239ac_need_defaults=:
15240while test $# != 0
15241do
15242  case $1 in
15243  --*=*)
15244    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15245    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15246    ac_shift=:
15247    ;;
15248  *)
15249    ac_option=$1
15250    ac_optarg=$2
15251    ac_shift=shift
15252    ;;
15253  esac
15254
15255  case $ac_option in
15256  # Handling of the options.
15257  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15258    ac_cs_recheck=: ;;
15259  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15260    $as_echo "$ac_cs_version"; exit ;;
15261  --config | --confi | --conf | --con | --co | --c )
15262    $as_echo "$ac_cs_config"; exit ;;
15263  --debug | --debu | --deb | --de | --d | -d )
15264    debug=: ;;
15265  --file | --fil | --fi | --f )
15266    $ac_shift
15267    case $ac_optarg in
15268    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15269    esac
15270    as_fn_append CONFIG_FILES " '$ac_optarg'"
15271    ac_need_defaults=false;;
15272  --header | --heade | --head | --hea )
15273    $ac_shift
15274    case $ac_optarg in
15275    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15276    esac
15277    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15278    ac_need_defaults=false;;
15279  --he | --h)
15280    # Conflict between --help and --header
15281    as_fn_error "ambiguous option: \`$1'
15282Try \`$0 --help' for more information.";;
15283  --help | --hel | -h )
15284    $as_echo "$ac_cs_usage"; exit ;;
15285  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15286  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15287    ac_cs_silent=: ;;
15288
15289  # This is an error.
15290  -*) as_fn_error "unrecognized option: \`$1'
15291Try \`$0 --help' for more information." ;;
15292
15293  *) as_fn_append ac_config_targets " $1"
15294     ac_need_defaults=false ;;
15295
15296  esac
15297  shift
15298done
15299
15300ac_configure_extra_args=
15301
15302if $ac_cs_silent; then
15303  exec 6>/dev/null
15304  ac_configure_extra_args="$ac_configure_extra_args --silent"
15305fi
15306
15307_ACEOF
15308cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15309if \$ac_cs_recheck; then
15310  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15311  shift
15312  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15313  CONFIG_SHELL='$SHELL'
15314  export CONFIG_SHELL
15315  exec "\$@"
15316fi
15317
15318_ACEOF
15319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15320exec 5>>config.log
15321{
15322  echo
15323  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15324## Running $as_me. ##
15325_ASBOX
15326  $as_echo "$ac_log"
15327} >&5
15328
15329_ACEOF
15330cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15331#
15332# INIT-COMMANDS
15333#
15334AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15335
15336
15337# The HP-UX ksh and POSIX shell print the target directory to stdout
15338# if CDPATH is set.
15339(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15340
15341sed_quote_subst='$sed_quote_subst'
15342double_quote_subst='$double_quote_subst'
15343delay_variable_subst='$delay_variable_subst'
15344macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
15345macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
15346enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
15347enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
15348pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
15349enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
15350host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
15351host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
15352host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
15353build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
15354build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
15355build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
15356SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
15357Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
15358GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
15359EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
15360FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
15361LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
15362NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
15363LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
15364max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
15365ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
15366exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
15367lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
15368lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
15369lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
15370reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
15371reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15372OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
15373deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
15374file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
15375AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
15376AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15377STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
15378RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
15379old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15380old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15381old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15382CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
15383CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
15384compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
15385GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
15386lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
15387lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
15388lt_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"`'
15389lt_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"`'
15390objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
15391SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
15392ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
15393MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
15394lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
15395lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
15396lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
15397lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
15398lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
15399need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
15400DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
15401NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
15402LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
15403OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
15404OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
15405libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
15406shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15407extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15408archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
15409enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
15410export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15411whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15412compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
15413old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15414old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15415archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15416archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15417module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15418module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15419with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
15420allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15421no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
15422hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
15423hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
15424hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
15425hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
15426hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
15427hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
15428hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15429hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
15430inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
15431link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
15432fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
15433always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
15434export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15435exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15436include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
15437prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15438file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
15439variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
15440need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
15441need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
15442version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
15443runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15444shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
15445shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
15446libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15447library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
15448soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
15449postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15450postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15451finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
15452finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
15453hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
15454sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15455sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
15456hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
15457enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
15458enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
15459enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
15460old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
15461striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
15462
15463LTCC='$LTCC'
15464LTCFLAGS='$LTCFLAGS'
15465compiler='$compiler_DEFAULT'
15466
15467# Quote evaled strings.
15468for var in SED \
15469GREP \
15470EGREP \
15471FGREP \
15472LD \
15473NM \
15474LN_S \
15475lt_SP2NL \
15476lt_NL2SP \
15477reload_flag \
15478OBJDUMP \
15479deplibs_check_method \
15480file_magic_cmd \
15481AR \
15482AR_FLAGS \
15483STRIP \
15484RANLIB \
15485CC \
15486CFLAGS \
15487compiler \
15488lt_cv_sys_global_symbol_pipe \
15489lt_cv_sys_global_symbol_to_cdecl \
15490lt_cv_sys_global_symbol_to_c_name_address \
15491lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15492SHELL \
15493ECHO \
15494lt_prog_compiler_no_builtin_flag \
15495lt_prog_compiler_wl \
15496lt_prog_compiler_pic \
15497lt_prog_compiler_static \
15498lt_cv_prog_compiler_c_o \
15499need_locks \
15500DSYMUTIL \
15501NMEDIT \
15502LIPO \
15503OTOOL \
15504OTOOL64 \
15505shrext_cmds \
15506export_dynamic_flag_spec \
15507whole_archive_flag_spec \
15508compiler_needs_object \
15509with_gnu_ld \
15510allow_undefined_flag \
15511no_undefined_flag \
15512hardcode_libdir_flag_spec \
15513hardcode_libdir_flag_spec_ld \
15514hardcode_libdir_separator \
15515fix_srcfile_path \
15516exclude_expsyms \
15517include_expsyms \
15518file_list_spec \
15519variables_saved_for_relink \
15520libname_spec \
15521library_names_spec \
15522soname_spec \
15523finish_eval \
15524old_striplib \
15525striplib; do
15526    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15527    *[\\\\\\\`\\"\\\$]*)
15528      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15529      ;;
15530    *)
15531      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15532      ;;
15533    esac
15534done
15535
15536# Double-quote double-evaled strings.
15537for var in reload_cmds \
15538old_postinstall_cmds \
15539old_postuninstall_cmds \
15540old_archive_cmds \
15541extract_expsyms_cmds \
15542old_archive_from_new_cmds \
15543old_archive_from_expsyms_cmds \
15544archive_cmds \
15545archive_expsym_cmds \
15546module_cmds \
15547module_expsym_cmds \
15548export_symbols_cmds \
15549prelink_cmds \
15550postinstall_cmds \
15551postuninstall_cmds \
15552finish_cmds \
15553sys_lib_search_path_spec \
15554sys_lib_dlsearch_path_spec; do
15555    case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
15556    *[\\\\\\\`\\"\\\$]*)
15557      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15558      ;;
15559    *)
15560      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15561      ;;
15562    esac
15563done
15564
15565# Fix-up fallback echo if it was mangled by the above quoting rules.
15566case \$lt_ECHO in
15567*'\\\$0 --fallback-echo"')  lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
15568  ;;
15569esac
15570
15571ac_aux_dir='$ac_aux_dir'
15572xsi_shell='$xsi_shell'
15573lt_shell_append='$lt_shell_append'
15574
15575# See if we are running on zsh, and set the options which allow our
15576# commands through without removal of \ escapes INIT.
15577if test -n "\${ZSH_VERSION+set}" ; then
15578   setopt NO_GLOB_SUBST
15579fi
15580
15581
15582    PACKAGE='$PACKAGE'
15583    VERSION='$VERSION'
15584    TIMESTAMP='$TIMESTAMP'
15585    RM='$RM'
15586    ofile='$ofile'
15587
15588
15589
15590
15591
15592_ACEOF
15593
15594cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15595
15596# Handling of arguments.
15597for ac_config_target in $ac_config_targets
15598do
15599  case $ac_config_target in
15600    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15601    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15602    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15603    "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15604    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15605    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
15606    "src/vteversion.h") CONFIG_FILES="$CONFIG_FILES src/vteversion.h" ;;
15607    "termcaps/Makefile") CONFIG_FILES="$CONFIG_FILES termcaps/Makefile" ;;
15608    "perf/Makefile") CONFIG_FILES="$CONFIG_FILES perf/Makefile" ;;
15609    "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
15610    "python/pyvte.pc") CONFIG_FILES="$CONFIG_FILES python/pyvte.pc" ;;
15611    "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
15612    "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
15613    "doc/openi18n/Makefile") CONFIG_FILES="$CONFIG_FILES doc/openi18n/Makefile" ;;
15614    "doc/reference/Makefile") CONFIG_FILES="$CONFIG_FILES doc/reference/Makefile" ;;
15615    "doc/reference/version.xml") CONFIG_FILES="$CONFIG_FILES doc/reference/version.xml" ;;
15616    "glade/Makefile") CONFIG_FILES="$CONFIG_FILES glade/Makefile" ;;
15617    "vte${VTE_PC_VERSION}.pc") CONFIG_FILES="$CONFIG_FILES vte${VTE_PC_VERSION}.pc:vte.pc.in" ;;
15618    "vte${VTE_PC_VERSION}-uninstalled.pc") CONFIG_FILES="$CONFIG_FILES vte${VTE_PC_VERSION}-uninstalled.pc:vte-uninstalled.pc.in" ;;
15619    "po/stamp-it") CONFIG_COMMANDS="$CONFIG_COMMANDS po/stamp-it" ;;
15620
15621  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15622  esac
15623done
15624
15625
15626# If the user did not use the arguments to specify the items to instantiate,
15627# then the envvar interface is used.  Set only those that are not.
15628# We use the long form for the default assignment because of an extremely
15629# bizarre bug on SunOS 4.1.3.
15630if $ac_need_defaults; then
15631  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15632  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15633  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15634fi
15635
15636# Have a temporary directory for convenience.  Make it in the build tree
15637# simply because there is no reason against having it here, and in addition,
15638# creating and moving files from /tmp can sometimes cause problems.
15639# Hook for its removal unless debugging.
15640# Note that there is a small window in which the directory will not be cleaned:
15641# after its creation but before its name has been assigned to `$tmp'.
15642$debug ||
15643{
15644  tmp=
15645  trap 'exit_status=$?
15646  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15647' 0
15648  trap 'as_fn_exit 1' 1 2 13 15
15649}
15650# Create a (secure) tmp directory for tmp files.
15651
15652{
15653  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15654  test -n "$tmp" && test -d "$tmp"
15655}  ||
15656{
15657  tmp=./conf$$-$RANDOM
15658  (umask 077 && mkdir "$tmp")
15659} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15660
15661# Set up the scripts for CONFIG_FILES section.
15662# No need to generate them if there are no CONFIG_FILES.
15663# This happens for instance with `./config.status config.h'.
15664if test -n "$CONFIG_FILES"; then
15665
15666
15667ac_cr=`echo X | tr X '\015'`
15668# On cygwin, bash can eat \r inside `` if the user requested igncr.
15669# But we know of no other shell where ac_cr would be empty at this
15670# point, so we can use a bashism as a fallback.
15671if test "x$ac_cr" = x; then
15672  eval ac_cr=\$\'\\r\'
15673fi
15674ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15675if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15676  ac_cs_awk_cr='\r'
15677else
15678  ac_cs_awk_cr=$ac_cr
15679fi
15680
15681echo 'BEGIN {' >"$tmp/subs1.awk" &&
15682_ACEOF
15683
15684
15685{
15686  echo "cat >conf$$subs.awk <<_ACEOF" &&
15687  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15688  echo "_ACEOF"
15689} >conf$$subs.sh ||
15690  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15691ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15692ac_delim='%!_!# '
15693for ac_last_try in false false false false false :; do
15694  . ./conf$$subs.sh ||
15695    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15696
15697  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15698  if test $ac_delim_n = $ac_delim_num; then
15699    break
15700  elif $ac_last_try; then
15701    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15702  else
15703    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15704  fi
15705done
15706rm -f conf$$subs.sh
15707
15708cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15709cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15710_ACEOF
15711sed -n '
15712h
15713s/^/S["/; s/!.*/"]=/
15714p
15715g
15716s/^[^!]*!//
15717:repl
15718t repl
15719s/'"$ac_delim"'$//
15720t delim
15721:nl
15722h
15723s/\(.\{148\}\)..*/\1/
15724t more1
15725s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15726p
15727n
15728b repl
15729:more1
15730s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15731p
15732g
15733s/.\{148\}//
15734t nl
15735:delim
15736h
15737s/\(.\{148\}\)..*/\1/
15738t more2
15739s/["\\]/\\&/g; s/^/"/; s/$/"/
15740p
15741b
15742:more2
15743s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15744p
15745g
15746s/.\{148\}//
15747t delim
15748' <conf$$subs.awk | sed '
15749/^[^""]/{
15750  N
15751  s/\n//
15752}
15753' >>$CONFIG_STATUS || ac_write_fail=1
15754rm -f conf$$subs.awk
15755cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15756_ACAWK
15757cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15758  for (key in S) S_is_set[key] = 1
15759  FS = ""
15760
15761}
15762{
15763  line = $ 0
15764  nfields = split(line, field, "@")
15765  substed = 0
15766  len = length(field[1])
15767  for (i = 2; i < nfields; i++) {
15768    key = field[i]
15769    keylen = length(key)
15770    if (S_is_set[key]) {
15771      value = S[key]
15772      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15773      len += length(value) + length(field[++i])
15774      substed = 1
15775    } else
15776      len += 1 + keylen
15777  }
15778
15779  print line
15780}
15781
15782_ACAWK
15783_ACEOF
15784cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15785if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15786  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15787else
15788  cat
15789fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15790  || as_fn_error "could not setup config files machinery" "$LINENO" 5
15791_ACEOF
15792
15793# VPATH may cause trouble with some makes, so we remove $(srcdir),
15794# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15795# trailing colons and then remove the whole line if VPATH becomes empty
15796# (actually we leave an empty line to preserve line numbers).
15797if test "x$srcdir" = x.; then
15798  ac_vpsub='/^[	 ]*VPATH[	 ]*=/{
15799s/:*\$(srcdir):*/:/
15800s/:*\${srcdir}:*/:/
15801s/:*@srcdir@:*/:/
15802s/^\([^=]*=[	 ]*\):*/\1/
15803s/:*$//
15804s/^[^=]*=[	 ]*$//
15805}'
15806fi
15807
15808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15809fi # test -n "$CONFIG_FILES"
15810
15811# Set up the scripts for CONFIG_HEADERS section.
15812# No need to generate them if there are no CONFIG_HEADERS.
15813# This happens for instance with `./config.status Makefile'.
15814if test -n "$CONFIG_HEADERS"; then
15815cat >"$tmp/defines.awk" <<\_ACAWK ||
15816BEGIN {
15817_ACEOF
15818
15819# Transform confdefs.h into an awk script `defines.awk', embedded as
15820# here-document in config.status, that substitutes the proper values into
15821# config.h.in to produce config.h.
15822
15823# Create a delimiter string that does not exist in confdefs.h, to ease
15824# handling of long lines.
15825ac_delim='%!_!# '
15826for ac_last_try in false false :; do
15827  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15828  if test -z "$ac_t"; then
15829    break
15830  elif $ac_last_try; then
15831    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
15832  else
15833    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15834  fi
15835done
15836
15837# For the awk script, D is an array of macro values keyed by name,
15838# likewise P contains macro parameters if any.  Preserve backslash
15839# newline sequences.
15840
15841ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15842sed -n '
15843s/.\{148\}/&'"$ac_delim"'/g
15844t rset
15845:rset
15846s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
15847t def
15848d
15849:def
15850s/\\$//
15851t bsnl
15852s/["\\]/\\&/g
15853s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15854D["\1"]=" \3"/p
15855s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
15856d
15857:bsnl
15858s/["\\]/\\&/g
15859s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
15860D["\1"]=" \3\\\\\\n"\\/p
15861t cont
15862s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15863t cont
15864d
15865:cont
15866n
15867s/.\{148\}/&'"$ac_delim"'/g
15868t clear
15869:clear
15870s/\\$//
15871t bsnlc
15872s/["\\]/\\&/g; s/^/"/; s/$/"/p
15873d
15874:bsnlc
15875s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15876b cont
15877' <confdefs.h | sed '
15878s/'"$ac_delim"'/"\\\
15879"/g' >>$CONFIG_STATUS || ac_write_fail=1
15880
15881cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15882  for (key in D) D_is_set[key] = 1
15883  FS = ""
15884}
15885/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15886  line = \$ 0
15887  split(line, arg, " ")
15888  if (arg[1] == "#") {
15889    defundef = arg[2]
15890    mac1 = arg[3]
15891  } else {
15892    defundef = substr(arg[1], 2)
15893    mac1 = arg[2]
15894  }
15895  split(mac1, mac2, "(") #)
15896  macro = mac2[1]
15897  prefix = substr(line, 1, index(line, defundef) - 1)
15898  if (D_is_set[macro]) {
15899    # Preserve the white space surrounding the "#".
15900    print prefix "define", macro P[macro] D[macro]
15901    next
15902  } else {
15903    # Replace #undef with comments.  This is necessary, for example,
15904    # in the case of _POSIX_SOURCE, which is predefined and required
15905    # on some systems where configure will not decide to define it.
15906    if (defundef == "undef") {
15907      print "/*", prefix defundef, macro, "*/"
15908      next
15909    }
15910  }
15911}
15912{ print }
15913_ACAWK
15914_ACEOF
15915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15916  as_fn_error "could not setup config headers machinery" "$LINENO" 5
15917fi # test -n "$CONFIG_HEADERS"
15918
15919
15920eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
15921shift
15922for ac_tag
15923do
15924  case $ac_tag in
15925  :[FHLC]) ac_mode=$ac_tag; continue;;
15926  esac
15927  case $ac_mode$ac_tag in
15928  :[FHL]*:*);;
15929  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15930  :[FH]-) ac_tag=-:-;;
15931  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15932  esac
15933  ac_save_IFS=$IFS
15934  IFS=:
15935  set x $ac_tag
15936  IFS=$ac_save_IFS
15937  shift
15938  ac_file=$1
15939  shift
15940
15941  case $ac_mode in
15942  :L) ac_source=$1;;
15943  :[FH])
15944    ac_file_inputs=
15945    for ac_f
15946    do
15947      case $ac_f in
15948      -) ac_f="$tmp/stdin";;
15949      *) # Look for the file first in the build tree, then in the source tree
15950	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
15951	 # because $ac_f cannot contain `:'.
15952	 test -f "$ac_f" ||
15953	   case $ac_f in
15954	   [\\/$]*) false;;
15955	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15956	   esac ||
15957	   as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15958      esac
15959      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15960      as_fn_append ac_file_inputs " '$ac_f'"
15961    done
15962
15963    # Let's still pretend it is `configure' which instantiates (i.e., don't
15964    # use $as_me), people would be surprised to read:
15965    #    /* config.h.  Generated by config.status.  */
15966    configure_input='Generated from '`
15967	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15968	`' by configure.'
15969    if test x"$ac_file" != x-; then
15970      configure_input="$ac_file.  $configure_input"
15971      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15972$as_echo "$as_me: creating $ac_file" >&6;}
15973    fi
15974    # Neutralize special characters interpreted by sed in replacement strings.
15975    case $configure_input in #(
15976    *\&* | *\|* | *\\* )
15977       ac_sed_conf_input=`$as_echo "$configure_input" |
15978       sed 's/[\\\\&|]/\\\\&/g'`;; #(
15979    *) ac_sed_conf_input=$configure_input;;
15980    esac
15981
15982    case $ac_tag in
15983    *:-:* | *:-) cat >"$tmp/stdin" \
15984      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15985    esac
15986    ;;
15987  esac
15988
15989  ac_dir=`$as_dirname -- "$ac_file" ||
15990$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15991	 X"$ac_file" : 'X\(//\)[^/]' \| \
15992	 X"$ac_file" : 'X\(//\)$' \| \
15993	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15994$as_echo X"$ac_file" |
15995    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15996	    s//\1/
15997	    q
15998	  }
15999	  /^X\(\/\/\)[^/].*/{
16000	    s//\1/
16001	    q
16002	  }
16003	  /^X\(\/\/\)$/{
16004	    s//\1/
16005	    q
16006	  }
16007	  /^X\(\/\).*/{
16008	    s//\1/
16009	    q
16010	  }
16011	  s/.*/./; q'`
16012  as_dir="$ac_dir"; as_fn_mkdir_p
16013  ac_builddir=.
16014
16015case "$ac_dir" in
16016.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16017*)
16018  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16019  # A ".." for each directory in $ac_dir_suffix.
16020  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16021  case $ac_top_builddir_sub in
16022  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16023  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16024  esac ;;
16025esac
16026ac_abs_top_builddir=$ac_pwd
16027ac_abs_builddir=$ac_pwd$ac_dir_suffix
16028# for backward compatibility:
16029ac_top_builddir=$ac_top_build_prefix
16030
16031case $srcdir in
16032  .)  # We are building in place.
16033    ac_srcdir=.
16034    ac_top_srcdir=$ac_top_builddir_sub
16035    ac_abs_top_srcdir=$ac_pwd ;;
16036  [\\/]* | ?:[\\/]* )  # Absolute name.
16037    ac_srcdir=$srcdir$ac_dir_suffix;
16038    ac_top_srcdir=$srcdir
16039    ac_abs_top_srcdir=$srcdir ;;
16040  *) # Relative name.
16041    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16042    ac_top_srcdir=$ac_top_build_prefix$srcdir
16043    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16044esac
16045ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16046
16047
16048  case $ac_mode in
16049  :F)
16050  #
16051  # CONFIG_FILE
16052  #
16053
16054  case $INSTALL in
16055  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16056  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16057  esac
16058  ac_MKDIR_P=$MKDIR_P
16059  case $MKDIR_P in
16060  [\\/$]* | ?:[\\/]* ) ;;
16061  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16062  esac
16063_ACEOF
16064
16065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16066# If the template does not know about datarootdir, expand it.
16067# FIXME: This hack should be removed a few years after 2.60.
16068ac_datarootdir_hack=; ac_datarootdir_seen=
16069ac_sed_dataroot='
16070/datarootdir/ {
16071  p
16072  q
16073}
16074/@datadir@/p
16075/@docdir@/p
16076/@infodir@/p
16077/@localedir@/p
16078/@mandir@/p'
16079case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16080*datarootdir*) ac_datarootdir_seen=yes;;
16081*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16082  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16083$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16084_ACEOF
16085cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16086  ac_datarootdir_hack='
16087  s&@datadir@&$datadir&g
16088  s&@docdir@&$docdir&g
16089  s&@infodir@&$infodir&g
16090  s&@localedir@&$localedir&g
16091  s&@mandir@&$mandir&g
16092  s&\\\${datarootdir}&$datarootdir&g' ;;
16093esac
16094_ACEOF
16095
16096# Neutralize VPATH when `$srcdir' = `.'.
16097# Shell code in configure.ac might set extrasub.
16098# FIXME: do we really want to maintain this feature?
16099cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16100ac_sed_extra="$ac_vpsub
16101$extrasub
16102_ACEOF
16103cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16104:t
16105/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16106s|@configure_input@|$ac_sed_conf_input|;t t
16107s&@top_builddir@&$ac_top_builddir_sub&;t t
16108s&@top_build_prefix@&$ac_top_build_prefix&;t t
16109s&@srcdir@&$ac_srcdir&;t t
16110s&@abs_srcdir@&$ac_abs_srcdir&;t t
16111s&@top_srcdir@&$ac_top_srcdir&;t t
16112s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16113s&@builddir@&$ac_builddir&;t t
16114s&@abs_builddir@&$ac_abs_builddir&;t t
16115s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16116s&@INSTALL@&$ac_INSTALL&;t t
16117s&@MKDIR_P@&$ac_MKDIR_P&;t t
16118$ac_datarootdir_hack
16119"
16120eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16121  || as_fn_error "could not create $ac_file" "$LINENO" 5
16122
16123test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16124  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16125  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16126  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16127which seems to be undefined.  Please make sure it is defined." >&5
16128$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16129which seems to be undefined.  Please make sure it is defined." >&2;}
16130
16131  rm -f "$tmp/stdin"
16132  case $ac_file in
16133  -) cat "$tmp/out" && rm -f "$tmp/out";;
16134  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16135  esac \
16136  || as_fn_error "could not create $ac_file" "$LINENO" 5
16137 ;;
16138  :H)
16139  #
16140  # CONFIG_HEADER
16141  #
16142  if test x"$ac_file" != x-; then
16143    {
16144      $as_echo "/* $configure_input  */" \
16145      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16146    } >"$tmp/config.h" \
16147      || as_fn_error "could not create $ac_file" "$LINENO" 5
16148    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16149      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16150$as_echo "$as_me: $ac_file is unchanged" >&6;}
16151    else
16152      rm -f "$ac_file"
16153      mv "$tmp/config.h" "$ac_file" \
16154	|| as_fn_error "could not create $ac_file" "$LINENO" 5
16155    fi
16156  else
16157    $as_echo "/* $configure_input  */" \
16158      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16159      || as_fn_error "could not create -" "$LINENO" 5
16160  fi
16161# Compute "$ac_file"'s index in $config_headers.
16162_am_arg="$ac_file"
16163_am_stamp_count=1
16164for _am_header in $config_headers :; do
16165  case $_am_header in
16166    $_am_arg | $_am_arg:* )
16167      break ;;
16168    * )
16169      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16170  esac
16171done
16172echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16173$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16174	 X"$_am_arg" : 'X\(//\)[^/]' \| \
16175	 X"$_am_arg" : 'X\(//\)$' \| \
16176	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16177$as_echo X"$_am_arg" |
16178    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16179	    s//\1/
16180	    q
16181	  }
16182	  /^X\(\/\/\)[^/].*/{
16183	    s//\1/
16184	    q
16185	  }
16186	  /^X\(\/\/\)$/{
16187	    s//\1/
16188	    q
16189	  }
16190	  /^X\(\/\).*/{
16191	    s//\1/
16192	    q
16193	  }
16194	  s/.*/./; q'`/stamp-h$_am_stamp_count
16195 ;;
16196
16197  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16198$as_echo "$as_me: executing $ac_file commands" >&6;}
16199 ;;
16200  esac
16201
16202
16203  case $ac_file$ac_mode in
16204    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16205  # Autoconf 2.62 quotes --file arguments for eval, but not when files
16206  # are listed without --file.  Let's play safe and only enable the eval
16207  # if we detect the quoting.
16208  case $CONFIG_FILES in
16209  *\'*) eval set x "$CONFIG_FILES" ;;
16210  *)   set x $CONFIG_FILES ;;
16211  esac
16212  shift
16213  for mf
16214  do
16215    # Strip MF so we end up with the name of the file.
16216    mf=`echo "$mf" | sed -e 's/:.*$//'`
16217    # Check whether this is an Automake generated Makefile or not.
16218    # We used to match only the files named `Makefile.in', but
16219    # some people rename them; so instead we look at the file content.
16220    # Grep'ing the first line is not enough: some people post-process
16221    # each Makefile.in and add a new line on top of each file to say so.
16222    # Grep'ing the whole file is not good either: AIX grep has a line
16223    # limit of 2048, but all sed's we know have understand at least 4000.
16224    if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16225      dirpart=`$as_dirname -- "$mf" ||
16226$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16227	 X"$mf" : 'X\(//\)[^/]' \| \
16228	 X"$mf" : 'X\(//\)$' \| \
16229	 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16230$as_echo X"$mf" |
16231    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16232	    s//\1/
16233	    q
16234	  }
16235	  /^X\(\/\/\)[^/].*/{
16236	    s//\1/
16237	    q
16238	  }
16239	  /^X\(\/\/\)$/{
16240	    s//\1/
16241	    q
16242	  }
16243	  /^X\(\/\).*/{
16244	    s//\1/
16245	    q
16246	  }
16247	  s/.*/./; q'`
16248    else
16249      continue
16250    fi
16251    # Extract the definition of DEPDIR, am__include, and am__quote
16252    # from the Makefile without running `make'.
16253    DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16254    test -z "$DEPDIR" && continue
16255    am__include=`sed -n 's/^am__include = //p' < "$mf"`
16256    test -z "am__include" && continue
16257    am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16258    # When using ansi2knr, U may be empty or an underscore; expand it
16259    U=`sed -n 's/^U = //p' < "$mf"`
16260    # Find all dependency output files, they are included files with
16261    # $(DEPDIR) in their names.  We invoke sed twice because it is the
16262    # simplest approach to changing $(DEPDIR) to its actual value in the
16263    # expansion.
16264    for file in `sed -n "
16265      s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16266	 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16267      # Make sure the directory exists.
16268      test -f "$dirpart/$file" && continue
16269      fdir=`$as_dirname -- "$file" ||
16270$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16271	 X"$file" : 'X\(//\)[^/]' \| \
16272	 X"$file" : 'X\(//\)$' \| \
16273	 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16274$as_echo X"$file" |
16275    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16276	    s//\1/
16277	    q
16278	  }
16279	  /^X\(\/\/\)[^/].*/{
16280	    s//\1/
16281	    q
16282	  }
16283	  /^X\(\/\/\)$/{
16284	    s//\1/
16285	    q
16286	  }
16287	  /^X\(\/\).*/{
16288	    s//\1/
16289	    q
16290	  }
16291	  s/.*/./; q'`
16292      as_dir=$dirpart/$fdir; as_fn_mkdir_p
16293      # echo "creating $dirpart/$file"
16294      echo '# dummy' > "$dirpart/$file"
16295    done
16296  done
16297}
16298 ;;
16299    "libtool":C)
16300
16301    # See if we are running on zsh, and set the options which allow our
16302    # commands through without removal of \ escapes.
16303    if test -n "${ZSH_VERSION+set}" ; then
16304      setopt NO_GLOB_SUBST
16305    fi
16306
16307    cfgfile="${ofile}T"
16308    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16309    $RM "$cfgfile"
16310
16311    cat <<_LT_EOF >> "$cfgfile"
16312#! $SHELL
16313
16314# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16315# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16316# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16317# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16318#
16319#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16320#                 2006, 2007, 2008 Free Software Foundation, Inc.
16321#   Written by Gordon Matzigkeit, 1996
16322#
16323#   This file is part of GNU Libtool.
16324#
16325# GNU Libtool is free software; you can redistribute it and/or
16326# modify it under the terms of the GNU General Public License as
16327# published by the Free Software Foundation; either version 2 of
16328# the License, or (at your option) any later version.
16329#
16330# As a special exception to the GNU General Public License,
16331# if you distribute this file as part of a program or library that
16332# is built using GNU Libtool, you may include this file under the
16333# same distribution terms that you use for the rest of that program.
16334#
16335# GNU Libtool is distributed in the hope that it will be useful,
16336# but WITHOUT ANY WARRANTY; without even the implied warranty of
16337# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16338# GNU General Public License for more details.
16339#
16340# You should have received a copy of the GNU General Public License
16341# along with GNU Libtool; see the file COPYING.  If not, a copy
16342# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16343# obtained by writing to the Free Software Foundation, Inc.,
16344# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16345
16346
16347# The names of the tagged configurations supported by this script.
16348available_tags=""
16349
16350# ### BEGIN LIBTOOL CONFIG
16351
16352# Which release of libtool.m4 was used?
16353macro_version=$macro_version
16354macro_revision=$macro_revision
16355
16356# Whether or not to build shared libraries.
16357build_libtool_libs=$enable_shared
16358
16359# Whether or not to build static libraries.
16360build_old_libs=$enable_static
16361
16362# What type of objects to build.
16363pic_mode=$pic_mode
16364
16365# Whether or not to optimize for fast installation.
16366fast_install=$enable_fast_install
16367
16368# The host system.
16369host_alias=$host_alias
16370host=$host
16371host_os=$host_os
16372
16373# The build system.
16374build_alias=$build_alias
16375build=$build
16376build_os=$build_os
16377
16378# A sed program that does not truncate output.
16379SED=$lt_SED
16380
16381# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16382Xsed="\$SED -e 1s/^X//"
16383
16384# A grep program that handles long lines.
16385GREP=$lt_GREP
16386
16387# An ERE matcher.
16388EGREP=$lt_EGREP
16389
16390# A literal string matcher.
16391FGREP=$lt_FGREP
16392
16393# A BSD- or MS-compatible name lister.
16394NM=$lt_NM
16395
16396# Whether we need soft or hard links.
16397LN_S=$lt_LN_S
16398
16399# What is the maximum length of a command?
16400max_cmd_len=$max_cmd_len
16401
16402# Object file suffix (normally "o").
16403objext=$ac_objext
16404
16405# Executable file suffix (normally "").
16406exeext=$exeext
16407
16408# whether the shell understands "unset".
16409lt_unset=$lt_unset
16410
16411# turn spaces into newlines.
16412SP2NL=$lt_lt_SP2NL
16413
16414# turn newlines into spaces.
16415NL2SP=$lt_lt_NL2SP
16416
16417# How to create reloadable object files.
16418reload_flag=$lt_reload_flag
16419reload_cmds=$lt_reload_cmds
16420
16421# An object symbol dumper.
16422OBJDUMP=$lt_OBJDUMP
16423
16424# Method to check whether dependent libraries are shared objects.
16425deplibs_check_method=$lt_deplibs_check_method
16426
16427# Command to use when deplibs_check_method == "file_magic".
16428file_magic_cmd=$lt_file_magic_cmd
16429
16430# The archiver.
16431AR=$lt_AR
16432AR_FLAGS=$lt_AR_FLAGS
16433
16434# A symbol stripping program.
16435STRIP=$lt_STRIP
16436
16437# Commands used to install an old-style archive.
16438RANLIB=$lt_RANLIB
16439old_postinstall_cmds=$lt_old_postinstall_cmds
16440old_postuninstall_cmds=$lt_old_postuninstall_cmds
16441
16442# A C compiler.
16443LTCC=$lt_CC
16444
16445# LTCC compiler flags.
16446LTCFLAGS=$lt_CFLAGS
16447
16448# Take the output of nm and produce a listing of raw symbols and C names.
16449global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16450
16451# Transform the output of nm in a proper C declaration.
16452global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16453
16454# Transform the output of nm in a C name address pair.
16455global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16456
16457# Transform the output of nm in a C name address pair when lib prefix is needed.
16458global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16459
16460# The name of the directory that contains temporary libtool files.
16461objdir=$objdir
16462
16463# Shell to use when invoking shell scripts.
16464SHELL=$lt_SHELL
16465
16466# An echo program that does not interpret backslashes.
16467ECHO=$lt_ECHO
16468
16469# Used to examine libraries when file_magic_cmd begins with "file".
16470MAGIC_CMD=$MAGIC_CMD
16471
16472# Must we lock files when doing compilation?
16473need_locks=$lt_need_locks
16474
16475# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16476DSYMUTIL=$lt_DSYMUTIL
16477
16478# Tool to change global to local symbols on Mac OS X.
16479NMEDIT=$lt_NMEDIT
16480
16481# Tool to manipulate fat objects and archives on Mac OS X.
16482LIPO=$lt_LIPO
16483
16484# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16485OTOOL=$lt_OTOOL
16486
16487# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16488OTOOL64=$lt_OTOOL64
16489
16490# Old archive suffix (normally "a").
16491libext=$libext
16492
16493# Shared library suffix (normally ".so").
16494shrext_cmds=$lt_shrext_cmds
16495
16496# The commands to extract the exported symbol list from a shared archive.
16497extract_expsyms_cmds=$lt_extract_expsyms_cmds
16498
16499# Variables whose values should be saved in libtool wrapper scripts and
16500# restored at link time.
16501variables_saved_for_relink=$lt_variables_saved_for_relink
16502
16503# Do we need the "lib" prefix for modules?
16504need_lib_prefix=$need_lib_prefix
16505
16506# Do we need a version for libraries?
16507need_version=$need_version
16508
16509# Library versioning type.
16510version_type=$version_type
16511
16512# Shared library runtime path variable.
16513runpath_var=$runpath_var
16514
16515# Shared library path variable.
16516shlibpath_var=$shlibpath_var
16517
16518# Is shlibpath searched before the hard-coded library search path?
16519shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16520
16521# Format of library name prefix.
16522libname_spec=$lt_libname_spec
16523
16524# List of archive names.  First name is the real one, the rest are links.
16525# The last name is the one that the linker finds with -lNAME
16526library_names_spec=$lt_library_names_spec
16527
16528# The coded name of the library, if different from the real name.
16529soname_spec=$lt_soname_spec
16530
16531# Command to use after installation of a shared archive.
16532postinstall_cmds=$lt_postinstall_cmds
16533
16534# Command to use after uninstallation of a shared archive.
16535postuninstall_cmds=$lt_postuninstall_cmds
16536
16537# Commands used to finish a libtool library installation in a directory.
16538finish_cmds=$lt_finish_cmds
16539
16540# As "finish_cmds", except a single script fragment to be evaled but
16541# not shown.
16542finish_eval=$lt_finish_eval
16543
16544# Whether we should hardcode library paths into libraries.
16545hardcode_into_libs=$hardcode_into_libs
16546
16547# Compile-time system search path for libraries.
16548sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16549
16550# Run-time system search path for libraries.
16551sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16552
16553# Whether dlopen is supported.
16554dlopen_support=$enable_dlopen
16555
16556# Whether dlopen of programs is supported.
16557dlopen_self=$enable_dlopen_self
16558
16559# Whether dlopen of statically linked programs is supported.
16560dlopen_self_static=$enable_dlopen_self_static
16561
16562# Commands to strip libraries.
16563old_striplib=$lt_old_striplib
16564striplib=$lt_striplib
16565
16566
16567# The linker used to build libraries.
16568LD=$lt_LD
16569
16570# Commands used to build an old-style archive.
16571old_archive_cmds=$lt_old_archive_cmds
16572
16573# A language specific compiler.
16574CC=$lt_compiler
16575
16576# Is the compiler the GNU compiler?
16577with_gcc=$GCC
16578
16579# Compiler flag to turn off builtin functions.
16580no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16581
16582# How to pass a linker flag through the compiler.
16583wl=$lt_lt_prog_compiler_wl
16584
16585# Additional compiler flags for building library objects.
16586pic_flag=$lt_lt_prog_compiler_pic
16587
16588# Compiler flag to prevent dynamic linking.
16589link_static_flag=$lt_lt_prog_compiler_static
16590
16591# Does compiler simultaneously support -c and -o options?
16592compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16593
16594# Whether or not to add -lc for building shared libraries.
16595build_libtool_need_lc=$archive_cmds_need_lc
16596
16597# Whether or not to disallow shared libs when runtime libs are static.
16598allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16599
16600# Compiler flag to allow reflexive dlopens.
16601export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16602
16603# Compiler flag to generate shared objects directly from archives.
16604whole_archive_flag_spec=$lt_whole_archive_flag_spec
16605
16606# Whether the compiler copes with passing no objects directly.
16607compiler_needs_object=$lt_compiler_needs_object
16608
16609# Create an old-style archive from a shared archive.
16610old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16611
16612# Create a temporary old-style archive to link instead of a shared archive.
16613old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16614
16615# Commands used to build a shared archive.
16616archive_cmds=$lt_archive_cmds
16617archive_expsym_cmds=$lt_archive_expsym_cmds
16618
16619# Commands used to build a loadable module if different from building
16620# a shared archive.
16621module_cmds=$lt_module_cmds
16622module_expsym_cmds=$lt_module_expsym_cmds
16623
16624# Whether we are building with GNU ld or not.
16625with_gnu_ld=$lt_with_gnu_ld
16626
16627# Flag that allows shared libraries with undefined symbols to be built.
16628allow_undefined_flag=$lt_allow_undefined_flag
16629
16630# Flag that enforces no undefined symbols.
16631no_undefined_flag=$lt_no_undefined_flag
16632
16633# Flag to hardcode \$libdir into a binary during linking.
16634# This must work even if \$libdir does not exist
16635hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16636
16637# If ld is used when linking, flag to hardcode \$libdir into a binary
16638# during linking.  This must work even if \$libdir does not exist.
16639hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16640
16641# Whether we need a single "-rpath" flag with a separated argument.
16642hardcode_libdir_separator=$lt_hardcode_libdir_separator
16643
16644# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16645# DIR into the resulting binary.
16646hardcode_direct=$hardcode_direct
16647
16648# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16649# DIR into the resulting binary and the resulting library dependency is
16650# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16651# library is relocated.
16652hardcode_direct_absolute=$hardcode_direct_absolute
16653
16654# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16655# into the resulting binary.
16656hardcode_minus_L=$hardcode_minus_L
16657
16658# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16659# into the resulting binary.
16660hardcode_shlibpath_var=$hardcode_shlibpath_var
16661
16662# Set to "yes" if building a shared library automatically hardcodes DIR
16663# into the library and all subsequent libraries and executables linked
16664# against it.
16665hardcode_automatic=$hardcode_automatic
16666
16667# Set to yes if linker adds runtime paths of dependent libraries
16668# to runtime path list.
16669inherit_rpath=$inherit_rpath
16670
16671# Whether libtool must link a program against all its dependency libraries.
16672link_all_deplibs=$link_all_deplibs
16673
16674# Fix the shell variable \$srcfile for the compiler.
16675fix_srcfile_path=$lt_fix_srcfile_path
16676
16677# Set to "yes" if exported symbols are required.
16678always_export_symbols=$always_export_symbols
16679
16680# The commands to list exported symbols.
16681export_symbols_cmds=$lt_export_symbols_cmds
16682
16683# Symbols that should not be listed in the preloaded symbols.
16684exclude_expsyms=$lt_exclude_expsyms
16685
16686# Symbols that must always be exported.
16687include_expsyms=$lt_include_expsyms
16688
16689# Commands necessary for linking programs (against libraries) with templates.
16690prelink_cmds=$lt_prelink_cmds
16691
16692# Specify filename containing input files.
16693file_list_spec=$lt_file_list_spec
16694
16695# How to hardcode a shared library path into an executable.
16696hardcode_action=$hardcode_action
16697
16698# ### END LIBTOOL CONFIG
16699
16700_LT_EOF
16701
16702  case $host_os in
16703  aix3*)
16704    cat <<\_LT_EOF >> "$cfgfile"
16705# AIX sometimes has problems with the GCC collect2 program.  For some
16706# reason, if we set the COLLECT_NAMES environment variable, the problems
16707# vanish in a puff of smoke.
16708if test "X${COLLECT_NAMES+set}" != Xset; then
16709  COLLECT_NAMES=
16710  export COLLECT_NAMES
16711fi
16712_LT_EOF
16713    ;;
16714  esac
16715
16716
16717ltmain="$ac_aux_dir/ltmain.sh"
16718
16719
16720  # We use sed instead of cat because bash on DJGPP gets confused if
16721  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16722  # text mode, it properly converts lines to CR/LF.  This bash problem
16723  # is reportedly fixed, but why not run on old versions too?
16724  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16725    || (rm -f "$cfgfile"; exit 1)
16726
16727  case $xsi_shell in
16728  yes)
16729    cat << \_LT_EOF >> "$cfgfile"
16730
16731# func_dirname file append nondir_replacement
16732# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16733# otherwise set result to NONDIR_REPLACEMENT.
16734func_dirname ()
16735{
16736  case ${1} in
16737    */*) func_dirname_result="${1%/*}${2}" ;;
16738    *  ) func_dirname_result="${3}" ;;
16739  esac
16740}
16741
16742# func_basename file
16743func_basename ()
16744{
16745  func_basename_result="${1##*/}"
16746}
16747
16748# func_dirname_and_basename file append nondir_replacement
16749# perform func_basename and func_dirname in a single function
16750# call:
16751#   dirname:  Compute the dirname of FILE.  If nonempty,
16752#             add APPEND to the result, otherwise set result
16753#             to NONDIR_REPLACEMENT.
16754#             value returned in "$func_dirname_result"
16755#   basename: Compute filename of FILE.
16756#             value retuned in "$func_basename_result"
16757# Implementation must be kept synchronized with func_dirname
16758# and func_basename. For efficiency, we do not delegate to
16759# those functions but instead duplicate the functionality here.
16760func_dirname_and_basename ()
16761{
16762  case ${1} in
16763    */*) func_dirname_result="${1%/*}${2}" ;;
16764    *  ) func_dirname_result="${3}" ;;
16765  esac
16766  func_basename_result="${1##*/}"
16767}
16768
16769# func_stripname prefix suffix name
16770# strip PREFIX and SUFFIX off of NAME.
16771# PREFIX and SUFFIX must not contain globbing or regex special
16772# characters, hashes, percent signs, but SUFFIX may contain a leading
16773# dot (in which case that matches only a dot).
16774func_stripname ()
16775{
16776  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16777  # positional parameters, so assign one to ordinary parameter first.
16778  func_stripname_result=${3}
16779  func_stripname_result=${func_stripname_result#"${1}"}
16780  func_stripname_result=${func_stripname_result%"${2}"}
16781}
16782
16783# func_opt_split
16784func_opt_split ()
16785{
16786  func_opt_split_opt=${1%%=*}
16787  func_opt_split_arg=${1#*=}
16788}
16789
16790# func_lo2o object
16791func_lo2o ()
16792{
16793  case ${1} in
16794    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16795    *)    func_lo2o_result=${1} ;;
16796  esac
16797}
16798
16799# func_xform libobj-or-source
16800func_xform ()
16801{
16802  func_xform_result=${1%.*}.lo
16803}
16804
16805# func_arith arithmetic-term...
16806func_arith ()
16807{
16808  func_arith_result=$(( $* ))
16809}
16810
16811# func_len string
16812# STRING may not start with a hyphen.
16813func_len ()
16814{
16815  func_len_result=${#1}
16816}
16817
16818_LT_EOF
16819    ;;
16820  *) # Bourne compatible functions.
16821    cat << \_LT_EOF >> "$cfgfile"
16822
16823# func_dirname file append nondir_replacement
16824# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16825# otherwise set result to NONDIR_REPLACEMENT.
16826func_dirname ()
16827{
16828  # Extract subdirectory from the argument.
16829  func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
16830  if test "X$func_dirname_result" = "X${1}"; then
16831    func_dirname_result="${3}"
16832  else
16833    func_dirname_result="$func_dirname_result${2}"
16834  fi
16835}
16836
16837# func_basename file
16838func_basename ()
16839{
16840  func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
16841}
16842
16843
16844# func_stripname prefix suffix name
16845# strip PREFIX and SUFFIX off of NAME.
16846# PREFIX and SUFFIX must not contain globbing or regex special
16847# characters, hashes, percent signs, but SUFFIX may contain a leading
16848# dot (in which case that matches only a dot).
16849# func_strip_suffix prefix name
16850func_stripname ()
16851{
16852  case ${2} in
16853    .*) func_stripname_result=`$ECHO "X${3}" \
16854           | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
16855    *)  func_stripname_result=`$ECHO "X${3}" \
16856           | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
16857  esac
16858}
16859
16860# sed scripts:
16861my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16862my_sed_long_arg='1s/^-[^=]*=//'
16863
16864# func_opt_split
16865func_opt_split ()
16866{
16867  func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
16868  func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
16869}
16870
16871# func_lo2o object
16872func_lo2o ()
16873{
16874  func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
16875}
16876
16877# func_xform libobj-or-source
16878func_xform ()
16879{
16880  func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
16881}
16882
16883# func_arith arithmetic-term...
16884func_arith ()
16885{
16886  func_arith_result=`expr "$@"`
16887}
16888
16889# func_len string
16890# STRING may not start with a hyphen.
16891func_len ()
16892{
16893  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16894}
16895
16896_LT_EOF
16897esac
16898
16899case $lt_shell_append in
16900  yes)
16901    cat << \_LT_EOF >> "$cfgfile"
16902
16903# func_append var value
16904# Append VALUE to the end of shell variable VAR.
16905func_append ()
16906{
16907  eval "$1+=\$2"
16908}
16909_LT_EOF
16910    ;;
16911  *)
16912    cat << \_LT_EOF >> "$cfgfile"
16913
16914# func_append var value
16915# Append VALUE to the end of shell variable VAR.
16916func_append ()
16917{
16918  eval "$1=\$$1\$2"
16919}
16920
16921_LT_EOF
16922    ;;
16923  esac
16924
16925
16926  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16927    || (rm -f "$cfgfile"; exit 1)
16928
16929  mv -f "$cfgfile" "$ofile" ||
16930    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16931  chmod +x "$ofile"
16932
16933 ;;
16934    "default-1":C) case "$CONFIG_FILES" in *po/Makefile.in*)
16935        sed -e "/POTFILES =/r po/POTFILES" po/Makefile.in > po/Makefile
16936      esac ;;
16937    "vte${VTE_PC_VERSION}.pc":F) VTE_PC_VERSION=${VTE_PC_VERSION} ;;
16938    "vte${VTE_PC_VERSION}-uninstalled.pc":F) VTE_PC_VERSION=${VTE_PC_VERSION} ;;
16939    "po/stamp-it":C)
16940    if  ! grep "^# INTLTOOL_MAKEFILE$" "po/Makefile.in" > /dev/null ; then
16941       as_fn_error "po/Makefile.in.in was not created by intltoolize." "$LINENO" 5
16942    fi
16943    rm -f "po/stamp-it" "po/stamp-it.tmp" "po/POTFILES" "po/Makefile.tmp"
16944    >"po/stamp-it.tmp"
16945    sed '/^#/d
16946	 s/^[[].*] *//
16947	 /^[ 	]*$/d
16948	'"s|^|	$ac_top_srcdir/|" \
16949      "$srcdir/po/POTFILES.in" | sed '$!s/$/ \\/' >"po/POTFILES"
16950
16951    sed '/^POTFILES =/,/[^\\]$/ {
16952		/^POTFILES =/!d
16953		r po/POTFILES
16954	  }
16955	 ' "po/Makefile.in" >"po/Makefile"
16956    rm -f "po/Makefile.tmp"
16957    mv "po/stamp-it.tmp" "po/stamp-it"
16958   ;;
16959
16960  esac
16961done # for ac_tag
16962
16963
16964as_fn_exit 0
16965_ACEOF
16966ac_clean_files=$ac_clean_files_save
16967
16968test $ac_write_fail = 0 ||
16969  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16970
16971
16972# configure is writing to config.log, and then calls config.status.
16973# config.status does its own redirection, appending to config.log.
16974# Unfortunately, on DOS this fails, as config.log is still kept open
16975# by configure, so config.status won't be able to write to it; its
16976# output is simply discarded.  So we exec the FD to /dev/null,
16977# effectively closing config.log, so it can be properly (re)opened and
16978# appended to by config.status.  When coming back to configure, we
16979# need to make the FD available again.
16980if test "$no_create" != yes; then
16981  ac_cs_success=:
16982  ac_config_status_args=
16983  test "$silent" = yes &&
16984    ac_config_status_args="$ac_config_status_args --quiet"
16985  exec 5>/dev/null
16986  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16987  exec 5>>config.log
16988  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16989  # would make configure fail if this is the last instruction.
16990  $ac_cs_success || as_fn_exit $?
16991fi
16992
16993#
16994# CONFIG_SUBDIRS section.
16995#
16996if test "$no_recursion" != yes; then
16997
16998  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16999  # so they do not pile up.
17000  ac_sub_configure_args=
17001  ac_prev=
17002  eval "set x $ac_configure_args"
17003  shift
17004  for ac_arg
17005  do
17006    if test -n "$ac_prev"; then
17007      ac_prev=
17008      continue
17009    fi
17010    case $ac_arg in
17011    -cache-file | --cache-file | --cache-fil | --cache-fi \
17012    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17013      ac_prev=cache_file ;;
17014    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17015    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17016    | --c=*)
17017      ;;
17018    --config-cache | -C)
17019      ;;
17020    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17021      ac_prev=srcdir ;;
17022    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17023      ;;
17024    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17025      ac_prev=prefix ;;
17026    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17027      ;;
17028    --disable-option-checking)
17029      ;;
17030    *)
17031      case $ac_arg in
17032      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17033      esac
17034      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17035    esac
17036  done
17037
17038  # Always prepend --prefix to ensure using the same prefix
17039  # in subdir configurations.
17040  ac_arg="--prefix=$prefix"
17041  case $ac_arg in
17042  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17043  esac
17044  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17045
17046  # Pass --silent
17047  if test "$silent" = yes; then
17048    ac_sub_configure_args="--silent $ac_sub_configure_args"
17049  fi
17050
17051  # Always prepend --disable-option-checking to silence warnings, since
17052  # different subdirs can have different --enable and --with options.
17053  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17054
17055  ac_popdir=`pwd`
17056  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17057
17058    # Do not complain, so a configure script can configure whichever
17059    # parts of a large source tree are present.
17060    test -d "$srcdir/$ac_dir" || continue
17061
17062    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17063    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17064    $as_echo "$ac_msg" >&6
17065    as_dir="$ac_dir"; as_fn_mkdir_p
17066    ac_builddir=.
17067
17068case "$ac_dir" in
17069.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17070*)
17071  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17072  # A ".." for each directory in $ac_dir_suffix.
17073  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17074  case $ac_top_builddir_sub in
17075  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17076  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17077  esac ;;
17078esac
17079ac_abs_top_builddir=$ac_pwd
17080ac_abs_builddir=$ac_pwd$ac_dir_suffix
17081# for backward compatibility:
17082ac_top_builddir=$ac_top_build_prefix
17083
17084case $srcdir in
17085  .)  # We are building in place.
17086    ac_srcdir=.
17087    ac_top_srcdir=$ac_top_builddir_sub
17088    ac_abs_top_srcdir=$ac_pwd ;;
17089  [\\/]* | ?:[\\/]* )  # Absolute name.
17090    ac_srcdir=$srcdir$ac_dir_suffix;
17091    ac_top_srcdir=$srcdir
17092    ac_abs_top_srcdir=$srcdir ;;
17093  *) # Relative name.
17094    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17095    ac_top_srcdir=$ac_top_build_prefix$srcdir
17096    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17097esac
17098ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17099
17100
17101    cd "$ac_dir"
17102
17103    # Check for guested configure; otherwise get Cygnus style configure.
17104    if test -f "$ac_srcdir/configure.gnu"; then
17105      ac_sub_configure=$ac_srcdir/configure.gnu
17106    elif test -f "$ac_srcdir/configure"; then
17107      ac_sub_configure=$ac_srcdir/configure
17108    elif test -f "$ac_srcdir/configure.in"; then
17109      # This should be Cygnus configure.
17110      ac_sub_configure=$ac_aux_dir/configure
17111    else
17112      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17113$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17114      ac_sub_configure=
17115    fi
17116
17117    # The recursion is here.
17118    if test -n "$ac_sub_configure"; then
17119      # Make the cache file name correct relative to the subdirectory.
17120      case $cache_file in
17121      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17122      *) # Relative name.
17123	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17124      esac
17125
17126      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17127$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17128      # The eval makes quoting arguments work.
17129      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17130	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17131	as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17132    fi
17133
17134    cd "$ac_popdir"
17135  done
17136fi
17137if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17138  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17139$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17140fi
17141
17142
17143#####################
17144# Print configuration
17145#####################
17146cat <<EOF | tee -a config.log
17147
17148## -------------- ##
17149## Configuration. ##
17150## -------------- ##
17151
17152Configuration for libvte $VERSION for gtk+-$GTK_API_VERSION
17153	Installing Glade catalogue: $enable_glade_catalogue
17154	Debugging: $DEBUG
17155	Disallow deprecated features: $enable_deprecation
17156EOF
17157