title: Why: syntax error near unexpected token `fi'
body: <p>In a configure file (#!/bin/sh/) generated by autoconf, there is a paragraph inside like the following:</p>
  
  <pre><code>if ac_fn_cxx_try_compile "$LINENO"; then :
  
          { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" &gt;&amp;5
  $as_echo "yes" &gt;&amp;6; }
      succeeded=yes
      found_system=yes
  
  else
  
  
  fi
  </code></pre>
  
  <p>And when I execute ./configure it tells me "syntax error near unexpected token `fi'" at that line. It is not the end of the file.</p>