"Fossies" - the Fresh Open Source Software Archive

Member "auctex-12.3/configure" (18 Oct 2020, 168071 Bytes) of package /linux/misc/auctex-12.3.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "configure": 12.2_vs_12.3.

    1 #! /bin/sh
    2 # Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.69 for auctex 12.3.
    4 #
    5 # Report bugs to <bug-auctex@gnu.org>.
    6 #
    7 #
    8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
    9 #
   10 #
   11 # This configure script is free software; the Free Software Foundation
   12 # gives unlimited permission to copy, distribute and modify it.
   13 ## -------------------- ##
   14 ## M4sh Initialization. ##
   15 ## -------------------- ##
   16 
   17 # Be more Bourne compatible
   18 DUALCASE=1; export DUALCASE # for MKS sh
   19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
   20   emulate sh
   21   NULLCMD=:
   22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
   23   # is contrary to our usage.  Disable this feature.
   24   alias -g '${1+"$@"}'='"$@"'
   25   setopt NO_GLOB_SUBST
   26 else
   27   case `(set -o) 2>/dev/null` in #(
   28   *posix*) :
   29     set -o posix ;; #(
   30   *) :
   31      ;;
   32 esac
   33 fi
   34 
   35 
   36 as_nl='
   37 '
   38 export as_nl
   39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
   40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
   41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
   42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
   43 # Prefer a ksh shell builtin over an external printf program on Solaris,
   44 # but without wasting forks for bash or zsh.
   45 if test -z "$BASH_VERSION$ZSH_VERSION" \
   46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
   47   as_echo='print -r --'
   48   as_echo_n='print -rn --'
   49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
   50   as_echo='printf %s\n'
   51   as_echo_n='printf %s'
   52 else
   53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
   54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
   55     as_echo_n='/usr/ucb/echo -n'
   56   else
   57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
   58     as_echo_n_body='eval
   59       arg=$1;
   60       case $arg in #(
   61       *"$as_nl"*)
   62     expr "X$arg" : "X\\(.*\\)$as_nl";
   63     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
   64       esac;
   65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
   66     '
   67     export as_echo_n_body
   68     as_echo_n='sh -c $as_echo_n_body as_echo'
   69   fi
   70   export as_echo_body
   71   as_echo='sh -c $as_echo_body as_echo'
   72 fi
   73 
   74 # The user is always right.
   75 if test "${PATH_SEPARATOR+set}" != set; then
   76   PATH_SEPARATOR=:
   77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
   78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
   79       PATH_SEPARATOR=';'
   80   }
   81 fi
   82 
   83 
   84 # IFS
   85 # We need space, tab and new line, in precisely that order.  Quoting is
   86 # there to prevent editors from complaining about space-tab.
   87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
   88 # splitting by setting IFS to empty value.)
   89 IFS=" ""    $as_nl"
   90 
   91 # Find who we are.  Look in the path if we contain no directory separator.
   92 as_myself=
   93 case $0 in #((
   94   *[\\/]* ) as_myself=$0 ;;
   95   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
   96 for as_dir in $PATH
   97 do
   98   IFS=$as_save_IFS
   99   test -z "$as_dir" && as_dir=.
  100     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  101   done
  102 IFS=$as_save_IFS
  103 
  104      ;;
  105 esac
  106 # We did not find ourselves, most probably we were run as `sh COMMAND'
  107 # in which case we are not to be found in the path.
  108 if test "x$as_myself" = x; then
  109   as_myself=$0
  110 fi
  111 if test ! -f "$as_myself"; then
  112   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  113   exit 1
  114 fi
  115 
  116 # Unset variables that we do not need and which cause bugs (e.g. in
  117 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
  118 # suppresses any "Segmentation fault" message there.  '((' could
  119 # trigger a bug in pdksh 5.2.14.
  120 for as_var in BASH_ENV ENV MAIL MAILPATH
  121 do eval test x\${$as_var+set} = xset \
  122   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  123 done
  124 PS1='$ '
  125 PS2='> '
  126 PS4='+ '
  127 
  128 # NLS nuisances.
  129 LC_ALL=C
  130 export LC_ALL
  131 LANGUAGE=C
  132 export LANGUAGE
  133 
  134 # CDPATH.
  135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  136 
  137 # Use a proper internal environment variable to ensure we don't fall
  138   # into an infinite loop, continuously re-executing ourselves.
  139   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  140     _as_can_reexec=no; export _as_can_reexec;
  141     # We cannot yet assume a decent shell, so we have to provide a
  142 # neutralization value for shells without unset; and this also
  143 # works around shells that cannot unset nonexistent variables.
  144 # Preserve -v and -x to the replacement shell.
  145 BASH_ENV=/dev/null
  146 ENV=/dev/null
  147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  148 case $- in # ((((
  149   *v*x* | *x*v* ) as_opts=-vx ;;
  150   *v* ) as_opts=-v ;;
  151   *x* ) as_opts=-x ;;
  152   * ) as_opts= ;;
  153 esac
  154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  155 # Admittedly, this is quite paranoid, since all the known shells bail
  156 # out after a failed `exec'.
  157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  158 as_fn_exit 255
  159   fi
  160   # We don't want this to propagate to other subprocesses.
  161           { _as_can_reexec=; unset _as_can_reexec;}
  162 if test "x$CONFIG_SHELL" = x; then
  163   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  164   emulate sh
  165   NULLCMD=:
  166   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  167   # is contrary to our usage.  Disable this feature.
  168   alias -g '\${1+\"\$@\"}'='\"\$@\"'
  169   setopt NO_GLOB_SUBST
  170 else
  171   case \`(set -o) 2>/dev/null\` in #(
  172   *posix*) :
  173     set -o posix ;; #(
  174   *) :
  175      ;;
  176 esac
  177 fi
  178 "
  179   as_required="as_fn_return () { (exit \$1); }
  180 as_fn_success () { as_fn_return 0; }
  181 as_fn_failure () { as_fn_return 1; }
  182 as_fn_ret_success () { return 0; }
  183 as_fn_ret_failure () { return 1; }
  184 
  185 exitcode=0
  186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  191 
  192 else
  193   exitcode=1; echo positional parameters were not saved.
  194 fi
  195 test x\$exitcode = x0 || exit 1
  196 test -x / || exit 1"
  197   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  198   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  199   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  200   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
  201   if (eval "$as_required") 2>/dev/null; then :
  202   as_have_required=yes
  203 else
  204   as_have_required=no
  205 fi
  206   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  207 
  208 else
  209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  210 as_found=false
  211 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  212 do
  213   IFS=$as_save_IFS
  214   test -z "$as_dir" && as_dir=.
  215   as_found=:
  216   case $as_dir in #(
  217      /*)
  218        for as_base in sh bash ksh sh5; do
  219          # Try only shells that exist, to save several forks.
  220          as_shell=$as_dir/$as_base
  221          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  222             { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  223   CONFIG_SHELL=$as_shell as_have_required=yes
  224            if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  225   break 2
  226 fi
  227 fi
  228        done;;
  229        esac
  230   as_found=false
  231 done
  232 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  233           { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  234   CONFIG_SHELL=$SHELL as_have_required=yes
  235 fi; }
  236 IFS=$as_save_IFS
  237 
  238 
  239       if test "x$CONFIG_SHELL" != x; then :
  240   export CONFIG_SHELL
  241              # We cannot yet assume a decent shell, so we have to provide a
  242 # neutralization value for shells without unset; and this also
  243 # works around shells that cannot unset nonexistent variables.
  244 # Preserve -v and -x to the replacement shell.
  245 BASH_ENV=/dev/null
  246 ENV=/dev/null
  247 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  248 case $- in # ((((
  249   *v*x* | *x*v* ) as_opts=-vx ;;
  250   *v* ) as_opts=-v ;;
  251   *x* ) as_opts=-x ;;
  252   * ) as_opts= ;;
  253 esac
  254 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  255 # Admittedly, this is quite paranoid, since all the known shells bail
  256 # out after a failed `exec'.
  257 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  258 exit 255
  259 fi
  260 
  261     if test x$as_have_required = xno; then :
  262   $as_echo "$0: This script requires a shell more modern than all"
  263   $as_echo "$0: the shells that I found on your system."
  264   if test x${ZSH_VERSION+set} = xset ; then
  265     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  266     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  267   else
  268     $as_echo "$0: Please tell bug-autoconf@gnu.org and bug-auctex@gnu.org
  269 $0: about your system, including any error possibly output
  270 $0: before this message. Then install a modern shell, or
  271 $0: manually run the script under such a shell if you do
  272 $0: have one."
  273   fi
  274   exit 1
  275 fi
  276 fi
  277 fi
  278 SHELL=${CONFIG_SHELL-/bin/sh}
  279 export SHELL
  280 # Unset more variables known to interfere with behavior of common tools.
  281 CLICOLOR_FORCE= GREP_OPTIONS=
  282 unset CLICOLOR_FORCE GREP_OPTIONS
  283 
  284 ## --------------------- ##
  285 ## M4sh Shell Functions. ##
  286 ## --------------------- ##
  287 # as_fn_unset VAR
  288 # ---------------
  289 # Portably unset VAR.
  290 as_fn_unset ()
  291 {
  292   { eval $1=; unset $1;}
  293 }
  294 as_unset=as_fn_unset
  295 
  296 # as_fn_set_status STATUS
  297 # -----------------------
  298 # Set $? to STATUS, without forking.
  299 as_fn_set_status ()
  300 {
  301   return $1
  302 } # as_fn_set_status
  303 
  304 # as_fn_exit STATUS
  305 # -----------------
  306 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  307 as_fn_exit ()
  308 {
  309   set +e
  310   as_fn_set_status $1
  311   exit $1
  312 } # as_fn_exit
  313 
  314 # as_fn_mkdir_p
  315 # -------------
  316 # Create "$as_dir" as a directory, including parents if necessary.
  317 as_fn_mkdir_p ()
  318 {
  319 
  320   case $as_dir in #(
  321   -*) as_dir=./$as_dir;;
  322   esac
  323   test -d "$as_dir" || eval $as_mkdir_p || {
  324     as_dirs=
  325     while :; do
  326       case $as_dir in #(
  327       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  328       *) as_qdir=$as_dir;;
  329       esac
  330       as_dirs="'$as_qdir' $as_dirs"
  331       as_dir=`$as_dirname -- "$as_dir" ||
  332 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  333      X"$as_dir" : 'X\(//\)[^/]' \| \
  334      X"$as_dir" : 'X\(//\)$' \| \
  335      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  336 $as_echo X"$as_dir" |
  337     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  338         s//\1/
  339         q
  340       }
  341       /^X\(\/\/\)[^/].*/{
  342         s//\1/
  343         q
  344       }
  345       /^X\(\/\/\)$/{
  346         s//\1/
  347         q
  348       }
  349       /^X\(\/\).*/{
  350         s//\1/
  351         q
  352       }
  353       s/.*/./; q'`
  354       test -d "$as_dir" && break
  355     done
  356     test -z "$as_dirs" || eval "mkdir $as_dirs"
  357   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  358 
  359 
  360 } # as_fn_mkdir_p
  361 
  362 # as_fn_executable_p FILE
  363 # -----------------------
  364 # Test if FILE is an executable regular file.
  365 as_fn_executable_p ()
  366 {
  367   test -f "$1" && test -x "$1"
  368 } # as_fn_executable_p
  369 # as_fn_append VAR VALUE
  370 # ----------------------
  371 # Append the text in VALUE to the end of the definition contained in VAR. Take
  372 # advantage of any shell optimizations that allow amortized linear growth over
  373 # repeated appends, instead of the typical quadratic growth present in naive
  374 # implementations.
  375 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  376   eval 'as_fn_append ()
  377   {
  378     eval $1+=\$2
  379   }'
  380 else
  381   as_fn_append ()
  382   {
  383     eval $1=\$$1\$2
  384   }
  385 fi # as_fn_append
  386 
  387 # as_fn_arith ARG...
  388 # ------------------
  389 # Perform arithmetic evaluation on the ARGs, and store the result in the
  390 # global $as_val. Take advantage of shells that can avoid forks. The arguments
  391 # must be portable across $(()) and expr.
  392 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  393   eval 'as_fn_arith ()
  394   {
  395     as_val=$(( $* ))
  396   }'
  397 else
  398   as_fn_arith ()
  399   {
  400     as_val=`expr "$@" || test $? -eq 1`
  401   }
  402 fi # as_fn_arith
  403 
  404 
  405 # as_fn_error STATUS ERROR [LINENO LOG_FD]
  406 # ----------------------------------------
  407 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  408 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  409 # script with STATUS, using 1 if that was 0.
  410 as_fn_error ()
  411 {
  412   as_status=$1; test $as_status -eq 0 && as_status=1
  413   if test "$4"; then
  414     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  415     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  416   fi
  417   $as_echo "$as_me: error: $2" >&2
  418   as_fn_exit $as_status
  419 } # as_fn_error
  420 
  421 if expr a : '\(a\)' >/dev/null 2>&1 &&
  422    test "X`expr 00001 : '.*\(...\)'`" = X001; then
  423   as_expr=expr
  424 else
  425   as_expr=false
  426 fi
  427 
  428 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  429   as_basename=basename
  430 else
  431   as_basename=false
  432 fi
  433 
  434 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  435   as_dirname=dirname
  436 else
  437   as_dirname=false
  438 fi
  439 
  440 as_me=`$as_basename -- "$0" ||
  441 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  442      X"$0" : 'X\(//\)$' \| \
  443      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  444 $as_echo X/"$0" |
  445     sed '/^.*\/\([^/][^/]*\)\/*$/{
  446         s//\1/
  447         q
  448       }
  449       /^X\/\(\/\/\)$/{
  450         s//\1/
  451         q
  452       }
  453       /^X\/\(\/\).*/{
  454         s//\1/
  455         q
  456       }
  457       s/.*/./; q'`
  458 
  459 # Avoid depending upon Character Ranges.
  460 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  461 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  462 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  463 as_cr_digits='0123456789'
  464 as_cr_alnum=$as_cr_Letters$as_cr_digits
  465 
  466 
  467   as_lineno_1=$LINENO as_lineno_1a=$LINENO
  468   as_lineno_2=$LINENO as_lineno_2a=$LINENO
  469   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  470   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  471   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
  472   sed -n '
  473     p
  474     /[$]LINENO/=
  475   ' <$as_myself |
  476     sed '
  477       s/[$]LINENO.*/&-/
  478       t lineno
  479       b
  480       :lineno
  481       N
  482       :loop
  483       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  484       t loop
  485       s/-\n.*//
  486     ' >$as_me.lineno &&
  487   chmod +x "$as_me.lineno" ||
  488     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  489 
  490   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  491   # already done that, so ensure we don't try to do so again and fall
  492   # in an infinite loop.  This has already happened in practice.
  493   _as_can_reexec=no; export _as_can_reexec
  494   # Don't try to exec as it changes $[0], causing all sort of problems
  495   # (the dirname of $[0] is not the place where we might find the
  496   # original and so on.  Autoconf is especially sensitive to this).
  497   . "./$as_me.lineno"
  498   # Exit status is that of the last command.
  499   exit
  500 }
  501 
  502 ECHO_C= ECHO_N= ECHO_T=
  503 case `echo -n x` in #(((((
  504 -n*)
  505   case `echo 'xy\c'` in
  506   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  507   xy)  ECHO_C='\c';;
  508   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
  509        ECHO_T=' ';;
  510   esac;;
  511 *)
  512   ECHO_N='-n';;
  513 esac
  514 
  515 rm -f conf$$ conf$$.exe conf$$.file
  516 if test -d conf$$.dir; then
  517   rm -f conf$$.dir/conf$$.file
  518 else
  519   rm -f conf$$.dir
  520   mkdir conf$$.dir 2>/dev/null
  521 fi
  522 if (echo >conf$$.file) 2>/dev/null; then
  523   if ln -s conf$$.file conf$$ 2>/dev/null; then
  524     as_ln_s='ln -s'
  525     # ... but there are two gotchas:
  526     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  527     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  528     # In both cases, we have to default to `cp -pR'.
  529     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  530       as_ln_s='cp -pR'
  531   elif ln conf$$.file conf$$ 2>/dev/null; then
  532     as_ln_s=ln
  533   else
  534     as_ln_s='cp -pR'
  535   fi
  536 else
  537   as_ln_s='cp -pR'
  538 fi
  539 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  540 rmdir conf$$.dir 2>/dev/null
  541 
  542 if mkdir -p . 2>/dev/null; then
  543   as_mkdir_p='mkdir -p "$as_dir"'
  544 else
  545   test -d ./-p && rmdir ./-p
  546   as_mkdir_p=false
  547 fi
  548 
  549 as_test_x='test -x'
  550 as_executable_p=as_fn_executable_p
  551 
  552 # Sed expression to map a string onto a valid CPP name.
  553 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  554 
  555 # Sed expression to map a string onto a valid variable name.
  556 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  557 
  558 
  559 test -n "$DJDIR" || exec 7<&0 </dev/null
  560 exec 6>&1
  561 
  562 # Name of the host.
  563 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  564 # so uname gets run too.
  565 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  566 
  567 #
  568 # Initializations.
  569 #
  570 ac_default_prefix=/usr/local
  571 ac_clean_files=
  572 ac_config_libobj_dir=.
  573 LIBOBJS=
  574 cross_compiling=no
  575 subdirs=
  576 MFLAGS=
  577 MAKEFLAGS=
  578 
  579 # Identity of this package.
  580 PACKAGE_NAME='auctex'
  581 PACKAGE_TARNAME='auctex'
  582 PACKAGE_VERSION='12.3'
  583 PACKAGE_STRING='auctex 12.3'
  584 PACKAGE_BUGREPORT='bug-auctex@gnu.org'
  585 PACKAGE_URL=''
  586 
  587 ac_subst_vars='LTLIBOBJS
  588 LIBOBJS
  589 INSTALL_INFO
  590 TEXI2PDF
  591 TEXI2DVI
  592 TEXI2HTML
  593 MAKEINFO
  594 PERL
  595 TEXHASH
  596 packagetexstyles
  597 lisppackagetexstyles
  598 previewdocdir
  599 previewtexmfdir
  600 texmfdir
  601 TEXMFGEN
  602 PDFLATEX
  603 LATEX
  604 lispGS
  605 GS
  606 DVIPS
  607 PDFTEX
  608 TEX
  609 lispautodir
  610 autodir
  611 texsite
  612 lisptexsite
  613 packagedatadir
  614 lisppackagedatadir
  615 packagelispdir
  616 lisppackagelispdir
  617 previewstartfile
  618 auctexstartfile
  619 lispdir
  620 preview_enabled
  621 EMACS_FLAVOR
  622 EMACS
  623 PREVIEWVERSION
  624 PREVIEWDATE
  625 AUCTEXVERSION
  626 AUCTEXDATE
  627 INSTALL_DATA
  628 INSTALL_SCRIPT
  629 INSTALL_PROGRAM
  630 SET_MAKE
  631 MAKECMD
  632 target_alias
  633 host_alias
  634 build_alias
  635 LIBS
  636 ECHO_T
  637 ECHO_N
  638 ECHO_C
  639 DEFS
  640 mandir
  641 localedir
  642 libdir
  643 psdir
  644 pdfdir
  645 dvidir
  646 htmldir
  647 infodir
  648 docdir
  649 oldincludedir
  650 includedir
  651 localstatedir
  652 sharedstatedir
  653 sysconfdir
  654 datadir
  655 datarootdir
  656 libexecdir
  657 sbindir
  658 bindir
  659 program_transform_name
  660 prefix
  661 exec_prefix
  662 PACKAGE_URL
  663 PACKAGE_BUGREPORT
  664 PACKAGE_STRING
  665 PACKAGE_VERSION
  666 PACKAGE_TARNAME
  667 PACKAGE_NAME
  668 PATH_SEPARATOR
  669 SHELL'
  670 ac_subst_files=''
  671 ac_user_opts='
  672 enable_option_checking
  673 with_emacs
  674 enable_build_dir_test
  675 enable_preview
  676 with_lispdir
  677 with_auctexstartfile
  678 with_previewstartfile
  679 with_packagelispdir
  680 with_packagedatadir
  681 with_auto_dir
  682 with_texmf_dir
  683 with_tex_dir
  684 with_doc_dir
  685 '
  686       ac_precious_vars='build_alias
  687 host_alias
  688 target_alias
  689 GS
  690 TEXHASH
  691 PERL
  692 MAKEINFO
  693 INSTALL_INFO'
  694 
  695 
  696 # Initialize some variables set by options.
  697 ac_init_help=
  698 ac_init_version=false
  699 ac_unrecognized_opts=
  700 ac_unrecognized_sep=
  701 # The variables have the same names as the options, with
  702 # dashes changed to underlines.
  703 cache_file=/dev/null
  704 exec_prefix=NONE
  705 no_create=
  706 no_recursion=
  707 prefix=NONE
  708 program_prefix=NONE
  709 program_suffix=NONE
  710 program_transform_name=s,x,x,
  711 silent=
  712 site=
  713 srcdir=
  714 verbose=
  715 x_includes=NONE
  716 x_libraries=NONE
  717 
  718 # Installation directory options.
  719 # These are left unexpanded so users can "make install exec_prefix=/foo"
  720 # and all the variables that are supposed to be based on exec_prefix
  721 # by default will actually change.
  722 # Use braces instead of parens because sh, perl, etc. also accept them.
  723 # (The list follows the same order as the GNU Coding Standards.)
  724 bindir='${exec_prefix}/bin'
  725 sbindir='${exec_prefix}/sbin'
  726 libexecdir='${exec_prefix}/libexec'
  727 datarootdir='${prefix}/share'
  728 datadir='${datarootdir}'
  729 sysconfdir='${prefix}/etc'
  730 sharedstatedir='${prefix}/com'
  731 localstatedir='${prefix}/var'
  732 includedir='${prefix}/include'
  733 oldincludedir='/usr/include'
  734 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  735 infodir='${datarootdir}/info'
  736 htmldir='${docdir}'
  737 dvidir='${docdir}'
  738 pdfdir='${docdir}'
  739 psdir='${docdir}'
  740 libdir='${exec_prefix}/lib'
  741 localedir='${datarootdir}/locale'
  742 mandir='${datarootdir}/man'
  743 
  744 ac_prev=
  745 ac_dashdash=
  746 for ac_option
  747 do
  748   # If the previous option needs an argument, assign it.
  749   if test -n "$ac_prev"; then
  750     eval $ac_prev=\$ac_option
  751     ac_prev=
  752     continue
  753   fi
  754 
  755   case $ac_option in
  756   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  757   *=)   ac_optarg= ;;
  758   *)    ac_optarg=yes ;;
  759   esac
  760 
  761   # Accept the important Cygnus configure options, so we can diagnose typos.
  762 
  763   case $ac_dashdash$ac_option in
  764   --)
  765     ac_dashdash=yes ;;
  766 
  767   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  768     ac_prev=bindir ;;
  769   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  770     bindir=$ac_optarg ;;
  771 
  772   -build | --build | --buil | --bui | --bu)
  773     ac_prev=build_alias ;;
  774   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  775     build_alias=$ac_optarg ;;
  776 
  777   -cache-file | --cache-file | --cache-fil | --cache-fi \
  778   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  779     ac_prev=cache_file ;;
  780   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  781   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  782     cache_file=$ac_optarg ;;
  783 
  784   --config-cache | -C)
  785     cache_file=config.cache ;;
  786 
  787   -datadir | --datadir | --datadi | --datad)
  788     ac_prev=datadir ;;
  789   -datadir=* | --datadir=* | --datadi=* | --datad=*)
  790     datadir=$ac_optarg ;;
  791 
  792   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  793   | --dataroo | --dataro | --datar)
  794     ac_prev=datarootdir ;;
  795   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  796   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  797     datarootdir=$ac_optarg ;;
  798 
  799   -disable-* | --disable-*)
  800     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  801     # Reject names that are not valid shell variable names.
  802     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  803       as_fn_error $? "invalid feature name: $ac_useropt"
  804     ac_useropt_orig=$ac_useropt
  805     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  806     case $ac_user_opts in
  807       *"
  808 "enable_$ac_useropt"
  809 "*) ;;
  810       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  811      ac_unrecognized_sep=', ';;
  812     esac
  813     eval enable_$ac_useropt=no ;;
  814 
  815   -docdir | --docdir | --docdi | --doc | --do)
  816     ac_prev=docdir ;;
  817   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  818     docdir=$ac_optarg ;;
  819 
  820   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  821     ac_prev=dvidir ;;
  822   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  823     dvidir=$ac_optarg ;;
  824 
  825   -enable-* | --enable-*)
  826     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  827     # Reject names that are not valid shell variable names.
  828     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  829       as_fn_error $? "invalid feature name: $ac_useropt"
  830     ac_useropt_orig=$ac_useropt
  831     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  832     case $ac_user_opts in
  833       *"
  834 "enable_$ac_useropt"
  835 "*) ;;
  836       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  837      ac_unrecognized_sep=', ';;
  838     esac
  839     eval enable_$ac_useropt=\$ac_optarg ;;
  840 
  841   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  842   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  843   | --exec | --exe | --ex)
  844     ac_prev=exec_prefix ;;
  845   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  846   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  847   | --exec=* | --exe=* | --ex=*)
  848     exec_prefix=$ac_optarg ;;
  849 
  850   -gas | --gas | --ga | --g)
  851     # Obsolete; use --with-gas.
  852     with_gas=yes ;;
  853 
  854   -help | --help | --hel | --he | -h)
  855     ac_init_help=long ;;
  856   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  857     ac_init_help=recursive ;;
  858   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  859     ac_init_help=short ;;
  860 
  861   -host | --host | --hos | --ho)
  862     ac_prev=host_alias ;;
  863   -host=* | --host=* | --hos=* | --ho=*)
  864     host_alias=$ac_optarg ;;
  865 
  866   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  867     ac_prev=htmldir ;;
  868   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  869   | --ht=*)
  870     htmldir=$ac_optarg ;;
  871 
  872   -includedir | --includedir | --includedi | --included | --include \
  873   | --includ | --inclu | --incl | --inc)
  874     ac_prev=includedir ;;
  875   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  876   | --includ=* | --inclu=* | --incl=* | --inc=*)
  877     includedir=$ac_optarg ;;
  878 
  879   -infodir | --infodir | --infodi | --infod | --info | --inf)
  880     ac_prev=infodir ;;
  881   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  882     infodir=$ac_optarg ;;
  883 
  884   -libdir | --libdir | --libdi | --libd)
  885     ac_prev=libdir ;;
  886   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  887     libdir=$ac_optarg ;;
  888 
  889   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  890   | --libexe | --libex | --libe)
  891     ac_prev=libexecdir ;;
  892   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  893   | --libexe=* | --libex=* | --libe=*)
  894     libexecdir=$ac_optarg ;;
  895 
  896   -localedir | --localedir | --localedi | --localed | --locale)
  897     ac_prev=localedir ;;
  898   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  899     localedir=$ac_optarg ;;
  900 
  901   -localstatedir | --localstatedir | --localstatedi | --localstated \
  902   | --localstate | --localstat | --localsta | --localst | --locals)
  903     ac_prev=localstatedir ;;
  904   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  905   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  906     localstatedir=$ac_optarg ;;
  907 
  908   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  909     ac_prev=mandir ;;
  910   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  911     mandir=$ac_optarg ;;
  912 
  913   -nfp | --nfp | --nf)
  914     # Obsolete; use --without-fp.
  915     with_fp=no ;;
  916 
  917   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  918   | --no-cr | --no-c | -n)
  919     no_create=yes ;;
  920 
  921   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  922   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  923     no_recursion=yes ;;
  924 
  925   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  926   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  927   | --oldin | --oldi | --old | --ol | --o)
  928     ac_prev=oldincludedir ;;
  929   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  930   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  931   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  932     oldincludedir=$ac_optarg ;;
  933 
  934   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  935     ac_prev=prefix ;;
  936   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  937     prefix=$ac_optarg ;;
  938 
  939   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  940   | --program-pre | --program-pr | --program-p)
  941     ac_prev=program_prefix ;;
  942   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  943   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  944     program_prefix=$ac_optarg ;;
  945 
  946   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  947   | --program-suf | --program-su | --program-s)
  948     ac_prev=program_suffix ;;
  949   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  950   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  951     program_suffix=$ac_optarg ;;
  952 
  953   -program-transform-name | --program-transform-name \
  954   | --program-transform-nam | --program-transform-na \
  955   | --program-transform-n | --program-transform- \
  956   | --program-transform | --program-transfor \
  957   | --program-transfo | --program-transf \
  958   | --program-trans | --program-tran \
  959   | --progr-tra | --program-tr | --program-t)
  960     ac_prev=program_transform_name ;;
  961   -program-transform-name=* | --program-transform-name=* \
  962   | --program-transform-nam=* | --program-transform-na=* \
  963   | --program-transform-n=* | --program-transform-=* \
  964   | --program-transform=* | --program-transfor=* \
  965   | --program-transfo=* | --program-transf=* \
  966   | --program-trans=* | --program-tran=* \
  967   | --progr-tra=* | --program-tr=* | --program-t=*)
  968     program_transform_name=$ac_optarg ;;
  969 
  970   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  971     ac_prev=pdfdir ;;
  972   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  973     pdfdir=$ac_optarg ;;
  974 
  975   -psdir | --psdir | --psdi | --psd | --ps)
  976     ac_prev=psdir ;;
  977   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  978     psdir=$ac_optarg ;;
  979 
  980   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  981   | -silent | --silent | --silen | --sile | --sil)
  982     silent=yes ;;
  983 
  984   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  985     ac_prev=sbindir ;;
  986   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  987   | --sbi=* | --sb=*)
  988     sbindir=$ac_optarg ;;
  989 
  990   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  991   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  992   | --sharedst | --shareds | --shared | --share | --shar \
  993   | --sha | --sh)
  994     ac_prev=sharedstatedir ;;
  995   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  996   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  997   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  998   | --sha=* | --sh=*)
  999     sharedstatedir=$ac_optarg ;;
 1000 
 1001   -site | --site | --sit)
 1002     ac_prev=site ;;
 1003   -site=* | --site=* | --sit=*)
 1004     site=$ac_optarg ;;
 1005 
 1006   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
 1007     ac_prev=srcdir ;;
 1008   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
 1009     srcdir=$ac_optarg ;;
 1010 
 1011   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
 1012   | --syscon | --sysco | --sysc | --sys | --sy)
 1013     ac_prev=sysconfdir ;;
 1014   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
 1015   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
 1016     sysconfdir=$ac_optarg ;;
 1017 
 1018   -target | --target | --targe | --targ | --tar | --ta | --t)
 1019     ac_prev=target_alias ;;
 1020   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
 1021     target_alias=$ac_optarg ;;
 1022 
 1023   -v | -verbose | --verbose | --verbos | --verbo | --verb)
 1024     verbose=yes ;;
 1025 
 1026   -version | --version | --versio | --versi | --vers | -V)
 1027     ac_init_version=: ;;
 1028 
 1029   -with-* | --with-*)
 1030     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
 1031     # Reject names that are not valid shell variable names.
 1032     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1033       as_fn_error $? "invalid package name: $ac_useropt"
 1034     ac_useropt_orig=$ac_useropt
 1035     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1036     case $ac_user_opts in
 1037       *"
 1038 "with_$ac_useropt"
 1039 "*) ;;
 1040       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
 1041      ac_unrecognized_sep=', ';;
 1042     esac
 1043     eval with_$ac_useropt=\$ac_optarg ;;
 1044 
 1045   -without-* | --without-*)
 1046     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
 1047     # Reject names that are not valid shell variable names.
 1048     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
 1049       as_fn_error $? "invalid package name: $ac_useropt"
 1050     ac_useropt_orig=$ac_useropt
 1051     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
 1052     case $ac_user_opts in
 1053       *"
 1054 "with_$ac_useropt"
 1055 "*) ;;
 1056       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
 1057      ac_unrecognized_sep=', ';;
 1058     esac
 1059     eval with_$ac_useropt=no ;;
 1060 
 1061   --x)
 1062     # Obsolete; use --with-x.
 1063     with_x=yes ;;
 1064 
 1065   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
 1066   | --x-incl | --x-inc | --x-in | --x-i)
 1067     ac_prev=x_includes ;;
 1068   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
 1069   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
 1070     x_includes=$ac_optarg ;;
 1071 
 1072   -x-libraries | --x-libraries | --x-librarie | --x-librari \
 1073   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
 1074     ac_prev=x_libraries ;;
 1075   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
 1076   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
 1077     x_libraries=$ac_optarg ;;
 1078 
 1079   -*) as_fn_error $? "unrecognized option: \`$ac_option'
 1080 Try \`$0 --help' for more information"
 1081     ;;
 1082 
 1083   *=*)
 1084     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
 1085     # Reject names that are not valid shell variable names.
 1086     case $ac_envvar in #(
 1087       '' | [0-9]* | *[!_$as_cr_alnum]* )
 1088       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
 1089     esac
 1090     eval $ac_envvar=\$ac_optarg
 1091     export $ac_envvar ;;
 1092 
 1093   *)
 1094     # FIXME: should be removed in autoconf 3.0.
 1095     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
 1096     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
 1097       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
 1098     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
 1099     ;;
 1100 
 1101   esac
 1102 done
 1103 
 1104 if test -n "$ac_prev"; then
 1105   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
 1106   as_fn_error $? "missing argument to $ac_option"
 1107 fi
 1108 
 1109 if test -n "$ac_unrecognized_opts"; then
 1110   case $enable_option_checking in
 1111     no) ;;
 1112     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
 1113     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
 1114   esac
 1115 fi
 1116 
 1117 # Check all directory arguments for consistency.
 1118 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
 1119         datadir sysconfdir sharedstatedir localstatedir includedir \
 1120         oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
 1121         libdir localedir mandir
 1122 do
 1123   eval ac_val=\$$ac_var
 1124   # Remove trailing slashes.
 1125   case $ac_val in
 1126     */ )
 1127       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
 1128       eval $ac_var=\$ac_val;;
 1129   esac
 1130   # Be sure to have absolute directory names.
 1131   case $ac_val in
 1132     [\\/$]* | ?:[\\/]* )  continue;;
 1133     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
 1134   esac
 1135   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
 1136 done
 1137 
 1138 # There might be people who depend on the old broken behavior: `$host'
 1139 # used to hold the argument of --host etc.
 1140 # FIXME: To remove some day.
 1141 build=$build_alias
 1142 host=$host_alias
 1143 target=$target_alias
 1144 
 1145 # FIXME: To remove some day.
 1146 if test "x$host_alias" != x; then
 1147   if test "x$build_alias" = x; then
 1148     cross_compiling=maybe
 1149   elif test "x$build_alias" != "x$host_alias"; then
 1150     cross_compiling=yes
 1151   fi
 1152 fi
 1153 
 1154 ac_tool_prefix=
 1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
 1156 
 1157 test "$silent" = yes && exec 6>/dev/null
 1158 
 1159 
 1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
 1161 ac_ls_di=`ls -di .` &&
 1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
 1163   as_fn_error $? "working directory cannot be determined"
 1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
 1165   as_fn_error $? "pwd does not report name of working directory"
 1166 
 1167 
 1168 # Find the source files, if location was not specified.
 1169 if test -z "$srcdir"; then
 1170   ac_srcdir_defaulted=yes
 1171   # Try the directory containing this script, then the parent directory.
 1172   ac_confdir=`$as_dirname -- "$as_myself" ||
 1173 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 1174      X"$as_myself" : 'X\(//\)[^/]' \| \
 1175      X"$as_myself" : 'X\(//\)$' \| \
 1176      X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
 1177 $as_echo X"$as_myself" |
 1178     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 1179         s//\1/
 1180         q
 1181       }
 1182       /^X\(\/\/\)[^/].*/{
 1183         s//\1/
 1184         q
 1185       }
 1186       /^X\(\/\/\)$/{
 1187         s//\1/
 1188         q
 1189       }
 1190       /^X\(\/\).*/{
 1191         s//\1/
 1192         q
 1193       }
 1194       s/.*/./; q'`
 1195   srcdir=$ac_confdir
 1196   if test ! -r "$srcdir/$ac_unique_file"; then
 1197     srcdir=..
 1198   fi
 1199 else
 1200   ac_srcdir_defaulted=no
 1201 fi
 1202 if test ! -r "$srcdir/$ac_unique_file"; then
 1203   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
 1204   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
 1205 fi
 1206 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
 1207 ac_abs_confdir=`(
 1208     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
 1209     pwd)`
 1210 # When building in place, set srcdir=.
 1211 if test "$ac_abs_confdir" = "$ac_pwd"; then
 1212   srcdir=.
 1213 fi
 1214 # Remove unnecessary trailing slashes from srcdir.
 1215 # Double slashes in file names in object file debugging info
 1216 # mess up M-x gdb in Emacs.
 1217 case $srcdir in
 1218 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
 1219 esac
 1220 for ac_var in $ac_precious_vars; do
 1221   eval ac_env_${ac_var}_set=\${${ac_var}+set}
 1222   eval ac_env_${ac_var}_value=\$${ac_var}
 1223   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
 1224   eval ac_cv_env_${ac_var}_value=\$${ac_var}
 1225 done
 1226 
 1227 #
 1228 # Report the --help message.
 1229 #
 1230 if test "$ac_init_help" = "long"; then
 1231   # Omit some internal or obsolete options to make the list less imposing.
 1232   # This message is too long to be a string in the A/UX 3.1 sh.
 1233   cat <<_ACEOF
 1234 \`configure' configures auctex 12.3 to adapt to many kinds of systems.
 1235 
 1236 Usage: $0 [OPTION]... [VAR=VALUE]...
 1237 
 1238 To assign environment variables (e.g., CC, CFLAGS...), specify them as
 1239 VAR=VALUE.  See below for descriptions of some of the useful variables.
 1240 
 1241 Defaults for the options are specified in brackets.
 1242 
 1243 Configuration:
 1244   -h, --help              display this help and exit
 1245       --help=short        display options specific to this package
 1246       --help=recursive    display the short help of all the included packages
 1247   -V, --version           display version information and exit
 1248   -q, --quiet, --silent   do not print \`checking ...' messages
 1249       --cache-file=FILE   cache test results in FILE [disabled]
 1250   -C, --config-cache      alias for \`--cache-file=config.cache'
 1251   -n, --no-create         do not create output files
 1252       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
 1253 
 1254 Installation directories:
 1255   --prefix=PREFIX         install architecture-independent files in PREFIX
 1256                           [$ac_default_prefix]
 1257   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
 1258                           [PREFIX]
 1259 
 1260 By default, \`make install' will install all the files in
 1261 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
 1262 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
 1263 for instance \`--prefix=\$HOME'.
 1264 
 1265 For better control, use the options below.
 1266 
 1267 Fine tuning of the installation directories:
 1268   --bindir=DIR            user executables [EPREFIX/bin]
 1269   --sbindir=DIR           system admin executables [EPREFIX/sbin]
 1270   --libexecdir=DIR        program executables [EPREFIX/libexec]
 1271   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
 1272   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
 1273   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
 1274   --libdir=DIR            object code libraries [EPREFIX/lib]
 1275   --includedir=DIR        C header files [PREFIX/include]
 1276   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
 1277   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
 1278   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
 1279   --infodir=DIR           info documentation [DATAROOTDIR/info]
 1280   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
 1281   --mandir=DIR            man documentation [DATAROOTDIR/man]
 1282   --docdir=DIR            documentation root [DATAROOTDIR/doc/auctex]
 1283   --htmldir=DIR           html documentation [DOCDIR]
 1284   --dvidir=DIR            dvi documentation [DOCDIR]
 1285   --pdfdir=DIR            pdf documentation [DOCDIR]
 1286   --psdir=DIR             ps documentation [DOCDIR]
 1287 _ACEOF
 1288 
 1289   cat <<\_ACEOF
 1290 _ACEOF
 1291 fi
 1292 
 1293 if test -n "$ac_init_help"; then
 1294   case $ac_init_help in
 1295      short | recursive ) echo "Configuration of auctex 12.3:";;
 1296    esac
 1297   cat <<\_ACEOF
 1298 
 1299 Optional Features:
 1300   --disable-option-checking  ignore unrecognized --enable/--with options
 1301   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1302   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1303   --enable-build-dir-test test for build directory inside `load-path'
 1304               (on by default)
 1305   --disable-preview       disable inclusion of preview-latex
 1306 
 1307 Optional Packages:
 1308   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1309   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1310   --with-emacs[=PATH]     Use Emacs to build (on PATH if given)
 1311   --with-lispdir=DIR      A place in load-path for Lisp files; most
 1312                           files will be place in a subdirectory.
 1313   --with-auctexstartfile=FILE    What file to use for auctex startup.
 1314   --with-previewstartfile=FILE    What file to use for preview startup.
 1315   --with-packagelispdir=DIR
 1316                         Directory for the package lisp files.
 1317   --with-packagedatadir=DIR         Where the data files go.
 1318   --with-auto-dir=DIR     directory containing AUCTeX automatically generated
 1319               global style hooks
 1320   --with-texmf-dir=DIR    TEXMF tree to install into,
 1321                          or --without-texmf-dir for runtime config
 1322   --with-tex-dir=DIR      Location to install preview TeX sources
 1323   --with-doc-dir=DIR      Location to install preview.dvi
 1324 
 1325 Some influential environment variables:
 1326   GS          Ghostscript executable for batch operation
 1327   TEXHASH     command to update the TeX filename database. Set to : to skip
 1328               updating the database on installation. This is the default for
 1329               --without-texmf-dir
 1330   PERL        Perl executable. If set to :, some documentation cannot be
 1331               regenerated, but installation of an unmodified tarball will
 1332               succeed.
 1333   MAKEINFO    Makeinfo executable. If set to :, some documentation cannot be
 1334               regenerated, but installation of an unmodified tarball will
 1335               succeed.
 1336   INSTALL_INFO
 1337               install-info executable. Set to : to skip making a dir file.
 1338 
 1339 Use these variables to override the choices made by `configure' or to help
 1340 it to find libraries and programs with nonstandard names/locations.
 1341 
 1342 Report bugs to <bug-auctex@gnu.org>.
 1343 _ACEOF
 1344 ac_status=$?
 1345 fi
 1346 
 1347 if test "$ac_init_help" = "recursive"; then
 1348   # If there are subdirs, report their specific --help.
 1349   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
 1350     test -d "$ac_dir" ||
 1351       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
 1352       continue
 1353     ac_builddir=.
 1354 
 1355 case "$ac_dir" in
 1356 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1357 *)
 1358   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
 1359   # A ".." for each directory in $ac_dir_suffix.
 1360   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
 1361   case $ac_top_builddir_sub in
 1362   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
 1363   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
 1364   esac ;;
 1365 esac
 1366 ac_abs_top_builddir=$ac_pwd
 1367 ac_abs_builddir=$ac_pwd$ac_dir_suffix
 1368 # for backward compatibility:
 1369 ac_top_builddir=$ac_top_build_prefix
 1370 
 1371 case $srcdir in
 1372   .)  # We are building in place.
 1373     ac_srcdir=.
 1374     ac_top_srcdir=$ac_top_builddir_sub
 1375     ac_abs_top_srcdir=$ac_pwd ;;
 1376   [\\/]* | ?:[\\/]* )  # Absolute name.
 1377     ac_srcdir=$srcdir$ac_dir_suffix;
 1378     ac_top_srcdir=$srcdir
 1379     ac_abs_top_srcdir=$srcdir ;;
 1380   *) # Relative name.
 1381     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
 1382     ac_top_srcdir=$ac_top_build_prefix$srcdir
 1383     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
 1384 esac
 1385 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
 1386 
 1387     cd "$ac_dir" || { ac_status=$?; continue; }
 1388     # Check for guested configure.
 1389     if test -f "$ac_srcdir/configure.gnu"; then
 1390       echo &&
 1391       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
 1392     elif test -f "$ac_srcdir/configure"; then
 1393       echo &&
 1394       $SHELL "$ac_srcdir/configure" --help=recursive
 1395     else
 1396       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
 1397     fi || ac_status=$?
 1398     cd "$ac_pwd" || { ac_status=$?; break; }
 1399   done
 1400 fi
 1401 
 1402 test -n "$ac_init_help" && exit $ac_status
 1403 if $ac_init_version; then
 1404   cat <<\_ACEOF
 1405 auctex configure 12.3
 1406 generated by GNU Autoconf 2.69
 1407 
 1408 Copyright (C) 2012 Free Software Foundation, Inc.
 1409 This configure script is free software; the Free Software Foundation
 1410 gives unlimited permission to copy, distribute and modify it.
 1411 _ACEOF
 1412   exit
 1413 fi
 1414 
 1415 ## ------------------------ ##
 1416 ## Autoconf initialization. ##
 1417 ## ------------------------ ##
 1418 cat >config.log <<_ACEOF
 1419 This file contains any messages produced by compilers while
 1420 running configure, to aid debugging if configure makes a mistake.
 1421 
 1422 It was created by auctex $as_me 12.3, which was
 1423 generated by GNU Autoconf 2.69.  Invocation command line was
 1424 
 1425   $ $0 $@
 1426 
 1427 _ACEOF
 1428 exec 5>>config.log
 1429 {
 1430 cat <<_ASUNAME
 1431 ## --------- ##
 1432 ## Platform. ##
 1433 ## --------- ##
 1434 
 1435 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
 1436 uname -m = `(uname -m) 2>/dev/null || echo unknown`
 1437 uname -r = `(uname -r) 2>/dev/null || echo unknown`
 1438 uname -s = `(uname -s) 2>/dev/null || echo unknown`
 1439 uname -v = `(uname -v) 2>/dev/null || echo unknown`
 1440 
 1441 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
 1442 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
 1443 
 1444 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
 1445 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
 1446 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
 1447 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
 1448 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
 1449 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
 1450 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
 1451 
 1452 _ASUNAME
 1453 
 1454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1455 for as_dir in $PATH
 1456 do
 1457   IFS=$as_save_IFS
 1458   test -z "$as_dir" && as_dir=.
 1459     $as_echo "PATH: $as_dir"
 1460   done
 1461 IFS=$as_save_IFS
 1462 
 1463 } >&5
 1464 
 1465 cat >&5 <<_ACEOF
 1466 
 1467 
 1468 ## ----------- ##
 1469 ## Core tests. ##
 1470 ## ----------- ##
 1471 
 1472 _ACEOF
 1473 
 1474 
 1475 # Keep a trace of the command line.
 1476 # Strip out --no-create and --no-recursion so they do not pile up.
 1477 # Strip out --silent because we don't want to record it for future runs.
 1478 # Also quote any args containing shell meta-characters.
 1479 # Make two passes to allow for proper duplicate-argument suppression.
 1480 ac_configure_args=
 1481 ac_configure_args0=
 1482 ac_configure_args1=
 1483 ac_must_keep_next=false
 1484 for ac_pass in 1 2
 1485 do
 1486   for ac_arg
 1487   do
 1488     case $ac_arg in
 1489     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
 1490     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 1491     | -silent | --silent | --silen | --sile | --sil)
 1492       continue ;;
 1493     *\'*)
 1494       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
 1495     esac
 1496     case $ac_pass in
 1497     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
 1498     2)
 1499       as_fn_append ac_configure_args1 " '$ac_arg'"
 1500       if test $ac_must_keep_next = true; then
 1501     ac_must_keep_next=false # Got value, back to normal.
 1502       else
 1503     case $ac_arg in
 1504       *=* | --config-cache | -C | -disable-* | --disable-* \
 1505       | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
 1506       | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
 1507       | -with-* | --with-* | -without-* | --without-* | --x)
 1508         case "$ac_configure_args0 " in
 1509           "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
 1510         esac
 1511         ;;
 1512       -* ) ac_must_keep_next=true ;;
 1513     esac
 1514       fi
 1515       as_fn_append ac_configure_args " '$ac_arg'"
 1516       ;;
 1517     esac
 1518   done
 1519 done
 1520 { ac_configure_args0=; unset ac_configure_args0;}
 1521 { ac_configure_args1=; unset ac_configure_args1;}
 1522 
 1523 # When interrupted or exit'd, cleanup temporary files, and complete
 1524 # config.log.  We remove comments because anyway the quotes in there
 1525 # would cause problems or look ugly.
 1526 # WARNING: Use '\'' to represent an apostrophe within the trap.
 1527 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
 1528 trap 'exit_status=$?
 1529   # Save into config.log some information that might help in debugging.
 1530   {
 1531     echo
 1532 
 1533     $as_echo "## ---------------- ##
 1534 ## Cache variables. ##
 1535 ## ---------------- ##"
 1536     echo
 1537     # The following way of writing the cache mishandles newlines in values,
 1538 (
 1539   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
 1540     eval ac_val=\$$ac_var
 1541     case $ac_val in #(
 1542     *${as_nl}*)
 1543       case $ac_var in #(
 1544       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 1545 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 1546       esac
 1547       case $ac_var in #(
 1548       _ | IFS | as_nl) ;; #(
 1549       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 1550       *) { eval $ac_var=; unset $ac_var;} ;;
 1551       esac ;;
 1552     esac
 1553   done
 1554   (set) 2>&1 |
 1555     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
 1556     *${as_nl}ac_space=\ *)
 1557       sed -n \
 1558     "s/'\''/'\''\\\\'\'''\''/g;
 1559       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
 1560       ;; #(
 1561     *)
 1562       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 1563       ;;
 1564     esac |
 1565     sort
 1566 )
 1567     echo
 1568 
 1569     $as_echo "## ----------------- ##
 1570 ## Output variables. ##
 1571 ## ----------------- ##"
 1572     echo
 1573     for ac_var in $ac_subst_vars
 1574     do
 1575       eval ac_val=\$$ac_var
 1576       case $ac_val in
 1577       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 1578       esac
 1579       $as_echo "$ac_var='\''$ac_val'\''"
 1580     done | sort
 1581     echo
 1582 
 1583     if test -n "$ac_subst_files"; then
 1584       $as_echo "## ------------------- ##
 1585 ## File substitutions. ##
 1586 ## ------------------- ##"
 1587       echo
 1588       for ac_var in $ac_subst_files
 1589       do
 1590     eval ac_val=\$$ac_var
 1591     case $ac_val in
 1592     *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
 1593     esac
 1594     $as_echo "$ac_var='\''$ac_val'\''"
 1595       done | sort
 1596       echo
 1597     fi
 1598 
 1599     if test -s confdefs.h; then
 1600       $as_echo "## ----------- ##
 1601 ## confdefs.h. ##
 1602 ## ----------- ##"
 1603       echo
 1604       cat confdefs.h
 1605       echo
 1606     fi
 1607     test "$ac_signal" != 0 &&
 1608       $as_echo "$as_me: caught signal $ac_signal"
 1609     $as_echo "$as_me: exit $exit_status"
 1610   } >&5
 1611   rm -f core *.core core.conftest.* &&
 1612     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
 1613     exit $exit_status
 1614 ' 0
 1615 for ac_signal in 1 2 13 15; do
 1616   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
 1617 done
 1618 ac_signal=0
 1619 
 1620 # confdefs.h avoids OS command line length limits that DEFS can exceed.
 1621 rm -f -r conftest* confdefs.h
 1622 
 1623 $as_echo "/* confdefs.h */" > confdefs.h
 1624 
 1625 # Predefined preprocessor variables.
 1626 
 1627 cat >>confdefs.h <<_ACEOF
 1628 #define PACKAGE_NAME "$PACKAGE_NAME"
 1629 _ACEOF
 1630 
 1631 cat >>confdefs.h <<_ACEOF
 1632 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 1633 _ACEOF
 1634 
 1635 cat >>confdefs.h <<_ACEOF
 1636 #define PACKAGE_VERSION "$PACKAGE_VERSION"
 1637 _ACEOF
 1638 
 1639 cat >>confdefs.h <<_ACEOF
 1640 #define PACKAGE_STRING "$PACKAGE_STRING"
 1641 _ACEOF
 1642 
 1643 cat >>confdefs.h <<_ACEOF
 1644 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 1645 _ACEOF
 1646 
 1647 cat >>confdefs.h <<_ACEOF
 1648 #define PACKAGE_URL "$PACKAGE_URL"
 1649 _ACEOF
 1650 
 1651 
 1652 # Let the site file select an alternate cache file if it wants to.
 1653 # Prefer an explicitly selected file to automatically selected ones.
 1654 ac_site_file1=NONE
 1655 ac_site_file2=NONE
 1656 if test -n "$CONFIG_SITE"; then
 1657   # We do not want a PATH search for config.site.
 1658   case $CONFIG_SITE in #((
 1659     -*)  ac_site_file1=./$CONFIG_SITE;;
 1660     */*) ac_site_file1=$CONFIG_SITE;;
 1661     *)   ac_site_file1=./$CONFIG_SITE;;
 1662   esac
 1663 elif test "x$prefix" != xNONE; then
 1664   ac_site_file1=$prefix/share/config.site
 1665   ac_site_file2=$prefix/etc/config.site
 1666 else
 1667   ac_site_file1=$ac_default_prefix/share/config.site
 1668   ac_site_file2=$ac_default_prefix/etc/config.site
 1669 fi
 1670 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
 1671 do
 1672   test "x$ac_site_file" = xNONE && continue
 1673   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
 1674     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
 1675 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
 1676     sed 's/^/| /' "$ac_site_file" >&5
 1677     . "$ac_site_file" \
 1678       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 1679 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 1680 as_fn_error $? "failed to load site script $ac_site_file
 1681 See \`config.log' for more details" "$LINENO" 5; }
 1682   fi
 1683 done
 1684 
 1685 if test -r "$cache_file"; then
 1686   # Some versions of bash will fail to source /dev/null (special files
 1687   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
 1688   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
 1689     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
 1690 $as_echo "$as_me: loading cache $cache_file" >&6;}
 1691     case $cache_file in
 1692       [\\/]* | ?:[\\/]* ) . "$cache_file";;
 1693       *)                      . "./$cache_file";;
 1694     esac
 1695   fi
 1696 else
 1697   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
 1698 $as_echo "$as_me: creating cache $cache_file" >&6;}
 1699   >$cache_file
 1700 fi
 1701 
 1702 # Check that the precious variables saved in the cache have kept the same
 1703 # value.
 1704 ac_cache_corrupted=false
 1705 for ac_var in $ac_precious_vars; do
 1706   eval ac_old_set=\$ac_cv_env_${ac_var}_set
 1707   eval ac_new_set=\$ac_env_${ac_var}_set
 1708   eval ac_old_val=\$ac_cv_env_${ac_var}_value
 1709   eval ac_new_val=\$ac_env_${ac_var}_value
 1710   case $ac_old_set,$ac_new_set in
 1711     set,)
 1712       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
 1713 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
 1714       ac_cache_corrupted=: ;;
 1715     ,set)
 1716       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
 1717 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
 1718       ac_cache_corrupted=: ;;
 1719     ,);;
 1720     *)
 1721       if test "x$ac_old_val" != "x$ac_new_val"; then
 1722     # differences in whitespace do not lead to failure.
 1723     ac_old_val_w=`echo x $ac_old_val`
 1724     ac_new_val_w=`echo x $ac_new_val`
 1725     if test "$ac_old_val_w" != "$ac_new_val_w"; then
 1726       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
 1727 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
 1728       ac_cache_corrupted=:
 1729     else
 1730       { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
 1731 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
 1732       eval $ac_var=\$ac_old_val
 1733     fi
 1734     { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
 1735 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
 1736     { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
 1737 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
 1738       fi;;
 1739   esac
 1740   # Pass precious variables to config.status.
 1741   if test "$ac_new_set" = set; then
 1742     case $ac_new_val in
 1743     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
 1744     *) ac_arg=$ac_var=$ac_new_val ;;
 1745     esac
 1746     case " $ac_configure_args " in
 1747       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
 1748       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
 1749     esac
 1750   fi
 1751 done
 1752 if $ac_cache_corrupted; then
 1753   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
 1754 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
 1755   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
 1756 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
 1757   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
 1758 fi
 1759 ## -------------------- ##
 1760 ## Main body of script. ##
 1761 ## -------------------- ##
 1762 
 1763 ac_ext=c
 1764 ac_cpp='$CPP $CPPFLAGS'
 1765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 1766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 1767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 1768 
 1769 
 1770 
 1771 
 1772 for ac_prog in make
 1773 do
 1774   # Extract the first word of "$ac_prog", so it can be a program name with args.
 1775 set dummy $ac_prog; ac_word=$2
 1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 1777 $as_echo_n "checking for $ac_word... " >&6; }
 1778 if ${ac_cv_prog_MAKECMD+:} false; then :
 1779   $as_echo_n "(cached) " >&6
 1780 else
 1781   if test -n "$MAKECMD"; then
 1782   ac_cv_prog_MAKECMD="$MAKECMD" # Let the user override the test.
 1783 else
 1784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1785 for as_dir in $PATH
 1786 do
 1787   IFS=$as_save_IFS
 1788   test -z "$as_dir" && as_dir=.
 1789     for ac_exec_ext in '' $ac_executable_extensions; do
 1790   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 1791     ac_cv_prog_MAKECMD="$ac_prog"
 1792     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 1793     break 2
 1794   fi
 1795 done
 1796   done
 1797 IFS=$as_save_IFS
 1798 
 1799 fi
 1800 fi
 1801 MAKECMD=$ac_cv_prog_MAKECMD
 1802 if test -n "$MAKECMD"; then
 1803   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKECMD" >&5
 1804 $as_echo "$MAKECMD" >&6; }
 1805 else
 1806   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1807 $as_echo "no" >&6; }
 1808 fi
 1809 
 1810 
 1811   test -n "$MAKECMD" && break
 1812 done
 1813 test -n "$MAKECMD" || MAKECMD="NONE"
 1814 
 1815 if test "${MAKECMD}"x = NONEx ; then
 1816    as_fn_error $? "make not found, aborting!" "$LINENO" 5
 1817 fi
 1818 
 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 1820 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
 1821 set x ${MAKE-make}
 1822 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
 1823 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
 1824   $as_echo_n "(cached) " >&6
 1825 else
 1826   cat >conftest.make <<\_ACEOF
 1827 SHELL = /bin/sh
 1828 all:
 1829     @echo '@@@%%%=$(MAKE)=@@@%%%'
 1830 _ACEOF
 1831 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
 1832 case `${MAKE-make} -f conftest.make 2>/dev/null` in
 1833   *@@@%%%=?*=@@@%%%*)
 1834     eval ac_cv_prog_make_${ac_make}_set=yes;;
 1835   *)
 1836     eval ac_cv_prog_make_${ac_make}_set=no;;
 1837 esac
 1838 rm -f conftest.make
 1839 fi
 1840 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
 1841   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 1842 $as_echo "yes" >&6; }
 1843   SET_MAKE=
 1844 else
 1845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 1846 $as_echo "no" >&6; }
 1847   SET_MAKE="MAKE=${MAKE-make}"
 1848 fi
 1849 
 1850 ac_aux_dir=
 1851 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
 1852   if test -f "$ac_dir/install-sh"; then
 1853     ac_aux_dir=$ac_dir
 1854     ac_install_sh="$ac_aux_dir/install-sh -c"
 1855     break
 1856   elif test -f "$ac_dir/install.sh"; then
 1857     ac_aux_dir=$ac_dir
 1858     ac_install_sh="$ac_aux_dir/install.sh -c"
 1859     break
 1860   elif test -f "$ac_dir/shtool"; then
 1861     ac_aux_dir=$ac_dir
 1862     ac_install_sh="$ac_aux_dir/shtool install -c"
 1863     break
 1864   fi
 1865 done
 1866 if test -z "$ac_aux_dir"; then
 1867   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
 1868 fi
 1869 
 1870 # These three variables are undocumented and unsupported,
 1871 # and are intended to be withdrawn in a future Autoconf release.
 1872 # They can cause serious problems if a builder's source tree is in a directory
 1873 # whose full name contains unusual characters.
 1874 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
 1875 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
 1876 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
 1877 
 1878 
 1879 # Find a good install program.  We prefer a C program (faster),
 1880 # so one script is as good as another.  But avoid the broken or
 1881 # incompatible versions:
 1882 # SysV /etc/install, /usr/sbin/install
 1883 # SunOS /usr/etc/install
 1884 # IRIX /sbin/install
 1885 # AIX /bin/install
 1886 # AmigaOS /C/install, which installs bootblocks on floppy discs
 1887 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 1888 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 1889 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 1890 # OS/2's system install, which has a completely different semantic
 1891 # ./install, which can be erroneously created by make from ./install.sh.
 1892 # Reject install programs that cannot install multiple files.
 1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
 1894 $as_echo_n "checking for a BSD-compatible install... " >&6; }
 1895 if test -z "$INSTALL"; then
 1896 if ${ac_cv_path_install+:} false; then :
 1897   $as_echo_n "(cached) " >&6
 1898 else
 1899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1900 for as_dir in $PATH
 1901 do
 1902   IFS=$as_save_IFS
 1903   test -z "$as_dir" && as_dir=.
 1904     # Account for people who put trailing slashes in PATH elements.
 1905 case $as_dir/ in #((
 1906   ./ | .// | /[cC]/* | \
 1907   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 1908   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
 1909   /usr/ucb/* ) ;;
 1910   *)
 1911     # OSF1 and SCO ODT 3.0 have their own names for install.
 1912     # Don't use installbsd from OSF since it installs stuff as root
 1913     # by default.
 1914     for ac_prog in ginstall scoinst install; do
 1915       for ac_exec_ext in '' $ac_executable_extensions; do
 1916     if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 1917       if test $ac_prog = install &&
 1918         grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 1919         # AIX install.  It has an incompatible calling convention.
 1920         :
 1921       elif test $ac_prog = install &&
 1922         grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 1923         # program-specific install script used by HP pwplus--don't use.
 1924         :
 1925       else
 1926         rm -rf conftest.one conftest.two conftest.dir
 1927         echo one > conftest.one
 1928         echo two > conftest.two
 1929         mkdir conftest.dir
 1930         if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
 1931           test -s conftest.one && test -s conftest.two &&
 1932           test -s conftest.dir/conftest.one &&
 1933           test -s conftest.dir/conftest.two
 1934         then
 1935           ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 1936           break 3
 1937         fi
 1938       fi
 1939     fi
 1940       done
 1941     done
 1942     ;;
 1943 esac
 1944 
 1945   done
 1946 IFS=$as_save_IFS
 1947 
 1948 rm -rf conftest.one conftest.two conftest.dir
 1949 
 1950 fi
 1951   if test "${ac_cv_path_install+set}" = set; then
 1952     INSTALL=$ac_cv_path_install
 1953   else
 1954     # As a last resort, use the slow shell script.  Don't cache a
 1955     # value for INSTALL within a source directory, because that will
 1956     # break other packages using the cache if that directory is
 1957     # removed, or if the value is a relative name.
 1958     INSTALL=$ac_install_sh
 1959   fi
 1960 fi
 1961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
 1962 $as_echo "$INSTALL" >&6; }
 1963 
 1964 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 1965 # It thinks the first close brace ends the variable substitution.
 1966 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 1967 
 1968 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 1969 
 1970 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 1971 
 1972 
 1973 
 1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for date with git" >&5
 1975 $as_echo_n "checking for date with git... " >&6; }
 1976 AUCTEXDATE=`git log -1 --date=short --format=%cd 2> /dev/null`
 1977 if test "X${AUCTEXDATE}" = X
 1978 then
 1979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: git not found, checking for date in ChangeLog:" >&5
 1980 $as_echo "git not found, checking for date in ChangeLog:" >&6; }
 1981   AUCTEXDATE=`sed -n '1s/^\([-0-9][-0-9]*\).*/\1/p' "ChangeLog.1"`
 1982   if test "X${AUCTEXDATE}" = X
 1983   then
 1984     as_fn_error $? "not found" "$LINENO" 5
 1985   fi
 1986 fi
 1987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${AUCTEXDATE}" >&5
 1988 $as_echo "${AUCTEXDATE}" >&6; }
 1989 
 1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for release with git" >&5
 1991 $as_echo_n "checking for release with git... " >&6; }
 1992 if git describe --tags > /dev/null 2> /dev/null
 1993 then
 1994   if test "X`git describe --tags | sed 's/release_.._..//'`" = X
 1995   then
 1996     AUCTEXVERSION=`git describe --tags`
 1997   else
 1998     AUCTEXVERSION=${AUCTEXDATE}
 1999     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using ${AUCTEXVERSION} instead" >&5
 2000 $as_echo "not found, using ${AUCTEXVERSION} instead" >&6; }
 2001   fi
 2002 else
 2003   { $as_echo "$as_me:${as_lineno-$LINENO}: result: git not found, checking for release in ChangeLog:" >&5
 2004 $as_echo "git not found, checking for release in ChangeLog:" >&6; }
 2005   AUCTEXVERSION=`sed -n '2,/^[0-9]/s/.*Version \(.*\) released\..*/\1/p' "ChangeLog.1"`
 2006   if test "X${AUCTEXVERSION}" = X
 2007   then
 2008     AUCTEXVERSION=${AUCTEXDATE}
 2009     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using ${AUCTEXVERSION} instead" >&5
 2010 $as_echo "not found, using ${AUCTEXVERSION} instead" >&6; }
 2011   else
 2012     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${AUCTEXVERSION}" >&5
 2013 $as_echo "${AUCTEXVERSION}" >&6; }
 2014   fi
 2015 fi
 2016 
 2017 
 2018 
 2019 
 2020 
 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for date with git" >&5
 2022 $as_echo_n "checking for date with git... " >&6; }
 2023 PREVIEWDATE=`git log -1 --date=short --format=%cd 2> /dev/null`
 2024 if test "X${PREVIEWDATE}" = X
 2025 then
 2026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: git not found, checking for date in ChangeLog:" >&5
 2027 $as_echo "git not found, checking for date in ChangeLog:" >&6; }
 2028   PREVIEWDATE=`sed -n '1s/^\([-0-9][-0-9]*\).*/\1/p' "ChangeLog-preview"`
 2029   if test "X${PREVIEWDATE}" = X
 2030   then
 2031     as_fn_error $? "not found" "$LINENO" 5
 2032   fi
 2033 fi
 2034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PREVIEWDATE}" >&5
 2035 $as_echo "${PREVIEWDATE}" >&6; }
 2036 
 2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for release with git" >&5
 2038 $as_echo_n "checking for release with git... " >&6; }
 2039 if git describe --tags > /dev/null 2> /dev/null
 2040 then
 2041   if test "X`git describe --tags | sed 's/release_.._..//'`" = X
 2042   then
 2043     PREVIEWVERSION=`git describe --tags`
 2044   else
 2045     PREVIEWVERSION=${PREVIEWDATE}
 2046     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using ${PREVIEWVERSION} instead" >&5
 2047 $as_echo "not found, using ${PREVIEWVERSION} instead" >&6; }
 2048   fi
 2049 else
 2050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: git not found, checking for release in ChangeLog:" >&5
 2051 $as_echo "git not found, checking for release in ChangeLog:" >&6; }
 2052   PREVIEWVERSION=`sed -n '2,/^[0-9]/s/.*Version \(.*\) released\..*/\1/p' "ChangeLog-preview"`
 2053   if test "X${PREVIEWVERSION}" = X
 2054   then
 2055     PREVIEWVERSION=${PREVIEWDATE}
 2056     { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using ${PREVIEWVERSION} instead" >&5
 2057 $as_echo "not found, using ${PREVIEWVERSION} instead" >&6; }
 2058   else
 2059     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${PREVIEWVERSION}" >&5
 2060 $as_echo "${PREVIEWVERSION}" >&6; }
 2061   fi
 2062 fi
 2063 
 2064 
 2065 
 2066 
 2067 
 2068 # Check for Emacs, report its path, flavor and prefix
 2069 
 2070 # Apparently, if you run a shell window in Emacs, it sets the EMACS
 2071 # environment variable to 't'.  Let's undo the damage.
 2072 if test "${EMACS}" = "t"; then
 2073    EMACS=""
 2074 fi
 2075 
 2076 # Check whether --with-emacs was given.
 2077 if test "${with_emacs+set}" = set; then :
 2078   withval=$with_emacs; if test "${withval}" = "yes"; then EMACS=emacs
 2079    else EMACS="${withval}"; fi
 2080 fi
 2081 
 2082 
 2083 # "${prefix}/bin" is for Windows users
 2084 for ac_prog in ${EMACS} emacs
 2085 do
 2086   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2087 set dummy $ac_prog; ac_word=$2
 2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2089 $as_echo_n "checking for $ac_word... " >&6; }
 2090 if ${ac_cv_path_EMACS+:} false; then :
 2091   $as_echo_n "(cached) " >&6
 2092 else
 2093   case $EMACS in
 2094   [\\/]* | ?:[\\/]*)
 2095   ac_cv_path_EMACS="$EMACS" # Let the user override the test with a path.
 2096   ;;
 2097   *)
 2098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2099 for as_dir in ${PATH} "${prefix}/bin"
 2100 do
 2101   IFS=$as_save_IFS
 2102   test -z "$as_dir" && as_dir=.
 2103     for ac_exec_ext in '' $ac_executable_extensions; do
 2104   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2105     ac_cv_path_EMACS="$as_dir/$ac_word$ac_exec_ext"
 2106     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2107     break 2
 2108   fi
 2109 done
 2110   done
 2111 IFS=$as_save_IFS
 2112 
 2113   ;;
 2114 esac
 2115 fi
 2116 EMACS=$ac_cv_path_EMACS
 2117 if test -n "$EMACS"; then
 2118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
 2119 $as_echo "$EMACS" >&6; }
 2120 else
 2121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2122 $as_echo "no" >&6; }
 2123 fi
 2124 
 2125 
 2126   test -n "$EMACS" && break
 2127 done
 2128 test -n "$EMACS" || EMACS=""""
 2129 
 2130 if test -z "${EMACS}"; then
 2131   as_fn_error $? "Emacs not found!  Aborting!" "$LINENO" 5
 2132 fi
 2133 
 2134   EMACS_FLAVOR=emacs
 2135   EMACS_NAME="Emacs"
 2136 
 2137   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${EMACS_NAME} prefix" >&5
 2138 $as_echo_n "checking for ${EMACS_NAME} prefix... " >&6; }
 2139 
 2140 
 2141   elisp="(condition-case nil (let*
 2142     ((prefix (directory-file-name (file-name-directory (executable-find cmd))))
 2143      (parent (directory-file-name (file-name-directory prefix))))
 2144     (if (string= (file-name-nondirectory prefix) \"bin\")
 2145         (setq prefix parent)
 2146       (if (string= (file-name-nondirectory parent) \"bin\")
 2147          (setq prefix (directory-file-name (file-name-directory parent)))))
 2148     prefix) (error "NONE"))"
 2149   OUTPUT=./conftest-$$
 2150   echo "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${EMACS}" >& 5 2>&1
 2151   "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${EMACS}" >& 5 2>&1
 2152   emacsprefix="`cat ${OUTPUT}`"
 2153   echo "=> ${emacsprefix}" >& 5 2>&1
 2154   rm -f ${OUTPUT}
 2155 
 2156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${emacsprefix}\"" >&5
 2157 $as_echo "\"${emacsprefix}\"" >&6; }
 2158 
 2159 
 2160 
 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${EMACS_NAME} is recent enough" >&5
 2162 $as_echo_n "checking if ${EMACS_NAME} is recent enough... " >&6; }
 2163 
 2164   elisp="(cond ((< emacs-major-version 24) \"no\")
 2165              ((> emacs-major-version 24) \"yes\")
 2166              ((< emacs-minor-version 01) \"no\")
 2167              (t \"yes\"))"
 2168   OUTPUT=./conftest-$$
 2169   echo "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
 2170   "${EMACS}" -batch -no-site-file -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
 2171   result="`cat ${OUTPUT}`"
 2172   echo "=> ${result}" >& 5 2>&1
 2173   rm -f ${OUTPUT}
 2174 
 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${result}" >&5
 2176 $as_echo "${result}" >&6; }
 2177 if test "${result}" != "yes"
 2178 then
 2179   as_fn_error $? "This package requires at least ${EMACS_NAME} version 24.1  Aborting!" "$LINENO" 5
 2180 fi
 2181 
 2182 
 2183 # The Debian package uses `--disable-build-dir-test'; normal users should
 2184 # never need to modify the default behavior.
 2185 # Check whether --enable-build-dir-test was given.
 2186 if test "${enable_build_dir_test+set}" = set; then :
 2187   enableval=$enable_build_dir_test; if ! [ "X-${enableval}" = "X-no" ]
 2188      then
 2189   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is valid" >&5
 2190 $as_echo_n "checking if build directory is valid... " >&6; }
 2191 
 2192   elisp="(if (or (member (directory-file-name default-directory) load-path)\
 2193           (member (file-name-as-directory default-directory) load-path))\
 2194      \"no\" \"yes\")"
 2195   OUTPUT=./conftest-$$
 2196   echo "${EMACS}" -batch  -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
 2197   "${EMACS}" -batch  -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
 2198   valid_build_dir="`cat ${OUTPUT}`"
 2199   echo "=> ${valid_build_dir}" >& 5 2>&1
 2200   rm -f ${OUTPUT}
 2201 
 2202   if test "${valid_build_dir}" = "no"; then
 2203     as_fn_error $? "Build directory inside load-path!  Aborting!" "$LINENO" 5
 2204   else
 2205     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 2206 $as_echo "yes" >&6; }
 2207   fi
 2208 
 2209    fi
 2210 else
 2211 
 2212   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is valid" >&5
 2213 $as_echo_n "checking if build directory is valid... " >&6; }
 2214 
 2215   elisp="(if (or (member (directory-file-name default-directory) load-path)\
 2216           (member (file-name-as-directory default-directory) load-path))\
 2217      \"no\" \"yes\")"
 2218   OUTPUT=./conftest-$$
 2219   echo "${EMACS}" -batch  -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
 2220   "${EMACS}" -batch  -eval "(let* ((x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))"  >& 5 2>&1
 2221   valid_build_dir="`cat ${OUTPUT}`"
 2222   echo "=> ${valid_build_dir}" >& 5 2>&1
 2223   rm -f ${OUTPUT}
 2224 
 2225   if test "${valid_build_dir}" = "no"; then
 2226     as_fn_error $? "Build directory inside load-path!  Aborting!" "$LINENO" 5
 2227   else
 2228     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 2229 $as_echo "yes" >&6; }
 2230   fi
 2231 
 2232 fi
 2233 
 2234 
 2235 # Check whether --enable-preview was given.
 2236 if test "${enable_preview+set}" = set; then :
 2237   enableval=$enable_preview; preview_enabled="$enableval"
 2238 else
 2239   preview_enabled="yes"
 2240 fi
 2241 
 2242 
 2243 
 2244 
 2245   { $as_echo "$as_me:${as_lineno-$LINENO}: checking where lisp files go" >&5
 2246 $as_echo_n "checking where lisp files go... " >&6; }
 2247 
 2248 # Check whether --with-lispdir was given.
 2249 if test "${with_lispdir+set}" = set; then :
 2250   withval=$with_lispdir; lispdir="${withval}"
 2251 fi
 2252 
 2253   if test "X${lispdir}" = X; then
 2254     # Test paths relative to prefixes
 2255       for currentprefix in '${datadir}/'${EMACS_FLAVOR} '${libdir}/'${EMACS_FLAVOR} \
 2256     "${emacsprefix}/share/${EMACS_FLAVOR}" \
 2257         '${datadir}' '${libdir}' "${emacsprefix}"
 2258   do
 2259   expprefix="${currentprefix}"
 2260    __ac_tmp_oldprefix__="${prefix}"
 2261   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2262  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2263  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2264  while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2265 eval "expprefix=`sed ${__ac_tmp__} <<EOF
 2266 $expprefix
 2267 EOF
 2268 `";; *) break ;; esac; done
 2269   prefix="${__ac_tmp_oldprefix__}"
 2270   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2271 
 2272   elisp="(catch 22
 2273        (let (reldir (dirs load-path))
 2274       (dolist (name (list \"${EMACS_FLAVOR}/site-lisp\" \"${EMACS_FLAVOR}/site-packages\"
 2275           \"site-lisp\" \"site-packages\") \"NONE\")
 2276         (dolist (dir dirs)
 2277           (when (and dir
 2278                      (setq dir (directory-file-name dir))
 2279                          (file-name-absolute-p dir)
 2280                      (file-directory-p dir)
 2281                      (not (string-match \"\\\\\`\\\\.\\\\.\"
 2282                            (setq reldir (file-relative-name dir expanded))))
 2283              (not (file-name-absolute-p reldir))
 2284                          (let ((name name) (dir dir))
 2285                    (while (and dir name
 2286                                (string= (file-name-nondirectory dir)
 2287                                         (file-name-nondirectory name))
 2288                               (setq dir (file-name-directory dir)
 2289                    name (file-name-directory name))
 2290                   (if (and dir name)
 2291                      (setq dir (directory-file-name dir)
 2292                           name (directory-file-name name)))))
 2293                     (null name))
 2294            (throw 22
 2295                       (if (string= reldir \".\") (directory-file-name prefix)
 2296                         (concat (file-name-as-directory prefix)
 2297                                 reldir)))))))))"
 2298   OUTPUT=./conftest-$$
 2299   echo "${EMACS}" -batch  -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}"  >& 5 2>&1
 2300   "${EMACS}" -batch  -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}"  >& 5 2>&1
 2301   lispdir="`cat ${OUTPUT}`"
 2302   echo "=> ${lispdir}" >& 5 2>&1
 2303   rm -f ${OUTPUT}
 2304 
 2305   if test "$lispdir" != NONE; then break; fi; done
 2306     if test "${lispdir}" = "NONE"; then
 2307       # No? notify user.
 2308       as_fn_error $? "Cannot locate lisp directory,
 2309 use  --with-lispdir, --datadir, or possibly --prefix to rectify this" "$LINENO" 5
 2310     fi
 2311   fi
 2312   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lispdir}" >&5
 2313 $as_echo "${lispdir}" >&6; }
 2314 
 2315 
 2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what file to use for auctex startup" >&5
 2317 $as_echo_n "checking what file to use for auctex startup... " >&6; }
 2318 
 2319 # Check whether --with-auctexstartfile was given.
 2320 if test "${with_auctexstartfile+set}" = set; then :
 2321   withval=$with_auctexstartfile;  auctexstartfile="${withval}"
 2322 else
 2323    _tmpdir_="${lispdir}"
 2324  __ac_tmp_oldprefix__="${prefix}"
 2325   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2326  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2327  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2328  while :;do case "$_tmpdir_" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2329 eval "_tmpdir_=`sed ${__ac_tmp__} <<EOF
 2330 $_tmpdir_
 2331 EOF
 2332 `";; *) break ;; esac; done
 2333   prefix="${__ac_tmp_oldprefix__}"
 2334   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2335 if test -d "${_tmpdir_}/site-start.d"
 2336 then
 2337 auctexstartfile="${lispdir}/site-start.d/auctex.el"
 2338 else
 2339 auctexstartfile="${lispdir}/auctex.el"
 2340 fi
 2341 fi
 2342 
 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${auctexstartfile}" >&5
 2344 $as_echo "${auctexstartfile}" >&6; }
 2345 
 2346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what file to use for preview startup" >&5
 2347 $as_echo_n "checking what file to use for preview startup... " >&6; }
 2348 
 2349 # Check whether --with-previewstartfile was given.
 2350 if test "${with_previewstartfile+set}" = set; then :
 2351   withval=$with_previewstartfile;  previewstartfile="${withval}"
 2352 else
 2353    _tmpdir_="${lispdir}"
 2354  __ac_tmp_oldprefix__="${prefix}"
 2355   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2356  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2357  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2358  while :;do case "$_tmpdir_" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2359 eval "_tmpdir_=`sed ${__ac_tmp__} <<EOF
 2360 $_tmpdir_
 2361 EOF
 2362 `";; *) break ;; esac; done
 2363   prefix="${__ac_tmp_oldprefix__}"
 2364   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2365 if test -d "${_tmpdir_}/site-start.d"
 2366 then
 2367 previewstartfile="${lispdir}/site-start.d/preview-latex.el"
 2368 else
 2369 previewstartfile="${lispdir}/preview-latex.el"
 2370 fi
 2371 fi
 2372 
 2373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${previewstartfile}" >&5
 2374 $as_echo "${previewstartfile}" >&6; }
 2375 
 2376 packagelispdir="${lispdir}/auctex"
 2377 packagedatadir="${packagelispdir}"
 2378 texsitedir="${lispdir}"
 2379 
 2380 
 2381 
 2382 
 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the package lisp files go" >&5
 2384 $as_echo_n "checking where the package lisp files go... " >&6; }
 2385 
 2386 # Check whether --with-packagelispdir was given.
 2387 if test "${with_packagelispdir+set}" = set; then :
 2388   withval=$with_packagelispdir; packagelispdir="${withval}"
 2389 fi
 2390 
 2391 
 2392  tmpdir="${packagelispdir}"
 2393   __ac_tmp_oldprefix__="${prefix}"
 2394   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2395  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2396  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2397  while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2398 eval "tmpdir=`sed ${__ac_tmp__} <<EOF
 2399 $tmpdir
 2400 EOF
 2401 `";; *) break ;; esac; done
 2402   prefix="${__ac_tmp_oldprefix__}"
 2403   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2404  explispdir="${lispdir}"
 2405   __ac_tmp_oldprefix__="${prefix}"
 2406   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2407  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2408  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2409  while :;do case "$explispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2410 eval "explispdir=`sed ${__ac_tmp__} <<EOF
 2411 $explispdir
 2412 EOF
 2413 `";; *) break ;; esac; done
 2414   prefix="${__ac_tmp_oldprefix__}"
 2415   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2416  expstartup="${texsitedir}/tex-site.el"
 2417   __ac_tmp_oldprefix__="${prefix}"
 2418   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2419  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2420  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2421  while :;do case "$expstartup" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2422 eval "expstartup=`sed ${__ac_tmp__} <<EOF
 2423 $expstartup
 2424 EOF
 2425 `";; *) break ;; esac; done
 2426   prefix="${__ac_tmp_oldprefix__}"
 2427   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2428 
 2429   elisp="(progn (setq path (directory-file-name path))
 2430   (if (or target
 2431           (not (string= (car load-path) (directory-file-name (car load-path)))))
 2432     (setq path (file-name-as-directory path)))
 2433   (setq path (expand-file-name path lispdir))
 2434   (setq startupdir (file-name-directory (expand-file-name startup lispdir)))
 2435   (prin1-to-string
 2436     (if (or (string-match \"\\\\\`\\\\.\\\\.\"
 2437               (setq relname (file-relative-name startupdir lispdir)))
 2438             (file-name-absolute-p relname)
 2439         (string-match \"\\\\\`\\\\.\\\\.\"
 2440               (setq relname (file-relative-name path lispdir)))
 2441         (file-name-absolute-p relname))
 2442       (concat path target)
 2443     (cond (target
 2444            \`(expand-file-name
 2445                    ,(file-relative-name (concat path target) startupdir)
 2446                (file-name-directory load-file-name)))
 2447               ((string= path startupdir)
 2448              '(file-name-directory load-file-name))
 2449           ((string= path (directory-file-name startupdir))
 2450                  '(directory-file-name (file-name-directory load-file-name)))
 2451               (t
 2452            \`(expand-file-name
 2453                    ,(file-relative-name path startupdir)
 2454                (file-name-directory load-file-name)))))))"
 2455   OUTPUT=./conftest-$$
 2456   echo "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}"  >& 5 2>&1
 2457   "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}"  >& 5 2>&1
 2458   lisppackagelispdir="`cat ${OUTPUT}`"
 2459   echo "=> ${lisppackagelispdir}" >& 5 2>&1
 2460   rm -f ${OUTPUT}
 2461 
 2462 
 2463 
 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${packagelispdir}" >&5
 2465 $as_echo "${packagelispdir}" >&6; }
 2466 
 2467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the data files go" >&5
 2468 $as_echo_n "checking where the data files go... " >&6; }
 2469 
 2470 # Check whether --with-packagedatadir was given.
 2471 if test "${with_packagedatadir+set}" = set; then :
 2472   withval=$with_packagedatadir; packagedatadir="${withval}"
 2473 fi
 2474 
 2475 
 2476  tmpdir="${packagedatadir}"
 2477   __ac_tmp_oldprefix__="${prefix}"
 2478   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2479  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2480  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2481  while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2482 eval "tmpdir=`sed ${__ac_tmp__} <<EOF
 2483 $tmpdir
 2484 EOF
 2485 `";; *) break ;; esac; done
 2486   prefix="${__ac_tmp_oldprefix__}"
 2487   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2488  explispdir="${lispdir}"
 2489   __ac_tmp_oldprefix__="${prefix}"
 2490   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2491  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2492  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2493  while :;do case "$explispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2494 eval "explispdir=`sed ${__ac_tmp__} <<EOF
 2495 $explispdir
 2496 EOF
 2497 `";; *) break ;; esac; done
 2498   prefix="${__ac_tmp_oldprefix__}"
 2499   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2500  expstartup="${texsitedir}/tex-site.el"
 2501   __ac_tmp_oldprefix__="${prefix}"
 2502   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2503  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2504  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2505  while :;do case "$expstartup" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2506 eval "expstartup=`sed ${__ac_tmp__} <<EOF
 2507 $expstartup
 2508 EOF
 2509 `";; *) break ;; esac; done
 2510   prefix="${__ac_tmp_oldprefix__}"
 2511   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2512 
 2513   elisp="(progn (setq path (directory-file-name path))
 2514   (if (or target
 2515           (not (string= (car load-path) (directory-file-name (car load-path)))))
 2516     (setq path (file-name-as-directory path)))
 2517   (setq path (expand-file-name path lispdir))
 2518   (setq startupdir (file-name-directory (expand-file-name startup lispdir)))
 2519   (prin1-to-string
 2520     (if (or (string-match \"\\\\\`\\\\.\\\\.\"
 2521               (setq relname (file-relative-name startupdir lispdir)))
 2522             (file-name-absolute-p relname)
 2523         (string-match \"\\\\\`\\\\.\\\\.\"
 2524               (setq relname (file-relative-name path lispdir)))
 2525         (file-name-absolute-p relname))
 2526       (concat path target)
 2527     (cond (target
 2528            \`(expand-file-name
 2529                    ,(file-relative-name (concat path target) startupdir)
 2530                (file-name-directory load-file-name)))
 2531               ((string= path startupdir)
 2532              '(file-name-directory load-file-name))
 2533           ((string= path (directory-file-name startupdir))
 2534                  '(directory-file-name (file-name-directory load-file-name)))
 2535               (t
 2536            \`(expand-file-name
 2537                    ,(file-relative-name path startupdir)
 2538                (file-name-directory load-file-name)))))))"
 2539   OUTPUT=./conftest-$$
 2540   echo "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}"  >& 5 2>&1
 2541   "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}"  >& 5 2>&1
 2542   lisppackagedatadir="`cat ${OUTPUT}`"
 2543   echo "=> ${lisppackagedatadir}" >& 5 2>&1
 2544   rm -f ${OUTPUT}
 2545 
 2546 
 2547 
 2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${packagedatadir}" >&5
 2549 $as_echo "${packagedatadir}" >&6; }
 2550 
 2551 
 2552  tmpdir="${texsite}"
 2553   __ac_tmp_oldprefix__="${prefix}"
 2554   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2555  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2556  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2557  while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2558 eval "tmpdir=`sed ${__ac_tmp__} <<EOF
 2559 $tmpdir
 2560 EOF
 2561 `";; *) break ;; esac; done
 2562   prefix="${__ac_tmp_oldprefix__}"
 2563   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2564  explispdir="${lispdir}"
 2565   __ac_tmp_oldprefix__="${prefix}"
 2566   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2567  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2568  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2569  while :;do case "$explispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2570 eval "explispdir=`sed ${__ac_tmp__} <<EOF
 2571 $explispdir
 2572 EOF
 2573 `";; *) break ;; esac; done
 2574   prefix="${__ac_tmp_oldprefix__}"
 2575   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2576  expstartup="${auctexstartfile}"
 2577   __ac_tmp_oldprefix__="${prefix}"
 2578   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2579  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2580  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2581  while :;do case "$expstartup" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2582 eval "expstartup=`sed ${__ac_tmp__} <<EOF
 2583 $expstartup
 2584 EOF
 2585 `";; *) break ;; esac; done
 2586   prefix="${__ac_tmp_oldprefix__}"
 2587   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2588 
 2589   elisp="(progn (setq path (directory-file-name path))
 2590   (if (or target
 2591           (not (string= (car load-path) (directory-file-name (car load-path)))))
 2592     (setq path (file-name-as-directory path)))
 2593   (setq path (expand-file-name path lispdir))
 2594   (setq startupdir (file-name-directory (expand-file-name startup lispdir)))
 2595   (prin1-to-string
 2596     (if (or (string-match \"\\\\\`\\\\.\\\\.\"
 2597               (setq relname (file-relative-name startupdir lispdir)))
 2598             (file-name-absolute-p relname)
 2599         (string-match \"\\\\\`\\\\.\\\\.\"
 2600               (setq relname (file-relative-name path lispdir)))
 2601         (file-name-absolute-p relname))
 2602       (concat path target)
 2603     (cond (target
 2604            \`(expand-file-name
 2605                    ,(file-relative-name (concat path target) startupdir)
 2606                (file-name-directory load-file-name)))
 2607               ((string= path startupdir)
 2608              '(file-name-directory load-file-name))
 2609           ((string= path (directory-file-name startupdir))
 2610                  '(directory-file-name (file-name-directory load-file-name)))
 2611               (t
 2612            \`(expand-file-name
 2613                    ,(file-relative-name path startupdir)
 2614                (file-name-directory load-file-name)))))))"
 2615   OUTPUT=./conftest-$$
 2616   echo "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" tex-site.el >& 5 2>&1
 2617   "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}" tex-site.el >& 5 2>&1
 2618   lisptexsite="`cat ${OUTPUT}`"
 2619   echo "=> ${lisptexsite}" >& 5 2>&1
 2620   rm -f ${OUTPUT}
 2621 
 2622 
 2623 
 2624 
 2625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the info files go" >&5
 2626 $as_echo_n "checking where the info files go... " >&6; }
 2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${infodir}" >&5
 2628 $as_echo "${infodir}" >&6; }
 2629 
 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where automatically generated global style hooks go" >&5
 2631 $as_echo_n "checking where automatically generated global style hooks go... " >&6; }
 2632 
 2633 # Check whether --with-auto-dir was given.
 2634 if test "${with_auto_dir+set}" = set; then :
 2635   withval=$with_auto_dir; autodir="${withval}"
 2636 else
 2637   autodir='${localstatedir}/auctex'
 2638 fi
 2639 
 2640  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${autodir}" >&5
 2641 $as_echo "${autodir}" >&6; }
 2642 
 2643 
 2644 
 2645  tmpdir="${autodir}"
 2646   __ac_tmp_oldprefix__="${prefix}"
 2647   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2648  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2649  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2650  while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2651 eval "tmpdir=`sed ${__ac_tmp__} <<EOF
 2652 $tmpdir
 2653 EOF
 2654 `";; *) break ;; esac; done
 2655   prefix="${__ac_tmp_oldprefix__}"
 2656   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2657  explispdir="${lispdir}"
 2658   __ac_tmp_oldprefix__="${prefix}"
 2659   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2660  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2661  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2662  while :;do case "$explispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2663 eval "explispdir=`sed ${__ac_tmp__} <<EOF
 2664 $explispdir
 2665 EOF
 2666 `";; *) break ;; esac; done
 2667   prefix="${__ac_tmp_oldprefix__}"
 2668   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2669  expstartup="${texsitedir}/tex-site.el"
 2670   __ac_tmp_oldprefix__="${prefix}"
 2671   __ac_tmp_oldexec_prefix__="$exec_prefix"
 2672  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 2673  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 2674  while :;do case "$expstartup" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 2675 eval "expstartup=`sed ${__ac_tmp__} <<EOF
 2676 $expstartup
 2677 EOF
 2678 `";; *) break ;; esac; done
 2679   prefix="${__ac_tmp_oldprefix__}"
 2680   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 2681 
 2682   elisp="(progn (setq path (directory-file-name path))
 2683   (if (or target
 2684           (not (string= (car load-path) (directory-file-name (car load-path)))))
 2685     (setq path (file-name-as-directory path)))
 2686   (setq path (expand-file-name path lispdir))
 2687   (setq startupdir (file-name-directory (expand-file-name startup lispdir)))
 2688   (prin1-to-string
 2689     (if (or (string-match \"\\\\\`\\\\.\\\\.\"
 2690               (setq relname (file-relative-name startupdir lispdir)))
 2691             (file-name-absolute-p relname)
 2692         (string-match \"\\\\\`\\\\.\\\\.\"
 2693               (setq relname (file-relative-name path lispdir)))
 2694         (file-name-absolute-p relname))
 2695       (concat path target)
 2696     (cond (target
 2697            \`(expand-file-name
 2698                    ,(file-relative-name (concat path target) startupdir)
 2699                (file-name-directory load-file-name)))
 2700               ((string= path startupdir)
 2701              '(file-name-directory load-file-name))
 2702           ((string= path (directory-file-name startupdir))
 2703                  '(directory-file-name (file-name-directory load-file-name)))
 2704               (t
 2705            \`(expand-file-name
 2706                    ,(file-relative-name path startupdir)
 2707                (file-name-directory load-file-name)))))))"
 2708   OUTPUT=./conftest-$$
 2709   echo "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}"  >& 5 2>&1
 2710   "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}"  >& 5 2>&1
 2711   lispautodir="`cat ${OUTPUT}`"
 2712   echo "=> ${lispautodir}" >& 5 2>&1
 2713   rm -f ${OUTPUT}
 2714 
 2715 
 2716 
 2717 
 2718 # Extract the first word of "tex", so it can be a program name with args.
 2719 set dummy tex; ac_word=$2
 2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2721 $as_echo_n "checking for $ac_word... " >&6; }
 2722 if ${ac_cv_path_TEX+:} false; then :
 2723   $as_echo_n "(cached) " >&6
 2724 else
 2725   case $TEX in
 2726   [\\/]* | ?:[\\/]*)
 2727   ac_cv_path_TEX="$TEX" # Let the user override the test with a path.
 2728   ;;
 2729   *)
 2730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2731 for as_dir in $PATH
 2732 do
 2733   IFS=$as_save_IFS
 2734   test -z "$as_dir" && as_dir=.
 2735     for ac_exec_ext in '' $ac_executable_extensions; do
 2736   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2737     ac_cv_path_TEX="$as_dir/$ac_word$ac_exec_ext"
 2738     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2739     break 2
 2740   fi
 2741 done
 2742   done
 2743 IFS=$as_save_IFS
 2744 
 2745   test -z "$ac_cv_path_TEX" && ac_cv_path_TEX=":"
 2746   ;;
 2747 esac
 2748 fi
 2749 TEX=$ac_cv_path_TEX
 2750 if test -n "$TEX"; then
 2751   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
 2752 $as_echo "$TEX" >&6; }
 2753 else
 2754   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2755 $as_echo "no" >&6; }
 2756 fi
 2757 
 2758 
 2759 # Extract the first word of "pdftex", so it can be a program name with args.
 2760 set dummy pdftex; ac_word=$2
 2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2762 $as_echo_n "checking for $ac_word... " >&6; }
 2763 if ${ac_cv_path_PDFTEX+:} false; then :
 2764   $as_echo_n "(cached) " >&6
 2765 else
 2766   case $PDFTEX in
 2767   [\\/]* | ?:[\\/]*)
 2768   ac_cv_path_PDFTEX="$PDFTEX" # Let the user override the test with a path.
 2769   ;;
 2770   *)
 2771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2772 for as_dir in $PATH
 2773 do
 2774   IFS=$as_save_IFS
 2775   test -z "$as_dir" && as_dir=.
 2776     for ac_exec_ext in '' $ac_executable_extensions; do
 2777   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2778     ac_cv_path_PDFTEX="$as_dir/$ac_word$ac_exec_ext"
 2779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2780     break 2
 2781   fi
 2782 done
 2783   done
 2784 IFS=$as_save_IFS
 2785 
 2786   test -z "$ac_cv_path_PDFTEX" && ac_cv_path_PDFTEX=":"
 2787   ;;
 2788 esac
 2789 fi
 2790 PDFTEX=$ac_cv_path_PDFTEX
 2791 if test -n "$PDFTEX"; then
 2792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFTEX" >&5
 2793 $as_echo "$PDFTEX" >&6; }
 2794 else
 2795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2796 $as_echo "no" >&6; }
 2797 fi
 2798 
 2799 
 2800 # Extract the first word of "dvips", so it can be a program name with args.
 2801 set dummy dvips; ac_word=$2
 2802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2803 $as_echo_n "checking for $ac_word... " >&6; }
 2804 if ${ac_cv_path_DVIPS+:} false; then :
 2805   $as_echo_n "(cached) " >&6
 2806 else
 2807   case $DVIPS in
 2808   [\\/]* | ?:[\\/]*)
 2809   ac_cv_path_DVIPS="$DVIPS" # Let the user override the test with a path.
 2810   ;;
 2811   *)
 2812   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2813 for as_dir in $PATH
 2814 do
 2815   IFS=$as_save_IFS
 2816   test -z "$as_dir" && as_dir=.
 2817     for ac_exec_ext in '' $ac_executable_extensions; do
 2818   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2819     ac_cv_path_DVIPS="$as_dir/$ac_word$ac_exec_ext"
 2820     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2821     break 2
 2822   fi
 2823 done
 2824   done
 2825 IFS=$as_save_IFS
 2826 
 2827   test -z "$ac_cv_path_DVIPS" && ac_cv_path_DVIPS=":"
 2828   ;;
 2829 esac
 2830 fi
 2831 DVIPS=$ac_cv_path_DVIPS
 2832 if test -n "$DVIPS"; then
 2833   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
 2834 $as_echo "$DVIPS" >&6; }
 2835 else
 2836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2837 $as_echo "no" >&6; }
 2838 fi
 2839 
 2840 
 2841 
 2842 
 2843 if test "X${preview_enabled}" = Xyes
 2844 then
 2845 
 2846    for ac_prog in gs GSWIN32C.EXE
 2847 do
 2848   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2849 set dummy $ac_prog; ac_word=$2
 2850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2851 $as_echo_n "checking for $ac_word... " >&6; }
 2852 if ${ac_cv_prog_GS+:} false; then :
 2853   $as_echo_n "(cached) " >&6
 2854 else
 2855   if test -n "$GS"; then
 2856   ac_cv_prog_GS="$GS" # Let the user override the test.
 2857 else
 2858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2859 for as_dir in $PATH
 2860 do
 2861   IFS=$as_save_IFS
 2862   test -z "$as_dir" && as_dir=.
 2863     for ac_exec_ext in '' $ac_executable_extensions; do
 2864   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2865     ac_cv_prog_GS="$ac_prog"
 2866     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2867     break 2
 2868   fi
 2869 done
 2870   done
 2871 IFS=$as_save_IFS
 2872 
 2873 fi
 2874 fi
 2875 GS=$ac_cv_prog_GS
 2876 if test -n "$GS"; then
 2877   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GS" >&5
 2878 $as_echo "$GS" >&6; }
 2879 else
 2880   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2881 $as_echo "no" >&6; }
 2882 fi
 2883 
 2884 
 2885   test -n "$GS" && break
 2886 done
 2887 test -n "$GS" || GS="NONE"
 2888 
 2889 
 2890 
 2891   elisp="(if (member dir (list \"NONE\" (if (eq system-type 'windows-nt) \"GSWIN32C.EXE\" \"gs\"))) \"\" \`(defvar preview-gs-command ,dir))"
 2892   OUTPUT=./conftest-$$
 2893   echo "${EMACS}" -batch -no-site-file -eval "(let* ((dir(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${GS}" >& 5 2>&1
 2894   "${EMACS}" -batch -no-site-file -eval "(let* ((dir(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${GS}" >& 5 2>&1
 2895   lispGS="`cat ${OUTPUT}`"
 2896   echo "=> ${lispGS}" >& 5 2>&1
 2897   rm -f ${OUTPUT}
 2898 
 2899 
 2900 
 2901 
 2902 
 2903 # Extract the first word of "latex", so it can be a program name with args.
 2904 set dummy latex; ac_word=$2
 2905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2906 $as_echo_n "checking for $ac_word... " >&6; }
 2907 if ${ac_cv_path_LATEX+:} false; then :
 2908   $as_echo_n "(cached) " >&6
 2909 else
 2910   case $LATEX in
 2911   [\\/]* | ?:[\\/]*)
 2912   ac_cv_path_LATEX="$LATEX" # Let the user override the test with a path.
 2913   ;;
 2914   *)
 2915   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2916 for as_dir in $PATH
 2917 do
 2918   IFS=$as_save_IFS
 2919   test -z "$as_dir" && as_dir=.
 2920     for ac_exec_ext in '' $ac_executable_extensions; do
 2921   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2922     ac_cv_path_LATEX="$as_dir/$ac_word$ac_exec_ext"
 2923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2924     break 2
 2925   fi
 2926 done
 2927   done
 2928 IFS=$as_save_IFS
 2929 
 2930   test -z "$ac_cv_path_LATEX" && ac_cv_path_LATEX="NONE"
 2931   ;;
 2932 esac
 2933 fi
 2934 LATEX=$ac_cv_path_LATEX
 2935 if test -n "$LATEX"; then
 2936   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LATEX" >&5
 2937 $as_echo "$LATEX" >&6; }
 2938 else
 2939   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2940 $as_echo "no" >&6; }
 2941 fi
 2942 
 2943 
 2944 if test "${LATEX}"x = NONEx ; then
 2945    as_fn_error $? "LaTeX not found, aborting!
 2946    You must install LaTeX for preview to work." "$LINENO" 5
 2947 fi
 2948 
 2949 
 2950    # Extract the first word of "pdflatex", so it can be a program name with args.
 2951 set dummy pdflatex; ac_word=$2
 2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 2953 $as_echo_n "checking for $ac_word... " >&6; }
 2954 if ${ac_cv_path_PDFLATEX+:} false; then :
 2955   $as_echo_n "(cached) " >&6
 2956 else
 2957   case $PDFLATEX in
 2958   [\\/]* | ?:[\\/]*)
 2959   ac_cv_path_PDFLATEX="$PDFLATEX" # Let the user override the test with a path.
 2960   ;;
 2961   *)
 2962   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2963 for as_dir in $PATH
 2964 do
 2965   IFS=$as_save_IFS
 2966   test -z "$as_dir" && as_dir=.
 2967     for ac_exec_ext in '' $ac_executable_extensions; do
 2968   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2969     ac_cv_path_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
 2970     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 2971     break 2
 2972   fi
 2973 done
 2974   done
 2975 IFS=$as_save_IFS
 2976 
 2977   ;;
 2978 esac
 2979 fi
 2980 PDFLATEX=$ac_cv_path_PDFLATEX
 2981 if test -n "$PDFLATEX"; then
 2982   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFLATEX" >&5
 2983 $as_echo "$PDFLATEX" >&6; }
 2984 else
 2985   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 2986 $as_echo "no" >&6; }
 2987 fi
 2988 
 2989 
 2990 
 2991    # Determine which latex-style components to install
 2992    # To match .sty, .def, .cfg, but _not_ .drv
 2993    TEXMFGEN=`sed -n 's/^%<installer>.*file[{]\\([^}.]*\\.[sdc][tef][yfg]\\)[}].*/\\1/p' latex/preview.dtx`
 2994    # Replace newlines with spaces.
 2995    TEXMFGEN="`echo ${TEXMFGEN}`"
 2996 
 2997 
 2998 
 2999 # Extract the first word of "tex", so it can be a program name with args.
 3000 set dummy tex; ac_word=$2
 3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3002 $as_echo_n "checking for $ac_word... " >&6; }
 3003 if ${ac_cv_path_TEX+:} false; then :
 3004   $as_echo_n "(cached) " >&6
 3005 else
 3006   case $TEX in
 3007   [\\/]* | ?:[\\/]*)
 3008   ac_cv_path_TEX="$TEX" # Let the user override the test with a path.
 3009   ;;
 3010   *)
 3011   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3012 for as_dir in $PATH
 3013 do
 3014   IFS=$as_save_IFS
 3015   test -z "$as_dir" && as_dir=.
 3016     for ac_exec_ext in '' $ac_executable_extensions; do
 3017   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3018     ac_cv_path_TEX="$as_dir/$ac_word$ac_exec_ext"
 3019     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3020     break 2
 3021   fi
 3022 done
 3023   done
 3024 IFS=$as_save_IFS
 3025 
 3026   test -z "$ac_cv_path_TEX" && ac_cv_path_TEX="NONE"
 3027   ;;
 3028 esac
 3029 fi
 3030 TEX=$ac_cv_path_TEX
 3031 if test -n "$TEX"; then
 3032   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEX" >&5
 3033 $as_echo "$TEX" >&6; }
 3034 else
 3035   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3036 $as_echo "no" >&6; }
 3037 fi
 3038 
 3039 
 3040 if test "${TEX}"x = NONEx ; then
 3041    as_fn_error $? "NONE" "$LINENO" 5
 3042 fi
 3043 
 3044 
 3045 
 3046 
 3047 # Check whether --with-texmf-dir was given.
 3048 if test "${with_texmf_dir+set}" = set; then :
 3049   withval=$with_texmf_dir;  texmfdir="${withval}" ;
 3050    if test "x${texmfdir}" = xno
 3051    then
 3052      previewtexmfdir="${packagedatadir}/latex"
 3053      previewdocdir="${packagedatadir}/doc"
 3054    else
 3055       __ac_tmp_oldprefix__="${prefix}"
 3056   __ac_tmp_oldexec_prefix__="$exec_prefix"
 3057  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 3058  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 3059  while :;do case "$withval" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 3060 eval "withval=`sed ${__ac_tmp__} <<EOF
 3061 $withval
 3062 EOF
 3063 `";; *) break ;; esac; done
 3064   prefix="${__ac_tmp_oldprefix__}"
 3065   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 3066      if test ! -d "${withval}"  ; then
 3067         as_fn_error $? "--with-texmf-dir=\"${texmfdir}\": Directory does not exist" "$LINENO" 5
 3068      fi
 3069      previewtexmfdir="${texmfdir}/tex/latex/preview"
 3070      previewdocdir="${texmfdir}/doc/latex/styles"
 3071    fi
 3072 
 3073 fi
 3074 
 3075 
 3076 
 3077 # Check whether --with-tex-dir was given.
 3078 if test "${with_tex_dir+set}" = set; then :
 3079   withval=$with_tex_dir;  previewtexmfdir="${withval}" ;
 3080     __ac_tmp_oldprefix__="${prefix}"
 3081   __ac_tmp_oldexec_prefix__="$exec_prefix"
 3082  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 3083  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 3084  while :;do case "$withval" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 3085 eval "withval=`sed ${__ac_tmp__} <<EOF
 3086 $withval
 3087 EOF
 3088 `";; *) break ;; esac; done
 3089   prefix="${__ac_tmp_oldprefix__}"
 3090   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 3091    if test ! -d "${withval}"  ; then
 3092       as_fn_error $? "--with-tex-dir=\"${previewtexmfdir}\": Directory does not exist" "$LINENO" 5
 3093    fi
 3094 
 3095 fi
 3096 
 3097 
 3098 
 3099 # Check whether --with-doc-dir was given.
 3100 if test "${with_doc_dir+set}" = set; then :
 3101   withval=$with_doc_dir;  previewdocdir="${withval}" ;
 3102     __ac_tmp_oldprefix__="${prefix}"
 3103   __ac_tmp_oldexec_prefix__="$exec_prefix"
 3104  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 3105  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 3106  while :;do case "$withval" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 3107 eval "withval=`sed ${__ac_tmp__} <<EOF
 3108 $withval
 3109 EOF
 3110 `";; *) break ;; esac; done
 3111   prefix="${__ac_tmp_oldprefix__}"
 3112   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 3113    if test ! -d "${withval}"  ; then
 3114       as_fn_error $? "--with-doc-dir=\"${previewdocdir}\": Directory does not exist" "$LINENO" 5
 3115    fi
 3116 
 3117 fi
 3118 
 3119 
 3120 # First check for docstrip.cfg information -- removed.  Too high
 3121 # likelihood to pick up a user preference instead of a system setting.
 3122 
 3123 # Next
 3124 # kpsepath -n latex tex
 3125 # and then go for the following in its output:
 3126 # a) first path component in datadir/prefix ending in tex/latex// (strip trailing
 3127 # // and leading !!):  "Searching for TDS-compliant directory."  Install
 3128 # in preview subdirectory.
 3129 # b) first absolute path component ending in // "Searching for directory
 3130 # hierarchy"  Install in preview subdirectory.
 3131 # c) anything absolute.  Install both files directly there.
 3132 
 3133 if test "x${texmfdir}" != xno ; then
 3134 if test "x${previewtexmfdir}" = x ; then
 3135 
 3136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prefix from kpsepath" >&5
 3137 $as_echo_n "checking for prefix from kpsepath... " >&6; }
 3138 
 3139 
 3140 
 3141   elisp="(condition-case nil (let*
 3142     ((prefix (directory-file-name (file-name-directory (executable-find cmd))))
 3143      (parent (directory-file-name (file-name-directory prefix))))
 3144     (if (string= (file-name-nondirectory prefix) \"bin\")
 3145         (setq prefix parent)
 3146       (if (string= (file-name-nondirectory parent) \"bin\")
 3147          (setq prefix (directory-file-name (file-name-directory parent)))))
 3148     prefix) (error "NONE"))"
 3149   OUTPUT=./conftest-$$
 3150   echo "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" kpsepath >& 5 2>&1
 3151   "${EMACS}" -batch -no-site-file -eval "(let* ((cmd(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" kpsepath >& 5 2>&1
 3152   texprefix="`cat ${OUTPUT}`"
 3153   echo "=> ${texprefix}" >& 5 2>&1
 3154   rm -f ${OUTPUT}
 3155 
 3156 
 3157 if test "x${texprefix}" != "xNONE"
 3158 then
 3159 
 3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"${texprefix}\"" >&5
 3161 $as_echo "\"${texprefix}\"" >&6; }
 3162 
 3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TDS-compliant directory" >&5
 3164 $as_echo_n "checking for TDS-compliant directory... " >&6; }
 3165 
 3166 pathoutput="`kpsepath -n latex tex`"
 3167 
 3168   for currentprefix in '${datadir}/texmf' "${texprefix}/share/texmf-local" "${texprefix}/share/texmf" "${texprefix}/texmf-local" "${texprefix}/texmf"
 3169   do
 3170   expprefix="${currentprefix}"
 3171    __ac_tmp_oldprefix__="${prefix}"
 3172   __ac_tmp_oldexec_prefix__="$exec_prefix"
 3173  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 3174  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 3175  while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 3176 eval "expprefix=`sed ${__ac_tmp__} <<EOF
 3177 $expprefix
 3178 EOF
 3179 `";; *) break ;; esac; done
 3180   prefix="${__ac_tmp_oldprefix__}"
 3181   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 3182 
 3183   elisp="(catch 22
 3184        (let (reldir (dirs (mapcar (lambda(x)
 3185               (and (string-match \"\\\\\`!*\\\\(.*\\\\)/tex/latex//+\\\\'\" x)
 3186                (match-string 1 x)))
 3187       (append (split-string pathoutput \";\")
 3188              (split-string pathoutput \":\")))))
 3189       (dolist (name (list nil) \"NONE\")
 3190         (dolist (dir dirs)
 3191           (when (and dir
 3192                      (setq dir (directory-file-name dir))
 3193                          (file-name-absolute-p dir)
 3194                      (file-directory-p dir)
 3195                      (not (string-match \"\\\\\`\\\\.\\\\.\"
 3196                            (setq reldir (file-relative-name dir expanded))))
 3197              (not (file-name-absolute-p reldir))
 3198                          (let ((name name) (dir dir))
 3199                    (while (and dir name
 3200                                (string= (file-name-nondirectory dir)
 3201                                         (file-name-nondirectory name))
 3202                               (setq dir (file-name-directory dir)
 3203                    name (file-name-directory name))
 3204                   (if (and dir name)
 3205                      (setq dir (directory-file-name dir)
 3206                           name (directory-file-name name)))))
 3207                     (null name))
 3208            (throw 22
 3209                       (if (string= reldir \".\") (directory-file-name prefix)
 3210                         (concat (file-name-as-directory prefix)
 3211                                 reldir)))))))))"
 3212   OUTPUT=./conftest-$$
 3213   echo "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
 3214   "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
 3215   texmfdir="`cat ${OUTPUT}`"
 3216   echo "=> ${texmfdir}" >& 5 2>&1
 3217   rm -f ${OUTPUT}
 3218 
 3219   if test "$texmfdir" != NONE; then break; fi; done
 3220 
 3221 if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then
 3222    previewdocdir="${texmfdir}/doc/latex/styles"
 3223    previewtexmfdir="${texmfdir}/tex/latex/preview"
 3224 fi
 3225 
 3226 if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no  ; then
 3227 
 3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3229 $as_echo "no" >&6; }
 3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TeX directory hierarchy" >&5
 3231 $as_echo_n "checking for TeX directory hierarchy... " >&6; }
 3232 
 3233   for currentprefix in '${datadir}/texmf' "${texprefix}/share/texmf-local" "${texprefix}/share/texmf" "${texprefix}/texmf-local" "${texprefix}/texmf" '${datadir}' "${texprefix}/share" "${texprefix}"
 3234   do
 3235   expprefix="${currentprefix}"
 3236    __ac_tmp_oldprefix__="${prefix}"
 3237   __ac_tmp_oldexec_prefix__="$exec_prefix"
 3238  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 3239  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 3240  while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 3241 eval "expprefix=`sed ${__ac_tmp__} <<EOF
 3242 $expprefix
 3243 EOF
 3244 `";; *) break ;; esac; done
 3245   prefix="${__ac_tmp_oldprefix__}"
 3246   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 3247 
 3248   elisp="(catch 22
 3249        (let (reldir (dirs (mapcar (lambda(x)
 3250               (and (string-match \"\\\\\`!*\\\\(.*[^/]\\\\)//+\\\\'\" x)
 3251                (match-string 1 x)))
 3252       (append (split-string pathoutput \";\")
 3253              (split-string pathoutput \":\")))))
 3254       (dolist (name (list nil) \"NONE\")
 3255         (dolist (dir dirs)
 3256           (when (and dir
 3257                      (setq dir (directory-file-name dir))
 3258                          (file-name-absolute-p dir)
 3259                      (file-directory-p dir)
 3260                      (not (string-match \"\\\\\`\\\\.\\\\.\"
 3261                            (setq reldir (file-relative-name dir expanded))))
 3262              (not (file-name-absolute-p reldir))
 3263                          (let ((name name) (dir dir))
 3264                    (while (and dir name
 3265                                (string= (file-name-nondirectory dir)
 3266                                         (file-name-nondirectory name))
 3267                               (setq dir (file-name-directory dir)
 3268                    name (file-name-directory name))
 3269                   (if (and dir name)
 3270                      (setq dir (directory-file-name dir)
 3271                           name (directory-file-name name)))))
 3272                     (null name))
 3273            (throw 22
 3274                       (if (string= reldir \".\") (directory-file-name prefix)
 3275                         (concat (file-name-as-directory prefix)
 3276                                 reldir)))))))))"
 3277   OUTPUT=./conftest-$$
 3278   echo "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
 3279   "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
 3280   texmfdir="`cat ${OUTPUT}`"
 3281   echo "=> ${texmfdir}" >& 5 2>&1
 3282   rm -f ${OUTPUT}
 3283 
 3284   if test "$texmfdir" != NONE; then break; fi; done
 3285 
 3286 if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then
 3287    previewtexmfdir="${texmfdir}/preview"
 3288    previewdocdir="${texmfdir}/preview"
 3289 fi
 3290 fi
 3291 
 3292 if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no  ; then
 3293 
 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3295 $as_echo "no" >&6; }
 3296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TeX input directory" >&5
 3297 $as_echo_n "checking for TeX input directory... " >&6; }
 3298 
 3299   for currentprefix in '${datadir}' "${texprefix}/share" "${texprefix}"
 3300   do
 3301   expprefix="${currentprefix}"
 3302    __ac_tmp_oldprefix__="${prefix}"
 3303   __ac_tmp_oldexec_prefix__="$exec_prefix"
 3304  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 3305  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 3306  while :;do case "$expprefix" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 3307 eval "expprefix=`sed ${__ac_tmp__} <<EOF
 3308 $expprefix
 3309 EOF
 3310 `";; *) break ;; esac; done
 3311   prefix="${__ac_tmp_oldprefix__}"
 3312   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 3313 
 3314   elisp="(catch 22
 3315        (let (reldir (dirs (mapcar (lambda(x)
 3316               (and (string-match \"\\\\\`!*\\\\(.*[^/]\\\\)/?\\\\'\" x)
 3317                (match-string 1 x)))
 3318       (append (split-string pathoutput \";\")
 3319              (split-string pathoutput \":\")))))
 3320       (dolist (name (list nil) \"NONE\")
 3321         (dolist (dir dirs)
 3322           (when (and dir
 3323                      (setq dir (directory-file-name dir))
 3324                          (file-name-absolute-p dir)
 3325                      (file-directory-p dir)
 3326                      (not (string-match \"\\\\\`\\\\.\\\\.\"
 3327                            (setq reldir (file-relative-name dir expanded))))
 3328              (not (file-name-absolute-p reldir))
 3329                          (let ((name name) (dir dir))
 3330                    (while (and dir name
 3331                                (string= (file-name-nondirectory dir)
 3332                                         (file-name-nondirectory name))
 3333                               (setq dir (file-name-directory dir)
 3334                    name (file-name-directory name))
 3335                   (if (and dir name)
 3336                      (setq dir (directory-file-name dir)
 3337                           name (directory-file-name name)))))
 3338                     (null name))
 3339            (throw 22
 3340                       (if (string= reldir \".\") (directory-file-name prefix)
 3341                         (concat (file-name-as-directory prefix)
 3342                                 reldir)))))))))"
 3343   OUTPUT=./conftest-$$
 3344   echo "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
 3345   "${EMACS}" -batch -no-site-file -eval "(let* ((prefix(pop command-line-args-left)) (expanded(pop command-line-args-left)) (pathoutput(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${currentprefix}" "${expprefix}" "${pathoutput}" >& 5 2>&1
 3346   texmfdir="`cat ${OUTPUT}`"
 3347   echo "=> ${texmfdir}" >& 5 2>&1
 3348   rm -f ${OUTPUT}
 3349 
 3350   if test "$texmfdir" != NONE; then break; fi; done
 3351 
 3352 if test -n "${texmfdir}" -a "${texmfdir}" != "NONE" ; then
 3353    previewtexmfdir="${texmfdir}"
 3354    previewdocdir="${texmfdir}"
 3355 fi
 3356 fi
 3357 fi
 3358 
 3359 if test -z "${previewtexmfdir}" -o "${previewtexmfdir}" = no  ; then
 3360 
 3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3362 $as_echo "no" >&6; }
 3363     as_fn_error $? "Cannot find the texmf directory!
 3364 Please use --with-texmf-dir=dir to specify where the preview tex files go" "$LINENO" 5
 3365 fi
 3366 
 3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${texmfdir}" >&5
 3368 $as_echo "${texmfdir}" >&6; }
 3369 fi
 3370 fi
 3371 
 3372 echo Preview will be placed in ${previewtexmfdir}
 3373 echo Preview docs will be placed in ${previewdocdir}
 3374 
 3375 
 3376 
 3377 
 3378    if test "x${texmfdir}" = "xno"
 3379    then
 3380      packagetexstyles="${packagedatadir}/latex"
 3381 
 3382  tmpdir="${packagetexstyles}"
 3383   __ac_tmp_oldprefix__="${prefix}"
 3384   __ac_tmp_oldexec_prefix__="$exec_prefix"
 3385  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 3386  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 3387  while :;do case "$tmpdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 3388 eval "tmpdir=`sed ${__ac_tmp__} <<EOF
 3389 $tmpdir
 3390 EOF
 3391 `";; *) break ;; esac; done
 3392   prefix="${__ac_tmp_oldprefix__}"
 3393   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 3394  explispdir="${lispdir}"
 3395   __ac_tmp_oldprefix__="${prefix}"
 3396   __ac_tmp_oldexec_prefix__="$exec_prefix"
 3397  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 3398  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 3399  while :;do case "$explispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 3400 eval "explispdir=`sed ${__ac_tmp__} <<EOF
 3401 $explispdir
 3402 EOF
 3403 `";; *) break ;; esac; done
 3404   prefix="${__ac_tmp_oldprefix__}"
 3405   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 3406  expstartup="${previewstartfile}"
 3407   __ac_tmp_oldprefix__="${prefix}"
 3408   __ac_tmp_oldexec_prefix__="$exec_prefix"
 3409  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 3410  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 3411  while :;do case "$expstartup" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 3412 eval "expstartup=`sed ${__ac_tmp__} <<EOF
 3413 $expstartup
 3414 EOF
 3415 `";; *) break ;; esac; done
 3416   prefix="${__ac_tmp_oldprefix__}"
 3417   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 3418 
 3419   elisp="(progn (setq path (directory-file-name path))
 3420   (if (or target
 3421           (not (string= (car load-path) (directory-file-name (car load-path)))))
 3422     (setq path (file-name-as-directory path)))
 3423   (setq path (expand-file-name path lispdir))
 3424   (setq startupdir (file-name-directory (expand-file-name startup lispdir)))
 3425   (prin1-to-string
 3426     (if (or (string-match \"\\\\\`\\\\.\\\\.\"
 3427               (setq relname (file-relative-name startupdir lispdir)))
 3428             (file-name-absolute-p relname)
 3429         (string-match \"\\\\\`\\\\.\\\\.\"
 3430               (setq relname (file-relative-name path lispdir)))
 3431         (file-name-absolute-p relname))
 3432       (concat path target)
 3433     (cond (target
 3434            \`(expand-file-name
 3435                    ,(file-relative-name (concat path target) startupdir)
 3436                (file-name-directory load-file-name)))
 3437               ((string= path startupdir)
 3438              '(file-name-directory load-file-name))
 3439           ((string= path (directory-file-name startupdir))
 3440                  '(directory-file-name (file-name-directory load-file-name)))
 3441               (t
 3442            \`(expand-file-name
 3443                    ,(file-relative-name path startupdir)
 3444                (file-name-directory load-file-name)))))))"
 3445   OUTPUT=./conftest-$$
 3446   echo "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}"  >& 5 2>&1
 3447   "${EMACS}" -batch -no-site-file -eval "(let* ((path(pop command-line-args-left)) (lispdir(pop command-line-args-left)) (startup(pop command-line-args-left)) (target(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${tmpdir}" "${explispdir}" "${expstartup}"  >& 5 2>&1
 3448   lisppackagetexstyles="`cat ${OUTPUT}`"
 3449   echo "=> ${lisppackagetexstyles}" >& 5 2>&1
 3450   rm -f ${OUTPUT}
 3451 
 3452 
 3453 
 3454      lisppackagetexstyles="(defvar preview-TeX-style-dir ${lisppackagetexstyles})"
 3455      test "X${TEXHASH}" = X && TEXHASH=:
 3456    else
 3457      lisppackagetexstyles=
 3458    fi
 3459 
 3460 
 3461    # Be very careful about assuming things about the available hash programs
 3462    # MiKTeX comes with a braindead link to mktexlsr, apparently, so first
 3463    # try the regular utility from them.
 3464 
 3465 
 3466    if test "X${TEXHASH}" = "X"
 3467    then
 3468      # Extract the first word of "texhash", so it can be a program name with args.
 3469 set dummy texhash; ac_word=$2
 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3471 $as_echo_n "checking for $ac_word... " >&6; }
 3472 if ${ac_cv_path_TEXHASH+:} false; then :
 3473   $as_echo_n "(cached) " >&6
 3474 else
 3475   case $TEXHASH in
 3476   [\\/]* | ?:[\\/]*)
 3477   ac_cv_path_TEXHASH="$TEXHASH" # Let the user override the test with a path.
 3478   ;;
 3479   *)
 3480   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3481 for as_dir in $PATH
 3482 do
 3483   IFS=$as_save_IFS
 3484   test -z "$as_dir" && as_dir=.
 3485     for ac_exec_ext in '' $ac_executable_extensions; do
 3486   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3487     ac_cv_path_TEXHASH="$as_dir/$ac_word$ac_exec_ext"
 3488     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3489     break 2
 3490   fi
 3491 done
 3492   done
 3493 IFS=$as_save_IFS
 3494 
 3495   ;;
 3496 esac
 3497 fi
 3498 TEXHASH=$ac_cv_path_TEXHASH
 3499 if test -n "$TEXHASH"; then
 3500   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXHASH" >&5
 3501 $as_echo "$TEXHASH" >&6; }
 3502 else
 3503   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3504 $as_echo "no" >&6; }
 3505 fi
 3506 
 3507 
 3508      # Extract the first word of "initexmf", so it can be a program name with args.
 3509 set dummy initexmf; ac_word=$2
 3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3511 $as_echo_n "checking for $ac_word... " >&6; }
 3512 if ${ac_cv_prog_TEXHASH+:} false; then :
 3513   $as_echo_n "(cached) " >&6
 3514 else
 3515   if test -n "$TEXHASH"; then
 3516   ac_cv_prog_TEXHASH="$TEXHASH" # Let the user override the test.
 3517 else
 3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3519 for as_dir in $PATH
 3520 do
 3521   IFS=$as_save_IFS
 3522   test -z "$as_dir" && as_dir=.
 3523     for ac_exec_ext in '' $ac_executable_extensions; do
 3524   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3525     ac_cv_prog_TEXHASH="initexmf -u"
 3526     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3527     break 2
 3528   fi
 3529 done
 3530   done
 3531 IFS=$as_save_IFS
 3532 
 3533 fi
 3534 fi
 3535 TEXHASH=$ac_cv_prog_TEXHASH
 3536 if test -n "$TEXHASH"; then
 3537   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXHASH" >&5
 3538 $as_echo "$TEXHASH" >&6; }
 3539 else
 3540   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3541 $as_echo "no" >&6; }
 3542 fi
 3543 
 3544 
 3545      if test "X${TEXHASH}" = X
 3546      then
 3547         for ac_prog in mktexlsr MakeTeXls-R
 3548 do
 3549   # Extract the first word of "$ac_prog", so it can be a program name with args.
 3550 set dummy $ac_prog; ac_word=$2
 3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3552 $as_echo_n "checking for $ac_word... " >&6; }
 3553 if ${ac_cv_path_TEXHASH+:} false; then :
 3554   $as_echo_n "(cached) " >&6
 3555 else
 3556   case $TEXHASH in
 3557   [\\/]* | ?:[\\/]*)
 3558   ac_cv_path_TEXHASH="$TEXHASH" # Let the user override the test with a path.
 3559   ;;
 3560   *)
 3561   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3562 for as_dir in $PATH
 3563 do
 3564   IFS=$as_save_IFS
 3565   test -z "$as_dir" && as_dir=.
 3566     for ac_exec_ext in '' $ac_executable_extensions; do
 3567   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3568     ac_cv_path_TEXHASH="$as_dir/$ac_word$ac_exec_ext"
 3569     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3570     break 2
 3571   fi
 3572 done
 3573   done
 3574 IFS=$as_save_IFS
 3575 
 3576   ;;
 3577 esac
 3578 fi
 3579 TEXHASH=$ac_cv_path_TEXHASH
 3580 if test -n "$TEXHASH"; then
 3581   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXHASH" >&5
 3582 $as_echo "$TEXHASH" >&6; }
 3583 else
 3584   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3585 $as_echo "no" >&6; }
 3586 fi
 3587 
 3588 
 3589   test -n "$TEXHASH" && break
 3590 done
 3591 test -n "$TEXHASH" || TEXHASH=":"
 3592 
 3593      fi
 3594    fi
 3595 
 3596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glaring installation conflicts" >&5
 3597 $as_echo_n "checking for glaring installation conflicts... " >&6; }
 3598    exppackagelispdir="$packagelispdir"
 3599     __ac_tmp_oldprefix__="${prefix}"
 3600   __ac_tmp_oldexec_prefix__="$exec_prefix"
 3601  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 3602  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 3603  while :;do case "$exppackagelispdir" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 3604 eval "exppackagelispdir=`sed ${__ac_tmp__} <<EOF
 3605 $exppackagelispdir
 3606 EOF
 3607 `";; *) break ;; esac; done
 3608   prefix="${__ac_tmp_oldprefix__}"
 3609   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 3610    exppreviewstartfile="$previewstartfile"
 3611     __ac_tmp_oldprefix__="${prefix}"
 3612   __ac_tmp_oldexec_prefix__="$exec_prefix"
 3613  test "x${prefix}" = xNONE && prefix="${ac_default_prefix}"
 3614  test "x${exec_prefix}" = xNONE && exec_prefix='${prefix}'
 3615  while :;do case "$exppreviewstartfile" in *\$*) __ac_tmp__='s/[\`"-"]/\\&/g'
 3616 eval "exppreviewstartfile=`sed ${__ac_tmp__} <<EOF
 3617 $exppreviewstartfile
 3618 EOF
 3619 `";; *) break ;; esac; done
 3620   prefix="${__ac_tmp_oldprefix__}"
 3621   exec_prefix="${__ac_tmp_oldexec_prefix__}"
 3622 
 3623 
 3624   elisp="
 3625      (concat
 3626        (and (setq tmp (locate-library \"preview.elc\"))
 3627             (not (string= (file-truename tmp)
 3628                        (file-truename (expand-file-name \"preview.elc\"
 3629                                          packagelispdir))))
 3630             (format \"Conflicting previous installation in \`%s' found!\n\"
 3631                     (file-name-directory tmp)))
 3632        (and (setq tmp (locate-library \"preview-latex.el\"))
 3633             (not (string= (file-truename tmp)
 3634                           (file-truename previewstartfile)))
 3635             (format \"Conflicting previous startup file \`%s' found!\n\" tmp)))"
 3636   OUTPUT=./conftest-$$
 3637   echo "${EMACS}" -batch  -eval "(let* ((packagelispdir(pop command-line-args-left)) (previewstartfile(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${exppackagelispdir}" "${exppreviewstartfile}" >& 5 2>&1
 3638   "${EMACS}" -batch  -eval "(let* ((packagelispdir(pop command-line-args-left)) (previewstartfile(pop command-line-args-left))(x ${elisp})) (write-region (if (stringp x) x (prin1-to-string x)) nil \"${OUTPUT}\"))" "${exppackagelispdir}" "${exppreviewstartfile}" >& 5 2>&1
 3639   shadows="`cat ${OUTPUT}`"
 3640   echo "=> ${shadows}" >& 5 2>&1
 3641   rm -f ${OUTPUT}
 3642 
 3643    if test "NONE${shadows}" != NONE
 3644    then
 3645      conflictsmsg="Conflicts with previous installations have been detected.
 3646    Please fix them before continuing.
 3647    "
 3648      { $as_echo "$as_me:${as_lineno-$LINENO}: result: ouch!
 3649    " >&5
 3650 $as_echo "ouch!
 3651    " >&6; }
 3652    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${shadows}
 3653    " >&5
 3654 $as_echo "$as_me: WARNING: ${shadows}
 3655    " >&2;}
 3656    else
 3657      conflictsmsg=
 3658      { $as_echo "$as_me:${as_lineno-$LINENO}: result: probably none" >&5
 3659 $as_echo "probably none" >&6; }
 3660    fi
 3661 
 3662    texmfdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3663 $texmfdir
 3664 EOF
 3665 `"
 3666    exec_prefix="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3667 $exec_prefix
 3668 EOF
 3669 `"
 3670    libdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3671 $libdir
 3672 EOF
 3673 `"
 3674    previewtexmfdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3675 $previewtexmfdir
 3676 EOF
 3677 `"
 3678    previewdocdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3679 $previewdocdir
 3680 EOF
 3681 `"
 3682    previewstartfile="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3683 $previewstartfile
 3684 EOF
 3685 `"
 3686    auctexdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3687 $auctexdir
 3688 EOF
 3689 `"
 3690    datadir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3691 $datadir
 3692 EOF
 3693 `"
 3694    GS="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3695 $GS
 3696 EOF
 3697 `"
 3698    TEXHASH="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3699 $TEXHASH
 3700 EOF
 3701 `"
 3702    LATEX="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3703 $LATEX
 3704 EOF
 3705 `"
 3706    PDFLATEX="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3707 $PDFLATEX
 3708 EOF
 3709 `"
 3710 fi
 3711 
 3712 
 3713 
 3714 if test "x$PERL" = x
 3715 then
 3716    # Extract the first word of "perl", so it can be a program name with args.
 3717 set dummy perl; ac_word=$2
 3718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3719 $as_echo_n "checking for $ac_word... " >&6; }
 3720 if ${ac_cv_path_PERL+:} false; then :
 3721   $as_echo_n "(cached) " >&6
 3722 else
 3723   case $PERL in
 3724   [\\/]* | ?:[\\/]*)
 3725   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
 3726   ;;
 3727   *)
 3728   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3729 for as_dir in $PATH
 3730 do
 3731   IFS=$as_save_IFS
 3732   test -z "$as_dir" && as_dir=.
 3733     for ac_exec_ext in '' $ac_executable_extensions; do
 3734   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3735     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
 3736     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3737     break 2
 3738   fi
 3739 done
 3740   done
 3741 IFS=$as_save_IFS
 3742 
 3743   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL=":"
 3744   ;;
 3745 esac
 3746 fi
 3747 PERL=$ac_cv_path_PERL
 3748 if test -n "$PERL"; then
 3749   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
 3750 $as_echo "$PERL" >&6; }
 3751 else
 3752   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3753 $as_echo "no" >&6; }
 3754 fi
 3755 
 3756 
 3757 fi
 3758 
 3759 
 3760 
 3761 # Extract the first word of "makeinfo", so it can be a program name with args.
 3762 set dummy makeinfo; ac_word=$2
 3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3764 $as_echo_n "checking for $ac_word... " >&6; }
 3765 if ${ac_cv_path_MAKEINFO+:} false; then :
 3766   $as_echo_n "(cached) " >&6
 3767 else
 3768   case $MAKEINFO in
 3769   [\\/]* | ?:[\\/]*)
 3770   ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
 3771   ;;
 3772   *)
 3773   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3774 for as_dir in $PATH
 3775 do
 3776   IFS=$as_save_IFS
 3777   test -z "$as_dir" && as_dir=.
 3778     for ac_exec_ext in '' $ac_executable_extensions; do
 3779   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3780     ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
 3781     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3782     break 2
 3783   fi
 3784 done
 3785   done
 3786 IFS=$as_save_IFS
 3787 
 3788   test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO=":"
 3789   ;;
 3790 esac
 3791 fi
 3792 MAKEINFO=$ac_cv_path_MAKEINFO
 3793 if test -n "$MAKEINFO"; then
 3794   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
 3795 $as_echo "$MAKEINFO" >&6; }
 3796 else
 3797   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3798 $as_echo "no" >&6; }
 3799 fi
 3800 
 3801 
 3802 # Extract the first word of "texi2html", so it can be a program name with args.
 3803 set dummy texi2html; ac_word=$2
 3804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3805 $as_echo_n "checking for $ac_word... " >&6; }
 3806 if ${ac_cv_path_TEXI2HTML+:} false; then :
 3807   $as_echo_n "(cached) " >&6
 3808 else
 3809   case $TEXI2HTML in
 3810   [\\/]* | ?:[\\/]*)
 3811   ac_cv_path_TEXI2HTML="$TEXI2HTML" # Let the user override the test with a path.
 3812   ;;
 3813   *)
 3814   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3815 for as_dir in $PATH
 3816 do
 3817   IFS=$as_save_IFS
 3818   test -z "$as_dir" && as_dir=.
 3819     for ac_exec_ext in '' $ac_executable_extensions; do
 3820   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3821     ac_cv_path_TEXI2HTML="$as_dir/$ac_word$ac_exec_ext"
 3822     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3823     break 2
 3824   fi
 3825 done
 3826   done
 3827 IFS=$as_save_IFS
 3828 
 3829   test -z "$ac_cv_path_TEXI2HTML" && ac_cv_path_TEXI2HTML=":"
 3830   ;;
 3831 esac
 3832 fi
 3833 TEXI2HTML=$ac_cv_path_TEXI2HTML
 3834 if test -n "$TEXI2HTML"; then
 3835   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2HTML" >&5
 3836 $as_echo "$TEXI2HTML" >&6; }
 3837 else
 3838   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3839 $as_echo "no" >&6; }
 3840 fi
 3841 
 3842 
 3843 # Extract the first word of "texi2dvi", so it can be a program name with args.
 3844 set dummy texi2dvi; ac_word=$2
 3845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3846 $as_echo_n "checking for $ac_word... " >&6; }
 3847 if ${ac_cv_path_TEXI2DVI+:} false; then :
 3848   $as_echo_n "(cached) " >&6
 3849 else
 3850   case $TEXI2DVI in
 3851   [\\/]* | ?:[\\/]*)
 3852   ac_cv_path_TEXI2DVI="$TEXI2DVI" # Let the user override the test with a path.
 3853   ;;
 3854   *)
 3855   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3856 for as_dir in $PATH
 3857 do
 3858   IFS=$as_save_IFS
 3859   test -z "$as_dir" && as_dir=.
 3860     for ac_exec_ext in '' $ac_executable_extensions; do
 3861   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3862     ac_cv_path_TEXI2DVI="$as_dir/$ac_word$ac_exec_ext"
 3863     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3864     break 2
 3865   fi
 3866 done
 3867   done
 3868 IFS=$as_save_IFS
 3869 
 3870   test -z "$ac_cv_path_TEXI2DVI" && ac_cv_path_TEXI2DVI=":"
 3871   ;;
 3872 esac
 3873 fi
 3874 TEXI2DVI=$ac_cv_path_TEXI2DVI
 3875 if test -n "$TEXI2DVI"; then
 3876   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2DVI" >&5
 3877 $as_echo "$TEXI2DVI" >&6; }
 3878 else
 3879   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3880 $as_echo "no" >&6; }
 3881 fi
 3882 
 3883 
 3884 # Extract the first word of "texi2pdf", so it can be a program name with args.
 3885 set dummy texi2pdf; ac_word=$2
 3886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3887 $as_echo_n "checking for $ac_word... " >&6; }
 3888 if ${ac_cv_path_TEXI2PDF+:} false; then :
 3889   $as_echo_n "(cached) " >&6
 3890 else
 3891   case $TEXI2PDF in
 3892   [\\/]* | ?:[\\/]*)
 3893   ac_cv_path_TEXI2PDF="$TEXI2PDF" # Let the user override the test with a path.
 3894   ;;
 3895   *)
 3896   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3897 for as_dir in $PATH
 3898 do
 3899   IFS=$as_save_IFS
 3900   test -z "$as_dir" && as_dir=.
 3901     for ac_exec_ext in '' $ac_executable_extensions; do
 3902   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3903     ac_cv_path_TEXI2PDF="$as_dir/$ac_word$ac_exec_ext"
 3904     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3905     break 2
 3906   fi
 3907 done
 3908   done
 3909 IFS=$as_save_IFS
 3910 
 3911   test -z "$ac_cv_path_TEXI2PDF" && ac_cv_path_TEXI2PDF=":"
 3912   ;;
 3913 esac
 3914 fi
 3915 TEXI2PDF=$ac_cv_path_TEXI2PDF
 3916 if test -n "$TEXI2PDF"; then
 3917   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEXI2PDF" >&5
 3918 $as_echo "$TEXI2PDF" >&6; }
 3919 else
 3920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3921 $as_echo "no" >&6; }
 3922 fi
 3923 
 3924 
 3925 
 3926 
 3927 
 3928 if test "X${INSTALL_INFO}" = X
 3929 then
 3930   # Extract the first word of "install-info", so it can be a program name with args.
 3931 set dummy install-info; ac_word=$2
 3932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
 3933 $as_echo_n "checking for $ac_word... " >&6; }
 3934 if ${ac_cv_path_INSTALL_INFO+:} false; then :
 3935   $as_echo_n "(cached) " >&6
 3936 else
 3937   case $INSTALL_INFO in
 3938   [\\/]* | ?:[\\/]*)
 3939   ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
 3940   ;;
 3941   *)
 3942   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3943 for as_dir in ${PATH} /usr/sbin /sbin
 3944 do
 3945   IFS=$as_save_IFS
 3946   test -z "$as_dir" && as_dir=.
 3947     for ac_exec_ext in '' $ac_executable_extensions; do
 3948   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3949     ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
 3950     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
 3951     break 2
 3952   fi
 3953 done
 3954   done
 3955 IFS=$as_save_IFS
 3956 
 3957   test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
 3958   ;;
 3959 esac
 3960 fi
 3961 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
 3962 if test -n "$INSTALL_INFO"; then
 3963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
 3964 $as_echo "$INSTALL_INFO" >&6; }
 3965 else
 3966   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 3967 $as_echo "no" >&6; }
 3968 fi
 3969 
 3970 
 3971 fi
 3972 
 3973 prefix="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3974 $prefix
 3975 EOF
 3976 `"
 3977 localstatedir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3978 $localstatedir
 3979 EOF
 3980 `"
 3981 packagelispdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3982 $packagelispdir
 3983 EOF
 3984 `"
 3985 packagedatadir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3986 $packagedatadir
 3987 EOF
 3988 `"
 3989 lispdir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3990 $lispdir
 3991 EOF
 3992 `"
 3993 infodir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3994 $infodir
 3995 EOF
 3996 `"
 3997 datadir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 3998 $datadir
 3999 EOF
 4000 `"
 4001 autodir="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4002 $autodir
 4003 EOF
 4004 `"
 4005 auctexstartfile="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4006 $auctexstartfile
 4007 EOF
 4008 `"
 4009 EMACS="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4010 $EMACS
 4011 EOF
 4012 `"
 4013 INSTALL_INFO="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4014 $INSTALL_INFO
 4015 EOF
 4016 `"
 4017 PERL="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4018 $PERL
 4019 EOF
 4020 `"
 4021 MAKEINFO="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4022 $MAKEINFO
 4023 EOF
 4024 `"
 4025 TEX="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4026 $TEX
 4027 EOF
 4028 `"
 4029 PDFTEX="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4030 $PDFTEX
 4031 EOF
 4032 `"
 4033 DVIPS="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4034 $DVIPS
 4035 EOF
 4036 `"
 4037 TEXI2HTML="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4038 $TEXI2HTML
 4039 EOF
 4040 `"
 4041 TEXI2DVI="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4042 $TEXI2DVI
 4043 EOF
 4044 `"
 4045 TEXI2PDF="`sed 's/[^-0-9a-zA-Z_./:$]/\\\\&/g;s/[$]\\\\[{(]\\([^)}]*\\)\\\\[})]/${\\1}/g' <<EOF
 4046 $TEXI2PDF
 4047 EOF
 4048 `"
 4049 
 4050 ac_config_files="$ac_config_files Makefile tex-site.el.out:tex-site.el.in doc/Makefile auctex.el preview.el latex/Makefile"
 4051 
 4052 cat >confcache <<\_ACEOF
 4053 # This file is a shell script that caches the results of configure
 4054 # tests run on this system so they can be shared between configure
 4055 # scripts and configure runs, see configure's option --config-cache.
 4056 # It is not useful on other systems.  If it contains results you don't
 4057 # want to keep, you may remove or edit it.
 4058 #
 4059 # config.status only pays attention to the cache file if you give it
 4060 # the --recheck option to rerun configure.
 4061 #
 4062 # `ac_cv_env_foo' variables (set or unset) will be overridden when
 4063 # loading this file, other *unset* `ac_cv_foo' will be assigned the
 4064 # following values.
 4065 
 4066 _ACEOF
 4067 
 4068 # The following way of writing the cache mishandles newlines in values,
 4069 # but we know of no workaround that is simple, portable, and efficient.
 4070 # So, we kill variables containing newlines.
 4071 # Ultrix sh set writes to stderr and can't be redirected directly,
 4072 # and sets the high bit in the cache file unless we assign to the vars.
 4073 (
 4074   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
 4075     eval ac_val=\$$ac_var
 4076     case $ac_val in #(
 4077     *${as_nl}*)
 4078       case $ac_var in #(
 4079       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
 4080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
 4081       esac
 4082       case $ac_var in #(
 4083       _ | IFS | as_nl) ;; #(
 4084       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
 4085       *) { eval $ac_var=; unset $ac_var;} ;;
 4086       esac ;;
 4087     esac
 4088   done
 4089 
 4090   (set) 2>&1 |
 4091     case $as_nl`(ac_space=' '; set) 2>&1` in #(
 4092     *${as_nl}ac_space=\ *)
 4093       # `set' does not quote correctly, so add quotes: double-quote
 4094       # substitution turns \\\\ into \\, and sed turns \\ into \.
 4095       sed -n \
 4096     "s/'/'\\\\''/g;
 4097       s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
 4098       ;; #(
 4099     *)
 4100       # `set' quotes correctly as required by POSIX, so do not add quotes.
 4101       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
 4102       ;;
 4103     esac |
 4104     sort
 4105 ) |
 4106   sed '
 4107      /^ac_cv_env_/b end
 4108      t clear
 4109      :clear
 4110      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
 4111      t end
 4112      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
 4113      :end' >>confcache
 4114 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
 4115   if test -w "$cache_file"; then
 4116     if test "x$cache_file" != "x/dev/null"; then
 4117       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
 4118 $as_echo "$as_me: updating cache $cache_file" >&6;}
 4119       if test ! -f "$cache_file" || test -h "$cache_file"; then
 4120     cat confcache >"$cache_file"
 4121       else
 4122         case $cache_file in #(
 4123         */* | ?:*)
 4124       mv -f confcache "$cache_file"$$ &&
 4125       mv -f "$cache_file"$$ "$cache_file" ;; #(
 4126         *)
 4127       mv -f confcache "$cache_file" ;;
 4128     esac
 4129       fi
 4130     fi
 4131   else
 4132     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
 4133 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
 4134   fi
 4135 fi
 4136 rm -f confcache
 4137 
 4138 test "x$prefix" = xNONE && prefix=$ac_default_prefix
 4139 # Let make expand exec_prefix.
 4140 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
 4141 
 4142 # Transform confdefs.h into DEFS.
 4143 # Protect against shell expansion while executing Makefile rules.
 4144 # Protect against Makefile macro expansion.
 4145 #
 4146 # If the first sed substitution is executed (which looks for macros that
 4147 # take arguments), then branch to the quote section.  Otherwise,
 4148 # look for a macro that doesn't take arguments.
 4149 ac_script='
 4150 :mline
 4151 /\\$/{
 4152  N
 4153  s,\\\n,,
 4154  b mline
 4155 }
 4156 t clear
 4157 :clear
 4158 s/^[     ]*#[    ]*define[   ][  ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
 4159 t quote
 4160 s/^[     ]*#[    ]*define[   ][  ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
 4161 t quote
 4162 b any
 4163 :quote
 4164 s/[  `~#$^&*(){}\\|;'\''"<>?]/\\&/g
 4165 s/\[/\\&/g
 4166 s/\]/\\&/g
 4167 s/\$/$$/g
 4168 H
 4169 :any
 4170 ${
 4171     g
 4172     s/^\n//
 4173     s/\n/ /g
 4174     p
 4175 }
 4176 '
 4177 DEFS=`sed -n "$ac_script" confdefs.h`
 4178 
 4179 
 4180 ac_libobjs=
 4181 ac_ltlibobjs=
 4182 U=
 4183 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
 4184   # 1. Remove the extension, and $U if already installed.
 4185   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
 4186   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
 4187   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
 4188   #    will be set to the directory where LIBOBJS objects are built.
 4189   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
 4190   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
 4191 done
 4192 LIBOBJS=$ac_libobjs
 4193 
 4194 LTLIBOBJS=$ac_ltlibobjs
 4195 
 4196 
 4197 
 4198 : "${CONFIG_STATUS=./config.status}"
 4199 ac_write_fail=0
 4200 ac_clean_files_save=$ac_clean_files
 4201 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
 4202 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
 4203 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
 4204 as_write_fail=0
 4205 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
 4206 #! $SHELL
 4207 # Generated by $as_me.
 4208 # Run this file to recreate the current configuration.
 4209 # Compiler output produced by configure, useful for debugging
 4210 # configure, is in config.log if it exists.
 4211 
 4212 debug=false
 4213 ac_cs_recheck=false
 4214 ac_cs_silent=false
 4215 
 4216 SHELL=\${CONFIG_SHELL-$SHELL}
 4217 export SHELL
 4218 _ASEOF
 4219 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
 4220 ## -------------------- ##
 4221 ## M4sh Initialization. ##
 4222 ## -------------------- ##
 4223 
 4224 # Be more Bourne compatible
 4225 DUALCASE=1; export DUALCASE # for MKS sh
 4226 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
 4227   emulate sh
 4228   NULLCMD=:
 4229   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
 4230   # is contrary to our usage.  Disable this feature.
 4231   alias -g '${1+"$@"}'='"$@"'
 4232   setopt NO_GLOB_SUBST
 4233 else
 4234   case `(set -o) 2>/dev/null` in #(
 4235   *posix*) :
 4236     set -o posix ;; #(
 4237   *) :
 4238      ;;
 4239 esac
 4240 fi
 4241 
 4242 
 4243 as_nl='
 4244 '
 4245 export as_nl
 4246 # Printing a long string crashes Solaris 7 /usr/bin/printf.
 4247 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
 4248 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
 4249 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
 4250 # Prefer a ksh shell builtin over an external printf program on Solaris,
 4251 # but without wasting forks for bash or zsh.
 4252 if test -z "$BASH_VERSION$ZSH_VERSION" \
 4253     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
 4254   as_echo='print -r --'
 4255   as_echo_n='print -rn --'
 4256 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
 4257   as_echo='printf %s\n'
 4258   as_echo_n='printf %s'
 4259 else
 4260   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
 4261     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
 4262     as_echo_n='/usr/ucb/echo -n'
 4263   else
 4264     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
 4265     as_echo_n_body='eval
 4266       arg=$1;
 4267       case $arg in #(
 4268       *"$as_nl"*)
 4269     expr "X$arg" : "X\\(.*\\)$as_nl";
 4270     arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
 4271       esac;
 4272       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
 4273     '
 4274     export as_echo_n_body
 4275     as_echo_n='sh -c $as_echo_n_body as_echo'
 4276   fi
 4277   export as_echo_body
 4278   as_echo='sh -c $as_echo_body as_echo'
 4279 fi
 4280 
 4281 # The user is always right.
 4282 if test "${PATH_SEPARATOR+set}" != set; then
 4283   PATH_SEPARATOR=:
 4284   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
 4285     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
 4286       PATH_SEPARATOR=';'
 4287   }
 4288 fi
 4289 
 4290 
 4291 # IFS
 4292 # We need space, tab and new line, in precisely that order.  Quoting is
 4293 # there to prevent editors from complaining about space-tab.
 4294 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
 4295 # splitting by setting IFS to empty value.)
 4296 IFS=" ""    $as_nl"
 4297 
 4298 # Find who we are.  Look in the path if we contain no directory separator.
 4299 as_myself=
 4300 case $0 in #((
 4301   *[\\/]* ) as_myself=$0 ;;
 4302   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 4303 for as_dir in $PATH
 4304 do
 4305   IFS=$as_save_IFS
 4306   test -z "$as_dir" && as_dir=.
 4307     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
 4308   done
 4309 IFS=$as_save_IFS
 4310 
 4311      ;;
 4312 esac
 4313 # We did not find ourselves, most probably we were run as `sh COMMAND'
 4314 # in which case we are not to be found in the path.
 4315 if test "x$as_myself" = x; then
 4316   as_myself=$0
 4317 fi
 4318 if test ! -f "$as_myself"; then
 4319   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
 4320   exit 1
 4321 fi
 4322 
 4323 # Unset variables that we do not need and which cause bugs (e.g. in
 4324 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
 4325 # suppresses any "Segmentation fault" message there.  '((' could
 4326 # trigger a bug in pdksh 5.2.14.
 4327 for as_var in BASH_ENV ENV MAIL MAILPATH
 4328 do eval test x\${$as_var+set} = xset \
 4329   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
 4330 done
 4331 PS1='$ '
 4332 PS2='> '
 4333 PS4='+ '
 4334 
 4335 # NLS nuisances.
 4336 LC_ALL=C
 4337 export LC_ALL
 4338 LANGUAGE=C
 4339 export LANGUAGE
 4340 
 4341 # CDPATH.
 4342 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
 4343 
 4344 
 4345 # as_fn_error STATUS ERROR [LINENO LOG_FD]
 4346 # ----------------------------------------
 4347 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
 4348 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
 4349 # script with STATUS, using 1 if that was 0.
 4350 as_fn_error ()
 4351 {
 4352   as_status=$1; test $as_status -eq 0 && as_status=1
 4353   if test "$4"; then
 4354     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
 4355     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
 4356   fi
 4357   $as_echo "$as_me: error: $2" >&2
 4358   as_fn_exit $as_status
 4359 } # as_fn_error
 4360 
 4361 
 4362 # as_fn_set_status STATUS
 4363 # -----------------------
 4364 # Set $? to STATUS, without forking.
 4365 as_fn_set_status ()
 4366 {
 4367   return $1
 4368 } # as_fn_set_status
 4369 
 4370 # as_fn_exit STATUS
 4371 # -----------------
 4372 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
 4373 as_fn_exit ()
 4374 {
 4375   set +e
 4376   as_fn_set_status $1
 4377   exit $1
 4378 } # as_fn_exit
 4379 
 4380 # as_fn_unset VAR
 4381 # ---------------
 4382 # Portably unset VAR.
 4383 as_fn_unset ()
 4384 {
 4385   { eval $1=; unset $1;}
 4386 }
 4387 as_unset=as_fn_unset
 4388 # as_fn_append VAR VALUE
 4389 # ----------------------
 4390 # Append the text in VALUE to the end of the definition contained in VAR. Take
 4391 # advantage of any shell optimizations that allow amortized linear growth over
 4392 # repeated appends, instead of the typical quadratic growth present in naive
 4393 # implementations.
 4394 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
 4395   eval 'as_fn_append ()
 4396   {
 4397     eval $1+=\$2
 4398   }'
 4399 else
 4400   as_fn_append ()
 4401   {
 4402     eval $1=\$$1\$2
 4403   }
 4404 fi # as_fn_append
 4405 
 4406 # as_fn_arith ARG...
 4407 # ------------------
 4408 # Perform arithmetic evaluation on the ARGs, and store the result in the
 4409 # global $as_val. Take advantage of shells that can avoid forks. The arguments
 4410 # must be portable across $(()) and expr.
 4411 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
 4412   eval 'as_fn_arith ()
 4413   {
 4414     as_val=$(( $* ))
 4415   }'
 4416 else
 4417   as_fn_arith ()
 4418   {
 4419     as_val=`expr "$@" || test $? -eq 1`
 4420   }
 4421 fi # as_fn_arith
 4422 
 4423 
 4424 if expr a : '\(a\)' >/dev/null 2>&1 &&
 4425    test "X`expr 00001 : '.*\(...\)'`" = X001; then
 4426   as_expr=expr
 4427 else
 4428   as_expr=false
 4429 fi
 4430 
 4431 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
 4432   as_basename=basename
 4433 else
 4434   as_basename=false
 4435 fi
 4436 
 4437 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
 4438   as_dirname=dirname
 4439 else
 4440   as_dirname=false
 4441 fi
 4442 
 4443 as_me=`$as_basename -- "$0" ||
 4444 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
 4445      X"$0" : 'X\(//\)$' \| \
 4446      X"$0" : 'X\(/\)' \| . 2>/dev/null ||
 4447 $as_echo X/"$0" |
 4448     sed '/^.*\/\([^/][^/]*\)\/*$/{
 4449         s//\1/
 4450         q
 4451       }
 4452       /^X\/\(\/\/\)$/{
 4453         s//\1/
 4454         q
 4455       }
 4456       /^X\/\(\/\).*/{
 4457         s//\1/
 4458         q
 4459       }
 4460       s/.*/./; q'`
 4461 
 4462 # Avoid depending upon Character Ranges.
 4463 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
 4464 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
 4465 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
 4466 as_cr_digits='0123456789'
 4467 as_cr_alnum=$as_cr_Letters$as_cr_digits
 4468 
 4469 ECHO_C= ECHO_N= ECHO_T=
 4470 case `echo -n x` in #(((((
 4471 -n*)
 4472   case `echo 'xy\c'` in
 4473   *c*) ECHO_T=' ';; # ECHO_T is single tab character.
 4474   xy)  ECHO_C='\c';;
 4475   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
 4476        ECHO_T=' ';;
 4477   esac;;
 4478 *)
 4479   ECHO_N='-n';;
 4480 esac
 4481 
 4482 rm -f conf$$ conf$$.exe conf$$.file
 4483 if test -d conf$$.dir; then
 4484   rm -f conf$$.dir/conf$$.file
 4485 else
 4486   rm -f conf$$.dir
 4487   mkdir conf$$.dir 2>/dev/null
 4488 fi
 4489 if (echo >conf$$.file) 2>/dev/null; then
 4490   if ln -s conf$$.file conf$$ 2>/dev/null; then
 4491     as_ln_s='ln -s'
 4492     # ... but there are two gotchas:
 4493     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
 4494     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
 4495     # In both cases, we have to default to `cp -pR'.
 4496     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
 4497       as_ln_s='cp -pR'
 4498   elif ln conf$$.file conf$$ 2>/dev/null; then
 4499     as_ln_s=ln
 4500   else
 4501     as_ln_s='cp -pR'
 4502   fi
 4503 else
 4504   as_ln_s='cp -pR'
 4505 fi
 4506 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
 4507 rmdir conf$$.dir 2>/dev/null
 4508 
 4509 
 4510 # as_fn_mkdir_p
 4511 # -------------
 4512 # Create "$as_dir" as a directory, including parents if necessary.
 4513 as_fn_mkdir_p ()
 4514 {
 4515 
 4516   case $as_dir in #(
 4517   -*) as_dir=./$as_dir;;
 4518   esac
 4519   test -d "$as_dir" || eval $as_mkdir_p || {
 4520     as_dirs=
 4521     while :; do
 4522       case $as_dir in #(
 4523       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
 4524       *) as_qdir=$as_dir;;
 4525       esac
 4526       as_dirs="'$as_qdir' $as_dirs"
 4527       as_dir=`$as_dirname -- "$as_dir" ||
 4528 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
 4529      X"$as_dir" : 'X\(//\)[^/]' \| \
 4530      X"$as_dir" : 'X\(//\)$' \| \
 4531      X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
 4532 $as_echo X"$as_dir" |
 4533     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
 4534         s//\1/
 4535         q
 4536       }
 4537       /^X\(\/\/\)[^/].*/{
 4538         s//\1/
 4539         q
 4540       }
 4541       /^X\(\/\/\)$/{
 4542         s//\1/
 4543         q
 4544       }
 4545       /^X\(\/\).*/{
 4546         s//\1/
 4547         q
 4548       }
 4549       s/.*/./; q'`
 4550       test -d "$as_dir" && break
 4551     done
 4552     test -z "$as_dirs" || eval "mkdir $as_dirs"
 4553   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
 4554 
 4555 
 4556 } # as_fn_mkdir_p
 4557 if mkdir -p . 2>/dev/null; then
 4558   as_mkdir_p='mkdir -p "$as_dir"'
 4559 else
 4560   test -d ./-p && rmdir ./-p
 4561   as_mkdir_p=false
 4562 fi
 4563 
 4564 
 4565 # as_fn_executable_p FILE
 4566 # -----------------------
 4567 # Test if FILE is an executable regular file.
 4568 as_fn_executable_p ()
 4569 {
 4570   test -f "$1" && test -x "$1"
 4571 } # as_fn_executable_p
 4572 as_test_x='test -x'
 4573 as_executable_p=as_fn_executable_p
 4574 
 4575 # Sed expression to map a string onto a valid CPP name.
 4576 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
 4577 
 4578 # Sed expression to map a string onto a valid variable name.
 4579 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
 4580 
 4581 
 4582 exec 6>&1
 4583 ## ----------------------------------- ##
 4584 ## Main body of $CONFIG_STATUS script. ##
 4585 ## ----------------------------------- ##
 4586 _ASEOF
 4587 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
 4588 
 4589 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 4590 # Save the log message, to keep $0 and so on meaningful, and to
 4591 # report actual input values of CONFIG_FILES etc. instead of their
 4592 # values after options handling.
 4593 ac_log="
 4594 This file was extended by auctex $as_me 12.3, which was
 4595 generated by GNU Autoconf 2.69.  Invocation command line was
 4596 
 4597   CONFIG_FILES    = $CONFIG_FILES
 4598   CONFIG_HEADERS  = $CONFIG_HEADERS
 4599   CONFIG_LINKS    = $CONFIG_LINKS
 4600   CONFIG_COMMANDS = $CONFIG_COMMANDS
 4601   $ $0 $@
 4602 
 4603 on `(hostname || uname -n) 2>/dev/null | sed 1q`
 4604 "
 4605 
 4606 _ACEOF
 4607 
 4608 case $ac_config_files in *"
 4609 "*) set x $ac_config_files; shift; ac_config_files=$*;;
 4610 esac
 4611 
 4612 
 4613 
 4614 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 4615 # Files that config.status was made for.
 4616 config_files="$ac_config_files"
 4617 
 4618 _ACEOF
 4619 
 4620 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 4621 ac_cs_usage="\
 4622 \`$as_me' instantiates files and other configuration actions
 4623 from templates according to the current configuration.  Unless the files
 4624 and actions are specified as TAGs, all are instantiated by default.
 4625 
 4626 Usage: $0 [OPTION]... [TAG]...
 4627 
 4628   -h, --help       print this help, then exit
 4629   -V, --version    print version number and configuration settings, then exit
 4630       --config     print configuration, then exit
 4631   -q, --quiet, --silent
 4632                    do not print progress messages
 4633   -d, --debug      don't remove temporary files
 4634       --recheck    update $as_me by reconfiguring in the same conditions
 4635       --file=FILE[:TEMPLATE]
 4636                    instantiate the configuration file FILE
 4637 
 4638 Configuration files:
 4639 $config_files
 4640 
 4641 Report bugs to <bug-auctex@gnu.org>."
 4642 
 4643 _ACEOF
 4644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 4645 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
 4646 ac_cs_version="\\
 4647 auctex config.status 12.3
 4648 configured by $0, generated by GNU Autoconf 2.69,
 4649   with options \\"\$ac_cs_config\\"
 4650 
 4651 Copyright (C) 2012 Free Software Foundation, Inc.
 4652 This config.status script is free software; the Free Software Foundation
 4653 gives unlimited permission to copy, distribute and modify it."
 4654 
 4655 ac_pwd='$ac_pwd'
 4656 srcdir='$srcdir'
 4657 INSTALL='$INSTALL'
 4658 test -n "\$AWK" || AWK=awk
 4659 _ACEOF
 4660 
 4661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 4662 # The default lists apply if the user does not specify any file.
 4663 ac_need_defaults=:
 4664 while test $# != 0
 4665 do
 4666   case $1 in
 4667   --*=?*)
 4668     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 4669     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
 4670     ac_shift=:
 4671     ;;
 4672   --*=)
 4673     ac_option=`expr "X$1" : 'X\([^=]*\)='`
 4674     ac_optarg=
 4675     ac_shift=:
 4676     ;;
 4677   *)
 4678     ac_option=$1
 4679     ac_optarg=$2
 4680     ac_shift=shift
 4681     ;;
 4682   esac
 4683 
 4684   case $ac_option in
 4685   # Handling of the options.
 4686   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
 4687     ac_cs_recheck=: ;;
 4688   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
 4689     $as_echo "$ac_cs_version"; exit ;;
 4690   --config | --confi | --conf | --con | --co | --c )
 4691     $as_echo "$ac_cs_config"; exit ;;
 4692   --debug | --debu | --deb | --de | --d | -d )
 4693     debug=: ;;
 4694   --file | --fil | --fi | --f )
 4695     $ac_shift
 4696     case $ac_optarg in
 4697     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
 4698     '') as_fn_error $? "missing file argument" ;;
 4699     esac
 4700     as_fn_append CONFIG_FILES " '$ac_optarg'"
 4701     ac_need_defaults=false;;
 4702   --he | --h |  --help | --hel | -h )
 4703     $as_echo "$ac_cs_usage"; exit ;;
 4704   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
 4705   | -silent | --silent | --silen | --sile | --sil | --si | --s)
 4706     ac_cs_silent=: ;;
 4707 
 4708   # This is an error.
 4709   -*) as_fn_error $? "unrecognized option: \`$1'
 4710 Try \`$0 --help' for more information." ;;
 4711 
 4712   *) as_fn_append ac_config_targets " $1"
 4713      ac_need_defaults=false ;;
 4714 
 4715   esac
 4716   shift
 4717 done
 4718 
 4719 ac_configure_extra_args=
 4720 
 4721 if $ac_cs_silent; then
 4722   exec 6>/dev/null
 4723   ac_configure_extra_args="$ac_configure_extra_args --silent"
 4724 fi
 4725 
 4726 _ACEOF
 4727 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 4728 if \$ac_cs_recheck; then
 4729   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
 4730   shift
 4731   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
 4732   CONFIG_SHELL='$SHELL'
 4733   export CONFIG_SHELL
 4734   exec "\$@"
 4735 fi
 4736 
 4737 _ACEOF
 4738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 4739 exec 5>>config.log
 4740 {
 4741   echo
 4742   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
 4743 ## Running $as_me. ##
 4744 _ASBOX
 4745   $as_echo "$ac_log"
 4746 } >&5
 4747 
 4748 _ACEOF
 4749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 4750 _ACEOF
 4751 
 4752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 4753 
 4754 # Handling of arguments.
 4755 for ac_config_target in $ac_config_targets
 4756 do
 4757   case $ac_config_target in
 4758     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
 4759     "tex-site.el.out") CONFIG_FILES="$CONFIG_FILES tex-site.el.out:tex-site.el.in" ;;
 4760     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
 4761     "auctex.el") CONFIG_FILES="$CONFIG_FILES auctex.el" ;;
 4762     "preview.el") CONFIG_FILES="$CONFIG_FILES preview.el" ;;
 4763     "latex/Makefile") CONFIG_FILES="$CONFIG_FILES latex/Makefile" ;;
 4764 
 4765   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
 4766   esac
 4767 done
 4768 
 4769 
 4770 # If the user did not use the arguments to specify the items to instantiate,
 4771 # then the envvar interface is used.  Set only those that are not.
 4772 # We use the long form for the default assignment because of an extremely
 4773 # bizarre bug on SunOS 4.1.3.
 4774 if $ac_need_defaults; then
 4775   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
 4776 fi
 4777 
 4778 # Have a temporary directory for convenience.  Make it in the build tree
 4779 # simply because there is no reason against having it here, and in addition,
 4780 # creating and moving files from /tmp can sometimes cause problems.
 4781 # Hook for its removal unless debugging.
 4782 # Note that there is a small window in which the directory will not be cleaned:
 4783 # after its creation but before its name has been assigned to `$tmp'.
 4784 $debug ||
 4785 {
 4786   tmp= ac_tmp=
 4787   trap 'exit_status=$?
 4788   : "${ac_tmp:=$tmp}"
 4789   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
 4790 ' 0
 4791   trap 'as_fn_exit 1' 1 2 13 15
 4792 }
 4793 # Create a (secure) tmp directory for tmp files.
 4794 
 4795 {
 4796   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
 4797   test -d "$tmp"
 4798 }  ||
 4799 {
 4800   tmp=./conf$$-$RANDOM
 4801   (umask 077 && mkdir "$tmp")
 4802 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
 4803 ac_tmp=$tmp
 4804 
 4805 # Set up the scripts for CONFIG_FILES section.
 4806 # No need to generate them if there are no CONFIG_FILES.
 4807 # This happens for instance with `./config.status config.h'.
 4808 if test -n "$CONFIG_FILES"; then
 4809 
 4810 
 4811 ac_cr=`echo X | tr X '\015'`
 4812 # On cygwin, bash can eat \r inside `` if the user requested igncr.
 4813 # But we know of no other shell where ac_cr would be empty at this
 4814 # point, so we can use a bashism as a fallback.
 4815 if test "x$ac_cr" = x; then
 4816   eval ac_cr=\$\'\\r\'
 4817 fi
 4818 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
 4819 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
 4820   ac_cs_awk_cr='\\r'
 4821 else
 4822   ac_cs_awk_cr=$ac_cr
 4823 fi
 4824 
 4825 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
 4826 _ACEOF
 4827 
 4828 
 4829 {
 4830   echo "cat >conf$$subs.awk <<_ACEOF" &&
 4831   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
 4832   echo "_ACEOF"
 4833 } >conf$$subs.sh ||
 4834   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 4835 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
 4836 ac_delim='%!_!# '
 4837 for ac_last_try in false false false false false :; do
 4838   . ./conf$$subs.sh ||
 4839     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 4840 
 4841   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
 4842   if test $ac_delim_n = $ac_delim_num; then
 4843     break
 4844   elif $ac_last_try; then
 4845     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
 4846   else
 4847     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
 4848   fi
 4849 done
 4850 rm -f conf$$subs.sh
 4851 
 4852 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 4853 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
 4854 _ACEOF
 4855 sed -n '
 4856 h
 4857 s/^/S["/; s/!.*/"]=/
 4858 p
 4859 g
 4860 s/^[^!]*!//
 4861 :repl
 4862 t repl
 4863 s/'"$ac_delim"'$//
 4864 t delim
 4865 :nl
 4866 h
 4867 s/\(.\{148\}\)..*/\1/
 4868 t more1
 4869 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
 4870 p
 4871 n
 4872 b repl
 4873 :more1
 4874 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 4875 p
 4876 g
 4877 s/.\{148\}//
 4878 t nl
 4879 :delim
 4880 h
 4881 s/\(.\{148\}\)..*/\1/
 4882 t more2
 4883 s/["\\]/\\&/g; s/^/"/; s/$/"/
 4884 p
 4885 b
 4886 :more2
 4887 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
 4888 p
 4889 g
 4890 s/.\{148\}//
 4891 t delim
 4892 ' <conf$$subs.awk | sed '
 4893 /^[^""]/{
 4894   N
 4895   s/\n//
 4896 }
 4897 ' >>$CONFIG_STATUS || ac_write_fail=1
 4898 rm -f conf$$subs.awk
 4899 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 4900 _ACAWK
 4901 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
 4902   for (key in S) S_is_set[key] = 1
 4903   FS = ""
 4904 
 4905 }
 4906 {
 4907   line = $ 0
 4908   nfields = split(line, field, "@")
 4909   substed = 0
 4910   len = length(field[1])
 4911   for (i = 2; i < nfields; i++) {
 4912     key = field[i]
 4913     keylen = length(key)
 4914     if (S_is_set[key]) {
 4915       value = S[key]
 4916       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
 4917       len += length(value) + length(field[++i])
 4918       substed = 1
 4919     } else
 4920       len += 1 + keylen
 4921   }
 4922 
 4923   print line
 4924 }
 4925 
 4926 _ACAWK
 4927 _ACEOF
 4928 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 4929 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
 4930   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
 4931 else
 4932   cat
 4933 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
 4934   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
 4935 _ACEOF
 4936 
 4937 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
 4938 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
 4939 # trailing colons and then remove the whole line if VPATH becomes empty
 4940 # (actually we leave an empty line to preserve line numbers).
 4941 if test "x$srcdir" = x.; then
 4942   ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
 4943 h
 4944 s///
 4945 s/^/:/
 4946 s/[  ]*$/:/
 4947 s/:\$(srcdir):/:/g
 4948 s/:\${srcdir}:/:/g
 4949 s/:@srcdir@:/:/g
 4950 s/^:*//
 4951 s/:*$//
 4952 x
 4953 s/\(=[   ]*\).*/\1/
 4954 G
 4955 s/\n//
 4956 s/^[^=]*=[   ]*$//
 4957 }'
 4958 fi
 4959 
 4960 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
 4961 fi # test -n "$CONFIG_FILES"
 4962 
 4963 
 4964 eval set X "  :F $CONFIG_FILES      "
 4965 shift
 4966 for ac_tag
 4967 do
 4968   case $ac_tag in
 4969   :[FHLC]) ac_mode=$ac_tag; continue;;
 4970   esac
 4971   case $ac_mode$ac_tag in
 4972   :[FHL]*:*);;
 4973   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
 4974   :[FH]-) ac_tag=-:-;;
 4975   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
 4976   esac
 4977   ac_save_IFS=$IFS
 4978   IFS=:
 4979   set x $ac_tag
 4980   IFS=$ac_save_IFS
 4981   shift
 4982   ac_file=$1
 4983   shift
 4984 
 4985   case $ac_mode in
 4986   :L) ac_source=$1;;
 4987   :[FH])
 4988     ac_file_inputs=
 4989     for ac_f
 4990     do
 4991       case $ac_f in
 4992       -) ac_f="$ac_tmp/stdin";;
 4993       *) # Look for the file first in the build tree, then in the source tree
 4994      # (if the path is not absolute).  The absolute path cannot be DOS-style,